/*agregando customer properties*/
:root {
    --negro : #000000;
    --rojo :  #dd1010;
    --blanco :#fbf6f6;
    --gris :  #9d9999;

    
    --fuentePrincipal: 'Roboto', sans-serif;
    --fuenteSecundaria: 'Lato', sans-serif;

    --separacion: 5rem;
}


body {
    font-family: var(--fuentePrincipal);
    background-color: var(--negro);
}

/* Globales */


h1, h2, h3 {
    font-weight: 900;
    font-family: var(--fuenteSecundaria);
    margin: calc( var(--separacion) / 2 ); /*2.5rem arriba y 2.5rem abajo tomando en cuenta el valor de 5rem*/
}

h1 {
    font-size: 3.5rem;
    color: var(--rojo);
}

h2 {
    font-size: 2rem;
    color: var(--blanco);
    text-align: center;
}

h3 {
    font-size: 2rem;
    color: var(--blanco);
}

h4 {
    font-size: 1.4rem;
    font-weight: 900;
    margin: 1rem 0;
    color: var(--blanco);

}

p {
    font-size: 2rem;
    color: var(--blanco);
}

img {
    width: 12rem;
    height: auto;
}

/*utilidades*/
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

/*hero*/

.hero {
    min-height: 600px;
    background-image: url("../img/portada.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero__contenido {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 4rem 2rem;
    max-width: 600px;
}

.hero__contenido h1,
.hero__contenido h2,
.hero__contenido p {
    text-align: left;
}

.hero__contenido a {
    text-align: left;
}


@media (min-width: 390px) { 
     .hero__contenido h2,
     .hero__contenido p,
     .hero__contenido h1 {
    font-size: 1.3rem;
} 
    
} 


@media (min-width: 550px) { 
     .hero__contenido h2,
     .hero__contenido p,
     .hero__contenido h1 {
    font-size: 1.5rem;
} 
    
} 

@media (min-width: 768px) { 
    .hero__contenido h2,
    .hero__contenido p,
    .hero__contenido h1 {
    font-size: 1.8rem;
} 
} 

@media (min-width: 1200px) { 
    .hero__contenido h2,
    .hero__contenido p,
    .hero__contenido h1 {
    font-size: 2rem;
} 
} 



/*navegacion*/
.navegacion {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

/*boton whatsapp*/
.boton-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--rojo);
    color: #ffffff;
    padding: 1.5rem 2.5rem;
    border-radius: 5rem;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 800;
    transition: background-color .3s ease,
                transform .3s ease,
                box-shadow .3s ease;
}

/*.boton-whatsapp:hover {
    background-color: #1ebe5d;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(8, 147, 59, 0.4);
}*/

@media (min-width: 390px) { 
    .boton-whatsapp {
        width: 40%;
        min-height: 3rem;
        font-size: 1.5rem;
        padding: 1.4rem 2rem;
        border-radius: 1.4rem;
        margin: 2rem auto 0;
    }
    
} 


@media (min-width: 550px) { 
    .boton-whatsapp {
        width: 20%;
        min-height: 2rem;
        font-size: 1.9rem;
        padding: 1.4rem 2rem;
        border-radius: 1.4rem;
        margin: 2rem auto 0;
    }
    
} 

@media (min-width: 768px) { 
    .boton-whatsapp {
        width: 20%;
        min-height: 3rem;
        font-size: 1.9rem;
        padding: 1.4rem 2rem;
        border-radius: 1.4rem;
        margin: 2rem auto 0;
    }
    
} 


/*planes*/
.planes__grid {
    display: grid;
    gap: 2rem
}


.lista li {
    color: var(--blanco);
    text-align: left;
    
}

@media (min-width: 550px) { 
    .planes__grid {
    grid-template-columns: repeat(1, 1fr);
    max-width: 550px;
    margin: 0 auto;  
    }
    
} 

@media (min-width: 768px) { 
    .planes__grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 768px;
    margin: 0 auto;
}


} 
    

@media (min-width: 1200px) {
    .planes__grid {
    grid-template-columns: repeat(4, 1fr);
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}


} 

