/* 
================================================================
   ESTILOS GLOBALES & VARIABLES (UI CORE)
================================================================
*/
:root {
    /* Paleta Dark Futurista & Neon */
    --bg-main: #020617;       /* Slate 950 profundizado */
    --bg-dark: #020617;
    --bg-card: #0F172A;       /* Slate 900 */
    --bg-glass: rgba(15, 23, 42, 0.6);
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass: rgba(255, 255, 255, 0.03);
    
    /* Colores de Acento */
    --primary: #3B82F6;       /* Blue 500 */
    --primary-glow: rgba(59, 130, 246, 0.6);
    --secondary: #8B5CF6;     /* Violet 500 */
    --secondary-glow: rgba(139, 92, 246, 0.4);
    --accent: #06B6D4;        /* Cyan 500 */
    --alert: #F43F5E;         /* Rose 500 */
    
    /* Tipografía & Textos */
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Bordes & Glassmorphism */
    --border: rgba(255, 255, 255, 0.1);
    --border-glass: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
}

/* 
================================================================
   UTILIDADES & LAYOUT
================================================================
*/
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.section-padding { 
    padding: 80px 0; 
}

.section-title { 
    font-family: var(--font-heading); 
    font-size: 2.5rem; 
    margin-bottom: 3rem; 
    text-align: center; 
}

.section-description {
    text-align: center;
    color: var(--text-muted);
    margin-top: -2rem;
    margin-bottom: 3rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

.text-gradient-alert {
    background: linear-gradient(135deg, #F472B6, #F43F5E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-neon {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight { 
    color: var(--secondary); 
    font-weight: 700; 
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 12px;
}

/* 
================================================================
   NAVEGACIÓN (FLOATING PILL / ISLA FLOTANTE)
================================================================
*/
.navbar {
    position: fixed; 
    top: 20px; /* Separación del borde superior */
    left: 50%;
    transform: translateX(-50%); /* Centrado horizontal absoluto */
    width: 95%; /* Ancho responsivo */
    /*max-width: 960px; /* Ancho máximo para que luzca como cápsula */
    z-index: 1000;
    
    /* Estética Visual (Glassmorphism Oscuro Profundo) */
    background: rgba(5, 8, 16, 0.7); /* Muy oscuro y translúcido */
    backdrop-filter: blur(20px);      /* Efecto borroso fuerte */
    -webkit-backdrop-filter: blur(20px);
    
    /* Bordes y Forma */
    border: 1px solid rgba(255, 255, 255, 0.08); /* Borde sutil */
    border-radius: 100px; /* Bordes completamente redondos (Pill shape) */
    
    /* Espaciado y Sombra */
    padding: 0.8rem 2.5rem; 
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8); /* Sombra para dar profundidad */
    transition: all 0.3s ease;
}

/* Contenedor interno */
.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%;
    padding: 0; /* Reseteamos padding del container global */
}

/* Marca / Logo */
.brand { 
    font-family: var(--font-heading); 
    font-size: 1.4rem; 
    font-weight: 800; 
    color: white; 
    text-decoration: none; 
    letter-spacing: -0.5px;
}
.brand span { color: var(--primary); }

/* Enlaces de navegación */
.nav-links { 
    display: flex; 
    gap: 2.5rem; /* Más espacio entre items */
    align-items: center; 
    list-style: none;
    margin-right: 10px;
}

.nav-links a { 
    color: var(--text-muted); 
    text-decoration: none; 
    transition: 0.3s; 
    font-size: 0.9rem; 
    font-weight: 500;
}

.nav-links a:hover { 
    color: white; 
}

/* Botón Sincronizar (Estilo Cápsula interna) */
.btn-glow-sm {
    padding: 0.6rem 1.8rem; 
    border-radius: 50px; 
    background: rgba(255, 255, 255, 0.08); /* Fondo grisáceo transparente */
    border: 1px solid rgba(255, 255, 255, 0.1); 
    color: var(--text-main) !important; 
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-glow-sm:hover { 
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05); 
    transform: translateY(-1px);
}

.mobile-menu-toggle { 
    display: none; 
    font-size: 1.5rem; 
    cursor: pointer; 
    color: white;
}

/* Ajuste Responsivo para la Navbar Flotante */
@media (max-width: 768px) {
    .navbar {
        top: 10px;
        width: 92%;
        padding: 0.8rem 1.5rem;
    }
    
    .nav-links { display: none; }
    
    .mobile-menu-toggle { display: block; }
}

