/* ===================================================================
   VIANEXO GLOBAL - HOJA DE ESTILOS MODERNA Y DINÁMICA (/css/site.css)
   Paleta: #0fc3e8, #0194be, #e2d397, #f07e13, #481800
   =================================================================== */

:root {
    --c-cyan-light: #0fc3e8;
    --c-cyan-dark: #0194be;
    --c-gold: #e2d397;
    --c-orange: #f07e13;
    --c-brown: #481800;
    
    --bg-primary: #481800;
    --bg-surface: #0a1118;
    --bg-glass: rgba(1, 148, 190, 0.08);
    --border-glass: rgba(15, 195, 232, 0.2);
    
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    
    --transition-speed: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-light);
    background-color: var(--bg-surface);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Transición suave entre páginas (Fade / Slide Out effect) */
body.page-transition {
    animation: fadeInPage 0.6s ease forwards;
}

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

/* Pantalla de Carga Inicial (.5 segundos para index.html) */
.loader-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--bg-surface);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: hideLoader 0.5s ease 0.5s forwards;
    pointer-events: none;
}

.spinner-container {
    text-align: center;
}

.loader-ring {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-glass);
    border-top-color: var(--c-cyan-light);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 15px auto;
}

.spinner-container span {
    color: var(--c-cyan-light);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
}

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

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

/* Aviso Legal Superior */
.top-disclaimer {
    background-color: var(--c-brown);
    color: #fef2f2;
    font-size: 0.75rem;
    padding: 6px 20px;
    text-align: center;
    border-bottom: 2px solid var(--c-orange);
    position: relative;
    z-index: 100;
}

.top-disclaimer strong {
    color: var(--c-gold);
}

/* Navegación Superior con Animaciones Escalonadas y Brinco al Hover */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background-color: rgba(72, 24, 0, 0.75);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 900;
}

.brand-box h2 {
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--c-cyan-light);
}

.brand-box span {
    font-size: 0.7rem;
    color: var(--c-gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    /* Animación de lista escalonada basada en variable --i */
    animation: slideDownNav 0.5s ease calc(var(--i) * 0.1s) backwards;
}

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

.nav-links a:hover, .nav-links a.active {
    color: var(--c-cyan-light);
    transform: translateY(-4px); /* Efecto brinco al pasar el mouse */
}

/* Estilos Generales Glassmorphic */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

/* Botones con Retroalimentación de Clic (Ripple / Escala compartida) */
.btn-ripple {
    position: relative;
    overflow: hidden;
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--c-cyan-light), var(--c-cyan-dark));
    color: var(--bg-surface);
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(15, 195, 232, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-ripple:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 25px rgba(15, 195, 232, 0.5);
}

.btn-ripple:active {
    transform: scale(0.97); /* Patrón de alternancia compartido por clic */
}

.btn-ripple.secondary {
    background: transparent;
    color: var(--c-gold);
    border: 2px solid var(--c-gold);
    box-shadow: none;
}

.btn-ripple.secondary:hover {
    background: var(--c-gold);
    color: var(--bg-surface);
}

/* SECCIÓN 1: Hero Monumental con Fondo Abstracto Dinámico y Texto Animado */
.hero-abstract-section {
    position: relative;
    min-height: 85vh;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    padding: 60px;
    gap: 40px;
    overflow: hidden;
}

.abstract-bg-shapes {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(15,195,232,0.15) 0%, rgba(240,126,19,0.05) 70%, transparent 100%);
    top: -150px; right: -150px;
    border-radius: 50%;
    z-index: 1;
    animation: floatShape 8s ease-in-out infinite alternate;
}

@keyframes floatShape {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(-40px, 30px) scale(1.1); }
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
}

.badge-pill {
    display: inline-block;
    background: rgba(226, 211, 151, 0.15);
    color: var(--c-gold);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(226, 211, 151, 0.3);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* Efecto de texto animado en el título */
.hero-animated-title {
    font-size: 3rem;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-light);
}

.hero-animated-title .word {
    display: inline-block;
    animation: textGlowAnim 2s ease-in-out infinite alternate;
}

@keyframes textGlowAnim {
    from { text-shadow: 0 0 10px rgba(15,195,232,0.2); }
    to { text-shadow: 0 0 25px rgba(15,195,232,0.6), 0 0 5px var(--c-gold); }
}

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

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

.hero-floating-card {
    position: relative;
    z-index: 2;
    padding: 16px;
    max-width: 420px;
    margin: 0 auto;
}

.hero-floating-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
}

.card-text h4 {
    color: var(--c-cyan-light);
    margin-bottom: 5px;
}