/*diseno de tarjetas*/
.plan {
    background-color: #1a1a1a;
    padding: 2rem;
    border: 0.5px solid #ff3038;
    border-radius: 1rem;
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.plan h5 {
    color: var(--rojo);
}

.plan_ahorro h5 {
    color: var(--blanco);
    background-color: #dd1010;
    border-radius: 1rem;

    width: 140px;
    margin: 1rem auto 0;
    text-align: center;
    box-sizing: border-box; 
}

.plan_ahorro {
    background: linear-gradient(
    145deg, 
    #1b080a 0%,
    #0b0d0f 50%,
    #190305 100%
    );

border: 2px solid #ff3038;

box-shadow: 
    0 0 8px rgba(255, 48, 56, 0.5),
    0 0 25px rgba(255, 48, 56, 0.35),
    0 0 50px rgba(255, 48, 56, 0.15),
    inset 0 0 35px rgba(255, 48, 56, 0.08);

    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    flex: 1;
    min-width: 200px;


}

.plan_ahorro {
    position: relative;
}

.plan_ahorro::before {
    content: "Mayor ahorro";
    position: absolute;

    top: -12px;
    left: 50%;
    transform: translateX(-50%);

    background-color: #0b0d0f;
    color: #ff3038;

    padding: 0 .8rem;

    font-weight: 700;
    font-size: 1rem;

    white-space: nowrap;
}

.planes__grid {
    padding: 2rem;
}



.plan__boton {
    display: inline-block;
    background-color: transparent;
    color: var(--blanco);
    border: 2px solid red;
    padding: 1rem 2rem;
    border-radius: .5rem;
    text-decoration: none;
    font-weight: 700;
    transition: transform .3s ease,
                background-color .3s ease;
}

.plan a:hover {
    background-color: var(--rojo);
    transform: translateY(-3px);
}

/*peliculas*/
/*.peliculas__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 1200px) {
    .peliculas__grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
} */

/* PelÃ­culas carrusel */

.peliculas {
    padding: 2rem;
}

.peliculas h2 {
    margin-bottom: 1.5rem;
}

.peliculas__contenedor {
    position: relative;
}

.peliculas__carrusel {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 2rem;

    overflow-x: auto;
    overflow-y: hidden;

    /* Hace que cada imagen sea un punto de desplazamiento */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    /* Evita que aparezca la barra de desplazamiento */
    scrollbar-width: none;
}

.peliculas__carrusel::-webkit-scrollbar {
    display: none;
}

.peliculas__carrusel img {
    flex: 0 0 200px;
    width: 200px;
    min-width: 200px;
    height: 300px;

    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;

    /* Cada imagen es un punto de snap */
    scroll-snap-align: start;

    transition: transform .3s;
}

.peliculas__carrusel img:hover {
    transform: scale(1.08);
}

.peliculas__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;

    border: none;
    font-size: 2rem;
    padding: 1rem;

    cursor: pointer;
    background: rgba(0,0,0,.6);
    color: white;
}

.peliculas__btn--izq {
    left: 0;
}

.peliculas__btn--der {
    right: 0;
}

/*beneficios*/
.beneficios__grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;


    width: calc(100% - 2rem);
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 1rem;

}

.beneficio h4 { 
    font-size: 2rem;
}

.beneficio p {
    font-size: 1.6rem;
    line-height: 1.5;

}

.beneficio{
    position: relative;
    background: #161616;
    border-radius: 1.5rem;
    padding: 3rem;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;

    border: 2px solid #ff3038;

    box-sizing: border-box;
}


/* Borde degradado sutil */
.beneficio::before{
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 1.5rem;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,.15),
        rgba(255,255,255,.02),
        rgba(255,255,255,.15)
    );

}

.beneficio img {
    display: block;
    max-width: 100%;
    margin: 0 auto 1.5rem;
}



@media (min-width: 768px) { 
    .beneficios__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;

        width: calc(100% - 3rem);
        max-width: 900px
    }
    .beneficio {
        min-height: 3rem;
        padding: 20px 15px;
    }

    
} 

@media (min-width: 1200px) { 
    .beneficios__grid {
        grid-template-columns: repeat(4, 1fr);

        width: calc(100% - 3rem);
        max-width: 1200px;

        gap: 2rem;
    }

    
    
    .beneficio {
        min-height: 8rem;
        padding: 40px 30px;
    }
    
} 




    .beneficio h4 { 
       font-size: 1.4rem;
     }

    .beneficio p {
       font-size: 1rem;
       line-height: 1.5;

     }

/*faq*/
.faq__item {
    margin-bottom: 1rem;
}

.faq__item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 1rem;
    background-color: #1a1a1a;
    color: var(--blanco);
    list-style: none;
    font-size: 1.2rem;
}

.faq__item summary::after {
    content: "+";
    font-size: 1.5rem;
}

.faq__item details[open] summary::after {
    content: "âˆ’";
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__item p {
    padding: 1rem;
    margin: 0;
    background-color: #222;
    color: var(--blanco);
    font-size: 1.2rem;
}


@media (min-width: 768px) {
    
.faq__item summary {
    font-size: 1.8rem;
}

 .faq__item p {
        font-size: 1.8rem;
    }

    
} 







/*footer*/
.footer_contacto {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.ayuda_footer {
    text-align: center;
}

.ayuda_contacto {
    display: block;
    text-align: center;
}

.footer_contacto a {
    color: var(--gris);
}

.ayuda_contacto {
    color: var(--gris);
}