/* =========================================
   1. CONFIGURACIÓN BASE (Morado Master)
   ========================================= */
body, html {
    margin: 0; padding: 0;
    height: 100vh; width: 100vw;
    overflow: hidden;
    background-color: #F3E5F5; /* 💜 Fondo Lila Claro */
    font-family: 'Poppins', sans-serif;
}

/* =========================================
   2. NAVBAR (CENTRADITO PERFECTO)
   ========================================= */
.navbar-full.nav-purple {
    position: fixed; top: 0; left: 0; width: 100%; height: 80px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 5%; z-index: 1000;
    background: rgba(243, 229, 245, 0.95);
    box-shadow: 0 2px 10px rgba(74, 20, 140, 0.1);
}

/* 🔴 El truco de los tercios para centrar el título */
.nav-left, .nav-right {
    flex: 1; 
    display: flex;
    align-items: center;
}

.nav-center {
    flex: 2; 
    text-align: center;
}

.nav-right {
    justify-content: flex-end;
}

.nav-left .nav-logo { height: 50px; border-radius: 50%; }

.nav-center .course-title { 
    font-family: 'Playfair Display', serif; 
    color: #4A148C; 
    font-size: 1.2rem; 
    text-transform: uppercase; 
    margin: 0;
}
.nav-center .course-title span { color: #b0845a; }

.nav-right .nav-links-white { display: flex; list-style: none; gap: 20px; margin: 0; padding: 0;}
.nav-right .nav-links-white a { 
    color: #4A148C; text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: 0.3s; 
}

.btn-purple-direct { 
    background: #4A148C !important; 
    padding: 8px 20px; border-radius: 25px; 
    color: #fff !important; 
    box-shadow: 0 4px 10px rgba(74, 20, 140, 0.2);
}

/* =========================================
   3. ESTRUCTURA DEL VISOR
   ========================================= */
.presentation-viewport {
    width: 100vw; height: 100vh;
    padding-top: 80px; box-sizing: border-box;
    position: relative;
}
.slider-track {
    display: flex; /* 🔴 ESTA ES LA CLAVE */
    width: 100%;   /* O la suma de todos los slides */
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}
.slide {
    min-width: 100vw; height: 100%;
    display: flex; justify-content: center; align-items: center;
    padding: 40px; box-sizing: border-box;
}
.slide-content {
    display: flex; background: white;
    width: 90%; max-width: 1100px; height: 85%;
    border-radius: 30px; overflow: hidden;
}
.shadow-master {
    box-shadow: 0 25px 60px rgba(74, 20, 140, 0.15);
}

/* =========================================
   4. DISEÑO DE TARJETAS (MOVIMIENTO NATURAL)
   ========================================= */
.text-side { 
    flex: 1; 
    padding: 40px; 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-start !important; 
    position: relative;
    overflow-y: auto !important; 
}

/* 🔴 TÍTULOS NATURALES: DESAPARECEN AL SUBIR */
.text-side > .slide-title, 
.temario-header, 
.kit-header {
    position: relative !important; 
    background: transparent; 
    margin-top: 0 !important;
    padding-top: 0 !important; 
    padding-bottom: 20px; 
}

/* 🔴 TAMAÑO UNIVERSAL 2.5rem */
.slide-title { 
    font-family: 'Playfair Display', serif; 
    font-size: 2.5rem !important; 
    color: #4A148C; 
    line-height: 1.1; 
    margin-bottom: 0; 
}
.slide-title span { color: #d4a373; font-style: italic; }

.text-side p { color: #555; line-height: 1.8; font-size: 1.15rem; margin-bottom: 20px; }

.image-side { flex: 1; background: #fdfbff; }
.img-pc { width: 100%; height: 100%; object-fit: cover; }
.img-movil { display: none; }

/* =========================================
   5. TARJETAS ESPECIALES
   ========================================= */
.full-width-text { flex: 1 !important; width: 100% !important; }

.temario-header, .kit-header {
    display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; width: 100%;
}
.header-purple-border { border-bottom: 2px solid #E1BEE7; }
.text-center { text-align: center !important; }

.temario-badges { display: flex; flex-direction: row; justify-content: center; gap: 15px; flex-wrap: wrap; }
.badge-purple { background: #4A148C; color: #fff; padding: 6px 15px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; }
.badge-gold { color: #b0845a; font-weight: 700; margin-left: 5px; }

.full-grid { display: flex; gap: 50px; padding-bottom: 40px; padding-top: 30px; }
.full-grid ul { list-style: none; padding: 0; margin: 0; flex: 1; }
.full-grid li { 
    margin-bottom: 16px; font-size: 1.1rem; color: #444; line-height: 1.6; 
    border-left: 3px solid #E1BEE7; padding-left: 10px;
}

/* =========================================
   6. CONTROLES (Flechas y Puntos)
   ========================================= */
.nav-arrow { 
    position: absolute; top: 50%; transform: translateY(-50%); 
    background: #4A148C; color: #fff; border: none; width: 55px; height: 55px; border-radius: 50%; 
    z-index: 100; cursor: pointer; box-shadow: 0 5px 15px rgba(74, 20, 140, 0.3); transition: 0.3s;
}
.prev { left: 30px; } .next { right: 30px; }

.dots-container { 
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; z-index: 100; 
}
.dot { width: 11px; height: 11px; border: 2px solid #4A148C; border-radius: 50%; cursor: pointer; transition: 0.3s;}
.dot.active { background: #4A148C; width: 35px; border-radius: 10px; }

/* =========================================
   7. RESPONSIVE (MÓVIL)
   ========================================= */
.menu-check { display: none; }

@media (max-width: 768px) {
    .slide-transform-img .image-side {
        height: 240px !important; /* Aquí controlas qué tan alta se ve en el celu */
    }
    .slide-dirigido-img .image-side {
        height: 250px !important; 
    }
    .slide-porque-elegir .image-side {
        height: 350px !important; 
    }
    .navbar-full.nav-purple { height: 70px; padding: 0 20px; background: #F3E5F5; }
    
    /* 🔴 Centrado en móvil */
    .nav-left, .nav-center { flex: 1; }
    .nav-center { flex: 2; text-align: center; }
    .hamburger { flex: 1; display: flex; justify-content: flex-end; }

    .nav-center .course-title { font-size: 0.85rem; width: 100%; }
    .nav-right, .nav-arrow { display: none; }
    
    .slide { padding: 15px; padding-top: 25px; }
    .slide-content { flex-direction: column; height: 96%; border-radius: 25px; }
    
    .text-side { padding: 30px 25px; flex: 1; overflow-y: auto; }
    
    /* 🔴 TÍTULOS 2.5rem EN MÓVIL */
    .slide-title { font-size: 2.5rem !important; margin-bottom: 12px !important; }

    .image-side { flex: none; height: 200px; width: 100%; }
    .img-pc { display: none !important; }
    .img-movil { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0 0 25px 25px; }

    /* MENÚ MÓVIL CENTRADO */
    .nav-right {
        display: flex !important; flex-direction: column; justify-content: center; align-items: center; 
        position: fixed; top: 0; right: -100%; width: 85%; height: 100vh; 
        background: linear-gradient(180deg, #F3E5F5 0%, #E1BEE7 100%); 
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1); z-index: 1050; 
        box-shadow: -10px 0 30px rgba(74, 20, 140, 0.15);
    }
    .menu-check:checked ~ .nav-right { right: 0; }
    
   @media (max-width: 768px) {
    /* ... otros estilos ... */

    .hamburger {
        display: flex !important;
        flex-direction: column !important; /* 🔴 ESTA ES LA QUE FALTA: Las pone una arriba de otra */
        gap: 5px !important;            /* 🔴 El espacio entre las líneas */
        align-items: flex-end;          /* Las alinea a la derecha */
        cursor: pointer;
        z-index: 1100;
    }

    .hamburger span {
        width: 28px;
        height: 3px;
        background: #4A148C;
        border-radius: 2px;
        transition: 0.4s;
        display: block; /* Asegura que se comporten como bloques */
    }
}

    /* Animación X */
    .menu-check:checked ~ .hamburger span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
    .menu-check:checked ~ .hamburger span:nth-child(2) { opacity: 0; }
    .menu-check:checked ~ .hamburger span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .nav-links-white { flex-direction: column; align-items: center !important; gap: 35px !important; padding: 0 !important; }
    .nav-links-white a { color: #4A148C !important; font-size: 1.5rem !important; text-transform: uppercase; font-weight: 600; }
    .nav-right .nav-links-white a.btn-purple-direct { background-color: #4A148C !important; color: #fff !important; padding: 15px 40px; border-radius: 50px; }
}

/* =========================================
   8. COMPLEMENTOS (Warning y Scroll)
   ========================================= */
/* Ocultar Barras */
.text-side::-webkit-scrollbar { display: none; }
.text-side { -ms-overflow-style: none; scrollbar-width: none; }

/* ADVERTENCIA CENTRADA PERFECTA */
.text-center-warning {
    display: flex !important; flex-direction: column !important;
    justify-content: center !important; align-items: center !important; 
    height: 100% !important; padding: 0 !important;
}
.warning-container {
    width: 90%; max-width: 600px; padding: 50px 30px; border: 2px dashed #4A148C; 
    border-radius: 30px; background-color: #fff; box-shadow: 0 15px 40px rgba(74, 20, 140, 0.1); 
}
.warning-emoji { font-size: 4.5rem; display: block; margin-bottom: 15px; }
.warning-p { font-size: 1.4rem !important; color: #4A148C; font-weight: 500; text-align: center; }

/* Rejillas y Separadores */
.procedure-grid img { width: 100%; height: 400px; object-fit: cover; border-radius: 15px; border: 1px solid #E1BEE7; }
.purple-separator { border: 0; height: 1px; background-image: linear-gradient(to right, transparent, #E1BEE7, transparent); margin: 20px 0; }
/* =========================================
   ESTILOS ESPECÍFICOS DEL TEMARIO (MASTER)
   ========================================= */

/* Contenedor del encabezado del temario */
.temario-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 25px;
    margin-bottom: 20px;
}

/* Borde inferior morado suave */
.header-purple-border {
    border-bottom: 2px solid #E1BEE7;
}

/* Los distintivos (Badges) de arriba */
.temario-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
}

.badge-purple {
    background: #4A148C; /* Morado profundo */
    color: #fff;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-gold {
    color: #b0845a; /* El dorado de Magia */
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

/* La cuadrícula de las dos listas */
.full-grid {
    display: flex;
    gap: 40px;
    padding: 20px 0 40px 0;
}

.full-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.full-grid li {
    margin-bottom: 18px;
    font-size: 1.15rem;
    color: #444;
    line-height: 1.5;
    /* Un pequeño detalle de diseño: borde a la izquierda */
    border-left: 3px solid #E1BEE7;
    padding-left: 15px;
    transition: 0.3s;
}

.full-grid li:hover {
    transform: translateX(5px);
    color: #4A148C;
}

/* =========================================
   AJUSTE PARA MÓVIL (TEMARIO)
   ========================================= */
@media (max-width: 768px) {
    .full-grid {
        flex-direction: column; /* Las listas se ponen una debajo de otra */
        gap: 0;
        padding-top: 10px;
    }

    .full-grid li {
        font-size: 1.05rem;
        margin-bottom: 12px;
        padding-left: 12px;
    }

    .temario-badges {
        flex-direction: column;
        gap: 10px;
    }

    .badge-purple {
        font-size: 0.75rem;
        padding: 6px 14px;
    }
}