body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    background: #db04b4;
    background: linear-gradient(55deg, rgba(219, 4, 180, 1) 0%, rgba(232, 2, 2, 1) 51%, rgba(255, 163, 3, 1) 100%);

}

/* NAVBAR */


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: #000;
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo img {
    align-items: center;
    height: 40px;

}

.logode {
    height: 20px !important;
    align-items: center;
}

.logoci {
    height: 30px !important;
    align-items: center;
}

/* 🔹 Ajuste para listas dentro del nav */
.navbar nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar nav li {
    margin: 0 20px;
}

.navbar nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s ease;
}

.navbar nav a:hover {
    color: #ff4a4a;
}

/* 🔹 Botón secundario */
.btn-second {
    text-decoration: none;
    background: #ff4a4a;
    border: none;
    border-radius: 40px;
    padding: 14px 40px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.btn-second:hover {
    transform: scale(1.05);
}


.small {
    padding: 10px 25px;
}

.hamburger {
    display: none;
}

/* MOBILE VERSION */
@media (max-width: 768px) {

    .logo img {
        align-items: center;
        height: 20px;
    }

    .logode {
        height: 10px !important;
        align-items: center;
    }
    
    .logoci {
        height: 25px !important;
        align-items: center;
    }
    
    .btn-second {
    padding: 14px 50px;
    font-weight: 300;
        width: 300px;
}

.btn-second:hover {
    transform: scale(1.05);
}


    /* 🔹 NAV LISTA EN MOBILE */
    .navbar nav ul {
        flex-direction: column;
        align-items: center;
        float: right;
        gap: 2rem;
    }
    
    .navbar nav a {
    font-weight:300;
        font-size: 2rem;
}


    .nav-links {
        position: fixed;
        top: 90px;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #111;
        display: flex;
        justify-content: center;
        padding-top: 2rem;
        transition: right 0.3s ease-in-out;
        

    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        background: #000;
        color: #fff;
        align-items: center;
        text-align: center;
        font-size: 2.5rem;
        display: block;
        border: none;
        cursor: pointer;
    }
}




/* HERO */
.hero {
    height: 90vh;
    position: relative;
    background: url("img/fondotarjetas.png") no-repeat center;
    padding: 0;
    text-align: center;
    overflow: hidden;
    color: #fff;
}

.hero-content {
    position: relative;
    z-index: 4;
    max-height: 80vh;
    max-width: 70%;
    margin: 15vh auto;
    justify-content: center;
    align-content: center;
    color: #fff;
}

/* ---- TÍTULO "Cine Gratis todo el año" ---- */
.hero-content h1 {
    position: relative;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 4rem;
    float: left;
    line-height: 1.1;
    text-transform: none;
    margin-bottom: 40px;
    margin-left: 5%;
    margin-top: 15%;
    color: #fff;
}

.centrar {
    display: flex;
    justify-content: center;
    /* centra horizontal */
    align-items: center;
    /* centra vertical */
    height: 10vh;
    margin-top: 35em;
}

.btn {
    padding: 1rem 2rem;
    font-size: 2rem;
    background: #ff4c4c;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    width: 400px;
}

/* Destacar “Cine Gratis” en grande y “todo el año” en otro peso */
.hero-content h1 span {
    display: block;
    font-size: 3rem;
    font-weight: 300;
}


/* Contenedor que alinea "con" y el logo Cinemex */
.cinemex-line {
    display: flex;
    align-items: center;
    /* centra verticalmente */
    justify-content: center;
    /* centra horizontalmente */
    gap: 12px;
    /* espacio entre el texto y el logo */
    margin-top: 0.5rem;
}

/* Ajustes del texto "con" */
.texto-con {
    font-weight: 300;
    color: #fff;
    line-height: 1;
}

/* Ajustes del logo */
.logocinemex {
    height: auto;
    /* ajusta según tu diseño */
    vertical-align: middle;
    justify-content: center;
    width: 400px;
    padding: 10px;
}



.tarjeta {
    width: 600px;
    margin-top:0;
    float: right;
}

.resorte {
    position: absolute;
    width: 220px;
    z-index: 1;
}

.resorte-izq {
    bottom: 1%;
    width: 50%;
    left: 0;
    transform: translate(-30%, 0) rotate(15deg);
}

.resorte-der {
    top: 0;
    right: 0;
    width: 50%;
    transform: translate(30%, -9%) rotate(55deg);
}



.hero-content {
    position: relative;
    z-index: 2;
}

/* Ajuste responsive */
@media (max-width: 768px) {

    .hero-content {
        margin: 10vh auto;
    }

    .hero-content h1 {
        font-size: 2.8rem;
        margin-top: 10;
        margin-left: -5%;
    }

    .hero-content h1 span {
        font-size: 1.8rem;
    }

    .resorte {
        position: absolute;
        width: 150px;
        z-index: 1;
    }

    .resorte-izq {
        bottom: 1%;
        width: 100%;
        left: 0;
        transform: translate(-20%, 0) rotate(15deg);
    }

    .resorte-der {
        top: 0;
        right: -15%;
        width: 100%;
        transform: translate(20%, -10%) rotate(55deg);
    }


    .tarjeta {
        width: 300px;
        margin-top: 5%;
    }


    .centrar {
        display: flex;
        justify-content: center;/* centra horizontal */
        align-items: center;/* centra vertical */
        height: 10vh;
        margin-top: 30em;
    }

}




/* VIDEO SECTION */
.video-section {
    padding: 30px 30px;
    text-align: center;
    color: #fff;
}

.video-section h2 {
    font-size: 3rem;
    text-transform: uppercase;

}

.video-container {
    position: relative;
    margin-top: 30px;
    z-index: 4;
}

.video-container iframe {
    width: 840px;
    height: 460px;
}


/* Ajuste responsive */
@media (max-width: 768px) {


    .video-section {
        padding: 10px 10px;
        text-align: center;
    }

    .video-section h2 {
        font-size: 2rem;
        text-transform: uppercase;

    }

    .video-container {
        position: relative;
        z-index: 4;
        width: 100px;
    }

    .video-container iframe {
        width: 370px;
        height: 200px;
    }



}



/* BENEFICIOS */
.beneficios {
    width: 100%;
    padding: 0px 10px;
    color: #FFF;
}

.beneficios h2 {
    margin-left: 20%;
    text-align: left;
    font-size: 3rem;
    text-transform: uppercase;

}

.beneficios-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
}

