/* ==========================================================================
   ESTILOS GENERALES Y DISEÑO DE MARCA - MUG CENTRO PERÚ
   Alineado con WordPress + Elementor (Contenedores Flexbox y Widgets)
   ========================================================================== */

/* Variables de Diseño (Perfectas para configurar en Elementor > Ajustes de Sitio) */
:root {
    /* Colores Globales de Marca */
    --primary: #4f46e5;            /* Indigo Eléctrico (Color Primario) */
    --primary-light: #818cf8;      /* Indigo Suave (Hover/Bordes) */
    --primary-glow: rgba(79, 70, 229, 0.15);
    
    --secondary: #06b6d4;          /* Cian Vibrante (Color Secundario / Acento) */
    --secondary-hover: #0891b2;    /* Cian Hover */
    --secondary-glow: rgba(6, 182, 212, 0.2);
    
    --dark-bg: #0f172a;            /* Slate Oscuro (Fondo Tecnológico) */
    --dark-card: #1e293b;          /* Slate Medio (Tarjetas Oscuras) */
    --dark-border: #334155;        /* Borde Oscuro */
    
    --light-bg: #f8fafc;           /* Blanco Nieve (Fondo Claro) */
    --light-card: #ffffff;         /* Tarjeta Clara */
    --light-border: #e2e8f0;       /* Borde Claro */
    
    --text-dark: #0f172a;          /* Texto Principal Claro */
    --text-muted: #64748b;         /* Texto Secundario / Desvanecido */
    --text-white: #ffffff;         /* Texto Blanco */
    --text-white-muted: #94a3b8;   /* Texto Blanco Secundario */

    /* Fuentes */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Estructura y Espaciado */
    --container-width: 1200px;
    --border-radius-lg: 18px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
}

/* Reset y Estilos de Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Contenedores Flexbox Estándar */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   COMPONENTES DE DISEÑO COMUNES (BOTONES, BADGES, TITULOS)
   ========================================================================== */

/* Botones Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-white);
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--primary);
    font-family: var(--font-heading);
}

.btn-text:hover {
    color: var(--primary-light);
}

.btn-text:hover i {
    transform: translateX(4px);
}

.btn-text i {
    transition: var(--transition);
}

/* Badges (Etiquetas) */
.badge {
    display: inline-block;
    padding: 6px 14px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    border-radius: 50px;
    background-color: var(--primary-glow);
    color: var(--primary);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Textos Especiales */
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Encabezados de Sección */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px auto;
}

.sub-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 12px;
}

.sub-title.text-light {
    color: var(--secondary);
}

.section-title {
    font-size: 36px;
    line-height: 1.25;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.section-title.text-white {
    color: var(--text-white);
}

.section-desc {
    font-size: 17px;
    color: var(--text-muted);
}

.section-desc.text-muted {
    color: var(--text-white-muted);
}

/* ==========================================================================
   HEADER / NAVBAR (Elementor Pro Header Builder)
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    padding: 20px 0;
    transition: var(--transition);
}

.main-header.sticky {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--primary);
}

.nav-menu ul {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION (Contenedor Principal de la Landing)
   ========================================================================== */
.hero-section {
    padding: 160px 0 100px 0;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.hero-mesh-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.12) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(79, 70, 229, 0.08) 0px, transparent 50%);
    z-index: -1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}

.hero-content {
    max-width: 620px;
}

.hero-title {
    font-size: 52px;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-description {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 36px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-ctas .btn-secondary {
    background-color: rgba(79, 70, 229, 0.06);
    color: var(--primary);
    border: 1px solid rgba(79, 70, 229, 0.15);
}

.hero-ctas .btn-secondary:hover {
    background-color: rgba(79, 70, 229, 0.12);
    border-color: var(--primary);
}

/* Visual del Hero con Flotadores e Iluminación */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-wrapper {
    position: relative;
    width: 100%;
    max-width: 440px;
}

.visual-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.25) 0%, rgba(6, 182, 212, 0.1) 60%, rgba(255,255,255,0) 100%);
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
}

.hero-img {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 20px 40px rgba(15, 23, 42, 0.08));
    animation: float 6s ease-in-out infinite;
}

/* Etiquetas flotantes en Elementor: Efecto CSS Absoluto + Movimiento */
.floating-tag {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 10px 18px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    animation: float-tag 4s ease-in-out infinite alternate;
}

.floating-tag i {
    color: var(--primary);
    font-size: 16px;
}

.tag-1 {
    top: 15%;
    left: -10%;
    animation-delay: 0.5s;
}

