/* ==========================================================================
   VIASIMPLE.ONLINE - HOJA DE ESTILOS MODERNA (/css/site.css)
   Paleta de Colores: #320139, #331b3b, #333e50, #5c6e6e, #f1debd
   ========================================================================== */

:root {
    --color-plum-dark: #320139;
    --color-plum-mid: #331b3b;
    --color-slate: #333e50;
    --color-gray-teal: #5c6e6e;
    --color-sand: #f1debd;
    
    --primary-color: #320139;
    --secondary-color: #5c6e6e;
    --accent-gold: #f1debd;
    --neutral-dark: #333e50;
    --neutral-light: #f9f6f0;
    --white: #ffffff;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-sans);
    color: var(--neutral-dark);
    background-color: var(--neutral-light);
    line-height: 1.7;
    font-size: 1rem;
    overflow-x: hidden;
}

/* ==========================================================================
   EFECTO DE TRANSICIÓN ENTRE PÁGINAS (SLIDE / FADE)
   ========================================================================== */
.page-transition {
    animation: pageFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.page-exit {
    animation: pageFadeOut 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* ==========================================================================
   PRELOADER EXCLUSIVO INDEX (0.5 SEGUNDOS)
   ========================================================================== */
.preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-plum-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.preloader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(241, 222, 189, 0.2);
    border-top-color: var(--color-sand);
    border-radius: 50%;
    animation: spinPreloader 0.6s linear infinite;
}

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

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

/* ==========================================================================
   AVISO LEGAL GOOGLE ADS (TOP BAR)
   ========================================================================== */
.google-ads-disclaimer-bar {
    background-color: var(--color-plum-dark);
    color: var(--color-sand);
    font-size: 0.825rem;
    padding: 0.75rem 0;
    border-bottom: 2px solid var(--color-sand);
    line-height: 1.5;
}

.google-ads-disclaimer-bar p {
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}

/* ==========================================================================
   NAVEGACIÓN MODERNA CON ANIMACIÓN ESCALONADA Y HOVER DE ELEMENTOS
   ========================================================================== */
.site-header {
    background-color: rgba(50, 1, 57, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(241, 222, 189, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-sand);
    letter-spacing: -0.025em;
}

.brand-tagline {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-gray-teal);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

.staggered-nav-list li {
    animation: navStaggerIn 0.5s ease backwards;
    animation-delay: calc(var(--i) * 0.1s);
}

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

.staggered-nav-list a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    display: inline-block;
}

.staggered-nav-list a:hover,
.staggered-nav-list a.active {
    color: var(--color-sand);
    transform: translateY(-3px);
}

/* ==========================================================================
   RETROALIMENTACIÓN DE BOTÓN Y PATRÓN DE ALTERNANCIA (RIPPLE / TOGGLE)
   ========================================================================== */
.ripple-btn {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
    outline: none;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(241, 222, 189, 0.4);
    transform: scale(0);
    animation: rippleAnim 0.6s linear;
    pointer-events: none;
}

@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.btn-primary {
    background-color: var(--color-gray-teal);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    display: inline-block;
}

.btn-primary.toggled {
    background-color: var(--color-sand);
    color: var(--color-plum-dark);
}

.btn-primary-fluid {
    background-color: var(--color-gray-teal);
    color: var(--white);
    padding: 1rem 2.25rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    display: inline-block;
}

.btn-primary-fluid.toggled {
    background-color: var(--color-sand);
    color: var(--color-plum-dark);
}

.btn-secondary-fluid {
    background-color: transparent;
    color: var(--color-sand);
    border: 2px solid var(--color-sand);
    padding: 1rem 2.25rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    display: inline-block;
}

.btn-secondary-fluid.toggled {
    background-color: var(--color-sand);
    color: var(--color-plum-dark);
}

/* ==========================================================================
   BRILLO DE MOSAICO GLASSMORPHIC AL PASAR EL CURSOR
   ========================================================================== */
.glassmorphic-card {
    background: rgba(51, 27, 59, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(241, 222, 189, 0.12);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.glassmorphic-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(241, 222, 189, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    transform: translate(-100%, -100%);
}

.glassmorphic-card:hover::after {
    opacity: 1;
    transform: translate(0, 0);
    transition: transform 0.6s ease, opacity 0.3s ease;
}

.glassmorphic-card:hover {
    border-color: rgba(241, 222, 189, 0.35);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(50, 1, 57, 0.3);
}

/* ==========================================================================
   1. SECCIÓN HERO CON DISEÑO ABSTRACTO Y EFECTO DE TEXTO
   ========================================================================== */
.hero-section-abstract {
    position: relative;
    padding: 8rem 0 7rem 0;
    background-color: var(--color-plum-dark);
    color: var(--white);
    overflow: hidden;
}

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

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: blobFloat 12s ease-in-out infinite alternate;
}

.blob-1 {
    width: 450px;
    height: 450px;
    background-color: var(--color-plum-mid);
    top: -10%;
    left: -10%;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background-color: var(--color-gray-teal);
    bottom: -20%;
    right: -10%;
    animation-delay: -4s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background-color: var(--color-sand);
    top: 30%;
    right: 30%;
    opacity: 0.15;
    animation-delay: -8s;
}

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

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

.eyebrow-badge {
    display: inline-block;
    background-color: rgba(92, 110, 110, 0.25);
    color: var(--color-sand);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(241, 222, 189, 0.2);
}

.hero-animated-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.word-reveal {
    display: inline-block;
    animation: titleWordReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.word-reveal:nth-child(1) { animation-delay: 0.2s; color: var(--white); }
.word-reveal:nth-child(2) { animation-delay: 0.4s; color: var(--color-sand); }
.word-reveal:nth-child(3) { animation-delay: 0.6s; color: var(--color-gray-teal); }

@keyframes titleWordReveal {
    from {
        opacity: 0;
        transform: translateY(30px) rotate(3deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
}

.hero-lead-fluid {
    font-size: 1.125rem;
    color: rgba(241, 222, 189, 0.85);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-cta-group {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.hero-floating-mosaic {
    padding: 2.5rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mosaic-inner-content .metric-highlight {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-sand);
    display: block;
    margin-bottom: 0.5rem;
}

.mosaic-inner-content h4 {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.mosaic-inner-content p {
    font-size: 0.925rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

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

/* ==========================================================================
   2. SECCIÓN ASIMÉTRICA EDITORIAL
   ========================================================================== */
.asymmetric-editorial-section {
    padding: 7rem 0;
    background-color: var(--color-plum-mid);
    color: var(--white);
}

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

.asymmetric-image-wrapper {
    padding: 1rem;
    border-radius: 24px;
}

.asymmetric-image-wrapper img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.section-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-sand);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.75rem;
}

.asymmetric-text-content h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--white);
}

.asymmetric-text-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.feature-bullet-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-bullet-list li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--color-sand);
    font-size: 0.95rem;
}

.feature-bullet-list li::before {
    content: '▪';
    position: absolute;
    left: 0;
    color: var(--color-gray-teal);
}

/* ==========================================================================
   3. SECCIÓN DIAGONAL CON TARJETAS GLASSMORPHIC
   ========================================================================== */
.diagonal-cards-section {
    padding: 7rem 0;
    background-color: var(--color-slate);
    color: var(--white);
}

.section-header-modern {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem auto;
}

.section-header-modern h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--white);
    letter-spacing: -0.02em;
}

.section-header-modern p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
}

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

