/* ==========================================================================
   VIAXIO.ONLINE - MODERN MODERNIST GLASSMORPHIC SYSTEM
   Paleta: #ED9889 | #ED8A92 | #EDAA8A | #ED8ACE | #EDBB8A
   ========================================================================== */

:root {
    /* Paleta Solicitada */
    --c-peach: #ED9889;
    --c-rose: #ED8A92;
    --c-sand: #EDAA8A;
    --c-orchid: #ED8ACE;
    --c-warm-amber: #EDBB8A;

    /* Tonos Neutros de Sombra y Estructura Fondo */
    --c-bg-dark: #121013;
    --c-bg-surface: #1E1A20;
    --c-glass-bg: rgba(255, 255, 255, 0.05);
    --c-glass-border: rgba(237, 152, 137, 0.2);
    
    --c-text-main: #FDFBFB;
    --c-text-muted: #B8B0B8;
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'Space Mono', monospace;

    --transition-fast: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--c-bg-dark);
    color: var(--c-text-main);
    line-height: 1.7;
    overflow-x: hidden;
    opacity: 1;
    transition: opacity 0.4s ease;
}

body.page-transition-exit {
    opacity: 0;
}

.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* 0. INDEX PRELOADER (0.5 SEGUNDOS) */
#index-preloader {
    position: fixed;
    inset: 0;
    background-color: var(--c-bg-dark);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loader-circle {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(237, 138, 146, 0.2);
    border-top-color: var(--c-rose);
    border-radius: 50%;
    animation: spinLoader 0.5s linear infinite;
}

.loader-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: var(--c-peach);
}

@keyframes spinLoader {
    to { transform: rotate(360deg); }
}

/* 1. COMPLIANCE BANNER */
.disclaimer-top-bar {
    background: #0A090B;
    border-bottom: 1px solid rgba(237, 138, 146, 0.3);
    padding: 10px 0;
    font-size: 0.8rem;
}

.disclaimer-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.badge-notice {
    background: linear-gradient(135deg, var(--c-rose), var(--c-orchid));
    color: #FFF;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    padding: 3px 8px;
    font-weight: 700;
    border-radius: 4px;
}

.disclaimer-content p {
    color: var(--c-text-muted);
}

/* 2. HEADER Y NAVEGACIÓN CON ESCALONADO Y BOUNCE */
.site-header {
    background: rgba(18, 16, 19, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--c-glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.brand-logo .logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--c-peach), var(--c-orchid));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-logo .logo-subtext {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--c-text-muted);
}

.stagger-nav {
    display: flex;
    list-style: none;
    gap: 30px;
}

.stagger-nav li {
    animation: navStagger 0.6s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--nav-index) * 0.1s) both;
}

@keyframes navStagger {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

.stagger-nav a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--c-text-main);
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

/* Salto de los elementos al pasar el mouse */
.stagger-nav a:hover {
    transform: translateY(-6px) scale(1.08);
    color: var(--c-rose);
}

/* BOTONES RIPPLE Y PATRÓN ALTERNATIVO */
.btn {
    position: relative;
    overflow: hidden;
    padding: 12px 26px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 50px;
    cursor: pointer;
    display: inline-block;
    border: none;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(135deg, var(--c-peach), var(--c-rose));
    color: #FFF;
    box-shadow: 0 10px 20px rgba(237, 138, 146, 0.25);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--c-text-main);
    border: 1px solid var(--c-glass-border);
}

.btn:active {
    transform: scale(0.95);
}

.ripple-span {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: rippleAnim 0.6s linear;
    pointer-events: none;
}

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

