:root {
    --morado: #823C8B;
    --azul: #00ADC6;
    --amarillo: #FFD600;
}

/* GENERAL */
body {
    font-family: "Dongle", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 35px;
}

header {
    position: relative;
}


/* NAVBAR */
.navbar {
    background-color: white;
    margin-left: 20px;
    position: relative;
}


.nav-link:hover {
    color: var(--azul);
}

/* HERO */
.hero {
    position: relative;
    overflow: hidden;
    color: white;
    padding: 150px 20px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* HERO */
/* HERO */
.hero {
    background:
        linear-gradient(rgba(130, 60, 139, 0.8), rgba(130, 60, 139, 0.8)),
        url('img/Fondo.JPG');

    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* parallax solo en computadora */

    color: white;
    padding: 150px 20px;
    text-align: center;

    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    letter-spacing: 2px;
}

/* CELULAR Y TABLET: sin parallax, imagen completa */
@media (max-width: 1024px), (hover: none) {
    .hero {
        background-attachment: scroll;
        background-color: #f0e8f0; /* color de la pared de la foto */
        background-repeat: no-repeat;
        background-position: center, center bottom;
        background-size: 100% 100%, contain;

        flex-direction: column;
        align-items: center;
        justify-content: flex-start; /* contenido arriba */
        padding: 40px 20px 70vw;     /* espacio abajo para la foto */
    }

    .hero h1 {
        font-size: 48px;
        line-height: 1;
    }
}


/* BOTONES */
.btn-custom {
    background-color: var(--azul);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 30px;
    border-radius: 30px;

}

.btn-custom:hover {
    background-color: rgb(0, 155, 179);
    color: white;
}

/* TITULOS */
h1 {
    font-family: "Dongle", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 70px;
}

h2 {
    color: var(--morado);
    font-family: "Dongle", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 50px;
}

h3 {
    font-family: "Dongle", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 35px;
}

p {
    font-family: "Dongle", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 25px;
}

/* TARJETAS */
.card {
    transition: transform 0.3s ease;
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

.netflix-slider {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px;
    scroll-behavior: auto; /* "smooth" rompe el movimiento automático */
    scroll-snap-type: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    scrollbar-width: none;
}

.netflix-slider::-webkit-scrollbar {
    display: none;
    /* oculta barra */
}

.netflix-card {
    flex: 0 0 325px;
    width: 325px;
    height: 325px; /* mismo valor que el ancho = cuadrada */
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.netflix-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.3s ease;
}

.netflix-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 100%;
    overflow-y: auto;
    padding: 15px;
    color: white;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0;
    transform: translateY(20px);
    transition: 0.3s ease;
}


/* EFECTO HOVER */
.netflix-card:hover {
    transform: scale(1.1);
    z-index: 10;
}

.netflix-card:hover img {
    filter: brightness(60%);
}

.netflix-card:hover .netflix-info {
    opacity: 1;
    transform: translateY(0);
}

.netflix-info h3 {
    margin: 0;
    font-size: 28px;
}

.netflix-info p {
    font-size: 18px;
    margin: 0;
}

.netflix-slider {
    overflow-x: auto;
    overflow-y: hidden;
}

.modal-content {
    border-radius: 20px;
}

.modal-header {
    background-color: var(--morado);
    color: white;
}

#mensajeExito {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    filter: invert(1);
    /* si tu fondo es oscuro */
}

.navbar-collapse {
    transition: all 0.3s ease;
}

/* BOTÓN HAMBURGUESA */
.menu-toggle {
    width: 40px;
    height: 25px;
    position: relative;
    border: none;
    background: none;
    cursor: pointer;
    z-index: 1001;
    margin-right: 40px;
}

.menu-toggle span {
    display: block;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: 0.3s;
    background: var(--morado);
}

/* ANIMACIÓN ☰ → ✖ */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* MENÚ LATERAL */
.side-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: var(--morado);
    padding: 80px 20px;
    transition: 0.3s ease;
    z-index: 1000;
}

/* CUANDO SE ABRE */
.side-menu.active {
    right: 0;
}

/* OVERLAY CON BLUR */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 999;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-menu a {
    display: block;
    margin: 20px 0;
    font-size: 25px;
    color: white;
    position: relative;
    transition: 0.3s;
}

/* EFECTO LÍNEA ANIMADA */
.side-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background: var(--amarillo);
    transition: 0.3s;
}

.side-menu a:hover {
    color: var(--amarillo);
}

.side-menu a:hover::after {
    width: 100%;
}

.menu-toggle.active span {
    background: white;
}

.teacher-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    height: 100%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

/* IMAGEN */
.teacher-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin: 20px auto 0;
}

/* NOMBRE */
.teacher-card h3 {
    font-size: 40px;
    color: var(--morado);
    margin-bottom: 5px;
}

/* ROL */
.teacher-card .rol {
    font-size: 30px;
    color: var(--azul);
    font-weight: bold;
    margin-bottom: 10px;
}

/* TEXTO */
.teacher-card .info,
.teacher-card .extra {
    font-family: "Dongle", sans-serif;
    font-size: 24px;
    color: #555;
}

