/*=============================
        RESET
==============================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    scroll-behavior:smooth;
    font-family:'Poppins',sans-serif;
}

:root{

    --rosa:#ff6b9a;
    --rosaOscuro:#ff4b84;
    --blanco:#ffffff;
    --gris:#555;
    --fondo:#fff8fb;
    --negro:#222;
    --sombra:0 10px 30px rgba(0,0,0,.12);

}

body{

    background:var(--fondo);
    color:var(--negro);
    overflow-x:hidden;

}

img{

    width:100%;
    display:block;
    object-fit:cover;

}

section{

    padding:100px 8%;

}

/*=============================
        WHATSAPP
==============================*/

.whatsapp{

    position:fixed;

    right:25px;

    bottom:25px;

    width:65px;

    height:65px;

    border-radius:50%;

    background:#25D366;

    display:flex;

    justify-content:center;

    align-items:center;

    color:white;

    font-size:34px;

    text-decoration:none;

    z-index:9999;

    box-shadow:var(--sombra);

    transition:.3s;

}

.whatsapp:hover{

    transform:scale(1.1);

}

/*=============================
        HEADER
==============================*/

header{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    padding:22px 8%;

    display:flex;

    justify-content:space-between;

    align-items:center;

    transition:.4s;

    z-index:999;

}

header.active{

    background:white;

    box-shadow:0 5px 20px rgba(0,0,0,.1);

}

.logo{

    font-size:30px;

    font-weight:700;

    color:var(--rosaOscuro);

    text-decoration:none;   /* 👈 nuevo: quita el subrayado */

}

.logo:visited{

    color:var(--rosaOscuro);   /* 👈 nuevo: evita que cambie de color tras visitarlo */

}

nav{

    display:flex;

    gap:35px;

}

nav a{

    color:var(--negro);

    text-decoration:none;

    font-weight:500;

    transition:.3s;

}

nav a:hover{

    color:var(--rosa);

}


.menu-btn{

    display:none;   /* oculto en escritorio */

}


/*=============================
        SIDEBAR (DESPLIEGUE DESDE ARRIBA)
==============================*/

.sidebar{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    max-height:0;

    overflow:hidden;

    background:white;

    z-index:998;

    display:flex;

    flex-direction:column;

    padding:0 8%;

    gap:0;

    transition:max-height .45s cubic-bezier(.4,0,.2,1),
               padding .45s cubic-bezier(.4,0,.2,1);

    box-shadow:0 15px 30px rgba(0,0,0,.12);

}

.sidebar.active{

    max-height:500px;

    padding:110px 8% 40px;

}

.sidebar a{

    text-decoration:none;

    color:#333;

    font-size:19px;

    padding:14px 0;

    border-bottom:1px solid #f2e5eb;

    transition:.3s;

    opacity:0;

    transform:translateY(-10px);

}

.sidebar.active a{

    opacity:1;

    transform:translateY(0);

}

/* efecto escalonado al aparecer cada link */
.sidebar a:nth-child(1){ transition-delay:.05s; }
.sidebar a:nth-child(2){ transition-delay:.1s; }
.sidebar a:nth-child(3){ transition-delay:.15s; }
.sidebar a:nth-child(4){ transition-delay:.2s; }

.sidebar a:hover{

    color:var(--rosa);

    padding-left:8px;

}

.side-btn{

    margin-top:20px;

    background:var(--rosa);

    color:white !important;

    padding:15px;

    text-align:center;

    border-radius:50px;

    border-bottom:none !important;

}

.side-btn:hover{

    background:var(--rosaOscuro);

    padding-left:0 !important;

}

/*=============================
        OVERLAY
==============================*/

.overlay{

    position:fixed;

    width:100%;

    height:100vh;

    background:rgba(0,0,0,.4);

    top:0;

    left:0;

    opacity:0;

    visibility:hidden;

    transition:.4s;

    z-index:999;

}

.overlay.active{

    opacity:1;

    visibility:visible;

}

/*=============================
        HERO
==============================*/

.hero{

    min-height:100vh;

    display:grid;

    grid-template-columns:repeat(2,1fr);

    align-items:center;

    gap:60px;

    padding-top:150px;

}