.interactive-glass-card {
    padding: 3rem 2rem;
    border-radius: 20px;
}

.card-icon-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-sand);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.interactive-glass-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.interactive-glass-card p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==========================================================================
   4. SECCIÓN SPLIT INTERACTIVA DE MOVILIDAD
   ========================================================================== */
.split-interactive-section {
    padding: 7rem 0;
    background-color: var(--color-plum-dark);
    color: var(--white);
}

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

.split-info h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.split-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.split-visual {
    padding: 1rem;
    border-radius: 24px;
}

.split-visual img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

/* ==========================================================================
   5. SECCIÓN DE MÉTRICAS Y TRANSPARENCIA MERCANTIL
   ========================================================================== */
.metrics-transparency-section {
    padding: 6rem 0;
    background-color: var(--color-plum-mid);
}

.metrics-grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.metric-box {
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-sand);
}

.stat-symbol {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-sand);
}

.metric-box h4 {
    font-size: 1.15rem;
    color: var(--white);
    margin: 0.75rem 0;
}

.metric-box p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* ==========================================================================
   6. SECCIÓN DE FLUJO DE TRABAJO DINÁMICO
   ========================================================================== */
.workflow-dynamic-section {
    padding: 7rem 0;
    background-color: var(--color-slate);
}

.workflow-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.workflow-step-card {
    padding: 2.5rem 1.75rem;
    border-radius: 20px;
}

.step-num {
    display: inline-block;
    background-color: rgba(92, 110, 110, 0.3);
    color: var(--color-sand);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
}

.workflow-step-card h4 {
    font-size: 1.15rem;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.workflow-step-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

/* ==========================================================================
   7. SECCIÓN BANNER DE LLAMADA A LA ACCIÓN EDITORIAL
   ========================================================================== */
.cta-editorial-section {
    padding: 7rem 0;
    background-color: var(--color-plum-dark);
}

.cta-editorial-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem;
    border-radius: 24px;
}

.cta-editorial-content h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--white);
    margin: 1rem 0;
}

.cta-editorial-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.cta-editorial-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

/* ==========================================================================
   FOOTER CORPORATIVO
   ========================================================================== */
.site-footer {
    background-color: var(--color-plum-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 5rem 0 2rem 0;
    border-top: 1px solid rgba(241, 222, 189, 0.1);
}

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

.footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-sand);
    display: block;
    margin-bottom: 1rem;
}

.footer-desc {
    font-size: 0.925rem;
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.925rem;
    transition: var(--transition-smooth);
}

.footer-col a:hover {
    color: var(--color-sand);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
}

/* ==========================================================================
   MEDIA QUERIES RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-fluid-grid, .asymmetric-grid, .split-grid, .cta-editorial-container, .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .modern-cards-grid, .metrics-grid-layout, .workflow-steps-grid {
        grid-template-columns: 1fr;
    }
    .hero-animated-title {
        font-size: 2.75rem;
    }
}