/* 
================================================================
   SECCIÓN HERO (EL CORE DEL IMPACTO)
================================================================
*/
.hero-section {
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    position: relative; 
    text-align: center; 
    padding: 120px 20px 60px;
    overflow: hidden;
}

/* Fondos Ambientales Neón */
.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
}
.glow-blue { background: var(--primary); top: -200px; left: -100px; }
.glow-purple { background: var(--secondary); bottom: -100px; right: -100px; }

.bg-gradient-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 600px; height: 600px; 
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
    z-index: -1; pointer-events: none;
}

.grid-overlay {
    position: absolute; inset: 0;
    background-image: linear-gradient(var(--glass-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--glass-border) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.05;
    z-index: 0;
}

/* Contenido Hero */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero-content h1 { 
    font-family: var(--font-heading); 
    font-size: clamp(2.5rem, 5vw, 4.5rem); 
    line-height: 1.1; 
    font-weight: 700; 
    margin-bottom: 24px; 
    letter-spacing: -0.02em; 
}

.hero-sub { 
    font-size: 1.25rem; 
    color: var(--text-muted); 
    max-width: 700px; 
    margin: 0 auto 3rem; 
    line-height: 1.6;
}

.hero-badge, .badge-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 100px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 24px;
    backdrop-filter: blur(5px);
}

.badge-alert {
    background: rgba(244, 63, 94, 0.1);
    border-color: rgba(244, 63, 94, 0.3);
    color: var(--alert);
}

.hero-cta-group { 
    display: flex; 
    gap: 1.5rem; 
    justify-content: center; 
    flex-wrap: wrap;
}

/* Botones Hero */
.btn-primary-glow {
    background: var(--primary); 
    color: white; 
    padding: 14px 32px; 
    border-radius: 12px;
    text-decoration: none; 
    font-weight: 600; 
    box-shadow: 0 0 20px var(--primary-glow); 
    transition: 0.3s ease;
    display: flex; 
    align-items: center; 
    gap: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

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

.btn-alert {
    background: var(--alert);
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.5);
}

.btn-alert:hover { 
    box-shadow: 0 0 40px rgba(244, 63, 94, 0.7); 
}

.btn-secondary {
    padding: 14px 32px; 
    border-radius: 12px;
    font-weight: 500; 
    color: var(--text-main); 
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border); 
    transition: 0.3s ease;
}

.btn-secondary:hover { 
    background: rgba(255, 255, 255, 0.08); 
    border-color: rgba(255, 255, 255, 0.2); 
}




/* HERO SECTION (HU-001) */
.badge-hero {
    display: inline-block; 
    padding: 5px 15px; 
    border-radius: 50px;
    background: rgba(59, 130, 246, 0.1); 
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--primary); 
    font-size: 0.85rem; 
    font-weight: 600; 
    margin-bottom: 1.5rem;
}
.hero-content h1 { 
    font-size: 4rem; 
    margin-bottom: 1.5rem; 
    letter-spacing: -2px; 
}
.btn-primary-glow {
    padding: 1rem 2rem; 
    border-radius: 8px;
    box-shadow: 0 0 25px var(--primary-glow); 
    transition: 0.3s;
}
.btn-secondary {
    padding: 1rem 2rem; 
    border: 1px solid var(--border-glass); 
    border-radius: 8px; 
    transition: 0.3s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.05); }




/* Trust Bar */
.trust-bar { padding: 20px 0; border-bottom: 1px solid var(--border-glass); background: rgba(255,255,255,0.01); }
.trust-grid { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; color: var(--text-muted); font-size: 0.9rem; }
.trust-item i { color: var(--accent); margin-right: 8px; }

/* Statement */
.section-statement { padding: 4rem 0; text-align: center; }
blockquote { font-size: 1.5rem; font-family: var(--font-heading); max-width: 800px; margin: 0 auto; line-height: 1.4; }

/* Bento Grid (Problems) */
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.bento-card {
    background: var(--bg-card); border: 1px solid var(--border-glass); padding: 2rem;
    border-radius: 16px; transition: 0.3s;
}
.bento-card:hover { border-color: var(--primary); transform: translateY(-5px); }
.span-2 { grid-column: span 2; }
.icon-accent { font-size: 2rem; color: var(--accent); margin-bottom: 1rem; display: block; }

/* Process */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 3rem; }
.step { position: relative; padding-top: 20px; border-top: 1px solid var(--border-glass); }
.step-num { font-size: 3rem; font-weight: 700; color: rgba(255,255,255,0.05); position: absolute; top: 0; right: 0; }
.step h4 { color: var(--primary); margin-bottom: 0.5rem; font-size: 1.2rem; }

