/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --gradient-start: #667eea;
    --gradient-end: #764ba2;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #0f172a;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    --transition: all 0.3s ease;
}

/* Tema Oscuro */
[data-theme="dark"] {
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-light: #9ca3af;
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-dark: #0f172a;
    --border-color: #374151;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.6);
}

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-weight: 400;
    letter-spacing: -0.01em;
    overflow-x: hidden;
}

/* Mejoras para touch devices */
@media (hover: none) and (pointer: coarse) {
    .btn, .nav-menu a, .nav-toggle {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-menu a {
        padding: 1rem 0;
    }
}

/* Mejoras tipográficas modernas */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero h1 {
    font-weight: 800;
    letter-spacing: -0.03em;
}

.nav-logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.footer-logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    letter-spacing: -0.01em;
}

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

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-logo span {
    color: #dc2626; /* Rojo por defecto para IA */
}

.ia-text {
    color: #dc2626 !important; /* Rojo para IA */
}

.madrid-text {
    color: #374151 !important; /* Gris oscuro para Madrid */
}

.nav-logo i {
    font-size: 2rem;
    color: #dc2626 !important; /* Rojo para el cerebro */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
    margin-left: 1rem;
}

/* Botón flotante móvil - oculto por defecto */
.mobile-theme-toggle {
    display: none;
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.05);
}

.theme-toggle i {
    font-size: 1.2rem;
    transition: var(--transition);
}

[data-theme="dark"] .theme-toggle i:before {
    content: "\f185"; /* fa-sun */
}

/* Dark theme adaptations */
[data-theme="dark"] .header {
    background: rgba(17, 24, 39, 0.95);
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

[data-theme="dark"] .hero::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
}

[data-theme="dark"] .subvencion-info {
    background: var(--bg-secondary);
}

[data-theme="dark"] .info-card {
    background: rgba(31, 41, 55, 0.8);
    border-color: var(--border-color);
}

[data-theme="dark"] .programa {
    background: var(--bg-primary);
}

