/* --- Variables CSS (Fácil personalización) --- */
:root {
    --bg-primary: #131A2D; /* Un azul muy oscuro */
    --bg-secondary: #1E2742; /* Un azul oscuro ligeramente más claro */
    --primary-color: #007bff; /* Azul brillante del diseño */
    --primary-dark: #0056b3;  /* Azul más oscuro para hover */
    --bg-dark: #0a0f1d;       /* Fondo principal muy oscuro */
    --bg-darker: #050810;     /* Fondo secundario */
    --bg-card: #131a2d;       /* Fondo de tarjetas */
    --text-light: #ffffff;
    --text-muted: #aaaaaa; /* Texto para descripciones */
    --text-gray: #b0b8c8;
    --border-color: rgba(255, 255, 255, 0.1);
    --bg-card: rgba(30, 39, 66, 0.8); /* Fondo de tarjetas */
    --font-montserrat: 'Montserrat', sans-serif;
    --font-opensans: 'Open Sans', sans-serif;
}

/* --- Reseteo y Estilos Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-opensans);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-montserrat);
    font-weight: 700;
    text-transform: uppercase;
}

a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* Utilidades */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }
.text-highlight { color: var(--primary-color); }
.dark-bg { background-color: var(--bg-darker); }

/* --- Botones --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-family: var(--font-montserrat);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}
.btn-primary:hover { background-color: var(--primary-dark); transform: translateY(-2px); }

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-light);
}
.btn-outline:hover { border-color: var(--text-light); }

.icon-btn i { margin-left: 10px; }


/* --- HEADER y NAVEGACIÓN --- */
.top-bar {
    background: var(--bg-darker);
    padding: 10px 5%;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}
.top-bar img { height: 40px; }

.main-header {
    background: rgba(10, 15, 29, 0.95); /* Fondo semitransparente */
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img { height: 50px; }

.main-nav ul { display: flex; gap: 30px; }
.main-nav a {
    color: var(--text-light);
    font-family: var(--font-montserrat);
    font-weight: 600;
    font-size: 0.9rem;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary-color); }

.mobile-menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* --- Estilos del Dropdown de Idiomas --- */

/* --- Estilos del Dropdown de Idiomas (Optimizado) --- */

.main-nav ul li.dropdown-item {
    position: relative;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 5px 0;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    /* Cambiamos de centrado a alineación derecha para evitar que se salga por la izquierda */
    right: 0; 
    background-color: var(--bg-card);
    min-width: 180px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px 0;
    
    /* Flex vertical estricto */
    display: flex;
    flex-direction: column;
    
    /* Estados de ocultamiento */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
}

/* Forzamos que cada item de la lista ocupe todo el ancho */
.dropdown-menu li {
    width: 100%;
    display: block;
}

.dropdown-menu a {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    font-size: 0.95rem;
    color: var(--text-light);
    white-space: nowrap;
    border-bottom: none !important;
    transition: background 0.2s;
}

.dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--primary-color) !important;
}

.dropdown-menu img {
    width: 22px;
    height: auto;
    border-radius: 3px;
    flex-shrink: 0; /* Evita que la bandera se aplaste */
}

/* Mostrar al Hover */
.dropdown-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- Ajuste para Móviles (Pantallas pequeñas) --- */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static; /* Fluye con el contenido del menú móvil */
        width: 100%;
        opacity: 1;
        visibility: visible;
        display: none; /* Se activará con JS o mantendrá el hover */
        transform: none;
        box-shadow: none;
        background: rgba(255,255,255,0.03);
        margin-top: 10px;
        border: none;
        border-left: 2px solid var(--primary-color);
    }
    
    .dropdown-item:hover .dropdown-menu {
        display: flex;
    }

    /* En móvil, alineamos el texto a la izquierda */
    .dropdown-menu a {
        padding: 10px 15px;
    }
}


/* --- SECCIÓN 1: HERO SLIDER --- */
.hero-slider { height: 85vh; min-height: 600px; }
.heroSwiper, .heroSwiper .swiper-slide { height: 100%; }

.heroSwiper .swiper-slide {
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

/* Overlay oscuro degradado sobre la imagen */
.heroSwiper .swiper-slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(10,15,29,0.9) 0%, rgba(10,15,29,0.4) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.slide-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.9);
}