.tag-2 {
    bottom: 20%;
    right: -5%;
    animation-delay: 1.2s;
}

.tag-2 i {
    color: var(--secondary);
}

/* Animaciones */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes float-tag {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

/* ==========================================================================
   STATS SECTION (Fácil en Elementor con Caja de Iconos o Contadores)
   ========================================================================== */
.stats-section {
    padding: 40px 0;
    background-color: var(--light-card);
    border-top: 1px solid var(--light-border);
    border-bottom: 1px solid var(--light-border);
    position: relative;
    z-index: 10;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 18px;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--border-radius-md);
    background-color: var(--primary-glow);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-card:nth-child(even) .stat-icon {
    background-color: var(--secondary-glow);
    color: var(--secondary);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-dark);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==========================================================================
   COURSES GRID (Replicable con Loop Grid o Caja de Imagen de Elementor)
   ========================================================================== */
.courses-section {
    padding: 100px 0;
}

/* Filtro Interactivo */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--light-card);
    border: 1px solid var(--light-border);
    color: var(--text-muted);
    padding: 10px 22px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--text-white);
    box-shadow: 0 4px 10px var(--primary-glow);
}

/* Grid de Cursos */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.course-card {
    background-color: var(--light-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-border);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
    position: relative;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.12);
    border-color: var(--primary-light);
}

.course-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(5px);
    color: var(--text-white);
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50px;
    z-index: 10;
    text-transform: uppercase;
}

.course-image {
    position: relative;
    height: 180px;
    width: 100%;
    overflow: hidden;
}

.course-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    color: var(--text-white);
}

