/* ==========================================================================
   NEXUSGLOBAL ADVISORY - NUEVA ARQUITECTURA RADICAL & DISEÑO VANGUARDISTA
   Paleta: #FFB5A7 (Coral), #a7f0ff / #d3f7ff (Cian), #ffffff (Blanco), #070913 (Fondo)
   ========================================================================== */

:root {
    --bg-deep: #070913;
    --bg-surface: #0d1224;
    --bg-card: rgba(13, 18, 36, 0.65);
    --coral: #FFB5A7;
    --cyan: #a7f0ff;
    --cyan-light: #d3f7ff;
    --white: #ffffff;
    --muted: #8a99ad;
    --border-glass: rgba(167, 240, 255, 0.18);
    --glow-cyan: rgba(167, 240, 255, 0.12);
    --ease-fluid: cubic-bezier(0.25, 1, 0.5, 1);
}

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

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

body {
    background-color: var(--bg-deep);
    color: var(--white);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

body.loaded {
    opacity: 1;
}

/* LOADER EXCLUSIVO DE 0.5 SEGUNDOS PARA EL INDEX */
#page-loader {
    position: fixed;
    inset: 0;
    background-color: var(--bg-deep);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.spinner-circle {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(167, 240, 255, 0.1);
    border-top: 3px solid var(--cyan);
    border-radius: 50%;
    animation: spinLoader 0.6s linear infinite;
}

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

/* BANNER SUPERIOR DISCRETIZADO */
.top-notice-bar {
    background: linear-gradient(90deg, #0d1224, #131b35);
    border-bottom: 1px solid var(--border-glass);
    padding: 10px 24px;
    font-size: 0.8rem;
    text-align: center;
    position: relative;
    z-index: 1000;
}

.notice-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.notice-tag {
    background-color: var(--coral);
    color: #070913;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.68rem;
    letter-spacing: 1px;
}

.notice-inner p {
    color: var(--cyan-light);
}

/* HEADER VANGUARDISTA CON NAV ESCALONADO */
.nexus-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: rgba(7, 9, 19, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-block {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--white);
}

.logo-subtitle {
    font-size: 0.6rem;
    letter-spacing: 3px;
    color: var(--cyan);
    font-weight: 700;
}

.nav-links-list {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-item {
    opacity: 0;
    transform: translateY(-12px);
    animation: navEntrance 0.5s var(--ease-fluid) forwards;
}

.nav-item:nth-child(1) { animation-delay: 0.08s; }
.nav-item:nth-child(2) { animation-delay: 0.16s; }
.nav-item:nth-child(3) { animation-delay: 0.24s; }
.nav-item:nth-child(4) { animation-delay: 0.32s; }

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

.nav-links-list a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    display: inline-block;
    transition: var(--ease-fluid);
}

.nav-links-list a:hover,
.nav-links-list a.active {
    color: var(--cyan);
    transform: translateY(-3px) scale(1.04);
}

/* BOTONES CON RETROALIMENTACIÓN DE CLIC Y PULSO */
.btn-core {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--cyan), var(--cyan-light));
    color: #070913;
    padding: 13px 26px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    border: none;
    transition: var(--ease-fluid);
    box-shadow: 0 8px 20px rgba(167, 240, 255, 0.15);
}

.btn-core:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(167, 240, 255, 0.3);
}

.btn-core.clicked {
    animation: clickPulseAnim 0.35s ease;
}

@keyframes clickPulseAnim {
    0% { transform: scale(1); }
    50% { transform: scale(0.93); filter: brightness(1.25); }
    100% { transform: scale(1); }
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--border-glass);
    padding: 11px 24px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: var(--ease-fluid);
}

.btn-outline:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    transform: translateY(-2px);
}

/* HERO RADICAL CON DISEÑO ABSTRACTO Y TÍTULO ANIMADO */
.hero-radical {
    padding: 100px 40px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.abstract-bg-mesh {
    position: absolute;
    top: 0;
    right: 5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(167, 240, 255, 0.1) 0%, rgba(255, 181, 167, 0.06) 45%, transparent 70%);
    border-radius: 50%;
    filter: blur(70px);
    z-index: 0;
    animation: meshDrift 10s ease-in-out infinite alternate;
}

@keyframes meshDrift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-30px, 40px) scale(1.12); }
}

.hero-grid-split {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 50px;
    align-items: center;
}

.badge-pill-micro {
    display: inline-block;
    background: rgba(255, 181, 167, 0.12);
    color: var(--coral);
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 181, 167, 0.25);
}

.hero-title-glitch {
    font-size: 3.6rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 22px;
}