/* FRASE */
.teacher-card blockquote {
    font-style: italic;
    margin-top: 15px;
    font-size: 25px;
    border-left: 3px solid var(--amarillo);
    padding-left: 10px;
}

.teacher-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.scroll-indicator {
    text-align: center;
    margin-top: 10px;
    font-size: 20px;
    color: #777;
    animation: fadeMove 1.5s infinite alternate;
}

@keyframes fadeMove {
    from {
        opacity: 0.5;
        transform: translateX(-5px);
    }

    to {
        opacity: 1;
        transform: translateX(5px);
    }
}

#btnTop {
    position: fixed;
    bottom: 25px;
    right: 25px;

    width: 50px;
    height: 50px;

    background: var(--morado);
    color: white;

    border: none;
    border-radius: 50%;

    font-size: 22px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);

    opacity: 0;
    visibility: hidden;
    transition: 0.3s;

    z-index: 1000;
}





/* HOVER */
#btnTop:hover {
    transform: scale(1.1);
    background: var(--azul);
}

/* CUANDO APARECE */
#btnTop.show {
    opacity: 1;
    visibility: visible;
}


/* FONDO GENERAL */
.about-section {
    background: #f9f9f9;
}

/* HISTORIA */
.historia {
    background-image: linear-gradient(rgba(130, 60, 139, 0.85), rgba(130, 60, 139, 0.85)),
        url('img/Icon_Colors.png');

    background-size: auto;
    background-position: center;
    background-attachment: fixed;

    /* 🔥 AQUÍ ESTÁ EL PARALLAX */

    color: white;
    padding: 150px 20px;
    text-align: center;
    position: relative;
}

.historia h1 {
    font-size: 80px;
}

.historia p {
    max-width: 800px;
    margin: auto;
    font-size: 30px;
    font-family: "Dongle", sans-serif;
}

/* CARDS */
.info-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    height: 100%;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

/* ICONOS */
.info-card i {
    font-size: 40px;
    color: var(--morado);
    margin-bottom: 10px;
    font-family: "Dongle", sans-serif;
}

/* TITULOS */
.info-card h2 {
    color: var(--morado);
}

/* HOVER PRO */
.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .historia {
        background-attachment: scroll;
    }
}


.historia::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(130, 60, 139, 0.2);
}


/* INTRO */
.politica-section .intro {
    max-width: 700px;
    margin: auto;
    color: #555;
    font-size: 26px;
}

/* CARDS */
.politica-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    height: 100%;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

/* ICONOS */
.politica-card i {
    font-size: 40px;
    font-family: "Dongle", sans-serif;
    color: var(--morado);
    margin-bottom: 10px;
}

/* TITULOS */
.politica-card h3 {
    color: var(--morado);
}

/* TEXTO */
.politica-card p {
    color: #555;
    font-size: 22px;
    font-family: "Dongle", sans-serif;


}

/* HOVER */
.politica-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* BLOQUE FINAL */
.politica-footer {
    max-width: 700px;
    margin: auto;
    color: #666;
}


/* BUSCADOR */
.faq-search input {
    width: 100%;
    padding: 15px;
    border-radius: 15px;
    border: none;
    outline: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ITEM */
.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

/* PREGUNTA */
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    cursor: pointer;
    font-size: 50px;
    color: var(--morado);
}

/* RESPUESTA */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    background: #f9f9f9;
    color: #555;
    font-size: 25px;
    line-height: 1.1;
    transition: all 0.4s ease;
}

/* ACTIVO */
.faq-item.active .faq-answer {
    max-height: 800px;
    padding: 20px;
}
/* ICONO */
.toggle-icon {
    transition: 0.3s;
}

.faq-item.active .toggle-icon {
    transform: rotate(180deg);
}

/* HIGHLIGHT */
mark {
    background: yellow;
    padding: 2px 5px;
    border-radius: 5px;
}

.no-results {
    display: none;
    text-align: center;
    margin-top: 20px;
    color: #777;
    font-size: 20px;
    opacity: 0;
    transition: 0.3s;
}

.no-results.show {
    display: block;
    opacity: 1;
}
.netflix-info {
    max-height: 100%;
    overflow-y: auto;
}

.netflix-card.open .netflix-info {
    opacity: 1;
    transform: translateY(0);
}

@media (hover: none) {
    .netflix-card:hover {
        transform: none;
    }
}

@media (max-width: 768px) {

    .faq-question {
        font-size: 22px;
        line-height: 1;
        padding: 15px;
        gap: 12px;
    }

    .faq-question span {
        flex: 1;
        text-align: left;
        font-size: 22px;
        line-height: 1.1;
    }

    .faq-question i {
        font-size: 22px;
        flex-shrink: 0;
    }

    .faq-answer {
        font-size: 22px;
        line-height: 1.1;
    }
}

.netflix-card img.bandera-china {
    object-position: left center;
}

/* SLIDER: arrastre con mouse */
.netflix-slider.is-dragging {
    cursor: grabbing;
}

.netflix-slider img {
    -webkit-user-drag: none;
    pointer-events: none;
}
