/* =========================================================================
   SISTEMA DE DISEÑO EDITORIAL PREMIUM — JUNIOR NAVA PORTFOLIO
   Art Direction: Editorial Tech / Dual-Tone Balance (50% Claro / 50% Oscuro)
   Tipografía: Plus Jakarta Sans + Inter + JetBrains Mono
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

/* =========================================================================
   1. VARIABLES DE DISEÑO & DESIGN TOKENS
   ========================================================================= */
:root {
    /* Identidad & Acentos Principales */
    --accent-primary: #6366F1;       /* Indigo 500 */
    --accent-primary-hover: #4F46E5; /* Indigo 600 */
    --accent-secondary: #8B5CF6;     /* Purple 500 */
    --accent-cyan: #06B6D4;          /* Cyan 500 */
    --accent-emerald: #10B981;       /* Emerald 500 */
    --accent-amber: #F59E0B;         /* Amber 500 */

    --accent-primary-rgb: 99, 102, 241;
    --accent-secondary-rgb: 139, 92, 246;
    --accent-cyan-rgb: 6, 182, 212;
    --accent-emerald-rgb: 16, 185, 129;

    /* Superficies Oscuras (Hero, Proyectos, Footer) */
    --bg-dark-primary: #070913;
    --bg-dark-secondary: #0D1224;
    --bg-dark-card: rgba(17, 24, 48, 0.75);
    --bg-dark-card-hover: rgba(24, 34, 68, 0.9);
    --border-dark: rgba(255, 255, 255, 0.08);
    --border-dark-hover: rgba(99, 102, 241, 0.4);
    --text-dark-primary: #FFFFFF;
    --text-dark-secondary: #CBD5E1;
    --text-dark-muted: #94A3B8;

    /* Superficies Claras (Sobre Mí, Habilidades, Trayectoria) */
    --bg-light-primary: #F8FAFC;
    --bg-light-secondary: #F1F5F9;
    --bg-light-card: #FFFFFF;
    --bg-light-card-hover: #FFFFFF;
    --border-light: #E2E8F0;
    --border-light-hover: rgba(99, 102, 241, 0.35);
    --text-light-primary: #0F172A;
    --text-light-secondary: #334155;
    --text-light-muted: #64748B;

    /* Gradientes de Marca */
    --gradient-brand: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    --gradient-brand-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.25) 100%);
    --gradient-dark-card: linear-gradient(180deg, rgba(20, 29, 58, 0.6) 0%, rgba(11, 16, 33, 0.8) 100%);
    --gradient-light-card: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);

    /* Radios y Espaciado */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Sombras Premium */
    --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-light-card: 0 10px 30px -10px rgba(0, 0, 0, 0.06), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
    --shadow-light-card-hover: 0 20px 40px -12px rgba(99, 102, 241, 0.12), 0 8px 16px -4px rgba(0, 0, 0, 0.04);
    --shadow-dark-card: 0 12px 36px -8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    --shadow-dark-card-hover: 0 20px 50px -10px rgba(99, 102, 241, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    --shadow-glow-indigo: 0 0 40px rgba(99, 102, 241, 0.35);

    /* Transiciones */
    --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =========================================================================
   2. RESET & ESTILOS BASE
   ========================================================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark-primary);
    color: var(--text-dark-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .font-display {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.025em;
    font-weight: 700;
}

code, pre, .font-mono {
    font-family: 'JetBrains Mono', monospace;
}

::selection {
    background: rgba(99, 102, 241, 0.3);
    color: #FFFFFF;
}

/* Scrollbar Personalizada */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.35);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* =========================================================================
   3. SECCIONES CLARAS & OSCURAS (BALANCE 50/50)
   ========================================================================= */
.section-dark {
    background-color: var(--bg-dark-primary);
    color: var(--text-dark-primary);
    position: relative;
    overflow: hidden;
}

.section-dark-alt {
    background-color: var(--bg-dark-secondary);
    color: var(--text-dark-primary);
    position: relative;
    overflow: hidden;
}