/* Portfolio */
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.project-card {
    background: var(--bg-card); border-radius: 16px; overflow: hidden;
    border: 1px solid var(--border-glass); cursor: pointer;
}
.card-image { height: 200px; background: #1E293B; position: relative; }
/* Placeholder gradients for images */
.project-1 { background: linear-gradient(45deg, #1E293B, #0F172A); } 
.project-2 { background: linear-gradient(45deg, #334155, #1E293B); }
.card-content { padding: 2rem; }
.tag { font-size: 0.75rem; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; }

/* Education (Bento 3) */
.bento-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.offer-card { background: var(--bg-card); padding: 2rem; border-radius: 16px; border: 1px solid var(--border-glass); }
.highlight-border { border-color: var(--secondary); box-shadow: 0 0 20px rgba(139, 92, 246, 0.1); }
.link-action { color: var(--primary); text-decoration: none; font-weight: 600; display: block; margin-top: 1rem; }

/* Filter Section */
.split-filter { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.filter-box { padding: 2rem; border-radius: 16px; }
.yes { background: rgba(16, 185, 129, 0.05); border: 1px solid rgba(16, 185, 129, 0.2); }
.no { background: rgba(239, 68, 68, 0.05); border: 1px solid rgba(239, 68, 68, 0.2); }
.filter-box ul { list-style: none; margin-top: 1rem; }
.filter-box li { margin-bottom: 0.5rem; display: flex; align-items: center; gap: 10px; }
.yes h3 { color: #34D399; } .no h3 { color: #F87171; }

/* Contact */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.contact-form-wrapper {
    background: #0B0F19; border-radius: 12px; border: 1px solid var(--border-glass);
    overflow: hidden;
}
.form-header {
    background: #1E293B; padding: 10px 15px; display: flex; align-items: center; gap: 6px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #ef4444; } .yellow { background: #eab308; } .green { background: #22c55e; }
.cmd-title { font-family: monospace; font-size: 0.8rem; color: var(--text-muted); margin-left: 10px; }

.contact-form-wrapper form { padding: 2rem; }
.input-group { margin-bottom: 1rem; }
.input-group input, .input-group select {
    width: 100%; background: #020617; border: 1px solid #334155; padding: 12px;
    color: white; border-radius: 6px; outline: none; font-family: var(--font-body);
}
.input-group input:focus { border-color: var(--primary); }
.btn-block-glow {
    width: 100%; padding: 1rem; background: var(--text-main); color: #020617;
    border: none; border-radius: 6px; font-weight: 700; cursor: pointer; transition: 0.3s;
    display: flex; justify-content: center; align-items: center; gap: 10px;
}
.btn-block-glow:hover { background: var(--primary); color: white; }

/* Floating CTA */
.floating-cta {
    position: fixed; bottom: 20px; right: 20px; background: var(--secondary); color: white;
    padding: 12px 24px; border-radius: 50px; text-decoration: none; font-weight: 600;
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4); z-index: 999;
    opacity: 0; transform: translateY(20px); transition: 0.3s;
}
.floating-cta.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-toggle { display: block; }
    .hero-content h1 { font-size: 2.5rem; }
    .bento-grid, .process-steps, .projects-grid, .bento-grid-3, .contact-wrapper, .split-filter { grid-template-columns: 1fr; }
    .span-2 { grid-column: span 1; }
    .hero-cta-group { flex-direction: column; }
}

/* Tipografía y Badges */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 100px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 24px;
    backdrop-filter: blur(5px);
}
.badge-alert {
    background: rgba(244, 63, 94, 0.1);
    border-color: rgba(244, 63, 94, 0.3);
    color: var(--alert);
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* Botones */
.btn-primary-glow {
    display: inline-flex;
    gap: 8px;
    transition: all 0.3s ease;
}
.btn-alert {
    background: var(--alert);
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.5);
}
.btn-alert:hover { box-shadow: 0 0 40px rgba(244, 63, 94, 0.7); }

.btn-secondary {
    transition: all 0.3s ease;
}

/* Floating Elements (Visuals) */
.hero-visual {
    position: relative;
    height: 100px;
    margin-top: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    display: none; /* Hidden on mobile, block on md */
}
@media (min-width: 768px) {
    .hero-visual { display: block; }
}

.glass-card-stat {
    position: absolute;
    left: 0;
    top: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 12px 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}
.stat-icon {
    width: 40px; height: 40px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}
.icon-human { background: rgba(139, 92, 246, 0.2); color: var(--secondary); }
.stat-info { display: flex; flex-direction: column; text-align: left; }
.stat-val { font-weight: 700; font-family: var(--font-heading); color: white; }
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; }

/* HU-003: CTA FLOTANTE */
.floating-cta-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.floating-cta-container.visible {
    transform: translateY(0);
    opacity: 1;
}
.floating-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid var(--primary);
    padding: 8px 20px 8px 8px;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    box-shadow: 0 10px 40px -10px rgba(59, 130, 246, 0.5);
    transition: transform 0.2s;
}
.floating-btn:hover { transform: scale(1.05); }

.avatar-sm { position: relative; width: 40px; height: 40px; }
.avatar-sm img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); }
.status-dot {
    position: absolute; bottom: 0; right: 0;
    width: 10px; height: 10px;
    background: #10B981;
    border-radius: 50%;
    border: 2px solid #0F172A;
}
.cta-text { font-weight: 600; font-size: 0.95rem; }

/* Animaciones */
.fade-in-up { opacity: 0; transform: translateY(20px); animation: fadeInUp 0.8s forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.5s; }

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

.float-animation { animation: float 6s ease-in-out infinite; }
.float-animation-delayed { animation: float 7s ease-in-out infinite 2s; }

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

/* --- ÉPICA 02: AUTORIDAD Y CONFIANZA --- */

/* HU-004: Trust Bar */
.trust-bar {
    background: rgba(2, 6, 23, 0.8);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 30px 0;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 5;
}

.trust-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.trust-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.trust-icon {
    font-size: 1.8rem;
    color: var(--accent);
}

.trust-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.trust-divider {
    width: 1px;
    height: 40px;
    background: var(--glass-border);
}

/* HU-005: Statement Section */
.statement-section {
    padding: 120px 0;
    position: relative;
}

.statement-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.eyebrow {
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: block;
}

.statement-quote {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.1;
    margin-bottom: 30px;
}

.statement-detail p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    max-width: 600px;
}