[data-theme="dark"] .programa-card {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .programa-card:hover {
    background: rgba(55, 65, 81, 0.8);
    transform: translateY(-5px);
}

[data-theme="dark"] .beneficios {
    background: var(--bg-secondary);
}

[data-theme="dark"] .stat-card {
    background: rgba(31, 41, 55, 0.8);
    border-color: var(--border-color);
}

[data-theme="dark"] .inscripcion {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

[data-theme="dark"] .inscripcion::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="12" cy="8" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="8" cy="14" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="18" cy="6" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
}

[data-theme="dark"] .feature {
    background: rgba(31, 41, 55, 0.6);
    border-color: var(--border-color);
}

[data-theme="dark"] .feature:hover {
    background: rgba(55, 65, 81, 0.8);
}

[data-theme="dark"] .form-container {
    background: linear-gradient(145deg, rgba(31, 41, 55, 0.9), rgba(17, 24, 39, 0.9));
    border-color: var(--border-color);
}

[data-theme="dark"] .footer {
    background: var(--bg-dark);
    border-top-color: var(--border-color);
}

[data-theme="dark"] .footer-logo i {
    color: #dc2626 !important;
}

[data-theme="dark"] .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

[data-theme="dark"] .btn-secondary {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
}

/* Dark theme menu adaptations */
[data-theme="dark"] .nav-menu {
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(20px);
    border-bottom-color: var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .nav-menu a {
    color: var(--text-primary);
    border-bottom-color: var(--border-color);
    transition: all 0.3s ease;
}

[data-theme="dark"] .nav-menu a:hover {
    color: var(--primary-color);
    background: rgba(55, 65, 81, 0.4);
    transform: translateX(5px);
    border-radius: 8px;
    padding-left: 1rem;
}

[data-theme="dark"] .nav-menu a::after {
    background: var(--primary-color);
}

[data-theme="dark"] .nav-toggle span {
    background: var(--text-primary);
}

/* Dark theme cards adaptations */
[data-theme="dark"] .beneficio-item {
    border-left-color: var(--primary-color);
}

[data-theme="dark"] .beneficio-item i {
    color: var(--primary-color);
}

[data-theme="dark"] .card-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

[data-theme="dark"] .info-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

/* Dark theme requisito cards */
[data-theme="dark"] .requisito-card {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .requisito-card i {
    color: var(--primary-color);
}

[data-theme="dark"] .requisito-card h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .requisito-card p {
    color: var(--text-secondary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* AI Animation */
.ai-animation {
    position: relative;
    width: 440px;
    height: 440px;
    margin: 0 auto;
    overflow: hidden;
}

.neural-network {
    position: relative;
    width: 100%;
    height: 100%;
    animation: gentleRotate 30s ease-in-out infinite;
}

.node {
    position: absolute;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
    animation: organicFloat 8s ease-in-out infinite;
    transition: all 0.3s ease;
}

.node::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: shimmer 4s ease-in-out infinite;
}

/* Capa externa - 6 nodos con separación optimizada */
.node:nth-child(1) { top: 5%; left: 50%; transform: translateX(-50%); animation-delay: 0s; animation-duration: 8s; }
.node:nth-child(2) { top: 30%; right: 8%; animation-delay: 1s; animation-duration: 7.5s; }
.node:nth-child(3) { top: 65%; right: 12%; animation-delay: 2s; animation-duration: 9s; }
.node:nth-child(4) { bottom: 5%; left: 50%; transform: translateX(-50%); animation-delay: 3s; animation-duration: 8.5s; }
.node:nth-child(5) { top: 65%; left: 12%; animation-delay: 4s; animation-duration: 7s; }
.node:nth-child(6) { top: 30%; left: 8%; animation-delay: 5s; animation-duration: 9.5s; }

/* Capa media - 4 nodos con mayor separación */
.node:nth-child(7) { top: 18%; left: 30%; animation-delay: 0.5s; animation-duration: 8.2s; }
.node:nth-child(8) { top: 18%; right: 30%; animation-delay: 1.5s; animation-duration: 7.8s; }
.node:nth-child(9) { bottom: 18%; right: 30%; animation-delay: 2.5s; animation-duration: 8.8s; }
.node:nth-child(10) { bottom: 18%; left: 30%; animation-delay: 3.5s; animation-duration: 7.2s; }

/* Capa interna - 2 nodos centrales con separación vertical */
.node:nth-child(11) { top: 35%; left: 50%; transform: translateX(-50%); animation-delay: 4.5s; animation-duration: 9.2s; }
.node:nth-child(12) { bottom: 35%; left: 50%; transform: translateX(-50%); animation-delay: 5.5s; animation-duration: 8.7s; }

/* Estilos únicos para cada nodo con tamaños progresivos */
.node-1 { background: linear-gradient(135deg, #ff6b6b, #ee5a24); width: 28px; height: 28px; }
.node-2 { background: linear-gradient(135deg, #4ecdc4, #44bd87); width: 32px; height: 32px; }
.node-3 { background: linear-gradient(135deg, #45b7d1, #3742fa); width: 36px; height: 36px; }
.node-4 { background: linear-gradient(135deg, #f9ca24, #f0932b); width: 40px; height: 40px; }
.node-5 { background: linear-gradient(135deg, #6c5ce7, #a55eea); width: 44px; height: 44px; }
.node-6 { background: linear-gradient(135deg, #fd79a8, #e84393); width: 48px; height: 48px; }
.node-7 { background: linear-gradient(135deg, #00b894, #00cec9); width: 34px; height: 34px; }
.node-8 { background: linear-gradient(135deg, #fdcb6e, #e17055); width: 38px; height: 38px; }
.node-9 { background: linear-gradient(135deg, #74b9ff, #0984e3); width: 42px; height: 42px; }
.node-10 { background: linear-gradient(135deg, #81ecec, #00b894); width: 46px; height: 46px; }
.node-11 { background: linear-gradient(135deg, #fab1a0, #e17055); width: 52px; height: 52px; }
.node-12 { background: linear-gradient(135deg, #fd79a8, #fdcb6e); width: 56px; height: 56px; }

/* Tooltip para preguntas de IA */
.node-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    max-width: 280px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.node-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

.node-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(0, 0, 0, 0.9);
}

/* Interacciones hover únicas para cada nodo */
.node-1:hover { transform: scale(1.4) rotate(15deg); box-shadow: 0 0 50px rgba(255, 107, 107, 0.8); }
.node-2:hover { transform: scale(1.3) translateY(-10px); box-shadow: 0 0 45px rgba(78, 205, 196, 0.8); }
.node-3:hover { transform: scale(1.5); box-shadow: 0 0 60px rgba(69, 183, 209, 0.9); }
.node-4:hover { transform: scale(1.2) rotate(-20deg); box-shadow: 0 0 40px rgba(249, 202, 36, 0.8); }
.node-5:hover { transform: scale(1.6) skew(5deg); box-shadow: 0 0 55px rgba(108, 92, 231, 0.8); }
.node-6:hover { transform: scale(1.3) translateX(15px); box-shadow: 0 0 45px rgba(253, 121, 168, 0.8); }
.node-7:hover { transform: scale(1.4) rotate(25deg); box-shadow: 0 0 50px rgba(0, 184, 148, 0.8); }
.node-8:hover { transform: scale(1.2) translateY(10px); box-shadow: 0 0 40px rgba(253, 203, 110, 0.8); }
.node-9:hover { transform: scale(1.5) rotate(-15deg); box-shadow: 0 0 60px rgba(116, 185, 255, 0.9); }
.node-10:hover { transform: scale(1.3) translateX(-15px); box-shadow: 0 0 45px rgba(129, 236, 236, 0.8); }
.node-11:hover { transform: scale(1.7) rotate(30deg); box-shadow: 0 0 70px rgba(250, 177, 160, 0.9); }
.node-12:hover { transform: scale(1.7) rotate(-30deg); box-shadow: 0 0 70px rgba(253, 121, 168, 0.9); }

@keyframes gentleRotate {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(5deg) scale(1.02); }
    50% { transform: rotate(0deg) scale(0.98); }
    75% { transform: rotate(-5deg) scale(1.02); }
}

@keyframes organicFloat {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
    }
    25% { 
        transform: translate(10px, -15px) scale(1.1);
        box-shadow: 0 0 25px rgba(139, 92, 246, 0.6);
    }
    50% { 
        transform: translate(-5px, -10px) scale(0.95);
        box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
    }
    75% { 
        transform: translate(-10px, 5px) scale(1.05);
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.7);
    }
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.2); }
}

/* Subvención Info */
.subvencion-info {
    padding: 2rem 0;
    background: var(--bg-secondary);
}

.info-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.info-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
}

.info-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.info-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.info-logos {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0;
}

.info-logos img {
    height: 40px;
    opacity: 0.8;
}

.logo-madrid {
    max-height: 50px;
    width: auto;
    opacity: 1 !important;
}

.logo-eu {
    max-height: 50px;
    width: auto;
    opacity: 1 !important;
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Programa Section */
.programa {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.programa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.programa-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.programa-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.programa-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.programa-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Beneficios Section */
.beneficios {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.beneficios-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.beneficios-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.beneficio-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.beneficio-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.beneficio-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.beneficio-item p {
    color: var(--text-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Requisitos Section */
.requisitos {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.requisitos h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.requisitos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.requisito-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.requisito-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.requisito-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.requisito-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.requisito-card p {
    color: var(--text-secondary);
}

/* Inscripción Section */
.inscripcion {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.inscripcion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(37,99,235,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>') repeat;
    opacity: 0.4;
}

.inscripcion-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.inscripcion-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.inscripcion-text p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.inscripcion-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    justify-items: center;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.8));
    border-radius: 16px;
    box-shadow: 0 8px 25px -8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    min-height: 120px;
    justify-content: center;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.15);
}

.feature i {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px -6px rgba(37, 99, 235, 0.4);
}

.feature span {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
}

.form-container {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.8);
    width: 100%;
    max-width: none;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--secondary-color));
    border-radius: 24px 24px 0 0;
}

.form-container h3 {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    padding-top: 1rem;
}

.form-container h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.form-container p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
}

.form-container iframe {
    border-radius: 16px;
    min-height: 1200px;
    width: 100%;
    border: none;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.form-container iframe:hover {
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo span {
    color: #dc2626; /* Rojo por defecto para IA */
}

.footer-logo i {
    font-size: 2rem;
    color: #dc2626 !important; /* Rojo para el cerebro */
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p {
    opacity: 0.8;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.8;
}

/* Página de Aviso Legal */
.legal-page {
    padding: 100px 0 4rem 0;
    background: var(--bg-primary);
    min-height: 100vh;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.legal-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gradient-start);
}

.legal-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 1rem 0;
}

.legal-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.legal-section li {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.legal-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-footer {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 16px;
    text-align: center;
    color: white;
}

.legal-footer p {
    margin-bottom: 0.5rem;
    color: white;
}

.legal-footer em {
    font-style: italic;
    opacity: 0.9;
}

/* Tema oscuro para página legal */
[data-theme="dark"] .legal-section {
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(75, 85, 99, 0.3);
}

[data-theme="dark"] .legal-section h2 {
    border-bottom-color: var(--gradient-end);
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem 0;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-text {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.cookie-text i {
    font-size: 2rem;
    color: var(--gradient-start);
    flex-shrink: 0;
}

.cookie-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.cookie-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.cookie-text a {
    color: var(--gradient-start);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cookie-text a:hover {
    color: var(--gradient-end);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-actions button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.btn-accept {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-reject {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.btn-reject:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

/* Tema oscuro para cookie banner */
[data-theme="dark"] .cookie-consent {
    background: rgba(17, 24, 39, 0.95);
    border-top-color: rgba(75, 85, 99, 0.3);
}

[data-theme="dark"] .btn-reject {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
}

[data-theme="dark"] .btn-reject:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Responsive para cookie banner */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .cookie-text {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .cookie-text i {
        font-size: 1.5rem;
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-actions button {
        flex: 1;
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .cookie-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cookie-actions button {
        max-width: none;
    }
}

/* Responsive para página legal */
@media (max-width: 768px) {
    .legal-page {
        padding: 80px 0 2rem 0;
    }
    
    .legal-content {
        padding: 0 1rem;
    }
    
    .legal-content h1 {
        font-size: 2rem;
    }
    
    .legal-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.3rem;
    }
}

/* Responsive Design */
/* Tablet Design (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 90%;
        padding: 0 2rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: center;
    }
    
    .hero-title {
        font-size: 3rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .ai-animation {
        width: 380px;
        height: 380px;
        margin: 0 auto;
    }
    
    .programa-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .beneficios-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .requisitos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .inscripcion-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: start;
    }
    
    .inscripcion-features {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .hero-cta {
        flex-direction: row;
        gap: 1rem;
        justify-content: flex-start;
    }
    
    .btn {
        min-width: 200px;
        padding: 1rem 2rem;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .beneficios-text h2,
    .inscripcion-text h2 {
        font-size: 2.2rem;
    }
    
    /* Ajustes para la red neuronal en tablet */
    .node-1 { width: 35px; height: 35px; }
    .node-2 { width: 40px; height: 40px; }
    .node-3 { width: 45px; height: 45px; }
    .node-4 { width: 50px; height: 50px; }
    .node-5 { width: 55px; height: 55px; }
    .node-6 { width: 60px; height: 60px; }
    .node-7 { width: 42px; height: 42px; }
    .node-8 { width: 47px; height: 47px; }
    .node-9 { width: 52px; height: 52px; }
    .node-10 { width: 57px; height: 57px; }
    .node-11 { width: 65px; height: 65px; }
    .node-12 { width: 70px; height: 70px; }
    
    .node-tooltip {
        max-width: 220px;
        font-size: 13px;
        padding: 10px 14px;
    }
}

/* Mobile Design (max-width: 768px) */
@media (max-width: 768px) {
    /* Adaptación de la red neuronal para móvil */
    .neural-network {
        width: 100%;
        height: 100%;
        margin: 0 auto;
        position: relative;
        overflow: hidden;
    }
    
    /* Mantener el mismo posicionamiento que en desktop */
    .node:nth-child(1) { top: 5%; left: 50%; transform: translateX(-50%); }
    .node:nth-child(2) { top: 30%; right: 8%; }
    .node:nth-child(3) { top: 65%; right: 12%; }
    .node:nth-child(4) { bottom: 5%; left: 50%; transform: translateX(-50%); }
    .node:nth-child(5) { top: 65%; left: 12%; }
    .node:nth-child(6) { top: 30%; left: 8%; }
    
    /* Capa media - misma distribución que desktop */
    .node:nth-child(7) { top: 18%; left: 30%; }
    .node:nth-child(8) { top: 18%; right: 30%; }
    .node:nth-child(9) { bottom: 18%; right: 30%; }
    .node:nth-child(10) { bottom: 18%; left: 30%; }
    
    /* Capa interna - misma distribución que desktop */
    .node:nth-child(11) { top: 35%; left: 50%; transform: translateX(-50%); }
    .node:nth-child(12) { bottom: 35%; left: 50%; transform: translateX(-50%); }
    
    /* Tamaños reducidos para móvil */
    .node-1 { width: 28px; height: 28px; }
    .node-2 { width: 32px; height: 32px; }
    .node-3 { width: 36px; height: 36px; }
    .node-4 { width: 40px; height: 40px; }
    .node-5 { width: 44px; height: 44px; }
    .node-6 { width: 48px; height: 48px; }
    .node-7 { width: 34px; height: 34px; }
    .node-8 { width: 38px; height: 38px; }
    .node-9 { width: 42px; height: 42px; }
    .node-10 { width: 46px; height: 46px; }
    .node-11 { width: 52px; height: 52px; }
    .node-12 { width: 56px; height: 56px; }
    
    /* Tooltips adaptados para móvil */
    .node-tooltip {
        max-width: 200px;
        font-size: 12px;
        padding: 8px 12px;
        left: 50% !important;
        transform: translateX(-50%) translateY(10px);
        margin-top: 10px;
    }
    
    .node-tooltip.show {
        transform: translateX(-50%) translateY(0);
    }
    
    .hero {
        padding-bottom: 6rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem 0;
        transition: var(--transition);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        z-index: 999;
        overflow-y: auto;
    }
    
    [data-theme="dark"] .nav-menu {
        background: rgba(17, 24, 39, 0.95);
        backdrop-filter: blur(20px);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        border-bottom-color: rgba(55, 65, 81, 0.5);
    }
    
    [data-theme="dark"] .nav-menu a {
        color: var(--text-primary);
        border-bottom-color: rgba(55, 65, 81, 0.3);
        transition: all 0.3s ease;
    }
    
    [data-theme="dark"] .nav-menu a:hover {
        color: var(--primary-color);
        background: rgba(55, 65, 81, 0.4);
        border-radius: 8px;
        transform: scale(1.02);
        border-bottom-color: var(--primary-color);
    }
    
    [data-theme="dark"] .nav-menu a:last-child {
        border-bottom: none;
    }
    
    .nav-menu.active {
        left: 0;
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu a {
        font-size: 1.1rem;
        padding: 0.75rem 0;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu a:last-child {
        border-bottom: none;
    }
    
    .nav-toggle {
        display: flex;
        align-items: center;
    }
    
    /* Ocultar el botón del header en móvil */
    .nav-container .theme-toggle {
        display: none;
    }
    
    /* Mostrar y estilizar el botón flotante en móvil */
    .mobile-theme-toggle {
        display: flex;
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        z-index: 1000;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        background: var(--bg-primary);
        border: 2px solid var(--primary-color);
        color: var(--text-primary);
        margin-left: 0;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .mobile-theme-toggle:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
        background: var(--bg-secondary);
        border-color: var(--primary-color);
        color: var(--primary-color);
    }
    
    .mobile-theme-toggle i {
        font-size: 1.2rem;
        transition: var(--transition);
    }
    
    /* Adaptaciones para tema oscuro */
    [data-theme="dark"] .mobile-theme-toggle {
        background: var(--bg-secondary);
        border-color: var(--primary-color);
        color: var(--text-primary);
    }
    
    [data-theme="dark"] .mobile-theme-toggle:hover {
        background: var(--bg-primary);
        color: var(--primary-color);
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 1rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    .ai-animation {
        width: 320px;
        height: 320px;
        overflow: visible;
        margin: 0 auto;
    }
    
    .hero-badges {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        margin: 1.5rem 0;
    }
    
    .badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        min-width: auto;
    }
    
    .info-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
        margin: 1rem 0;
    }
    
    .info-logos {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .info-logos img {
        max-height: 40px;
        width: auto;
    }
    
    .programa-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .programa-card {
        padding: 2rem 1.5rem;
        text-align: center;
    }
    
    .programa-card h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .beneficios-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .beneficios-list {
        gap: 1rem;
    }
    
    .beneficio-item {
        padding: 1rem;
        text-align: left;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
        text-align: center;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .requisitos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .requisito-card {
        padding: 2rem 1.5rem;
        text-align: center;
    }
    
    .requisito-card h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .inscripcion {
        padding: 4rem 0;
    }
    
    .inscripcion-text h2 {
        font-size: 2rem;
    }
    
    .inscripcion-features {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .feature {
        padding: 1rem;
        min-height: 100px;
    }
    
    .feature i {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .inscripcion-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-container {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .form-container h3 {
        font-size: 1.5rem;
    }
    
    .form-container iframe {
        min-height: 1000px;
        border-radius: 12px;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-cta .btn {
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    /* Adaptación adicional de la red neuronal para pantallas muy pequeñas */
    .neural-network {
        height: 100%;
    }
    
    /* Tamaños aún más reducidos para pantallas pequeñas */
    .node-1 { width: 28px; height: 28px; }
    .node-2 { width: 32px; height: 32px; }
    .node-3 { width: 36px; height: 36px; }
    .node-4 { width: 40px; height: 40px; }
    .node-5 { width: 44px; height: 44px; }
    .node-6 { width: 48px; height: 48px; }
    .node-7 { width: 34px; height: 34px; }
    .node-8 { width: 38px; height: 38px; }
    .node-9 { width: 42px; height: 42px; }
    .node-10 { width: 46px; height: 46px; }
    .node-11 { width: 52px; height: 52px; }
    .node-12 { width: 56px; height: 56px; }
    
    /* Tooltips más compactos y centrados */
    .node-tooltip {
        max-width: 180px;
        font-size: 11px;
        padding: 6px 10px;
        left: 50% !important;
        transform: translateX(-50%) translateY(10px);
        margin-top: 10px;
    }
    
    .node-tooltip.show {
        transform: translateX(-50%) translateY(0);
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .ai-animation {
        width: 280px;
        height: 280px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .beneficios-text h2,
    .inscripcion-text h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .programa-card {
        padding: 1.5rem 1rem;
    }
    
    .programa-card h3 {
        font-size: 1.2rem;
    }
    
    .requisito-card {
        padding: 1.5rem 1rem;
    }
    
    .requisito-card h3 {
        font-size: 1.1rem;
    }
    
    .info-card {
        padding: 1.5rem 1rem;
        margin: 0.5rem 0;
    }
    
    .beneficio-item {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .feature {
        padding: 0.75rem;
        min-height: 80px;
    }
    
    .feature i {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .form-container {
        padding: 1.5rem 1rem;
    }
    
    .form-container h3 {
        font-size: 1.3rem;
    }
    
    .hero-badges {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .badge {
        font-size: 0.75rem;
        padding: 0.5rem 0.875rem;
        min-height: 36px;
        display: flex;
        align-items: center;
    }
    
    .nav-container {
        padding: 0 1rem;
        height: 60px;
    }
    
    .nav-logo {
        font-size: 1.25rem;
    }
    
    .nav-logo i {
        font-size: 1.5rem;
    }
    
    .hero {
        padding-top: 60px;
        padding-bottom: 6rem;
        min-height: calc(100vh - 60px);
    }
    
    .hero-container {
        padding: 2rem 0;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .nav-menu {
        top: 60px;
        max-height: calc(100vh - 60px);
    }
}

/* Media queries para orientación landscape en móvil */
@media (max-width: 768px) and (orientation: landscape) {
    /* Reducir altura del header en landscape */
    .nav-container {
        height: 50px;
        padding: 0 1rem;
    }
    
    .nav-logo {
        font-size: 1.1rem;
    }
    
    .nav-logo i {
        font-size: 1.3rem;
    }
    
    /* Ajustar menú móvil para landscape */
    .nav-menu {
        top: 50px;
        height: calc(100vh - 50px);
        padding: 1rem 0;
    }
    
    .nav-menu a {
        font-size: 1rem;
        padding: 0.5rem 0;
    }
    
    /* Reducir padding del hero en landscape */
    .hero {
        padding-top: 50px;
        padding-bottom: 2rem;
        min-height: calc(100vh - 50px);
    }
    
    .hero-container {
        padding: 1rem 0;
        gap: 1rem;
    }
    
    /* Ajustar títulos para landscape */
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    /* Reducir tamaño de la animación AI */
    .ai-animation {
        width: 250px;
        height: 250px;
    }
    
    /* Ajustar badges para landscape */
    .hero-badges {
        margin: 1rem 0;
        gap: 0.5rem;
    }
    
    .badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
        min-height: 30px;
    }
    
    /* Ajustar botones CTA */
    .hero-cta {
        gap: 0.75rem;
        margin-top: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        min-height: 40px;
    }
    
    /* Reducir padding de secciones */
    .section {
        padding: 2rem 0;
    }
    
    /* Ajustar títulos de sección */
    .section-header h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    /* Ajustar botón flotante de tema */
    .mobile-theme-toggle {
        width: 48px;
        height: 48px;
        bottom: 15px;
        right: 15px;
    }
    
    .mobile-theme-toggle i {
        font-size: 1rem;
    }
    
    /* Ajustar red neuronal para landscape */
    .node-1 { width: 24px; height: 24px; }
    .node-2 { width: 28px; height: 28px; }
    .node-3 { width: 32px; height: 32px; }
    .node-4 { width: 36px; height: 36px; }
    .node-5 { width: 40px; height: 40px; }
    .node-6 { width: 44px; height: 44px; }
    .node-7 { width: 30px; height: 30px; }
    .node-8 { width: 34px; height: 34px; }
    .node-9 { width: 38px; height: 38px; }
    .node-10 { width: 42px; height: 42px; }
    .node-11 { width: 48px; height: 48px; }
    .node-12 { width: 52px; height: 52px; }
    
    /* Tooltips más compactos */
    .node-tooltip {
        max-width: 160px;
        font-size: 10px;
        padding: 4px 8px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for iframe */
.form-container iframe {
    opacity: 0;
    animation: fadeIn 1s ease-in-out 0.5s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Estilos para la sección de compartir en redes sociales */
.footer-share {
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
}

.footer-share h4 {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.share-btn i {
    font-size: 14px;
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Responsive para botones de compartir */
@media (max-width: 768px) {
    .footer-share {
        padding: 0.75rem 0;
    }
    
    .footer-share h4 {
        font-size: 0.8rem;
    }
    
    .share-buttons {
        gap: 0.4rem;
    }
    
    .share-btn {
        width: 28px;
        height: 28px;
    }
    
    .share-btn i {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .share-buttons {
        gap: 0.3rem;
    }
    
    .share-btn {
        width: 26px;
        height: 26px;
    }
    
    .share-btn i {
        font-size: 11px;
    }
}

/* Animación de pulso para los botones */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.share-btn:active {
    animation: pulse 0.3s ease;
}