.hero-text h1{

    font-size:60px;

    line-height:1.1;

    margin-bottom:25px;

    color:var(--rosaOscuro);

}

.hero-text p{

    font-size:18px;

    color:var(--gris);

    line-height:1.8;

    margin-bottom:35px;

}

.hero-btn{

    display:inline-block;

    background:var(--rosa);

    color:white;

    padding:16px 35px;

    border-radius:50px;

    text-decoration:none;

    font-weight:600;

    transition:.3s;

    box-shadow:var(--sombra);

}

.hero-btn:hover{

    background:var(--rosaOscuro);

    transform:translateY(-4px);

}

.hero-image{

    display:flex;

    justify-content:center;

    align-items:center;

}

.hero-image img{

    max-width:550px;

    width:100%;

    border-radius:25px;

    box-shadow:var(--sombra);

    animation:flotar 4s ease-in-out infinite;

}

/*=============================
        TITULOS
==============================*/

h2{

    font-size:45px;

    color:var(--rosaOscuro);

    text-align:center;

    margin-bottom:60px;

}

/*=============================
        ANIMACIÓN
==============================*/

@keyframes flotar{

    0%{

        transform:translateY(0);

    }

    50%{

        transform:translateY(-15px);

    }

    100%{

        transform:translateY(0);

    }

}
/*=============================
        PRODUCTOS
==============================*/

.productos{

    background:#fff;

}

.cards{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

    gap:35px;

}

.card{

    background:white;

    border-radius:20px;

    overflow:hidden;

    box-shadow:var(--sombra);

    transition:.35s;

    cursor:pointer;

}

.card:hover{

    transform:translateY(-10px);

    box-shadow:0 18px 40px rgba(0,0,0,.18);

}

.card img{

    width:100%;

    height:250px;

    object-fit:cover;

    transition:.5s;

}

.card:hover img{

    transform:scale(1.08);

}

.card h3{

    font-size:25px;

    color:var(--rosaOscuro);

    padding:22px 22px 10px;

}

.card p{

    padding:0 22px 28px;

    color:var(--gris);

    line-height:1.7;

}

/*=============================
        NOSOTROS
==============================*/

.nosotros{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:70px;

    align-items:center;

}

.nosotros-img{

    overflow:hidden;

    border-radius:25px;

}

.nosotros-img img{

    width:100%;

    height:100%;

    object-fit:cover;

    transition:.6s;

    border-radius:25px;

    box-shadow:var(--sombra);

}

.nosotros-img:hover img{

    transform:scale(1.05);

}

.nosotros-texto h2{

    text-align:left;

    margin-bottom:25px;

}

.nosotros-texto p{

    font-size:18px;

    line-height:1.9;

    color:var(--gris);

    margin-bottom:35px;

}

/*=============================
        OPINIONES
==============================*/

.opiniones{

    background:var(--fondo);

}

.reviews{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));

    gap:35px;

}

.review{

    background:white;

    padding:35px;

    border-radius:20px;

    text-align:center;

    box-shadow:var(--sombra);

    transition:.35s;

}

.review:hover{

    transform:translateY(-8px);

}

.review:first-child{

    border-top:6px solid #ffc107;

}

.review:nth-child(2){

    border-top:6px solid #ff6b9a;

}

.review:nth-child(3){

    border-top:6px solid #7b61ff;

}

.review p{

    margin:25px 0;

    color:var(--gris);

    line-height:1.8;

    font-size:16px;

}

.review h4{

    color:var(--rosaOscuro);

    font-size:18px;

}

/*=============================
      EFECTOS GENERALES
==============================*/

.hero-btn,
.side-btn{

    position:relative;

    overflow:hidden;

}

.hero-btn::before,
.side-btn::before{

    content:"";

    position:absolute;

    top:0;

    left:-120%;

    width:100%;

    height:100%;

    background:rgba(255,255,255,.25);

    transform:skewX(-25deg);

    transition:.6s;

}

.hero-btn:hover::before,
.side-btn:hover::before{

    left:130%;

}

/*=============================
        SCROLL BAR
==============================*/

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#ffe8f0;

}

