/* ==========================================================================
   VIAPAPEL CONSULTORÍA INTERNACIONAL - HOJA DE ESTILOS EJECUTIVA (site.css)
   ========================================================================== */

:root {
    --bg-primary: #EAE7DD; /* Narvik */
    --bg-surface: #FFFFFF;
    --bg-card: rgba(255, 255, 255, 0.85);
    --accent-brown: #99775C; /* Sorrell Brown */
    --accent-dark: #2C221E;
    --text-main: #2C221E;
    --text-muted: #6B5B53;
    --border-color: rgba(153, 119, 92, 0.2);
    --font-editorial: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

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

/* Loader Inicial exclusivo para index */
#viapapel-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease;
}

.spinner-circle {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(153, 119, 92, 0.2);
    border-top: 5px solid var(--accent-brown);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Aviso Legal Superior */
.private-disclaimer-topbar {
    background: var(--accent-dark);
    color: var(--bg-primary);
    text-align: center;
    padding: 12px 20px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Cabecera y Navegación con Lista Escalonada */
.site-header-editorial {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 25px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(44, 34, 30, 0.04);
}

.brand-monumental h1 {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--accent-dark);
}

.brand-monumental h1 span {
    color: var(--accent-brown);
}

.brand-monumental p {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

/* Animación de lista escalonada en el Nav */
.nav-editorial-links li {
    opacity: 0;
    transform: translateY(-15px);
    animation: navStagger 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

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

.nav-editorial-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-editorial-links a:hover,
.nav-editorial-links a.active {
    color: var(--accent-brown);
}

/* Botones con retroalimentación de clic (Patrón alternancia compartido) */
.btn-industrial {
    background: var(--accent-brown);
    color: #FFFFFF;
    padding: 14px 32px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-industrial:hover {
    background: var(--accent-dark);
    box-shadow: 0 8px 20px rgba(153, 119, 92, 0.3);
}

.btn-industrial.clicked {
    transform: scale(0.95);
    background: #5D4330 !important;
}

/* Animación de Efecto de Texto para Títulos Principales */
.text-glitch-effect {
    animation: textReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

/* Hero Asimétrico Moderno */
.hero-financial {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    min-height: 85vh;
    align-items: center;
    padding: 80px 60px;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-financial-content h2 {
    font-size: 3.4rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 25px;
    letter-spacing: -2px;
}

.hero-financial-content h2 span {
    color: var(--accent-brown);
}

.hero-financial-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 680px;
}

.hero-financial-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(44, 34, 30, 0.12);
    border: 1px solid var(--border-color);
}

.hero-financial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 480px;
}

/* Secciones Editoriales y Glassmorphic */
.content-wrapper-editorial {
    max-width: 1300px;
    margin: 0 auto;
    padding: 60px 40px;
}

.section-spacing {
    padding: 90px 0;
    border-bottom: 1px solid var(--border-color);
}

.section-title-block {
    margin-bottom: 60px;
}

.section-title-block h3 {
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.section-title-block p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 750px;
}

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

/* Brillo Glassmorphic al pasar el cursor sobre la tarjeta */
.card-glassmorphic {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    padding: 45px;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.card-glassmorphic::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.6) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card-glassmorphic:hover {
    transform: translateY(-8px);
    border-color: var(--accent-brown);
    box-shadow: 0 20px 40px rgba(153, 119, 92, 0.15);
}

.card-glassmorphic:hover::before {
    opacity: 1;
}

.card-glassmorphic h4 {
    font-size: 1.3rem;
    margin-bottom: 18px;
    color: var(--accent-dark);
}

.card-glassmorphic p {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.8;
}

/* Grids asimétricos para las 7 nuevas secciones */
.grid-asymmetric-editorial {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.img-frame-rounded {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(44, 34, 30, 0.1);
    border: 1px solid var(--border-color);
}

.img-frame-rounded img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 400px;
}

/* Pie de página ejecutivo */
.footer-editorial {
    background: var(--accent-dark);
    color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 80px 60px 40px 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

.footer-col h5 {
    color: #FFFFFF;
    font-size: 1.1rem;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.footer-col p, .footer-col ul li a {
    color: #C2B8AE;
    font-size: 0.92rem;
    text-decoration: none;
    line-height: 1.8;
}

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

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a:hover {
    color: #FFFFFF;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    color: #C2B8AE;
    font-size: 0.85rem;
    max-width: 1300px;
    margin: 0 auto;
}

@media (max-width: 968px) {
    .hero-financial, .grid-cards-industrial, .grid-asymmetric-editorial, .footer-grid {
        grid-template-columns: 1fr;
    }
    .site-header-editorial {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
}