:root {
    --macula-orange: #FE8A16;
    /* Color naranja principal de la clínica */
    --macula-orange-dark: #d87a13;
    /* Naranja más oscuro para hover */
    --macula-gray: #6A6A6A;
    /* Gris oscuro para el texto principal */
    --macula-green-whatsapp: #25D366;
    /* Verde de WhatsApp */
    --font-family-base: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-family-base);
    line-height: 1.6;
    color: var(--macula-gray);
    background-color: #f8f9fa;
    padding-top: 140px;
    /* Espacio para el header fijo de 140px */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family-base);
    font-weight: 700;
    /* Más peso para los títulos */
    color: #333;
    /* Mantener títulos un poco más oscuros que el texto base */
}

/* Color naranja de la clínica */
.text-macula-orange {
    color: var(--macula-orange) !important;
}

.bg-macula-orange {
    background-color: var(--macula-orange) !important;
}

.text-macula-gray {
    color: var(--macula-gray) !important;
}


/* Botón naranja principal */
.btn-macula-orange {
    background-color: var(--macula-orange);
    border-color: var(--macula-orange);
    color: #fff;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    font-weight: 700;
    font-size: 1.5rem;
    animation: pulse-orange 2s infinite;
}

.btn-macula-orange:hover {
    background-color: var(--macula-orange-dark);
    border-color: var(--macula-orange-dark);
    color: #fff;
    transform: translateY(-2px);
    /* Pequeño efecto de elevación en hover */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Animación de pulso naranja para botones */
@keyframes pulse-orange {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(254, 138, 22, 0.8);
    }
    
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(254, 138, 22, 0.2);
    }
    
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(254, 138, 22, 0);
    }
}

/* Animación de pulso blanco para botones light */
@keyframes pulse-white {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.8);
    }
    
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0.2);
    }
    
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Header */
header.navbar {
    height: 140px;
    /* Altura fija de la cabecera */
    display: flex;
    align-items: center;
}

header .row {
    margin: 0;
}

header .col-6 {
    padding: 0;
}

/* WhatsApp en header */
.header-whatsapp-icon {
    font-size: 1.8rem;
    margin-right: 0.75rem;
    color: var(--macula-green-whatsapp);
}

.header-whatsapp-number {
    font-size: 2rem;
    font-weight: 600;
}

.header-logo-clinic {
    max-height: 120px;
    /* Ajuste para el logo de la clínica */
    width: auto;
}

.header-btn-affiliate {
    font-size: 1.2rem;
    padding: 0.75rem 1.5rem;
}

/* Hero Section */
.hero-section {
    background-image: url('../imagenes/banner-landing-1.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding-top: 6rem;
    /* Más padding superior */
    padding-bottom: 0;
    /* Sin padding inferior para pegar imagen al borde */
    min-height: 750px;
    /* Altura mínima de 500px */
    margin-bottom: 0;
}

.hero-phrase {
    font-size: 90px;
    /* Tamaño de fuente específico */
    font-weight: 700;
    line-height: 1.1;
    margin-top: 180px;
    /* Ajustar el interlineado para que no se vea apretado */
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.6), 0 0 60px rgba(255, 255, 255, 0.4);
    /* Sombra blanca para iluminar el texto */
}

.hero-logo-program {
    max-width: 250px;
    /* Ajustar tamaño del logo del programa */
    height: auto;
}

.hero-card {
    max-width: 500px;
    /* Ajustar el tamaño de la tarjeta */
    height: auto;
    border-radius: 15px;
    /* Bordes redondeados para la tarjeta */
    /*box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);*/
    display: block;
    margin-bottom: 0;
    /* Pegar al borde inferior */
}

.hero-card-container {
    display: flex;
    align-items: flex-end;
    /* Alinear al fondo */
    height: 100%;
    /* Tomar toda la altura disponible */
    margin-bottom: -2rem;
    /* Compensar el padding del hero section */
}


@media (max-width: 1200px) {

    /* Para pantallas grandes hacia abajo */
    .hero-phrase {
        font-size: 65px;
    }
}