::-webkit-scrollbar-thumb{

    background:var(--rosa);

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:var(--rosaOscuro);

}
/*=============================
            CTA
==============================*/

.cta{

    background:linear-gradient(135deg,#ff6b9a,#ff4b84);

    color:white;

    text-align:center;

    border-radius:30px;

    margin:80px 8%;

    padding:80px 30px;

    box-shadow:var(--sombra);

}

.cta h2{

    color:white;

    margin-bottom:20px;

}

.cta p{

    max-width:700px;

    margin:auto;

    margin-bottom:35px;

    font-size:18px;

    line-height:1.8;

}

.cta .hero-btn{

    background:white;

    color:var(--rosaOscuro);

}

.cta .hero-btn:hover{

    background:#ffe5ef;

}

/*=============================
            FOOTER
==============================*/

footer{

    background:#222;

    color:white;

    text-align:center;

    padding:35px 8%;

}

footer h3{

    font-size:26px;

    margin-bottom:10px;

}

footer p{

    color:#ddd;

    line-height:1.6;

}

/*=============================
        RESPONSIVE TABLET
==============================*/

@media(max-width:992px){

.hero{

    grid-template-columns:1fr;

    text-align:center;

    gap:50px;

}

.hero-text h1{

    font-size:48px;

}

.hero-image img{

    max-width:500px;

}

.nosotros{

    grid-template-columns:1fr;

}

.nosotros-texto{

    text-align:center;

}

.nosotros-texto h2{

    text-align:center;

}

}

/*=============================
        RESPONSIVE MÓVIL
==============================*/

@media(max-width:768px){

header{

    padding:18px 6%;

}
.menu-btn{


    display:flex;              /* 👈 antes decía none */
    flex-direction:column;
    justify-content:space-between;
    width:32px;
    height:24px;
    position:relative;
    cursor:pointer;
    z-index:1000;

}
nav{

    display:none;

}


.menu-btn span{

    
    position:absolute;

    left:0;

    width:100%;

    height:3px;

    border-radius:3px;

     background:var(--rosaOscuro);

    transition:.35s cubic-bezier(.4,0,.2,1);

}

.menu-btn span:nth-child(1){ top:0; }
.menu-btn span:nth-child(2){ top:10px; }
.menu-btn span:nth-child(3){ top:20px; }

/* animación a X cuando está activo */
.menu-btn.active span:nth-child(1){

    top:10px;
    transform:rotate(45deg);

}

.menu-btn.active span:nth-child(2){

    opacity:0;
    transform:translateX(-10px);

}

.menu-btn.active span:nth-child(3){

    top:10px;
    transform:rotate(-45deg);

}

.menu-btn:focus-visible{

    outline:2px solid var(--rosa);
    outline-offset:4px;
    border-radius:4px;

}

.logo{

    font-size:26px;

}

.hero{

    padding-top:120px;

}

.hero-text h1{

    font-size:38px;

}

.hero-text p{

    font-size:16px;

}

.hero-btn{

    width:100%;

    text-align:center;

}



.cards{

    grid-template-columns:1fr;
    gap:45px;

}
.productos .cards{

    grid-template-columns:1fr;
    gap:100px;

}
.programas .cards-programas{

    grid-template-columns:1fr;
    gap:100px;

}

.reviews{

    grid-template-columns:1fr;
    gap: 100px;

}


section{

    padding:80px 6%;

}

.cta{

    margin:60px 6%;

    padding:60px 25px;

}

.whatsapp{

    width:60px;

    height:60px;

    font-size:30px;

}

}

/*=============================
        CELULARES PEQUEÑOS
==============================*/

@media(max-width:480px){

.hero-text h1{

    font-size:32px;

}

h2{

    font-size:32px;

}

.card img{

    height:220px;

}

.logo{

    font-size:22px;

}

.hero-btn{

    padding:15px 20px;

}

}

/*=============================
      ANIMACIONES
==============================*/

.card,
.review,
.nosotros-img,
.hero-image img{

    animation:fadeUp .8s ease;

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(30px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/*=============================
      SELECCIÓN DE TEXTO
==============================*/

::selection{

    background:var(--rosa);

    color:white;

}

/*=============================
      EFECTO HOVER IMÁGENES
==============================*/

.hero-image,
.nosotros-img{

    overflow:hidden;

    border-radius:25px;

}


.hero-image img:hover,
.nosotros-img img:hover{

    transform:scale(1.05);

}

/*=============================
      ESPACIADO SUAVE
==============================*/

html{

    scroll-padding-top:90px;

}
.logo{

    font-size:30px;

    font-weight:700;

    color:var(--rosaOscuro);

    text-decoration:none;

    display:flex;
    align-items:center;
    gap:10px;

}

.logo-icon{

    width:40px;
    height:40px;
    object-fit:contain;
    border-radius:50%;     /* opcional */
    transition:.3s;

}

.logo:hover .logo-icon{

    transform:rotate(10deg) scale(1.1);

}

/*=============================
        PROGRAMAS
==============================*/
/*=============================
        PROGRAMAS
==============================*/

.programas{

    background:#fff;

}

.cards-programas{

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:40px;
    margin-bottom:50px;

}

.card-programa{

    border-radius:20px;
    padding:35px 30px;
    box-shadow:var(--sombra);
    transition:.35s;
    border-top:6px solid transparent;

}

.card-programa:hover{

    transform:translateY(-10px);
    box-shadow:0 18px 40px rgba(0,0,0,.18);

}

/* Paleta distinta a la de Opiniones: menta, azul y coral */

.card-programa:nth-child(1){

    background:#eafaf4;
    border-top-color:#2fbf9f;

}

.card-programa:nth-child(2){

    background:#eaf2fc;
    border-top-color:#4a90e2;

}

.card-programa:nth-child(3){

    background:#fff2e8;
    border-top-color:#ff9a5a;

}

.card-programa h3{

    font-size:24px;
    margin-bottom:15px;

}
.card-programa:nth-child(1) h3{ color:#2fbf9f; }
.card-programa:nth-child(2) h3{ color:#4a90e2; }
.card-programa:nth-child(3) h3{ color:#ff9a5a; }

.card-programa p{

    color:var(--gris);
    line-height:1.8;
    margin-bottom:22px;

}

.num-programa{

    display:inline-block;
    font-size:16px;
    font-weight:700;
    letter-spacing:1px;
    color:white;
    padding:6px 14px;
    border-radius:50px;
    margin-bottom:20px;

}

.card-programa:nth-child(1) .num-programa{ background:#2fbf9f; }
.card-programa:nth-child(2) .num-programa{ background:#4a90e2; }
.card-programa:nth-child(3) .num-programa{ background:#ff9a5a; }

.badges{

    display:flex;
    flex-wrap:wrap;
    gap:10px;

}

.badge{

    background:rgba(255,255,255,.7);
    color:var(--negro);
    font-size:14px;
    font-weight:500;
    padding:8px 14px;
    border-radius:50px;
    display:inline-flex;
    align-items:center;
    gap:6px;

}

.programas > .hero-btn{

    display:block;
    max-width:280px;
    margin:0 auto;
    text-align:center;

}
/*=============================
        REDES FOOTER
==============================*/

.redes-footer{

    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    align-items:flex-start;
    gap:50px;
    margin:30px 0;

}

.grupo-redes{

    display:flex;
    flex-direction:column;
    align-items:center;
    gap:15px;

}

.titulo-redes{

    color:#ddd;
    font-size:15px;
    font-weight:600;

}

.iconos-redes{

    display:flex;
    gap:15px;

}

.iconos-redes a{

    width:45px;
    height:45px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:white;
    font-size:20px;
    text-decoration:none;
    transition:.3s;

}

.ico-facebook{

    background:#1877F2;

}

.ico-tiktok{

    background:#000;

}

.iconos-redes a:hover{

    transform:translateY(-4px);
    filter:brightness(1.15);

}

.ico-correo{

    display:flex;
    align-items:center;
    gap:8px;
    color:#ddd;
    text-decoration:none;
    font-size:15px;
    align-self:center;
    transition:.3s;

}

.ico-correo:hover{

    color:var(--rosa);

}