.section-light {
    background-color: var(--bg-light-primary);
    color: var(--text-light-primary);
    position: relative;
    overflow: hidden;
}

.section-light-white {
    background-color: #FFFFFF;
    color: var(--text-light-primary);
    position: relative;
    overflow: hidden;
}

/* =========================================================================
   4. TIPOGRAFÍA EDITORIAL & JERARQUÍA
   ========================================================================= */
.editorial-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all var(--transition-smooth);
}

.editorial-badge-dark {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #A5B4FC;
}

.editorial-badge-light {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.22);
    color: #4F46E5;
}

.section-title-dark {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    line-height: 1.15;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.03em;
}

.section-title-light {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    line-height: 1.15;
    font-weight: 800;
    color: var(--text-light-primary);
    letter-spacing: -0.03em;
}

.section-subtitle-dark {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-dark-muted);
    max-width: 680px;
    line-height: 1.7;
}

.section-subtitle-light {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-light-secondary);
    max-width: 680px;
    line-height: 1.7;
}

/* =========================================================================
   5. NAVBAR MODERNA & MINIMALISTA
   ========================================================================= */
.navbar-glass {
    background: rgba(7, 9, 19, 0.82);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all var(--transition-smooth);
}

.navbar-glass.scrolled {
    background: rgba(7, 9, 19, 0.96);
    border-bottom-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-item-link {
    color: #94A3B8;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
    text-decoration: none;
}

.nav-item-link:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.05);
}

.nav-item-link.active {
    color: #FFFFFF;
    font-weight: 600;
}

.nav-item-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--accent-primary);
    border-radius: var(--radius-full);
}

/* =========================================================================
   6. BOTONES PREMIUM & ACCIONES
   ========================================================================= */
.btn-primary-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    color: #FFFFFF !important;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 13px 26px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
    transition: all var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
}

.btn-primary-brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.55);
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: #FFFFFF;
}

.btn-secondary-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: #E2E8F0 !important;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 13px 24px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all var(--transition-smooth);
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
}

.btn-secondary-dark:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(99, 102, 241, 0.4);
    color: #FFFFFF !important;
    transform: translateY(-2px);
}

.btn-secondary-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #FFFFFF;
    color: var(--text-light-primary) !important;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 13px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-subtle);
    transition: all var(--transition-smooth);
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
}

.btn-secondary-light:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary) !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.12);
    transform: translateY(-2px);
}

/* =========================================================================
   7. HERO SECTION (EDITORIAL + FONDO ANIMADO + AVATAR FUSION MINIMALISTA)
   ========================================================================= */
.hero-editorial-grid {
    position: relative;
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    background-color: var(--bg-dark-primary);
}

/* Rejilla Tecnológica Animada */
.hero-animated-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(99, 102, 241, 0.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(99, 102, 241, 0.07) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 50% 45%, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 45%, black 40%, transparent 80%);
    pointer-events: none;
    z-index: 1;
    animation: gridDrift 28s linear infinite;
}

@keyframes gridDrift {
    0% { background-position: 0 0; }
    100% { background-position: 56px 56px; }
}

/* Canvas de Partículas Interactivas */
.hero-particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    opacity: 0.75;
}

/* Glowing Orbs de Fondo con Animación Flotante */
.hero-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 1;
}

.hero-gradient-orb-1 {
    top: 5%;
    right: 8%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.32) 0%, rgba(139, 92, 246, 0.18) 50%, transparent 70%);
    animation: floatOrb1 12s ease-in-out infinite alternate;
}

.hero-gradient-orb-2 {
    bottom: 5%;
    left: 5%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.22) 0%, rgba(99, 102, 241, 0.15) 50%, transparent 70%);
    animation: floatOrb2 14s ease-in-out infinite alternate;
}

