/* ==========================================================================
   NEXOVISA GLOBAL ADVISORY - DISEÑO ULTRA MODERNO Y VARIADO (/css/site.css)
   ========================================================================== */

:root {
    --nx-dark: #1f1f20;
    --nx-blue-deep: #2b4c7e;
    --nx-blue-light: #567ebb;
    --nx-slate: #606d80;
    --nx-bg-soft: #dce0e6;
    --nx-white: #ffffff;
    --nx-font-heading: 'Outfit', sans-serif;
    --nx-font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--nx-font-body);
    background-color: var(--nx-bg-soft);
    color: var(--nx-dark);
    line-height: 1.7;
    font-size: 1rem;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

body.loaded {
    opacity: 1;
}

/* Pantalla de carga inicial exclusiva para index.html (.loader-screen) */
.loader-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--nx-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.4s ease;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(220, 224, 230, 0.2);
    border-top: 5px solid var(--nx-blue-light);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Aviso Legal Superior Google Ads */
.top-disclaimer {
    background-color: var(--nx-dark);
    color: var(--nx-white);
    font-size: 0.82rem;
    text-align: center;
    padding: 0.65rem 1rem;
    border-bottom: 2px solid var(--nx-blue-light);
    letter-spacing: 0.02em;
    font-weight: 500;
}

.top-disclaimer span {
    color: var(--nx-blue-light);
    font-weight: 700;
}