/* --- Variante Hero Full Color --- */

/* Eliminamos el overlay oscuro solo cuando existe esta clase */
.swiper-slide.full-color::before {
    display: none;
}

/* Opcional: Si quieres que el texto destaque sobre la imagen full color */
.swiper-slide.full-color .hero-content {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8); /* Sombra para legibilidad */
    background: rgba(0, 0, 0, 0.2); /* Un toque sutil de fondo para el texto */
    padding: 20px;
    border-radius: 10px;
    display: inline-block;
}

.swiper-slide.full-color .hero-content h1 {
    color: #ffffff;
}




/* --- Estilos para flechas del carrusel de episodios --- */

/* Contenedor Swiper para permitir posicionamiento de flechas */
.episodesSwiper {
    padding: 0 40px 50px 40px; /* Añadimos espacio lateral para las flechas */
    position: relative;
}

/* Personalización de las flechas */
.ep-next, .ep-prev {
    color: var(--primary-color) !important; /* Usamos tu azul principal */
    width: 40px !important;
    height: 40px !important;
    background: rgba(19, 26, 45, 0.8); /* Fondo oscuro semitransparente */
    border-radius: 50%;
    border: 1px solid var(--border-color);
    top: 45% !important; /* Centrado vertical */
    transition: all 0.3s ease;
}

/* Tamaño de los iconos internos */
.ep-next:after, .ep-prev:after {
    font-size: 18px !important;
    font-weight: bold;
}

.ep-next:hover, .ep-prev:hover {
    background: var(--primary-color);
    color: white !important;
    transform: scale(1.1);
}

/* Ocultar flechas en móviles para ahorrar espacio (opcional) */
@media (max-width: 768px) {
    .episodesSwiper { padding: 0 0 50px 0; }
    .ep-next, .ep-prev { display: none !important; }
}




/* Estilos de navegación Swiper */
.swiper-button-next, .swiper-button-prev { color: var(--primary-color); }
.swiper-pagination-bullet-active { background: var(--primary-color); }


/* --- SECCIÓN 2: EPISODIOS SLIDER --- */
.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
}
.section-desc { color: var(--text-gray); margin-bottom: 40px; max-width: 700px; margin-left: auto; margin-right: auto;}

.episodesSwiper { padding-bottom: 50px; /* Espacio para paginación */ }

.episode-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}
.episode-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.ep-thumbnail { position: relative; }
.ep-thumbnail img { width: 100%; display: block; }
.ep-number {
    position: absolute;
    top: 10px; left: 10px;
    background: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.ep-info { padding: 20px; }
.ep-info h3 { font-size: 1.1rem; }


/* --- SECCIÓN 3: VIDEO FULL WIDTH --- */
.video-container-full {
    position: relative;
    padding-bottom: 56.25%; /* Aspect Ratio 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.video-container-full iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}


/* --- SECCIÓN 4 ADAPTADA: ORAMOS POR TI O PREGUNTAS --- */
.step-title {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.2rem;
    color: var(--text-gray);
    text-transform: none; /* Menos agresivo que los h2 */
}

/* Contenedor de las dos opciones */
.selection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.selection-card {
    position: relative;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.1); /* Borde sutil */
    border-radius: 12px;
    padding: 20px;
    background: var(--bg-secondary);
    transition: all 0.3s ease;
    text-align: center;
}

/* Ocultar el círculo del radio de forma segura */
.selection-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* EFECTO CUANDO SE SELECCIONA */
.selection-card:has(input:checked) {
    border-color: var(--primary-color);
    background: rgba(0, 123, 255, 0.1);
    transform: translateY(-5px);
}

.selection-card .card-content i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
    color: var(--text-gray);
}

.selection-card input:checked + .card-content i,
.selection-card input:checked + .card-content span {
    color: var(--primary-color);
}


/* Transición suave para los cambios de paso */
#step1-reason, #step2-channel, #step3-email-form, #success-message {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* --- SECCIÓN 4: ORAMOS POR TI (Formulario ) --- */
.prayer-section { background: linear-gradient(to bottom, var(--bg-dark), var(--bg-darker)); }

.prayer-form-container {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); 
    min-height: 400px; /* Evita saltos bruscos de altura entre pasos- AGREGADO DESDE ACA */
    display: flex;
    flex-direction: column;
    justify-content: center; 
}