.card-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* SECCIÓN 2: Diagonal Editorial */
.diagonal-editorial-section {
    padding: 100px 60px;
    background: linear-gradient(135deg, rgba(10,17,24,1) 0%, rgba(72,24,0,0.3) 100%);
    border-top: 1px solid var(--border-glass);
}

.editorial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.editorial-text-side h2 {
    font-size: 2.2rem;
    color: var(--c-gold);
    margin-bottom: 20px;
}

.editorial-text-side p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.editorial-image-side img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

/* SECCIÓN 3: Tarjetas con Brillo de Mosaico Glassmorphic (Glass Glow on Hover) */
.glass-cards-section {
    padding: 100px 60px;
    background-color: var(--bg-surface);
}

.section-title-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-title-center h2 {
    font-size: 2.4rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.section-title-center p {
    color: var(--text-muted);
}

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

.glass-glow-card {
    position: relative;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 30px;
    overflow: hidden;
    transition: transform var(--transition-speed), border-color var(--transition-speed);
}

/* Brillo de mosaico glassmorphic al pasar el cursor */
.glass-glow-card .glow-effect {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(15,195,232,0.25) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.glass-glow-card:hover {
    transform: translateY(-8px);
    border-color: var(--c-cyan-light);
}

.glass-glow-card:hover .glow-effect {
    opacity: 1;
}

.glass-glow-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.glass-glow-card h3 {
    font-size: 1.3rem;
    color: var(--c-cyan-light);
    margin-bottom: 12px;
}

.glass-glow-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* SECCIÓN 4: Split Stats Section */
.split-stats-section {
    padding: 100px 60px;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
    background-color: rgba(72,24,0,0.15);
}

.stats-container-left h2 {
    font-size: 2.2rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.stats-container-left p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.stats-row {
    display: flex;
    gap: 20px;
}

.stat-box {
    padding: 24px;
    flex: 1;
    text-align: center;
}

.stat-box .number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--c-orange);
    margin-bottom: 5px;
}

.stat-box .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

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

/* SECCIÓN 5: Modular Focus / Masonry Grid */
.modular-focus-section {
    padding: 100px 60px;
}

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

.focus-header h2 {
    font-size: 2.2rem;
    color: var(--c-gold);
    margin-bottom: 12px;
}

.focus-header p {
    color: var(--text-muted);
}

.focus-masonry-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 24px;
}

.masonry-item {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.masonry-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.masonry-item.large img {
    height: 280px;
}

.masonry-content h4 {
    color: var(--c-cyan-light);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.masonry-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* SECCIÓN 6: Magazine Editorial */
.magazine-editorial-section {
    padding: 80px 60px;
    background-color: var(--bg-surface);
}

.magazine-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px;
    position: relative;
}

.magazine-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--c-orange);
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.magazine-wrapper h2 {
    font-size: 2.2rem;
    color: var(--text-light);
    margin-bottom: 25px;
}

.magazine-wrapper p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.author-signature {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-glass);
}

.author-signature img {
    width: 50px; height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--c-cyan-light);
}

.author-signature strong {
    display: block;
    color: var(--text-light);
    font-size: 0.95rem;
}

.author-signature span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* SECCIÓN 7: Interactive Verification */
.interactive-verification-section {
    padding: 100px 60px;
    background: linear-gradient(135deg, rgba(72,24,0,0.2) 0%, rgba(1,148,190,0.1) 100%);
}

.verification-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.verification-text h2 {
    font-size: 2.2rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.verification-text p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.check-list {
    list-style: none;
}

.check-list li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-list li span {
    color: var(--c-cyan-light);
    font-weight: bold;
}

.verification-image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

/* SECCIÓN 8: Final CTA Section */
.final-cta-section {
    padding: 80px 60px;
    text-align: center;
}

.cta-inner-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px;
}

.cta-inner-box h2 {
    font-size: 2.4rem;
    color: var(--c-gold);
    margin-bottom: 15px;
}

.cta-inner-box p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Footer Corporativo */
.site-footer {
    background-color: #050b10;
    color: var(--text-muted);
    padding: 60px;
    border-top: 1px solid var(--border-glass);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-grid h4 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 16px;
}

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

.footer-grid ul li {
    margin-bottom: 10px;
}

.footer-grid ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-grid ul li a:hover {
    color: var(--c-cyan-light);
}

.small-text {
    font-size: 0.75rem;
    line-height: 1.5;
    color: #64748b;
}

.footer-bottom {
    border-top: 1px solid var(--border-glass);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}

/* Responsividad para móviles y tablets */
@media (max-width: 1024px) {
    .hero-abstract-section,
    .editorial-grid,
    .modern-cards-grid,
    .split-stats-section,
    .focus-masonry-grid,
    .verification-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }
    .site-header {
        padding: 20px;
    }
    .stats-row {
        flex-direction: column;
    }
}