/* ==========================================================================
   TRAVIA™ - NEON-TECH GLASSMORPHIC DESIGN SYSTEM
   ========================================================================== */

:root {
    /* Paleta de Colores Exclusiva Solicitada */
    --neon-cyan: #61FCFA;
    --neon-mint: #60FCC5;
    --neon-sky: #60CDFC;
    --neon-lime: #60FC90;
    --neon-blue: #609CFC;

    /* Base Temática Oscura Futuro-Corporativa */
    --color-bg-dark: #070D19;
    --color-bg-card: rgba(13, 24, 43, 0.65);
    --color-surface-glass: rgba(255, 255, 255, 0.04);
    
    --color-text-main: #F1F5F9;
    --color-text-muted: #94A3B8;
    
    --glass-border: rgba(97, 252, 250, 0.18);
    --glass-border-hover: rgba(96, 252, 197, 0.5);

    /* Tipografías */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'Fira Code', monospace;

    --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

/* Transiciones entre páginas */
.page-transition-enter {
    animation: fadeInSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.site-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
   PRELOADER CIRCULAR EXCLUSIVO PARA INDEX (0.5 SEGUNDOS)
   ========================================================================== */
#index-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-bg-dark);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.spinner-ring {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(97, 252, 250, 0.15);
    border-top: 4px solid var(--neon-cyan);
    border-right: 4px solid var(--neon-mint);
    border-radius: 50%;
    animation: spinCircle 0.5s linear infinite;
}

.preloader-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--neon-cyan);
}

@keyframes spinCircle {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   COMPLIANCE BANNER GOOGLE ADS
   ========================================================================== */
.ads-compliance-bar {
    background: rgba(7, 13, 25, 0.95);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.65rem 0;
    font-size: 0.78rem;
}

.flex-compliance {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.compliance-badge {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-mint));
    color: var(--color-bg-dark);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    white-space: nowrap;
}

.compliance-text {
    color: var(--color-text-muted);
}

/* ==========================================================================
   HEADER & NAVEGACIÓN FLOTANTE CON ANIMACIÓN ESCALONADA
   ========================================================================== */
.master-header {
    background: rgba(13, 24, 43, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 85px;
}

.brand-identity {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-symbol-glow {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(97, 252, 250, 0.4);
}

.brand-symbol {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-bg-dark);
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #FFF;
}

.brand-accent {
    color: var(--neon-cyan);
}

.brand-tagline {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: var(--neon-mint);
    display: block;
}

/* Navegación Escalonada (Staggered) con Rebote */
.staggered-menu {
    display: flex;
    gap: 1.75rem;
}

.nav-item {
    opacity: 0;
    transform: translateY(-10px);
    animation: staggerNav 0.5s ease forwards;
}

.nav-item:nth-child(1) { animation-delay: 0.1s; }
.nav-item:nth-child(2) { animation-delay: 0.2s; }
.nav-item:nth-child(3) { animation-delay: 0.3s; }
.nav-item:nth-child(4) { animation-delay: 0.4s; }
.nav-item:nth-child(5) { animation-delay: 0.5s; }

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

.nav-item a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    display: inline-block;
    transition: var(--transition-smooth);
}

.nav-item a:hover {
    color: var(--neon-cyan);
    transform: translateY(-4px) scale(1.08); /* Efección de brinco */
}

/* ==========================================================================
   BOTONES CON RETROALIMENTACIÓN DE CLIC (RIPPLE EFFECT)
   ========================================================================== */
.btn-architect {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.8rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
}

.btn-neon {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-mint));
    color: var(--color-bg-dark);
    box-shadow: 0 0 20px rgba(97, 252, 250, 0.3);
}

.btn-neon:hover {
    box-shadow: 0 0 30px rgba(96, 252, 197, 0.6);
    transform: translateY(-2px);
}

.btn-glass {
    background: var(--color-surface-glass);
    border: 1px solid var(--glass-border);
    color: var(--color-text-main);
}

.btn-glass:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.btn-full {
    width: 100%;
}

/* Efecto Ripple al Clic */
.ripple-btn .ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: rippleAnim 0.6s linear;
    background: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ==========================================================================
   TARJETAS GLASSMORPHIC CON BRILLO INTERACTIVO (GLASSMORPHIC TILE GLOW)
   ========================================================================== */