/* --- CORRECCIÓN DE FORMULARIOS --- */
.prayer-form-content {
    width: 100%;
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left; /* Asegura que las etiquetas no se centren si el padre es centrado */
}

/* Esta es la regla clave para que el correo no cargue "extraño" */
.form-control {
    width: 100% !important; /* Obliga al input a ocupar todo el ancho del contenedor */
    max-width: 100%;
    padding: 12px 15px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-light);
    font-family: var(--font-opensans);
    font-size: 1rem;
    box-sizing: border-box; /* Crucial: incluye el padding en el ancho total */
    display: block;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

textarea.form-control {
    resize: vertical; /* Evita que rompan el diseño hacia los lados */
    min-height: 100px;
}

/* Contenedor de las dos opciones */
.selection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.selection-card {
    position: relative;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.1); /* Borde sutil */
    border-radius: 12px;
    padding: 20px;
    background: var(--bg-secondary);
    transition: all 0.3s ease;
    text-align: center;
}

/* Ocultar el círculo del radio de forma segura */
.selection-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* EFECTO CUANDO SE SELECCIONA */
.selection-card:has(input:checked) {
    border-color: var(--primary-color);
    background: rgba(0, 123, 255, 0.1);
    transform: translateY(-5px);
}

.selection-card .card-content i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
    color: var(--text-gray);
}

.selection-card input:checked + .card-content i,
.selection-card input:checked + .card-content span {
    color: var(--primary-color);
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-gray);
    transition: 0.3s;
}

/* Estilos al estar seleccionado (Checked) */
.selection-card input[type="radio"]:checked + .card-content {
    border-color: var(--primary-color);
    background: rgba(0, 123, 255, 0.1);
}
.selection-card input[type="radio"]:checked + .card-content .icon-box {
    color: var(--primary-color);
}
.selection-card input[type="radio"]:checked + .card-content .icon-box.whatsapp { color: #25D366; }
.selection-card input[type="radio"]:checked + .card-content .icon-box.messenger { color: #0084FF; }


/* Formulario de Email Inputs */
.email-form .form-group { margin-bottom: 20px; }
.email-form input, .email-form textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-light);
    font-family: var(--font-opensans);
}
.email-form input:focus, .email-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}
.email-form .form-actions { display: flex; justify-content: center; gap: 15px; }