.highlight-text {
    color: var(--text-main);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.highlight-text i {
    color: var(--accent);
    font-size: 1.4rem;
}

/* Visual Elements HU-005 */
.statement-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.visual-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-glow), transparent 70%);
    filter: blur(40px);
    z-index: 1;
    animation: pulse 8s infinite alternate;
}

.visual-glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    width: 100%;
    max-width: 350px;
    z-index: 2;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.card-header-os {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.dots { display: flex; gap: 6px; }
.dots span { width: 8px; height: 8px; border-radius: 50%; }
.d1 { background: #ff5f56; } .d2 { background: #ffbd2e; } .d3 { background: #27c93f; }

.os-text { font-family: monospace; font-size: 0.7rem; color: var(--text-muted); }

.card-body-os {
    padding: 25px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #a8b3cf;
}

@keyframes pulse {
    from { transform: scale(1); opacity: 0.4; }
    to { transform: scale(1.2); opacity: 0.7; }
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .statement-grid { grid-template-columns: 1fr; gap: 60px; text-align: center; }
    .statement-detail p { margin: 0 auto 20px; }
    .highlight-text { justify-content: center; }
    .trust-divider { display: none; }
    .trust-container { justify-content: center; gap: 40px; }
}

/* --- ÉPICA 03: PROBLEMAS Y METODOLOGÍA --- */

/* HU-006: Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 20px;
    margin-top: 50px;
}

.bento-item {
    display: flex;
    align-items: flex-end;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bento-item:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: var(--primary);
    box-shadow: 0 20px 40px -20px var(--primary-glow);
}

.p-large { grid-column: span 3; }
.p-medium { grid-column: span 3; }

@media (min-width: 992px) {
    .p-large { grid-column: span 4; }
    .p-medium { grid-column: span 2; }
}

.bento-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
}

.icon-alert { color: var(--alert); }
.icon-warn { color: #f59e0b; }

.bento-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.bento-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* HU-007: Methodology Section */
.methodology-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.methodology-info {
    position: sticky;
    top: 120px;
}

.methodology-principles {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.principle-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9rem;
}

.principle-item i {
    color: var(--accent);
    font-size: 1.2rem;
}

.methodology-steps {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.step-card {
    padding: 35px;
    position: relative;
    border-left: 2px solid var(--glass-border);
    transition: all 0.3s ease;
}

.step-card::before {
    content: attr(data-step);
    position: absolute;
    right: 35px;
    top: 35px;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.step-card:hover {
    border-left-color: var(--secondary);
    background: rgba(255, 255, 255, 0.02);
}

.step-card:hover::before {
    color: var(--secondary-glow);
    transform: translateX(-10px);
}

.step-card h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

/* Responsividad */
@media (max-width: 992px) {
    .bento-grid { grid-template-columns: 1fr; }
    .p-large, .p-medium { grid-column: span 1; }
    .methodology-wrapper { grid-template-columns: 1fr; gap: 50px; }
    .methodology-info { position: static; }
}

/* --- ÉPICA 04: PORTAFOLIO BENTO --- */

.bento-portfolio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.project-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    min-height: 450px;
}

.project-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
}

.project-cat {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 2px;
}

.project-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-top: 10px;
    margin-bottom: 30px;
}

.detail-item {
    margin-bottom: 20px;
}

.detail-item label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.detail-item p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-main);
}

