:root {
    --primary: #1e3a8a;
    --primary-light: #2563eb;
    --secondary: #fbbf24;
    --secondary-dark: #d97706;
    --accent: #f97316;
    --background: #f8fafc;
    --white: #ffffff;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --glass: rgba(255, 255, 255, 0.8);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background);
    scroll-behavior: smooth;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header & Nav */
.header {
    background: var(--glass);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-text {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
    letter-spacing: -1px;
}

.logo-text span {
    color: var(--secondary-dark);
    font-weight: 400;
    margin-left: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background: radial-gradient(circle at top right, #e0f2fe, var(--background));
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    background: #dbeafe;
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero h1 span {
    color: var(--primary-light);
    position: relative;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--secondary);
    z-index: -1;
    opacity: 0.5;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat strong {
    display: block;
    font-size: 1.8rem;
    color: var(--primary);
}

.stat span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.hero-image {
    position: relative;
}

.img-main {
    border-radius: 24px;
    box-shadow: var(--shadow);
    transform: rotate(2deg);
}

.floating-card {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    font-size: 2rem;
    color: #10b981;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background: var(--white);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

.testimonial-slider {
    overflow: hidden;
    padding: 20px 0;
}

.testimonial-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
}

.testimonial-card {
    min-width: 350px;
    background: var(--background);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.stars {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

/* Services */
.services {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.service-card.highlighted {
    background: var(--primary);
    color: var(--white);
    border: none;
}

.icon {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
}

.highlighted .icon {
    color: var(--secondary);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.features {
    list-style: none;
    margin-top: 1.5rem;
    text-align: left;
}

.features li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.features i {
    color: #10b981;
}

/* Method */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.method {
    padding: 100px 0;
    background: var(--white);
}

.method-image img {
    border-radius: 30px;
}

.method-items {
    margin-top: 2rem;
}

.method-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-dark);
    background: #fef3c7;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

/* Contact */
.contact {
    padding: 100px 0;
}

.contact-form-container {
    background: var(--white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input, 
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
}

.info-card {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-card i {
    font-size: 1.5rem;
    color: var(--primary);
    background: #dbeafe;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    margin-top: 2rem;
    box-shadow: var(--shadow);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #94a3b8;
}

.legal a {
    color: inherit;
    margin-left: 1.5rem;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid, .grid-2 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero {
        text-align: center;
        padding: 120px 0 60px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero-btns, .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .img-main {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        text-align: center;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-form-container {
        padding: 2rem;
    }

    /* Mejora de testimonios para móvil */
    .testimonial-slider {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 20px;
    }

    .testimonial-track {
        display: flex;
        gap: 1.5rem;
        transform: none !important; /* Desactivamos el transform de JS en móvil */
    }

    .testimonial-card {
        min-width: 85%; /* Se ve la siguiente un poquito para invitar a deslizar */
        scroll-snap-align: center;
        padding: 1.5rem;
    }

    .container {
        padding: 0 1rem;
    }
}