/* --- SECCIÓN 5: REDES SOCIALES --- */
.social-icons { display: flex; justify-content: center; gap: 20px; margin-top: 30px; }
.social-icon {
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.2rem;
    transition: 0.3s;
}
.social-icon:hover { background: var(--primary-color); border-color: var(--primary-color); transform: translateY(-5px); }
.social-icon.facebook:hover { background: #1877F2; }
.social-icon.instagram:hover { background: #E4405F; }
.social-icon.youtube:hover { background: #FF0000; }
.social-icon.tiktok:hover { background: #000000; }


/* --- FOOTER --- */
.main-footer { background: var(--bg-darker); padding-top: 60px; border-top: 1px solid var(--border-color); }
.footer-content { display: flex; justify-content: space-between; align-items: center; padding-bottom: 40px; }
.footer-logo img { height: 40px; opacity: 0.7; }
.footer-info { text-align: right; color: var(--text-gray); font-size: 0.9rem; }
.footer-links a { color: var(--text-gray); text-decoration: underline; }
.footer-links a:hover { color: var(--primary-color); }
.copyright { background: rgba(0,0,0,0.2); padding: 20px 0; font-size: 0.8rem; color: var(--text-gray); }


/* --- RESPONSIVE (Móvil y Tablets) --- */
@media (max-width: 768px) {
    .top-bar { text-align: center; }
    .header-content { flex-wrap: wrap; }
    .mobile-menu-toggle { display: block; }
    
    /* Menú móvil básico (se puede mejorar a un off-canvas) */
    .main-nav {
        width: 100%;
        display: none; /* Oculto por defecto en móvil */
        margin-top: 20px;
        background: var(--bg-card);
        padding: 20px;
        border-radius: 10px;
    }
    .main-nav.active { display: block; } /* Clase para mostrarlo con JS */
    .main-nav ul { flex-direction: column; gap: 10px; }
    .main-nav a { display: block; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }

    .hero-slider { height: 70vh; min-height: auto; }
    .slide-content h1 { font-size: 2.2rem; }
    
    .footer-content { flex-direction: column; gap: 30px; text-align: center; }
    .footer-info { text-align: center; }
}

/* --- Estilos Sección Acerca de Dinámica --- */

.about-series {
    background-color: var(--bg-dark);
    overflow: hidden;
}

/* Efecto Parallax para el Título */
.about-title-parallax {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 60px;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* Un poco más alta para el efecto */
    background-attachment: fixed; /* Esto hace que la imagen se quede fija */
    background-position: center;
    background-size: cover;
    z-index: 1;
    filter: brightness(0.3); /* Oscurece la imagen para resaltar el título */
}

.about-title-parallax .container {
    position: relative;
    z-index: 2;
}

/* Rejilla de contenido */
.about-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.about-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-item.reverse {
    direction: rtl; /* Invierte el orden de texto e imagen */
}

.about-item.reverse .about-text {
    direction: ltr; /* Devuelve el texto a su dirección normal */
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-gray);
}

.about-text p strong {
    color: var(--primary-color);
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-footer {
    text-align: center;
    padding: 60px 0;
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
}

.about-footer p {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-light);
}

.about-footer span {
    color: var(--primary-color);
    font-weight: bold;
}

/* Animación simple al hacer scroll */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsivo */
@media (max-width: 768px) {
    .about-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-item.reverse {
        direction: ltr;
    }
}

/* --- Estilos Palabras de Vida --- */

.palabras-vida {
    background-color: var(--bg-darker);
    padding-bottom: 100px;
}

/* Encabezado con Imagen Fija */
.fixed-bg-header {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-bottom: -80px; /* Traslape moderno */
}

.overlay-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-attachment: fixed; /* Imagen Fija */
    background-size: cover;
    background-position: center;
    filter: brightness(0.4) grayscale(20%);
    z-index: 1;
}

.header-content-fixed {
    position: relative;
    z-index: 2;
}

.title-accent {
    font-size: 3.5rem;
    color: var(--text-light);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.divider {
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 20px auto;
}

/* Layout Dinámico */
.content-wrapper {
    position: relative;
    z-index: 3;
}

.dynamic-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    background: var(--bg-card);
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.highlight-box {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 30px 0;
    font-size: 1.4rem;
}

.img-float {
    width: 100%;
    border-radius: 15px;
    transform: rotate(2deg); /* Toque dinámico */
    transition: transform 0.5s ease;
}

.img-float:hover {
    transform: rotate(0deg) scale(1.02);
}

.full-width-text {
    margin-top: 60px;
    padding: 0 40px;
    text-align: center;
    font-size: 1.25rem;
    line-height: 1.9;
}

.cta-mini-box {
    margin-top: 50px;
    background: rgba(0, 123, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    border: 1px dashed var(--primary-color);
}

.quote-final {
    font-family: var(--font-montserrat);
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 20px;
    font-size: 1.4rem;
}

/* Responsivo */
@media (max-width: 992px) {
    .dynamic-layout {
        grid-template-columns: 1fr;
        padding: 30px;
    }
    .title-accent { font-size: 2.5rem; }
    .fixed-bg-header { height: 300px; }
}

/* --- Estilos Sección Lección --- */

.lesson-detail {
    background-color: var(--bg-dark);
}

.lesson-tag {
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.title-underline {
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 20px auto 50px;
}

/* Contenedor de Video Sensible */
.video-frame-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 15px;
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.video-aspect-ratio {
    position: relative;
    padding-bottom: 56.25%; /* Proporción 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.video-aspect-ratio iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Área de Descarga */
.download-area {
    margin-top: 60px;
}

.download-area h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-light);
}

.btn-download {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), #00a2ff);
    color: white;
    text-decoration: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-family: var(--font-montserrat);
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
}

.btn-download .btn-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-download i {
    font-size: 1.4rem;
}

.btn-download:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.5);
    background: linear-gradient(135deg, #00a2ff, var(--primary-color));
    color: white;
}

/* Ajuste móvil */
@media (max-width: 768px) {
    .video-frame-container {
        padding: 5px;
        border-radius: 10px;
    }
    .btn-download {
        width: 100%;
        padding: 15px 20px;
    }
}

/* --- Estilos Mosaico de Lecciones --- */

.lessons-mosaic {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.lesson-card-item {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
}

.lesson-card-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
}

.lesson-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.lesson-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.lesson-card-item:hover .lesson-thumb img {
    transform: scale(1.1);
}

.play-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 123, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.play-overlay i {
    font-size: 3rem;
    color: white;
}

.lesson-card-item:hover .play-overlay {
    opacity: 1;
}

.lesson-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}

.lesson-info {
    padding: 20px;
    text-align: center;
}

.lesson-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-light);
}