.beneficios .item {
    width: 170px;
    text-align: center;
    font-weight: 300;
}

.beneficios img {
    width: 50px;
    margin-bottom: 15px;
}


/* === SECCIÓN MECÁNICA === */
.mecanica {
    color: #fff;
    padding: 100px 20px;
}

.mecanica .container {
    max-width: 50%;
    margin: 0 auto;
}

.mecanica h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 6px;
    text-align: left;
    text-transform: uppercase;
}

.pasos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 40px;
    text-align: left;
}

.paso h3 {
    margin: 10px;
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    float: left;
    font-style: italic;

}

.paso p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #fff;
    width: 255px;
    margin-left: 7rem;
    margin-right: 1rem;
    font-weight: 300;
}

.mecanica .centrar {
    margin-top: 70px;
}

/* Botón participa dentro de mecánica */
.mecanica .btn {
    background: linear-gradient(90deg, #ff4d4d, #ff6b6b);
    text-decoration: none;
    padding: 15px 45px;
    border: none;
    border-radius: 40px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.3s ease, background 0.3s ease;
}

.mecanica .btn:hover {
    transform: scale(1.05);
    background: linear-gradient(90deg, #ff6b6b, #ff4d4d);
}

/* Responsivo */
@media (max-width: 768px) {
    .pasos {
        grid-template-columns: 1fr;
        text-align: left;
        margin-left: -40%;
    }

    .paso h3 {
        align-content: flex-start;
        margin-top: 1px;
        font-size: 4rem;
    }
    
    .mecanica {
    color: #fff;
    padding: 70px 0;
    text-align: center;
}

    .mecanica .container {
    max-width: 52%;
    margin: 0 auto;
}
    
    .pasos {
        grid-template-columns: 1fr;
        text-align: left;
        margin-left: -40%;
    }

    .paso p {
    width: 250px;

} 
}


/* texto desplegable CSS */
.bases {
    color: white;
    margin-bottom: 10%;
    padding: 2rem 2rem;
    text-align: left;
    position: relative;
    font-family: "Poppins", sans-serif;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.bases h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.bases-texto {
    overflow: hidden;
    max-height: 200px;
    /* colapsado */
    transition: max-height 0.9s ease;
    font-size: 1.1rem;
    line-height: 1.7;
    font-weight: 300;
}

.bases-texto.expanded {
    max-height: 1200px;
    /* suficiente para mostrar todo */
}

.btn-vermas {
    display: block;
    float: right;
    margin: 2rem auto 0 auto;
    background: linear-gradient(90deg, #ff4d4d, #ff6b6b);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 0.8rem 2.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 300px;
}

.btn-vermas:hover {
    transform: scale(1.05);
}


@media (max-width: 768px) {
    
    .bases {
        margin-bottom: 30%;
    }
    
    .btn-vermas {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    width: 200px;
    }
    
}


/* FOOTER */
.footer {
    font-family: "Poppins", sans-serif;
    color: white;
    width: 100%;
}

/* PARTE SUPERIOR */
.footer-top {
    background-color: #000;
    padding: 2rem 0;
    text-align: center;
}

.footer-top p {
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-align: center;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.footer-social a {
  color: #fff;
  font-size: 24px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-social a:hover {
  color: #ff4a4a;
  transform: scale(1.2);
}

/* PARTE INFERIOR */
.footer-bottom {
    background-color: #1c1c1c;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 1.5rem 2rem;
    position: relative;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: #ccc;
    margin: 0;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-right: 5%;
}

.footer-logos img {
    height: 35px;
    object-fit: contain;
    align-items: center;
}

/* PARTE INFERIOR mobile */

@media (max-width: 768px) {
    
.footer-logos {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: 10%;
}
    
}



/* BOTÓN DE SCROLL ARRIBA */
.scroll-top-btn {
    position: fixed;/* ← antes estaba absolute */
    right: 2rem;
    bottom: 2rem;
    background-color: #ff4c4c;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    color: #000;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;/* para que quede encima de todo */
    transition: all 0.3s ease;
}

.scroll-top-btn:hover {
    background-color: #fff;
    color: #ff4c4c;
    transform: scale(1.1);
}