/* Gradientes Curados para las Miniaturas */
.bg-gradient-data { background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%); }
.bg-gradient-dev { background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); }
.bg-gradient-agile { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.bg-gradient-cloud { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.bg-gradient-science { background: linear-gradient(135deg, #ec4899 0%, #be185d 100%); }
.bg-gradient-excel { background: linear-gradient(135deg, #10b981 0%, #15803d 100%); }

.course-type {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background-color: rgba(22, 163, 74, 0.9);
    backdrop-filter: blur(5px);
    color: var(--text-white);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.course-type i {
    font-size: 9px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

.course-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-title {
    font-size: 19px;
    line-height: 1.35;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.course-text {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.course-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 20px;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.course-divider {
    border: none;
    border-top: 1px solid var(--light-border);
    margin-bottom: 16px;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-instructor {
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   CERTIFICATE SECTION (La Clave de Conversión de MUG)
   ========================================================================== */
.certificate-section {
    padding: 100px 0;
    background-color: var(--dark-bg);
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.certificate-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(255,255,255,0) 70%);
    filter: blur(40px);
    pointer-events: none;
}

.certificate-container {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 64px;
    align-items: center;
}

.cert-features {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cert-features li {
    display: flex;
    gap: 18px;
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-sm);
    background-color: rgba(6, 182, 212, 0.12);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.feature-text {
    font-size: 15px;
    color: var(--text-white-muted);
}

.feature-text strong {
    display: block;
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 16px;
    margin-bottom: 4px;
}

/* Mockup del Certificado Flotante y Brillo */
.certificate-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.cert-wrapper {
    position: relative;
    width: 100%;
    max-width: 460px;
}

.cert-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 380px;
    height: 280px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, rgba(79, 70, 229, 0.1) 60%, rgba(255,255,255,0) 100%);
    filter: blur(35px);
    z-index: 1;
    pointer-events: none;
}

.cert-img {
    position: relative;
    z-index: 2;
    border-radius: var(--border-radius-md);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-8deg) rotateX(4deg) rotateZ(1deg);
    transition: var(--transition);
}

.cert-img:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) rotateZ(0deg) scale(1.02);
    box-shadow: 0 30px 60px rgba(6, 182, 212, 0.2);
}

/* ==========================================================================
   BENEFITS SECTION (Grid de Ventajas Metodológicas)
   ========================================================================== */
.benefits-section {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.benefit-card {
    background-color: var(--light-card);
    padding: 32px 24px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-border);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.benefit-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 20px;
    margin-bottom: 24px;
}

.bg-gradient-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.bg-gradient-purple { background: linear-gradient(135deg, #8b5cf6, #5b21b6); }
.bg-gradient-teal { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.bg-gradient-amber { background: linear-gradient(135deg, #f59e0b, #b45309); }

.benefit-card h3 {
    font-size: 19px;
    margin-bottom: 12px;
}

.benefit-card p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ==========================================================================
   CAPTURE / LEAD MAGNET (La Landing en su Máxima Conversión)
   ========================================================================== */
.capture-section {
    padding: 80px 0;
    background: radial-gradient(circle at 10% 90%, rgba(79, 70, 229, 0.05) 0%, rgba(255,255,255,0) 60%);
}

.capture-container {
    max-width: 1000px;
}

.capture-card {
    background-color: var(--dark-card);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--dark-border);
    padding: 56px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    color: var(--text-white);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.capture-card::after {
    content: '';
    position: absolute;
    bottom: -15%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, rgba(255,255,255,0) 70%);
    filter: blur(40px);
    pointer-events: none;
}

.capture-content h2 {
    color: var(--text-white);
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 18px;
}

.capture-content p {
    color: var(--text-white-muted);
    font-size: 15px;
    margin-bottom: 28px;
}

.capture-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.capture-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-white-muted);
}

.capture-list i {
    color: var(--secondary);
    font-size: 14px;
}

/* Formulario Glassmorphic */
.capture-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 10;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-white-muted);
}

.form-group input, .form-group select {
    background-color: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--dark-border);
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 14px;
    transition: var(--transition);
}

.form-group input::placeholder {
    color: #475569;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--secondary);
    background-color: rgba(15, 23, 42, 0.6);
    box-shadow: 0 0 0 2px var(--secondary-glow);
}

.form-group option {
    background-color: var(--dark-card);
    color: var(--text-white);
}

.form-privacy {
    font-size: 12px;
    color: #475569;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Mensaje de éxito del formulario */
.form-success-msg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    padding: 20px 0;
    animation: fadeInUp 0.5s ease-out;
}

.success-icon {
    font-size: 56px;
    color: var(--secondary);
    margin-bottom: 20px;
}

.form-success-msg h3 {
    color: var(--text-white);
    font-size: 24px;
    margin-bottom: 12px;
}

.form-success-msg p {
    color: var(--text-white-muted);
    font-size: 14px;
    margin-bottom: 8px;
    max-width: 320px;
}

.hide {
    display: none !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   FAQS SECTION (Acordeón Nativo Replicable con Elementor Accordion)
   ========================================================================== */
.faqs-section {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.faqs-container {
    max-width: 800px;
}

.faqs-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: var(--light-card);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--light-border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-light);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    color: var(--text-dark);
    cursor: pointer;
}

.faq-icon {
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition);
}

/* Estado activo del acordeón */
.faq-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-item.active .faq-answer {
    padding-bottom: 24px;
    max-height: 200px; /* Suficiente para el texto largo */
}

/* ==========================================================================
   FOOTER (Estructura de Pie de Página Profesional)
   ========================================================================== */
.main-footer {
    background-color: var(--dark-bg);
    color: var(--text-white);
    padding: 80px 0 0 0;
    border-top: 1px solid var(--dark-border);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-white-muted);
    margin-bottom: 24px;
    max-width: 360px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.footer-socials a:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.footer-links h3, .footer-contact h3 {
    color: var(--text-white);
    font-size: 16px;
    margin-bottom: 24px;
    font-family: var(--font-heading);
}

.footer-links ul, .footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-white-muted);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 4px;
}

.footer-contact li {
    font-size: 14px;
    color: var(--text-white-muted);
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-contact i {
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid var(--dark-border);
    padding: 30px 0;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #475569;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-legal a {
    color: #475569;
    margin-left: 16px;
}

.footer-legal a:hover {
    color: var(--text-white-muted);
}

/* ==========================================================================
   DISEÑO ADAPTABLE (RESPONSIVE BREAKPOINTS)
   ========================================================================== */

/* Escritorio Pequeño / Tablet Horizontal */
@media (max-width: 1024px) {
    .hero-container {
        gap: 32px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .certificate-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .certificate-visual {
        order: -1;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .capture-card {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
}

/* Tablet Vertical y Móvil */
@media (max-width: 768px) {
    /* Header Móvil */
    .mobile-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--light-card);
        border-bottom: 1px solid var(--light-border);
        padding: 24px;
        box-shadow: var(--shadow-md);
        display: none;
        z-index: 999;
    }
    
    .nav-menu.active {
        display: block;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 16px;
    }
    
    .nav-link {
        display: block;
        padding: 8px 0;
    }
    
    .btn-nav {
        display: none; /* Ocultar en la barra para móviles, centrar en hero */
    }

    /* Contenido */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .floating-tag {
        display: none; /* Simplificar para móviles */
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal a {
        margin: 0 8px;
    }
}
