/*
Theme Name: Eternity Complete Theme
Theme URI: https://eternityinstituto.com
Author: Instituto Eternity
Author URI: https://eternityinstituto.com
Description: Tema institucional completo para Instituto Eternity con HERO, Beneficios, Testimoniales dinámicos, Formulario de Inscripción, Header Sticky y Menú Hamburguesa
Version: 2.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eternity-hero
Tags: education, institutional, custom-header, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, one-page, sticky-header

Tema completo con header sticky, menú hamburguesa en mobile, logo + texto editable y testimoniales dinámicos.
*/

/* ============================================
   RESET Y BASE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   HEADER - STICKY CON LOGO + TEXTO + MENÚ HAMBURGUESA
   ============================================ */

.site-header {
    background: #1b3052;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ============================================
   LOGO + BRANDING
   ============================================ */

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 auto;
}

.custom-logo-link,
.default-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.custom-logo,
.default-logo svg {
    max-height: 60px;
    width: auto;
    display: block;
}

/* Texto al lado del logo */
.site-identity {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.site-title {
    font-size: 20px;
    font-weight: 700;
    color: #F5F5F5;
    margin: 0;
    line-height: 1.2;
    letter-spacing: 1px;
}

.site-title a {
    color: #F5F5F5;
    text-decoration: none;
}

.site-description {
    font-size: 12px;
    color: #dbdada;
    margin: 2px 0 0 0;
    line-height: 1.2;
    font-weight: 400;
}

/* ============================================
   BOTÓN HAMBURGUESA (MOBILE)
   ============================================ */

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: #F5F5F5;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   NAVEGACIÓN DESKTOP
   ============================================ */

.site-navigation {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.primary-menu {
    list-style: none;
    display: flex;
    gap: 35px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.primary-menu li {
    margin: 0;
}

.primary-menu a {
    color: #dbdada;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    padding: 10px 0;
    display: block;
    text-decoration: none;
}

.primary-menu a:hover {
    color: #F5F5F5;
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 768px) {
    
    /* Mostrar botón hamburguesa */
    .menu-toggle {
        display: flex;
    }
    
    /* Header ajustado */
    .header-container {
        padding: 12px 15px;
    }
    
    /* Logo y texto más pequeños */
    .custom-logo,
    .default-logo svg {
        max-height: 45px;
    }
    
    .site-title {
        font-size: 16px;
    }
    
    .site-description {
        font-size: 11px;
    }
    
    /* Navegación mobile */
    .site-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #1b3052;
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
    }
    
    .site-navigation.active {
        right: 0;
    }
    
    .primary-menu {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }
    
    .primary-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(219, 218, 218, 0.1);
    }
    
    .primary-menu a {
        padding: 18px 0;
        font-size: 16px;
        width: 100%;
    }
    
    /* Overlay cuando menú está abierto */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
}

@media (max-width: 480px) {
    .custom-logo,
    .default-logo svg {
        max-height: 40px;
    }
    
    .site-title {
        font-size: 14px;
    }
    
    .site-description {
        font-size: 10px;
    }
    
    .header-container {
        padding: 10px 15px;
    }
}

/* ============================================
   FOOTER BÁSICO
   ============================================ */

.site-footer {
    background: #1b3052;
    color: #dbdada;
    padding: 40px 0;
    margin-top: 60px;
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.site-footer p {
    margin: 0;
    font-size: 14px;
}

.site-footer a {
    color: #F5F5F5;
    text-decoration: underline;
}

/* ============================================
   CONTENEDOR GENERAL
   ============================================ */

.site-content {
    min-height: 50vh;
}

.content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .hero-eternity {
        padding: 60px 20px;
        min-height: auto;
    }

@media (max-width: 480px) {
    .hero-eternity {
        padding: 40px 20px;
    }

/* ============================================
   UTILIDADES
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* ========================================
   SECCIÓN: COMPONENTES DEL CURSO
   Instituto Eternity
   Ubicación: Debajo del Video, antes de NOSOTROS
======================================== */

/* Contenedor principal de la sección */
.eternity-programa-section {
    background: linear-gradient(135deg, #1a237e 0%, #0d1b4a 100%);
    padding: 80px 0;
    color: #ffffff;
}

.eternity-programa-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Grid de 2 columnas */
.programa-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    margin-bottom: 60px;
}

@media (max-width: 968px) {
    .programa-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Cards individuales */
.programa-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 35px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.programa-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.programa-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffd54f;
    border-bottom: 2px solid rgba(255, 213, 79, 0.3);
    padding-bottom: 12px;
}

.programa-card h4 {
    color: #ffd54f;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.programa-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

/* Listas */
.programa-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.programa-card ul li {
    padding: 10px 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
}

.programa-card ul li:last-child {
    border-bottom: none;
}

.programa-card ul li .emoji {
    font-size: 1.2rem;
    min-width: 30px;
}

.programa-card ul li a {
    color: #ffd54f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.programa-card ul li a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Estilos especiales para card de Costos */
.programa-card.costos-card .precio-grupo {
    background: rgba(255, 213, 79, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
}

.programa-card.costos-card .precio-grupo h4 {
    font-size: 1.1rem;
    color: #ffd54f;
    margin-bottom: 10px;
    font-weight: 600;
    margin-top: 0;
}

.programa-card.costos-card .precio-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.programa-card.costos-card .precio-item:last-child {
    border-bottom: none;
}

.programa-card.costos-card .precio {
    font-weight: 700;
    color: #ffd54f;
    font-size: 1.1rem;
}

.programa-card.costos-card .nota-becas {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 0;
}

/* Sedes */
.sedes-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.sede-tag {
    background: rgba(255, 213, 79, 0.15);
    color: #ffd54f;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Nota importante */
.nota-importante {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #ffd54f;
    padding: 20px 25px;
    margin-top: 20px;
    border-radius: 0 10px 10px 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

/* Sección de botones CTA */
.programa-cta-section {
    text-align: center;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.programa-cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Botones */
.btn-eternity {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-eternity-primary {
    background: linear-gradient(135deg, #ffd54f 0%, #ffb300 100%);
    color: #1a237e;
}

.btn-eternity-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 213, 79, 0.4);
}

.btn-eternity-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-eternity-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-3px);
}

.btn-eternity-outline {
    background: transparent;
    color: #ffd54f;
    border: 2px solid #ffd54f;
}

.btn-eternity-outline:hover {
    background: #ffd54f;
    color: #1a237e;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 600px) {
    .eternity-programa-section {
        padding: 60px 0;
    }
    
    .programa-card {
        padding: 25px;
    }
    
    .programa-card h3 {
        font-size: 1.4rem;
    }
    
    .programa-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-eternity {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .sedes-lista {
        flex-direction: column;
    }
    
    .sede-tag {
        text-align: center;
    }
}