/* ==========================================================================
   VíaMundo Consultoría - Hoja de Estilos Principal (/css/site.css)
   Paleta: #807070 #9a8fc8 #8dbdeb #a5e6c8 #d9f5b5
   ========================================================================== */

:root {
    --c-dark: #807070;
    --c-purple: #9a8fc8;
    --c-blue: #8dbdeb;
    --c-mint: #a5e6c8;
    --c-light: #d9f5b5;
    
    --bg-main: #fcfefe;
    --bg-card: rgba(255, 255, 255, 0.85);
    --text-main: #2d3748;
    --text-muted: #4a5568;
    --border-glass: rgba(141, 189, 235, 0.3);
    
    --disclaimer-bg: #807070;
    --disclaimer-text: #ffffff;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-glass: 0 15px 35px rgba(154, 143, 200, 0.15);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
    font-size: 1rem;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

body.loaded {
    opacity: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--c-dark);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* LOADER INICIAL DE 0.5s */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.loader-circle {
    width: 50px;
    height: 50px;
    border: 4px solid var(--c-light);
    border-top: 4px solid var(--c-purple);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-bottom: 1rem;
}

.loader-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--c-dark);
    letter-spacing: 1px;
}

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

/* AVISO LEGAL SUPERIOR */
.gov-disclaimer-bar {
    background-color: var(--disclaimer-bg);
    color: var(--disclaimer-text);
    font-size: 0.8rem;
    padding: 0.6rem 0;
    font-weight: 500;
}

.disclaimer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.disclaimer-link {
    color: var(--c-light);
    text-decoration: underline;
    white-space: nowrap;
    font-weight: 700;
}

/* NAVEGACIÓN FLOTANTE CON ANIMACIÓN ESCALONADA Y BOUNCE */
.site-header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.brand-logo a {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--c-dark);
}

.brand-logo span {
    color: var(--c-purple);
}

.staggered-nav {
    display: flex;
    gap: 2rem;
}

.staggered-nav li {
    opacity: 0;
    animation: fadeInUpStaggered 0.5s ease forwards;
    animation-delay: calc(var(--i) * 0.1s + 0.5s);
}

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

.staggered-nav a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
}

.staggered-nav a:hover, .staggered-nav a.active {
    color: var(--c-purple);
    transform: translateY(-4px) scale(1.05);
}

.btn-primary-outline {
    border: 2px solid var(--c-purple);
    color: var(--c-dark);
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.btn-primary-outline:hover {
    background-color: var(--c-purple);
    color: #ffffff;
}

/* HERO SECTION CON FONDO ABSTRACTO Y EFECTO DE TEXTO */
.hero-section-abstract {
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--c-light) 0%, #ffffff 100%);
}

.abstract-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background-color: var(--c-blue);
    top: -100px;
    left: -100px;
    animation: floatShape 8s ease-in-out infinite alternate;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background-color: var(--c-mint);
    bottom: -150px;
    right: -100px;
    animation: floatShape 10s ease-in-out infinite alternate-reverse;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background-color: var(--c-purple);
    top: 40%;
    left: 50%;
    animation: floatShape 6s ease-in-out infinite alternate;
}

@keyframes floatShape {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 30px) scale(1.1); }
}

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