/* TARJETAS GLASSMORPHIC Y EFFECTO GLOW TILE */
.glass-card {
    background: var(--c-glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--c-glass-border);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

.glow-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(237, 138, 206, 0.15), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

.glow-tile:hover {
    transform: translateY(-8px);
    border-color: var(--c-orchid);
}

/* 1. HERO ABSTRACT SECTION */
.hero-abstract-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-canvas-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-abstract-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    font-family: var(--font-mono);
    color: var(--c-sand);
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.hero-title-animated {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.1;
    margin: 15px 0 25px 0;
}

.text-gradient {
    background: linear-gradient(135deg, var(--c-peach), var(--c-orchid), var(--c-warm-amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--c-text-muted);
    margin-bottom: 35px;
}

.hero-cta-group {
    display: flex;
    gap: 20px;
}

.hero-card-floating {
    padding: 15px;
}

.hero-card-floating img {
    border-radius: 12px;
    height: 300px;
    width: 100%;
    object-fit: cover;
}

.card-glass-body {
    padding: 20px 10px 10px 10px;
}

.card-glass-body h3 {
    font-family: var(--font-heading);
    color: var(--c-peach);
    margin-bottom: 8px;
}

/* 2. BENTO GRID SECTION */
.bento-section { padding: 90px 0; }
.section-title-wrapper { margin-bottom: 50px; }
.section-title-wrapper.center { text-align: center; }

.section-title-wrapper h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    background: linear-gradient(135deg, #FFF, var(--c-sand));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title-wrapper p { color: var(--c-text-muted); }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.bento-card { padding: 30px; min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; }
.bento-large { grid-column: span 2; grid-row: span 2; min-height: 540px; position: relative; }
.bento-wide { grid-column: span 2; position: relative; }

.bento-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.35;
    transition: transform 0.5s ease;
}

.bento-card:hover img { transform: scale(1.05); }

.bento-overlay { position: relative; z-index: 1; }
.bento-inner { position: relative; z-index: 1; }

.bento-tag {
    font-family: var(--font-mono);
    color: var(--c-rose);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 10px;
}

.bento-card h3 { font-family: var(--font-heading); font-size: 1.4rem; margin-bottom: 10px; }
.bento-card p { font-size: 0.9rem; color: var(--c-text-muted); }

/* 3. TIMELINE SECTION */
.timeline-section { padding: 90px 0; background: var(--c-bg-surface); }
.timeline-wrapper { display: flex; flex-direction: column; gap: 30px; margin-top: 40px; }

.timeline-item {
    display: grid;
    grid-template-columns: 80px 1fr 250px;
    align-items: center;
    gap: 30px;
    padding: 30px;
}

.timeline-step {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--c-orchid);
}

.timeline-content h3 { font-family: var(--font-heading); font-size: 1.3rem; margin-bottom: 10px; }
.timeline-content p { color: var(--c-text-muted); font-size: 0.95rem; }
.timeline-image img { border-radius: 12px; height: 120px; width: 100%; object-fit: cover; }

/* 4. MITIGATION HUB */
.mitigation-hub-section { padding: 90px 0; }
.hub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }

.hub-text-side h2 { font-family: var(--font-heading); font-size: 2.3rem; margin-bottom: 20px; }
.hub-text-side p { color: var(--c-text-muted); margin-bottom: 25px; }

.badge-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
    background: rgba(237, 187, 138, 0.1);
    border: 1px solid var(--c-warm-amber);
    color: var(--c-warm-amber);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.hub-visual-side { padding: 15px; position: relative; }
.hub-visual-side img { border-radius: 15px; height: 380px; width: 100%; object-fit: cover; }

.hub-floating-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--c-bg-dark);
    border: 1px solid var(--c-orchid);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.stat-number { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 700; color: var(--c-orchid); }
.stat-text { display: block; font-size: 0.75rem; color: var(--c-text-muted); }
.margin-top { margin-top: 30px; }

/* 5. GEO MATRIX */
.geo-matrix-section { padding: 90px 0; background: var(--c-bg-surface); }
.diagonal-cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; }