.lesson-info p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 15px;
}

/* Botón PDF Minimalista */
.btn-pdf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 15px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-pdf:hover {
    background: var(--primary-color);
    color: white;
}

/* Ajustes móviles */
@media (max-width: 600px) {
    .lessons-mosaic {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    .lesson-info h3 { font-size: 0.95rem; }
    .btn-pdf { width: 100%; justify-content: center; }
}
/* ==========================================================================
   NUEVAS SECCIONES: LECCIONES, ACERCA DE Y PALABRAS DE VIDA
   ========================================================================== */

/* --- Estilos para la Grilla de Lecciones (Resumen) --- */
.lessons-grid-section {
    background-color: var(--bg-dark);
}

.lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.lesson-card-item {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
    border: 1px solid var(--border-color);
}

.lesson-card-item:hover {
    transform: translateY(-10px);
}

/* --- Estilos para "Acerca de" y "Palabras de Vida" (Contenido Grueso) --- */
.about-series, .palabras-vida {
    background-color: var(--bg-primary);
    color: var(--text-light);
    line-height: 1.8;
}

.about-series .container, .palabras-vida .container {
    max-width: 900px; /* Contenedor más estrecho para lectura cómoda */
}

.about-series h2, .palabras-vida h2 {
    margin-bottom: 25px;
    color: var(--primary-color);
}

.about-series p, .palabras-vida p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-gray);
}

/* --- Imágenes dentro de estas secciones --- */
.content-image {
    width: 100%;
    border-radius: 15px;
    margin: 20px 0;
    border: 2px solid var(--border-color);
}

/* ==========================================================================
   ACERCA DE 
   ========================================================================== */
/* --- Estilos específicos para la página "Acerca de" --- */

/* --- Estilos Sección Acerca de Dinámica --- */

.about-series {
    background-color: var(--bg-dark);
    overflow: hidden;
}

/* Efecto Parallax para el Título */
.about-title-parallax {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 60px;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* Un poco más alta para el efecto */
    background-attachment: fixed; /* Esto hace que la imagen se quede fija */
    background-position: center;
    background-size: cover;
    z-index: 1;
    filter: brightness(0.3); /* Oscurece la imagen para resaltar el título */
}

.about-title-parallax .container {
    position: relative;
    z-index: 2;
}

/* Rejilla de contenido */
.about-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.about-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-item.reverse {
    direction: rtl; /* Invierte el orden de texto e imagen */
}

.about-item.reverse .about-text {
    direction: ltr; /* Devuelve el texto a su dirección normal */
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-gray);
}

.about-text p strong {
    color: var(--primary-color);
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-footer {
    text-align: center;
    padding: 60px 0;
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
}

.about-footer p {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-light);
}

.about-footer span {
    color: var(--primary-color);
    font-weight: bold;
}

/* Animación simple al hacer scroll */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsivo */
@media (max-width: 768px) {
    .about-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-item.reverse {
        direction: ltr;
    }
}

/* SECCION DESCARGAR GUIA COMPLETA*/
/* Centrar el contenedor de la lección */
.lesson-download-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

/* Ajuste de la tarjeta para que sea vertical y centrada */
.lesson-card-item.download-only {
    max-width: 320px; /* Ancho ideal para una imagen vertical */
    width: 100%;
    text-align: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.lesson-card-item.download-only:hover {
    transform: translateY(-5px);
}

/* Imagen estática sin efectos de play */
.static-thumb {
    position: relative;
    line-height: 0; /* Quita espacios extra debajo de la imagen */
}

.img-vertical {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Personalización del botón para que resalte como acción principal */
.lesson-card-item.download-only .btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px auto 0;
    width: 100%;
}