.text-highlight {
    color: var(--secondary) !important;
    font-weight: 600;
}

.project-tags {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.tag {
    font-size: 0.7rem;
    background: rgba(255,255,255,0.05);
    padding: 4px 10px;
    border-radius: 4px;
    color: var(--text-muted);
}

/* Placeholder Card Style */
.placeholder-card {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--glass-border);
    background: transparent;
}

.placeholder-content {
    text-align: center;
    color: var(--text-muted);
}

.placeholder-content i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.3;
}

.pulse-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

@media (max-width: 768px) {
    .project-card { min-height: auto; }
}

/* --- ÉPICA 05: TRAINING BENTO --- */

.bento-training {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.training-card {
    grid-column: span 6;
    padding: 45px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s ease;
    border: 1px solid var(--glass-border);
}

.workshop-card {
    grid-column: span 12; /* El Workshop ocupa todo el ancho por prioridad (HU-009) */
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-color: var(--primary-glow);
}

.ebook-card, .curso-card {
    grid-column: span 6;
}

.card-tag {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 15px;
}

.training-card h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 8px;
}

.training-card .subtitle {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 20px;
}

.training-card .description {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.outcomes-list {
    list-style: none;
    margin-bottom: 30px;
}

.outcomes-list li {
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}

.outcomes-list i {
    color: var(--accent);
}

.btn-training-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--text-main);
    color: var(--bg-main);
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}

.btn-training-cta:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.badge-status {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--glass-border);
}

/* Responsive Training */
@media (max-width: 992px) {
    .training-card, .workshop-card, .ebook-card, .curso-card {
        grid-column: span 12;
    }
}

/* CONTACT SECTION */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.contact-badges {
    display: flex; gap: 15px; margin-top: 30px;
}

.badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
}

/* TERMINAL FORM STYLE */
.contact-form-container {
    padding: 2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
}

.terminal-header {
    background: #111;
    padding: 10px 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-header .dots span {
    width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px;
}
.red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }
.terminal-header .title { font-family: 'Courier New', monospace; font-size: 0.7rem; color: #666; }

.terminal-form {
    background: #000;
    padding: 30px;
    border-radius: 0 0 10px 10px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }

.input-group { margin-bottom: 20px; }
.input-group label { display: block; font-size: 0.75rem; color: var(--primary); text-transform: uppercase; margin-bottom: 8px; letter-spacing: 1px; }

.input-group input, .input-group select, .input-group textarea {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid #333;
    padding: 12px;
    color: white;
    font-family: 'Inter', sans-serif;
    border-radius: 6px;
    transition: 0.3s;
}

.input-group input:focus, .input-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    outline: none;
}

/* CONSOLE ANIMATION */
#form-console {
    margin-top: 20px;
    background: #0a0a0a;
    padding: 15px;
    border-left: 3px solid var(--primary);
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
}

.console-line {
    color: #444;
    margin-bottom: 5px;
    overflow: hidden;
    white-space: nowrap;
    border-right: .15em solid var(--primary);
    animation: typing 2s steps(40, end), blink-caret .75s step-end infinite;
}

@keyframes typing { from { width: 0 } to { width: 100% } }
@keyframes blink-caret { from, to { border-color: transparent } 50% { border-color: var(--primary); } }

.success-msg { color: var(--accent) !important; font-weight: bold; }



/* ---  */
/* Bento Hero */
.hero-bento {
    display: grid;
    grid-template-columns: 1.5fr 0.5fr;
    gap: 20px;
    padding-top: 150px;
}

.bento-main, .bento-side {
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: var(--glass);
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}