/* Navegación Fija con Animaciones Escalonadas */
header {
    background: var(--nx-white);
    border-bottom: 1px solid rgba(96, 109, 128, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(31, 31, 32, 0.05);
}

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

.brand-logo {
    font-family: var(--nx-font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--nx-dark);
    text-decoration: none;
    letter-spacing: -0.03em;
}

.brand-logo span {
    color: var(--nx-blue-deep);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Animación de lista escalonada y brinco al pasar mouse */
.nav-links li {
    opacity: 0;
    transform: translateY(-15px);
    animation: slideInNav 0.5s forwards ease;
}

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

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

.nav-links a {
    text-decoration: none;
    color: var(--nx-slate);
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.25s ease;
}

.nav-links a:hover {
    color: var(--nx-blue-deep);
    transform: translateY(-5px);
}

.cta-nav {
    background: var(--nx-blue-deep) !important;
    color: var(--nx-white) !important;
    padding: 0.65rem 1.35rem;
    border-radius: 6px;
    font-weight: 600 !important;
    transition: background 0.25s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.cta-nav:hover {
    background: var(--nx-blue-light) !important;
    transform: translateY(-5px) !important;
}

/* Hero con imagen de fondo, ancho total y bucle de deformación de texto */
.hero-full-width {
    width: 100vw;
    min-height: 85vh;
    background: linear-gradient(rgba(31, 31, 32, 0.85), rgba(43, 76, 126, 0.85)), url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1rem;
    position: relative;
    overflow: hidden;
}

.hero-content-box {
    max-width: 1100px;
    color: var(--nx-white);
}

.animated-title {
    font-family: var(--nx-font-heading);
    font-size: clamp(2.5rem, 5vw, 4.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    animation: textDeformLoop 6s ease-in-out infinite;
}

.animated-title span {
    color: var(--nx-blue-light);
}

@keyframes textDeformLoop {
    0%, 100% {
        transform: scale(1) skew(0deg);
        letter-spacing: -0.02em;
    }
    50% {
        transform: scale(1.02) skew(-1deg);
        letter-spacing: 0.01em;
    }
}

.hero-content-box p {
    font-size: 1.2rem;
    color: #dce0e6;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Botones con retroalimentación por clic y patrón alternante */
.btn-modern {
    background: var(--nx-blue-light);
    color: var(--nx-dark);
    padding: 0.95rem 2.2rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: background 0.25s ease, transform 0.1s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 25px rgba(86, 126, 187, 0.3);
}

.btn-modern.alt-pattern {
    background: var(--nx-blue-deep);
    color: var(--nx-white);
    box-shadow: 0 10px 25px rgba(43, 76, 126, 0.3);
}

.btn-modern:active {
    transform: scale(0.95) translateY(2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-outline-modern {
    background: transparent;
    color: var(--nx-white);
    border: 2px solid var(--nx-blue-light);
    padding: 0.95rem 2.2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-block;
    transition: all 0.25s ease;
}

.btn-outline-modern:active {
    transform: scale(0.95);
    background: rgba(86, 126, 187, 0.2);
}

/* Contenedor General de Secciones Dinámicas */
.dynamic-sections-wrapper {
    max-width: 1400px;
    margin: 5rem auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

/* Tarjetas con Brillo Glassmorphic */
.glass-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(31, 31, 32, 0.06);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 60%);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(43, 76, 126, 0.12);
}

.glass-card:hover::before {
    opacity: 1;
    transform: scale(1);
}

.glass-card h2 {
    font-family: var(--nx-font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--nx-dark);
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.glass-card p {
    color: var(--nx-slate);
    margin-bottom: 1rem;
    font-size: 1.02rem;
}

/* ==========================================================================
   DISEÑOS ÚNICOS PARA CADA UNA DE LAS 7 SECCIONES (NO REPETITIVOS)
   ========================================================================== */

/* Estilo 1: Split Tradicional Amplio con Imagen Dinámica */
.section-style-one {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}
.section-style-one .image-box img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(31, 31, 32, 0.1);
}

/* Estilo 2: Tarjeta Central con Fondo Fotográfico de Parallax / Banner Absoluto */
.section-style-two {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    padding: 4rem;
    background: linear-gradient(rgba(31, 31, 32, 0.75), rgba(43, 76, 126, 0.85)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
}
.section-style-two .glass-card {
    background: rgba(31, 31, 32, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--nx-white);
    max-width: 650px;
}
.section-style-two .glass-card h2, .section-style-two .glass-card p {
    color: var(--nx-white);
}

/* Estilo 3: Layout de Revista con Imagen Circular/Flotante Integrada Superior */
.section-style-three {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 3rem;
    align-items: center;
}
.section-style-three .image-box {
    position: relative;
    height: 400px;
    border-radius: 200px 20px 200px 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(43, 76, 126, 0.2);
}
.section-style-three .image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Estilo 4: Tarjeta Modular en Tríptico / Doble Columna con Imagen Destacada Inferior */
.section-style-four {
    background: var(--nx-white);
    border-radius: 24px;
    padding: 4rem;
    box-shadow: 0 15px 35px rgba(31, 31, 32, 0.05);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.section-style-four .image-box img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 16px;
}

/* Estilo 5: Estructura Asimétrica de Bloque Desplazado con Sombra de Acento */
.section-style-five {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
    align-items: center;
}
.section-style-five .image-box {
    position: relative;
}
.section-style-five .image-box::before {
    content: '';
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    background: var(--nx-blue-light);
    border-radius: 20px;
    z-index: -1;
}
.section-style-five .image-box img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 20px;
}

/* Estilo 6: Galería Lateral de Miniaturas con Texto Principal Protagonista */
.section-style-six {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 3rem;
    align-items: center;
}
.section-style-six .image-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.section-style-six .image-stack img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(31, 31, 32, 0.08);
}

/* Estilo 7: Tarjeta Editorial Minimalista con Anclaje Visual Vertical */
.section-style-seven {
    background: linear-gradient(135deg, var(--nx-dark) 0%, var(--nx-blue-deep) 100%);
    border-radius: 30px;
    padding: 4.5rem;
    color: var(--nx-white);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    box-shadow: 0 25px 50px rgba(31, 31, 32, 0.2);
}
.section-style-seven .glass-card-dark {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2.5rem;
    border-radius: 20px;
}
.section-style-seven h2 {
    font-family: var(--nx-font-heading);
    font-size: 2.2rem;
    color: var(--nx-white);
    margin-bottom: 1rem;
}
.section-style-seven p {
    color: #dce0e6;
    margin-bottom: 1.5rem;
}
.section-style-seven .image-box img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

/* Footer Corporativo */
footer {
    background-color: var(--nx-dark);
    color: var(--nx-white);
    padding: 5rem 2rem 2rem;
    border-top: 4px solid var(--nx-blue-light);
}

.footer-container {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    font-family: var(--nx-font-heading);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--nx-blue-light);
}

.footer-col p {
    color: #dce0e6;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

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

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: #dce0e6;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--nx-blue-light);
}

.footer-bottom {
    max-width: 1320px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(220, 224, 230, 0.1);
    text-align: center;
    color: var(--nx-slate);
    font-size: 0.88rem;
}

/* Responsividad */
@media (max-width: 968px) {
    .section-style-one, .section-style-three, .section-style-four, .section-style-five, .section-style-six, .section-style-seven, .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .section-style-two {
        padding: 2rem;
    }
    .nav-links {
        display: none;
    }
}