.badge-pill-modern {
    display: inline-block;
    background-color: rgba(154, 143, 200, 0.2);
    color: var(--c-dark);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

/* EFECTO DE TEXTO EN TÍTULO */
.animated-headline {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.headline-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: textGlowReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.headline-word:nth-child(2) {
    animation-delay: 0.2s;
    color: var(--c-purple);
}

.headline-word:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes textGlowReveal {
    to {
        opacity: 1;
        transform: translateY(0);
        text-shadow: 0 0 20px rgba(154, 143, 200, 0.4);
    }
}

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

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.btn-solid-modern {
    background-color: var(--c-dark);
    color: #ffffff;
    padding: 0.9rem 2.2rem;
    border-radius: 8px;
    font-weight: 700;
    box-shadow: var(--shadow-glass);
    position: relative;
    overflow: hidden;
}

.btn-solid-modern:hover {
    background-color: var(--c-purple);
    transform: translateY(-3px);
}

.btn-text-modern {
    font-weight: 700;
    color: var(--c-dark);
}

.btn-text-modern:hover {
    color: var(--c-purple);
}

/* BRILLO DE MOSAICO GLASSMORPHIC (HOVER EFFECT) */
.glass-mosaic-card {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-glass);
    overflow: hidden;
    transition: var(--transition);
}

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

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

.glass-mosaic-card:hover {
    transform: translateY(-6px);
    border-color: var(--c-purple);
}

.card-interactive img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

/* SECCIONES Y DISTRIBUCIÓN DINÁMICA ASIMÉTRICA */
.asymmetric-section, .panoramic-section, .floating-cards-section, 
.split-editorial-section, .metrics-dashboard-section, 
.corporate-advisory-section, .ethics-banner-section, .final-cta-section {
    padding: 6rem 0;
    position: relative;
    z-index: 2;
}

.sub-tag {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--c-purple);
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.section-header-left {
    margin-bottom: 4rem;
}

.section-header-left h2 {
    font-size: 2.5rem;
}

.asymmetric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card-num {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--c-blue);
    display: block;
    margin-bottom: 1rem;
}

/* PANORAMIC SECTION */
.panoramic-section {
    background-color: rgba(141, 189, 235, 0.1);
}

.panoramic-flex {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.panoramic-text h2 {
    font-size: 2.3rem;
    margin-bottom: 1.2rem;
}

.panoramic-image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow-glass);
}

/* FLOATING CARDS */
.section-header-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-header-center h2 {
    font-size: 2.3rem;
}

.floating-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.card-inner-text h4 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

/* SPLIT EDITORIAL */
.split-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.split-content h2 {
    font-size: 2.3rem;
    margin: 1rem 0 1.2rem 0;
}

.styled-list {
    margin: 1.5rem 0;
}

.styled-list li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.styled-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--c-purple);
    font-weight: 800;
}

.split-visual img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 12px;
}

/* METRICS */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.metric-card .big-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--c-purple);
    display: block;
    margin-bottom: 0.5rem;
}

/* CORPORATE ADVISORY */
.corporate-advisory-section {
    background-color: rgba(165, 230, 200, 0.15);
}

.corporate-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: center;
}

.corporate-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

.corporate-content h2 {
    font-size: 2.3rem;
    margin: 1rem 0 1.2rem 0;
}

.mt-3 {
    margin-top: 1.5rem;
    display: inline-block;
}

/* ETHICS BANNER */
.ethics-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.ethics-text h2 {
    font-size: 2rem;
    margin: 0.8rem 0 1rem 0;
}

/* FINAL CTA */
.final-cta-section {
    text-align: center;
}

.final-cta-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem;
    background: linear-gradient(135deg, rgba(154,143,200,0.15) 0%, rgba(141,189,235,0.15) 100%);
}

.final-cta-box h2 {
    font-size: 2.5rem;
    margin: 1rem 0 1.2rem 0;
}

/* FOOTER */
.site-footer {
    background-color: var(--c-dark);
    color: #e2e8f0;
    padding: 5rem 0 2rem 0;
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.9fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    display: block;
    margin-bottom: 1.2rem;
}

.footer-brand span {
    color: var(--c-mint);
}

.footer-about {
    font-size: 0.9rem;
    color: #cbd5e0;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

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

.footer-col ul a {
    color: #cbd5e0;
    font-size: 0.9rem;
}

.footer-col ul a:hover {
    color: var(--c-mint);
}

.footer-legal-text {
    font-size: 0.85rem;
    color: #cbd5e0;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #a0aec0;
}

@media (max-width: 992px) {
    .hero-grid-modern, .panoramic-flex, .floating-grid, .split-grid, 
    .metrics-grid, .corporate-grid, .ethics-flex, .footer-grid, .asymmetric-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .staggered-nav {
        display: none;
    }
}