.hero-title-glitch span {
    background: linear-gradient(135deg, var(--white) 20%, var(--cyan) 70%, var(--coral) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* MOSAICO GLASSMORPHIC CON BRILLO HOVER */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(18px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: var(--ease-fluid);
}

.glass-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(167, 240, 255, 0.16) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    transform: translate(-30%, -30%);
}

.glass-card:hover {
    transform: translateY(-6px);
    border-color: var(--cyan);
    box-shadow: 0 20px 40px var(--glow-cyan);
}

.glass-card:hover::after {
    opacity: 1;
    transform: translate(10%, 10%);
}

.hero-media-box img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   7 u 8 SECCIONES NUEVAS CON ARQUITECTURA COMPLETAMENTE DIFERENTE Y ÚNICA
   ========================================================================== */

/* SECCIÓN 1: Layout en Z-Zigzag Diagonal con Imágenes Inmersivas */
.sec-zigzag {
    padding: 100px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.zigzag-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

.zigzag-row:nth-child(even) {
    direction: rtl;
}

.zigzag-row:nth-child(even) > * {
    direction: ltr;
}

.zigzag-content h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.zigzag-content p {
    color: var(--muted);
    margin-bottom: 20px;
}

.zigzag-img img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--border-glass);
}

/* SECCIÓN 2: Malla Circular de Enfoque Biográfico */
.sec-radial-grid {
    padding: 100px 40px;
    background: linear-gradient(180deg, transparent, rgba(13, 18, 36, 0.6), transparent);
}

.radial-container {
    max-width: 1400px;
    margin: 0 auto;
}

.radial-header-text {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 50px auto;
}

.radial-header-text h2 {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.radial-cards-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.radial-card-item {
    padding: 35px;
    border-radius: 24px;
    text-align: center;
}

.radial-card-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    border: 2px solid var(--cyan);
}

/* SECCIÓN 3: Tarjetas de Flujo Horizontal con Línea de Conexión Cromática */
.sec-flow-timeline {
    padding: 100px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.timeline-flex {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.timeline-step-card {
    padding: 35px;
    position: relative;
}

.timeline-step-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

.step-number-tag {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--cyan);
    opacity: 0.3;
    display: block;
    margin-bottom: 5px;
}

/* SECCIÓN 4: Cuadrícula Asimétrica 70/30 de Datos Maestros */
.sec-asym-split {
    padding: 100px 40px;
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.asym-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 40px;
    align-items: center;
}

.asym-big-media img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 18px;
}

.asym-bullet-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.asym-bullet-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.asym-bullet-item span {
    color: var(--coral);
    font-weight: 900;
    font-size: 1.2rem;
}

/* SECCIÓN 5: Tarjetas Modulares Escalonadas en Cascada */
.sec-cascade-cards {
    padding: 100px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.cascade-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cascade-card-unit {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cascade-card-unit img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 15px;
}

/* SECCIÓN 6: Tarjeta Editorial de Gran Formato con Bloques Divididos */
.sec-editorial-hero {
    padding: 100px 40px;
    background: radial-gradient(circle at center, rgba(167, 240, 255, 0.04), transparent 80%);
}

.editorial-box-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.editorial-box-wrap img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 16px;
}

/* SECCIÓN 7: Matriz de Verificación de Datos en Bloques Compactos */
.sec-matrix-mosaic {
    padding: 100px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.matrix-mosaic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.matrix-mosaic-box {
    padding: 35px;
}

.matrix-mosaic-box img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* SECCIÓN 8: Bloque de Cierre Dinámico e Interactivo */
.sec-grand-final {
    padding: 80px 40px 120px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.final-cta-card {
    background: linear-gradient(135deg, rgba(13, 18, 36, 0.95), rgba(20, 28, 52, 0.95));
    border: 1px solid var(--cyan);
    border-radius: 28px;
    padding: 70px;
    text-align: center;
}

.final-cta-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 16px;
    margin: 25px 0;
    opacity: 0.9;
}

/* FOOTER */
.nexus-footer {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-glass);
    padding: 70px 40px 30px 40px;
}

.footer-grid-layout {
    max-width: 1400px;
    margin: 0 auto 50px auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
}

.footer-brand .logo-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    display: block;
}

.footer-desc {
    color: var(--muted);
    font-size: 0.92rem;
    max-width: 380px;
}

.footer-links-col h4 {
    font-size: 0.95rem;
    color: var(--white);
    margin-bottom: 18px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-links-col ul {
    list-style: none;
}

.footer-links-col li {
    margin-bottom: 10px;
}

.footer-links-col a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: var(--ease-fluid);
}

.footer-links-col a:hover {
    color: var(--cyan);
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 25px;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-copyright p {
    color: var(--muted);
    font-size: 0.82rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-grid-split,
    .zigzag-row,
    .radial-cards-wrap,
    .timeline-flex,
    .asym-container,
    .cascade-grid,
    .editorial-box-wrap,
    .matrix-mosaic-grid,
    .footer-grid-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .hero-title-glitch {
        font-size: 2.7rem;
    }
}