/* --- VARIABLES GLOBALES Y ESTILOS BASE --- */
:root {
    --color-primario: #1a2238; /* Azul oscuro casi negro */
    --color-secundario: #4a4e69; /* Gris azulado */
    --color-acento: #9f7aea; /* Morado del logo */
    --color-cta: #fca311; /* Naranja/Dorado para botones */
    --color-texto: #f2f2f2; /* Texto claro */
    --color-fondo: #0d1117; /* Fondo muy oscuro */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Helvetica', 'Arial', sans-serif;
    background-color: var(--color-fondo);
    color: var(--color-texto);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--color-acento);
}

img {
    max-width: 100%;
}

/* --- COMPONENTES REUTILIZABLES --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-cta {
    background-color: var(--color-cta);
    color: var(--color-primario);
    border: 2px solid var(--color-cta);
}

.btn-cta:hover {
    background-color: transparent;
    color: var(--color-cta);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-texto);
    border: 2px solid var(--color-texto);
}

.btn-secondary:hover {
    background-color: var(--color-texto);
    color: var(--color-primario);
}

/* --- HEADER / NAVEGACIÓN --- */
.main-header {
    background-color: var(--color-primario);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo img {
    height: 50px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

.main-nav ul li {
    margin-left: 1.5rem;
}

.main-nav ul li a {
    color: var(--color-texto);
    font-weight: bold;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.main-nav ul li a:hover {
    border-bottom-color: var(--color-acento);
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-texto);
    transition: all 0.3s ease-in-out;
}

/* --- HERO SECTION (Página de Inicio) --- */
.hero {
    background-color: var(--color-primario);
    padding: 4rem 0;
    text-align: center;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content h1 {
    color: white;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.hero-buttons .btn {
    margin: 0 0.5rem;
}

/* --- OTRAS SECCIONES --- */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: white;
}

/* --- PÁGINA PODCAST --- */
.podcast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.episode-card {
    background-color: var(--color-secundario);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.episode-card iframe {
    width: 100%;
    height: 100px;
    border: none;
}

.episode-content {
    padding: 1.5rem;
}

.subscribe-buttons {
    text-align: center;
    margin-bottom: 3rem;
}

.subscribe-buttons a {
    margin: 0 10px;
    font-size: 2.5rem;
    color: var(--color-texto);
    transition: color 0.3s ease;
}
.subscribe-buttons a:hover {
    color: var(--color-acento);
}

/* --- PÁGINA QUIÉN SOY --- */
.about-section .container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}



/* --- SECCIÓN OPORTUNIDAD (NUEVO) --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background-color: var(--color-secundario);
    padding: 2rem;
    text-align: center;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.benefit-icon i {
    font-size: 3rem;
    color: var(--color-cta);
    margin-bottom: 1rem;
}


/* --- FOOTER --- */
.main-footer {
    background-color: var(--color-primario);
    padding: 2rem 0;
    text-align: center;
}

.social-links a {
    color: var(--color-texto);
    font-size: 1.8rem;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--color-acento);
}

.main-footer p {
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

    .hamburger {
        display: block;
        z-index: 101; /* Asegura que esté sobre el menú */
    }
    
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .main-nav {
        position: fixed;
        left: -100%;
        top: 0; /* Cambiado para cubrir toda la pantalla */
        flex-direction: column;
        justify-content: center; /* Centra los items verticalmente */
        background-color: var(--color-primario);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: left 0.3s ease-in-out; /* Animación más suave */
    }

    .main-nav.active {
        left: 0;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav ul li {
        margin: 2rem 0; /* Espaciado ajustado */
    }
    
    .about-section .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        margin: 0.5rem 0;
        width: 80%;
    }
}
/* --- ESTILOS PARA LA SECCIÓN DE VIDEO --- */
.video-hero {
    background-color: var(--color-primario); /* Fondo oscuro para destacar */
    padding: 5rem 0;
}

.video-hero-content {
    /* Eliminamos el grid para un diseño de una sola columna */
    max-width: 900px;  /* Limitamos el ancho para que no sea excesivo en pantallas grandes */
    margin: 0 auto;    /* Centramos el contenedor principal */
    text-align: center; /* Centramos todo el texto */
}

.video-hero-content .text-content h1 {
    font-size: 2.8rem;
    color: white;
    margin-bottom: 1.5rem;
}

.video-hero-content .text-content p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem; /* Aumentamos el espacio antes del video */
}

/* El .video-container ahora está dentro de .video-hero-content y se centrará automáticamente */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Proporción 16:9 */
    height: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin-bottom: 2.5rem; /* Espacio antes del botón de abajo */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.benefits-section {
    padding-top: 5rem;
}

/* --- Ajuste para móviles --- */
/* La nueva estructura ya es adaptable, pero ajustamos tamaños de fuente */
@media (max-width: 900px) {
    .video-hero-content .text-content h1 {
        font-size: 2.2rem;
    }
}