@media (max-width: 991.98px) {

    /* Tablet y móvil */
    .hero-phrase {
        font-size: 48px;
        text-align: center;
    }

    .hero-logo-program {
        max-width: 200px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-card {
        max-width: 90%;
        margin-top: 30px;
    }

    /* Alinear items al centro en mobile para la seccion de hero */
    .hero-section .row {
        flex-direction: column-reverse;
        /* Pone la imagen de la tarjeta primero en móvil */
    }

    .hero-section .col-lg-6:first-child {
        /* El texto */
        order: 2;
    }

    .hero-section .col-lg-6:last-child {
        /* La imagen */
        order: 1;
    }
}

@media (max-width: 767.98px) {

    /* Móvil */
    .hero-section {
        background-image: url('../imagenes/banner-celular.webp');
        background-position: center 80%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding-top: 2rem;
        transform: translateY(-30%);
        margin-bottom: 0;
    }

    .hero-phrase {
        font-size: 55px;
        text-align: center;
        margin-top: 0;
        margin-bottom: 1rem;
    }

    .hero-section .btn {
        font-size: 1.1rem;
        padding: 0.6rem 1.8rem;
        display: block;
        margin: 0 auto;
        text-align: center;
    }

    header.navbar {
        height: 100px;
    }

    body {
        padding-top: 100px;
    }

    .header-logo-clinic {
        max-height: 70px;
    }

    .header-whatsapp-link {
        display: none !important;
    }

    .header-btn-affiliate {
        font-size: 1rem;
        padding: 0.5rem 1rem;
        white-space: nowrap;
    }

    .fixed-whatsapp-btn {
        display: none !important;
    }
}

@media (max-width: 575.98px) {
    .hero-phrase {
        font-size: 42px;
        text-align: center;
        margin-top: 0;
        margin-bottom: 1rem;
    }

    .hero-section {
        background-image: url('../imagenes/banner-celular.webp');
        background-position: center 80%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding-top: 2rem;
        transform: translateY(-30%);
        margin-bottom: 0;
        margin-top: 100px;
    }

    .hero-section .btn {
        font-size: 1rem;
        padding: 0.5rem 1.5rem;
        display: block;
        margin: 0 auto;
        text-align: center;
    }
}

/* CTA Intersections */
.cta-intersection {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.cta-intersection::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    /* Overlay para el contraste */
    z-index: 1;
}

.cta-intersection .container {
    position: relative;
    z-index: 2;
}

.cta-intersection h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
}

.cta-intersection h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
}

.cta-intersection .btn-light {
    color: var(--macula-orange);
    font-weight: 700;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    animation: pulse-white 2s infinite;
}

.cta-intersection .btn-light:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Beneficios y Bonos */
#beneficios .card {
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#beneficios .card h3 {
    font-size: 1.5rem;
}

#beneficios .card .lead {
    font-size: 1.4rem;
}

#bonos .card,
#afiliacion .card {
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#beneficios .card:hover,
#bonos .card:hover,
#afiliacion .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15) !important;
}

/* Logo Mácula Contigo en tarjetas de beneficios */
.macula-logo-benefit {
    max-width: 130px;
    /* Tamaño del logo dentro de la tarjeta */
    height: auto;
    margin-bottom: 1rem;
    /* Espacio debajo del logo */
}

#bonos {
    background-image: url('../imagenes/fondo1.webp');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
}
#afiliacion {
    background-image: url('../imagenes/fondo3.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

#bonos .lead {
    font-size: 1.5rem;
}

#bonos ul li {
    font-size: 1.75rem;
}

#afiliacion .lead {
    font-size: 1.5rem;
}

#afiliacion ul li {
    font-size: 1.5rem;
}

/* Footer */
footer {
    font-size: 0.9rem;
}

/* Fixed WhatsApp Button */
.fixed-whatsapp-btn {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background-color: var(--macula-green-whatsapp);
    color: white;
    border-radius: 50%;
    width: 90px;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3.5rem;
    z-index: 1050;
    /* Más alto que el navbar */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    /* Efecto de pulsación */
    text-decoration: none;
    /* Quitar subrayado */
}

.fixed-whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    color: white;
    /* Asegurar que el color del icono no cambie */
    text-decoration: none;
    /* Quitar subrayado en hover */
}

/* Animación de pulsación */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}