/* ========================================
   HERO
======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, 
            rgba(90, 185, 181, 0.68),
            rgba(109, 181, 216, 0.63)
        ),
        url('../img/hero-terapia-autismo-tlaxcala.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.animated-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 20s infinite ease-in-out;
}

.shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    left: 80%;
    animation-delay: 3s;
}

.shape:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 40%;
    left: 70%;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    33% { transform: translateY(-30px) translateX(20px); }
    66% { transform: translateY(20px) translateX(-20px); }
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.hero h1 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: white;
    line-height: 1.15;
    margin-bottom: 12px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero h1 .highlight {
    color: #FFD93D;
    position: relative;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 25px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}


.btn {
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Poppins', 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: #FFD93D;
    color: #2B3A42;
    border: 2px solid #FFD93D;
    font-weight: 700;
}

.btn-primary:hover {
    background: #FFC620;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 217, 61, 0.5);
}

.btn-secondary {
    background: white;
    color: #5AB9B5;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    border-color: #FFB3D9;
}

/* ========================================
   TRUST BAR SECTION
======================================== */
.trust-bar-section {
    background: #5AB9B5;
    padding: 40px 20px;
}

.trust-bar {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.trust-icon {
    font-size: 28px;
    color: white;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.trust-text {
    text-align: left;
    font-size: 14px;
    line-height: 1.5;
    color: white;
}

.trust-text strong {
    display: block;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
    font-size: 15px;
}

@media (max-width: 768px) {
    .hero {
        min-height: 65vh;
        background:
            linear-gradient(135deg,
                rgba(90, 185, 181, 0.68),
                rgba(109, 181, 216, 0.63)
            ),
            url('../img/hero-terapia-autismo-tlaxcala.webp');
        background-size: cover;
        background-position: center bottom;
        background-repeat: no-repeat;
    }

    .hero-content {
        padding: 30px 20px;
    }

    .hero h1 {
        font-size: 30px;
        line-height: 1.1;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 18px;
    }

    .btn {
        padding: 15px 30px;
        font-size: 16px;
        width: 100%;
        justify-content: center;
    }

    .cta-container {
        flex-direction: column;
        padding: 0;
        gap: 12px;
        margin-bottom: 0;
    }

    /* Trust bar section mobile */
    .trust-bar-section {
        padding: 25px 20px;
    }

    .trust-bar {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .trust-item {
        gap: 12px;
    }

    .trust-icon {
        font-size: 24px;
    }

    .trust-text {
        font-size: 13px;
    }

    .trust-text strong {
        font-size: 14px;
    }
}

/* ========================================
   FALLBACK PARA NAVEGADORES SIN WEBP
======================================== */
.no-webp .hero {
    background:
        linear-gradient(135deg,
            rgba(90, 185, 181, 0.68),
            rgba(109, 181, 216, 0.63)
        ),
        url('../img/hero-terapia-autismo-tlaxcala.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Fallback WebP en mobile */
@media (max-width: 768px) {
    .no-webp .hero {
        background:
            linear-gradient(135deg,
                rgba(90, 185, 181, 0.68),
                rgba(109, 181, 216, 0.63)
            ),
            url('../img/hero-terapia-autismo-tlaxcala.jpg');
        background-size: cover;
        background-position: center bottom;
        background-repeat: no-repeat;
    }
}