.glass-card {
    background: var(--color-bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.glow-tile::before {
    content: '';
    position: absolute;
    top: var(--mouse-y, -100px);
    left: var(--mouse-x, -100px);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(97, 252, 250, 0.25) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.glow-tile:hover::before {
    opacity: 1;
}

.glow-tile:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   SECCIONES Y NIVELES DE CONTENIDO
   ========================================================================== */
.section-meta-tag {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--neon-mint);
    margin-bottom: 1rem;
}

.meta-pulse {
    width: 8px;
    height: 8px;
    background-color: var(--neon-mint);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-mint);
    animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

/* HERO SECTION CON CANVAS ABSTRACTO */
.hero-tech-section {
    position: relative;
    padding: 7rem 0 5rem 0;
    overflow: hidden;
}

#abstract-bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.35;
    pointer-events: none;
}

.hero-tech-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-title-typing {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1.15;
    color: #FFF;
    margin-bottom: 1.5rem;
    min-height: 110px;
}

.typing-cursor {
    color: var(--neon-cyan);
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-lead-text {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.hero-action-row {
    display: flex;
    gap: 1.25rem;
}

.glass-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
}

.glass-card-header, .glass-card-footer {
    padding: 1.25rem;
}

.glass-card-header {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.72rem;
}

.card-chip { color: var(--neon-cyan); }
.card-status { color: var(--neon-lime); }

/* COMPLIANCE STATEMENT */
.compliance-statement-section { padding: 3rem 0; }
.statement-grid { padding: 2rem; display: flex; gap: 2rem; align-items: center; }
.statement-badge { background: rgba(96, 205, 252, 0.15); color: var(--neon-sky); padding: 0.5rem 1rem; border-radius: 6px; font-family: var(--font-mono); font-size: 0.75rem; white-space: nowrap; }

/* BENTO GRID */
.bento-pillars-section { padding: 5rem 0; }
.section-header-centered { text-align: center; max-width: 700px; margin: 0 auto 3.5rem auto; }
.section-header-centered h2 { font-family: var(--font-heading); font-size: 2.2rem; color: #FFF; }
.bento-grid-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; }
.bento-main { grid-row: span 2; padding: 2rem; }
.bento-main img { width: 100%; height: 320px; object-fit: cover; border-radius: 8px; margin-bottom: 1.5rem; }
.bento-sub { padding: 1.5rem; display: flex; gap: 1.5rem; align-items: center; }
.bento-sub img { width: 140px; height: 110px; object-fit: cover; border-radius: 8px; }
.bento-code { font-family: var(--font-mono); font-size: 0.7rem; color: var(--neon-cyan); }

/* METHODOLOGY FLOW */
.methodology-flow-section { padding: 5rem 0; background: rgba(255,255,255,0.01); }
.flow-cards-container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.flow-step { padding: 2rem; flex: 1; text-align: center; }
.step-num { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--neon-cyan); margin-bottom: 0.5rem; }
.flow-connector { width: 40px; height: 2px; background: var(--glass-border); }

/* COMPARISON TECH */
.comparison-tech-section { padding: 5rem 0; }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.risk-card-negative { padding: 2.5rem; border-left: 4px solid #EF4444; }
.risk-card-positive { padding: 2.5rem; border-left: 4px solid var(--neon-mint); }
.risk-list { list-style: none; margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.85rem; }

/* CIRCULAR EDITORIAL */
.circular-editorial-section { padding: 5rem 0; }
.circular-editorial-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 4rem; align-items: center; }
.editorial-image-holder { position: relative; }
.circular-mask-wrap { width: 340px; height: 340px; border-radius: 50%; overflow: hidden; border: 3px solid var(--neon-cyan); }
.circular-mask-wrap img { width: 100%; height: 100%; object-fit: cover; }
.floating-tech-badge { position: absolute; bottom: 10px; right: 10px; padding: 0.8rem 1.2rem; font-family: var(--font-mono); font-size: 0.7rem; color: var(--neon-cyan); }

/* MATRIX CARDS */
.quick-matrix-section { padding: 5rem 0; }
.matrix-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.matrix-card { padding: 2rem; }
.matrix-card h4 { font-family: var(--font-heading); color: var(--neon-sky); margin-bottom: 0.75rem; }

/* ANALYTICS COUNTER */
.analytics-counter-section { padding: 3rem 0; }
.analytics-wrapper { display: flex; justify-content: space-around; padding: 3rem 2rem; text-align: center; }
.stat-number { font-family: var(--font-heading); font-size: 3rem; font-weight: 700; color: var(--neon-cyan); }
.stat-plus { font-family: var(--font-mono); font-size: 1.2rem; color: var(--neon-mint); margin-left: 0.2rem; }
.stat-label { display: block; font-size: 0.8rem; color: var(--color-text-muted); margin-top: 0.5rem; }
.stat-divider { width: 1px; height: 60px; background: var(--glass-border); }

/* WORKSPACE FORM */
.workspace-section { padding: 5rem 0; }
.workspace-card { padding: 3.5rem; max-width: 850px; margin: 0 auto; }
.architect-form { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2rem; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.78rem; font-family: var(--font-mono); color: var(--neon-cyan); }
.form-group input, .form-group select, .form-group textarea {
    background: rgba(7, 13, 25, 0.8);
    border: 1px solid var(--glass-border);
    padding: 0.85rem 1rem;
    border-radius: 6px;
    color: #FFF;
    font-family: var(--font-body);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(97, 252, 250, 0.2);
}
.form-checkbox-compliance { font-size: 0.78rem; color: var(--color-text-muted); display: flex; gap: 0.5rem; }

/* FOOTER */
.master-footer { background: #03060D; border-top: 1px solid var(--glass-border); padding-top: 4rem; }
.footer-top-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 4rem; padding-bottom: 3rem; }
.footer-corporate-desc { font-size: 0.82rem; color: var(--color-text-muted); margin: 1rem 0; }
.corporate-rights { font-family: var(--font-mono); font-size: 0.7rem; color: var(--neon-cyan); }
.footer-links-col h4 { font-family: var(--font-heading); color: var(--neon-mint); margin-bottom: 1.2rem; }
.footer-links-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links-col a { font-size: 0.82rem; color: var(--color-text-muted); transition: var(--transition-smooth); }
.footer-links-col a:hover { color: var(--neon-cyan); }
.footer-bottom-compliance { background: #010307; padding: 1.75rem 0; }
.compliance-fine-print { font-size: 0.7rem; color: #475569; text-align: justify; }

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero-tech-grid, .bento-grid-layout, .comparison-grid, .circular-editorial-grid, .matrix-cards-grid, .footer-top-grid {
        grid-template-columns: 1fr;
    }
    .staggered-menu { display: none; }
    .flow-cards-container { flex-direction: column; }
    .flow-connector { width: 2px; height: 30px; }
}