.diag-card { min-height: 300px; display: flex; align-items: flex-end; padding: 40px; position: relative; }
.diag-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.25; transition: opacity 0.4s; }
.diag-card:hover .diag-bg { opacity: 0.45; }
.diag-content { position: relative; z-index: 1; }
.diag-content h3 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 10px; color: var(--c-sand); }
.diag-content p { color: var(--c-text-muted); font-size: 0.9rem; }

/* 6. CONSOLE SECTION */
.console-section { padding: 90px 0; }
.console-box { border-radius: 12px; overflow: hidden; border: 1px solid var(--c-glass-border); }
.console-header { background: rgba(0,0,0,0.5); padding: 12px 20px; display: flex; align-items: center; gap: 15px; }
.console-dots { display: flex; gap: 6px; }
.console-dots span { width: 10px; height: 10px; border-radius: 50%; background: #444; }
.console-dots span:nth-child(1) { background: #FF5F56; }
.console-dots span:nth-child(2) { background: #FFBD2E; }
.console-dots span:nth-child(3) { background: #27C93F; }

.console-title { font-family: var(--font-mono); font-size: 0.75rem; color: var(--c-text-muted); }
.console-body { padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.console-list { list-style: none; margin-top: 20px; font-family: var(--font-mono); font-size: 0.85rem; }
.console-list li { margin-bottom: 12px; color: var(--c-text-muted); }
.c-check { color: #27C93F; margin-right: 8px; }
.console-column.visual img { border-radius: 8px; }

/* 7. COMPLEX CASES FLEX */
.complex-cases-section { padding: 90px 0; background: var(--c-bg-surface); }
.cases-flex-container { display: flex; gap: 25px; margin-top: 40px; }
.case-card { flex: 1; padding: 35px; display: flex; flex-direction: column; justify-content: space-between; }
.case-number { font-family: var(--font-mono); font-size: 0.75rem; color: var(--c-rose); margin-bottom: 15px; }
.case-card h3 { font-family: var(--font-heading); font-size: 1.25rem; margin-bottom: 15px; }
.case-card p { font-size: 0.88rem; color: var(--c-text-muted); margin-bottom: 25px; }
.case-link { font-family: var(--font-mono); font-size: 0.8rem; color: var(--c-peach); font-weight: 700; }

/* 8. PARALLAX SECTION */
.normative-parallax-section { position: relative; padding: 120px 0; overflow: hidden; }
.parallax-bg { position: absolute; inset: 0; background-size: cover; background-attachment: fixed; background-position: center; filter: grayscale(80%); }
.parallax-overlay { position: absolute; inset: 0; background: rgba(18, 16, 19, 0.85); }
.relative-z { position: relative; z-index: 1; }

.parallax-content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.parallax-text h2 { font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 20px; }
.parallax-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.p-stat-box { padding: 30px; text-align: center; }
.p-number { font-family: var(--font-heading); font-size: 2.8rem; font-weight: 700; color: var(--c-peach); }
.p-label { display: block; font-size: 0.8rem; color: var(--c-text-muted); margin-top: 5px; }

/* FOOTER */
.site-footer { background: #0A090B; padding: 80px 0 30px 0; border-top: 1px solid var(--c-glass-border); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; margin-bottom: 50px; }
.footer-col h4 { font-family: var(--font-heading); color: #FFF; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: var(--c-text-muted); font-size: 0.9rem; }
.footer-col ul a:hover { color: var(--c-peach); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 30px; font-size: 0.78rem; color: #666; }

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero-abstract-grid, .hub-grid, .diagonal-cards-grid, .console-body, .cases-flex-container, .parallax-content-grid, .footer-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-large, .bento-wide { grid-column: span 1; grid-row: span 1; min-height: 300px; }
    .timeline-item { grid-template-columns: 1fr; }
    .header-inner { flex-direction: column; height: auto; padding: 20px 0; gap: 15px; }
    .stagger-nav { flex-wrap: wrap; justify-content: center; }
}