.hero-gradient-orb-3 {
    top: 35%;
    left: 42%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.22) 0%, transparent 70%);
    animation: floatOrb1 16s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -40px) scale(1.08); }
    100% { transform: translate(-20px, 30px) scale(0.95); }
}

@keyframes floatOrb2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 35px) scale(1.1); }
    100% { transform: translate(25px, -25px) scale(0.92); }
}

.hero-main-title {
    font-size: clamp(2.8rem, 6.5vw, 5.2rem);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -0.035em;
    color: #FFFFFF;
}

.hero-name-gradient {
    background: linear-gradient(135deg, #FFFFFF 0%, #A5B4FC 45%, #C084FC 80%, #67E8F9 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShineFlow 6s linear infinite;
}

@keyframes textShineFlow {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

.hero-role-lead {
    font-size: clamp(1.25rem, 2.8vw, 1.75rem);
    font-weight: 600;
    color: #E2E8F0;
    line-height: 1.35;
    letter-spacing: -0.015em;
}

/* =========================================================================
   AVATAR FUSION — SILUETA ELEGANTE SIN ELEMENTOS FLOTANTES
   ========================================================================= */
.hero-avatar-fusion-wrap {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Aura de Iluminación Ambiental */
.hero-avatar-ambient-glow {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, rgba(139, 92, 246, 0.22) 38%, rgba(6, 182, 212, 0.1) 62%, transparent 75%);
    filter: blur(60px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    animation: pulseAura 5s ease-in-out infinite alternate;
}

@keyframes pulseAura {
    0% { transform: translate(-50%, -50%) scale(0.92); opacity: 0.7; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

/* Contenedor del Avatar Fundido */
.hero-avatar-fusion-container {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-avatar-cutout {
    width: 100%;
    max-height: 560px;
    object-fit: contain;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, rgba(0,0,0,0.85) 75%, rgba(0,0,0,0) 98%);
    mask-image: linear-gradient(to bottom, #000 55%, rgba(0,0,0,0.85) 75%, rgba(0,0,0,0) 98%);
    filter: drop-shadow(0 0 35px rgba(99, 102, 241, 0.25));
    transition: transform var(--transition-spring);
}

/* =========================================================================
   8. TECH TICKER (MARQUEE)
   ========================================================================= */
.tech-marquee-wrapper {
    padding: 26px 0;
    background: #0B0E1E;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-marquee-window {
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.tech-marquee-label {
    /* Styles handled by Tailwind in HTML */
}

.tech-marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: marqueeScroll 35s linear infinite;
}

.tech-marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.tech-pill-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    padding: 9px 18px;
    color: #CBD5E1;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.tech-pill-item:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.35);
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* =========================================================================
   9. SOBRE MÍ & MÉTRICAS (SUPERFICIE CLARA / EDITORIAL)
   ========================================================================= */
.light-metric-card {
    background: var(--bg-light-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    box-shadow: var(--shadow-light-card);
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.light-metric-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-light-card-hover);
    border-color: var(--accent-primary);
}

.metric-number-display {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #1E1B4B 0%, #4338CA 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

/* =========================================================================
   10. HABILIDADES — 4 PILARES ESTRATÉGICOS
   ========================================================================= */
.skill-pillar-card {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    box-shadow: var(--shadow-light-card);
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.skill-pillar-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.skill-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #F1F5F9;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    border: 1px solid #E2E8F0;
    transition: all var(--transition-fast);
}

.skill-tag-pill:hover {
    background: #EEF2FF;
    color: #4F46E5;
    border-color: #C7D2FE;
}

/* =========================================================================
   11. PROYECTOS / SELECTED WORK (CASE STUDIES DE ALTO IMPACTO)
   ========================================================================= */
/* Featured Dominant Case Study */
.featured-case-study {
    background: linear-gradient(180deg, rgba(20, 28, 56, 0.95) 0%, rgba(11, 16, 34, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-2xl);
    padding: 44px;
    box-shadow: var(--shadow-dark-card);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.featured-case-study:hover {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: var(--shadow-dark-card-hover);
}

/* Browser Mockup Window */
.browser-mockup-frame {
    background: #080C1A;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.browser-header-bar {
    background: rgba(255, 255, 255, 0.04);
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.browser-dots-group {
    display: flex;
    gap: 6px;
}

.browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.browser-url-pill {
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-full);
    padding: 3px 14px;
    font-size: 0.72rem;
    font-family: 'JetBrains Mono', monospace;
    color: #94A3B8;
}

/* Grid de Proyectos Secundarios */
.project-card-dark {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--transition-smooth);
    position: relative;
}

.project-card-dark:hover {
    transform: translateY(-5px);
    background: var(--bg-dark-card-hover);
    border-color: var(--border-dark-hover);
    box-shadow: var(--shadow-dark-card-hover);
}

/* Filter Tab Pills */
.filter-tab-pill {
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: 1px solid transparent;
}

.filter-tab-pill.active {
    background: #6366F1;
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.filter-tab-pill:not(.active) {
    background: rgba(255, 255, 255, 0.04);
    color: #94A3B8;
    border-color: rgba(255, 255, 255, 0.08);
}

.filter-tab-pill:not(.active):hover {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
}

/* =========================================================================
   12. TRAYECTORIA (TIMELINE MODERNA DUAL)
   ========================================================================= */
.timeline-track-container {
    position: relative;
    padding-left: 28px;
}

.timeline-track-container::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 12px;
    bottom: 0;
    width: 2px;
    background: #CBD5E1;
}

.timeline-item-card {
    position: relative;
    margin-bottom: 32px;
}

.timeline-item-card:last-child {
    margin-bottom: 0;
}

.timeline-item-node {
    position: absolute;
    left: -28px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 3px solid var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    z-index: 2;
}

.timeline-content-box {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-light-card);
    transition: all var(--transition-smooth);
}

.timeline-content-box:hover {
    border-color: var(--accent-primary);
    transform: translateX(4px);
    box-shadow: var(--shadow-light-card-hover);
}

/* =========================================================================
   13. CONTACTO & FOOTER (CONVERSIÓN DE ALTO IMPACTO)
   ========================================================================= */
.contact-hero-card {
    background: linear-gradient(135deg, rgba(26, 35, 68, 0.8) 0%, rgba(13, 17, 34, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-2xl);
    padding: 56px 44px;
    box-shadow: var(--shadow-dark-card);
    position: relative;
    overflow: hidden;
}

.contact-action-btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #10B981;
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.35);
    transition: all var(--transition-smooth);
    cursor: pointer;
    text-decoration: none;
}

.contact-action-btn-whatsapp:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.5);
}

.social-pill-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #CBD5E1;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.social-pill-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--accent-primary);
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* =========================================================================
   14. ANIMACIONES SCROLL REVEAL
   ========================================================================= */
.reveal-fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade-up.active-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================================
   15. CMS MODAL & DRAWER STYLES
   ========================================================================= */
.admin-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(14px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-drawer-container {
    background: #0B0F1E;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-2xl);
    width: 100%;
    max-width: 960px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8);
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 110;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-item {
    background: #0F172A;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
    font-weight: 500;
    pointer-events: auto;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* =========================================================================
   16. RESPONSIVE BREAKPOINTS (1440px, 1200px, 768px, 390px)
   ========================================================================= */
@media (max-width: 1024px) {
    .featured-case-study {
        padding: 32px 24px;
    }
    .contact-hero-card {
        padding: 40px 28px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    .hero-editorial-grid {
        min-height: auto;
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .hero-avatar-frame {
        max-width: 320px;
        margin-top: 30px;
    }
    .featured-case-study {
        padding: 24px 18px;
    }
    .status-pill-floating {
        position: static;
        margin-top: 14px;
    }
    .hero-floating-badge {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .section-title-dark,
    .section-title-light {
        font-size: 2rem;
    }
    .hero-main-title {
        font-size: 2.5rem;
    }
}
