/* ==========================================================================
   DOCUVIA CONSULTORÍA INTERNACIONAL - SISTEMA DE ESTILOS MODERNOS (site.css)
   ========================================================================== */

:root {
    --bg-primary: #FFFFFF;
    --bg-surface: #F8FAFC;
    --bg-card: #FFFFFF;
    --accent-orange: #FF5841;
    --accent-violet: #C53678;
    --accent-gradient: linear-gradient(135deg, #FF5841 0%, #C53678 100%);
    --text-main: #0F172A;
    --text-muted: #475569;
    --border-color: #E2E8F0;
    --shadow-glass: 0 20px 40px rgba(15, 23, 42, 0.06);
    --shadow-glow: 0 0 30px rgba(255, 88, 65, 0.25);
    --font-primary: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* Pantalla de Carga Inicial (Solo Index) */
#docuvia-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOutLoader 0.5s ease 0.5s forwards;
    pointer-events: none;
}

.spinner-circle {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--accent-orange);
    border-radius: 50%;
    animation: spinLoader 0.6s linear infinite;
}

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

@keyframes fadeOutLoader {
    to { opacity: 0; visibility: hidden; }
}

/* Aviso Legal Superior Google Ads */
.private-disclaimer-banner {
    background: var(--accent-gradient);
    color: #FFFFFF;
    padding: 12px 24px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(255, 88, 65, 0.2);
}

/* Header Moderno con Animación Escalonada */
.site-header-modern {
    background-color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 900;
    backdrop-filter: blur(12px);
}

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

.brand-wrapper h1 {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--text-main);
}

.brand-wrapper h1 span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

.editorial-nav li {
    opacity: 0;
    animation: slideInNav 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

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

.editorial-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    position: raconte;
}

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

/* Botones con Retroalimentación de Clic y Patrón de Alternancia */
.btn-modern {
    background: var(--accent-gradient);
    border: none;
    color: #FFFFFF;
    padding: 14px 32px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-block;
    box-shadow: 0 10px 25px rgba(255, 88, 65, 0.3);
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-modern:active,
.btn-modern.clicked {
    transform: scale(0.96) translateY(0);
    box-shadow: 0 5px 15px rgba(197, 54, 120, 0.4);
    filter: brightness(0.9);
}

/* Hero Section con Animación de Texto */
.hero-modern {
    max-width: 1400px;
    margin: 0 auto;
    padding: 90px 40px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-content h2 {
    font-size: 3.6rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1.5px;
    animation: titleTextEffect 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes titleTextEffect {
    from { opacity: 0; transform: translateY(30px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-content h2 span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 35px;
    line-height: 1.8;
}

.hero-image-frame {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-glass);
    border: 1px solid var(--border-color);
}

.hero-image-frame img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.hero-image-frame:hover img {
    transform: scale(1.03);
}

/* Secciones y Brillo de Mosaico Glassmorphic */
.main-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
}

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

.section-header-modern {
    max-width: 850px;
    margin-bottom: 60px;
}

.section-header-modern h3 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.section-header-modern p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

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

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

.card-glassmorphic {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    padding: 45px;
    border-radius: 20px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-glass);
}

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

.card-glassmorphic:hover {
    border-color: var(--accent-orange);
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow), var(--shadow-glass);
}

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

.card-glassmorphic h4 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-main);
}

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

.img-container-rounded {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-glass);
    border: 1px solid var(--border-color);
    height: 400px;
}

.img-container-rounded img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.img-container-rounded:hover img {
    transform: scale(1.04);
}

/* Footer Moderno */
.site-footer-modern {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 90px 40px 40px;
    margin-top: 80px;
}

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

.footer-col h5 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p, .footer-col ul {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

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

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

.footer-col ul a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-col ul a:hover {
    color: var(--accent-orange);
}

.footer-bottom-bar {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 1024px) {
    .hero-modern, .grid-2-asymmetric, .grid-3-cards, .footer-grid-container {
        grid-template-columns: 1fr;
    }
    .editorial-nav {
        display: none;
    }
}