/* ================================================================= *
 * ViaForma Consultoría Global - Estilos Modernos (viaforma.website)
 * Paleta: #6da67a, #77b885, #86c28b, #859987, #4a4857
 * ================================================================= */

:root {
    --vf-primary: #6da67a;
    --vf-secondary: #77b885;
    --vf-light-green: #86c28b;
    --vf-muted-green: #859987;
    --vf-dark-slate: #4a4857;
    --vf-bg-main: #212028;
    --vf-bg-surface: #2b2935;
    --vf-text-light: #F4F6F9;
    --vf-text-muted: #A0A5B0;
    --vf-glass: rgba(74, 72, 87, 0.45);
    --vf-glass-border: rgba(134, 194, 139, 0.2);
    --vf-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
    background-color: var(--vf-bg-main);
    color: var(--vf-text-light);
    font-family: var(--vf-font);
    line-height: 1.8;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body.page-loaded {
    opacity: 1;
}

/* Preloader exclusivo de index (0.5s) */
#page-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--vf-bg-main);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s ease;
}

#page-preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.spinner-circle {
    width: 60px;
    height: 60px;
    border: 4px solid var(--vf-muted-green);
    border-top-color: var(--vf-secondary);
    border-radius: 50%;
    animation: spinLoader 0.5s linear infinite;
}

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

/* Aviso Legal Google Ads */
.google-ads-disclaimer-bar {
    background: linear-gradient(90deg, var(--vf-dark-slate), var(--vf-primary));
    color: var(--vf-text-light);
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
    padding: 0.6rem 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    position: relative;
    z-index: 1000;
    border-bottom: 1px solid var(--vf-glass-border);
}

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

/* Header con animación de lista escalonada y rebote en hover */
.vf-header {
    background: rgba(33, 32, 40, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--vf-glass-border);
    position: sticky;
    top: 0;
    z-index: 999;
}

.vf-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 95px;
}

.vf-brand {
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--vf-text-light);
    text-decoration: none;
    letter-spacing: -0.03em;
}

.vf-brand span {
    color: var(--vf-secondary);
}

.vf-nav-list {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.vf-nav-item {
    opacity: 0;
    animation: slideInNav 0.6s forwards;
}

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

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

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

.vf-nav-list a:hover {
    color: var(--vf-light-green);
    transform: translateY(-5px) scale(1.05);
}

/* Botones con retroalimentación interactiva por clic */
.vf-btn {
    background: linear-gradient(135deg, var(--vf-primary), var(--vf-secondary));
    color: #fff;
    padding: 0.9rem 2.2rem;
    font-weight: 800;
    border-radius: 50px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    display: inline-block;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(109, 166, 122, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

.vf-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(119, 184, 133, 0.4);
}

.vf-btn:active {
    transform: scale(0.95) translateY(0);
    box-shadow: 0 5px 15px rgba(119, 184, 133, 0.3);
}

.vf-btn-alt {
    background: transparent;
    color: var(--vf-text-light);
    border: 2px solid var(--vf-secondary);
    box-shadow: none;
}

.vf-btn-alt:hover {
    background: var(--vf-secondary);
    color: var(--vf-dark-slate);
}

/* Tarjetas Glassmorphic con brillo al pasar el cursor */
.vf-glass-card {
    background: var(--vf-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--vf-glass-border);
    border-radius: 16px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

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

.vf-glass-card:hover {
    transform: translateY(-8px);
    border-color: var(--vf-light-green);
    box-shadow: 0 20px 40px rgba(74, 72, 87, 0.6), 0 0 35px rgba(134, 194, 139, 0.25);
}

.vf-glass-card:hover::before {
    opacity: 1;
}

/* Hero con diseño abstracto y tipografía animada */
.vf-hero-modern {
    padding: 10rem 0 8rem;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 80% 20%, rgba(74, 72, 87, 0.6) 0%, var(--vf-bg-main) 60%);
}

.abstract-bg-shape {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(109,166,122,0.2), rgba(134,194,139,0.05));
    border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
    animation: morphShape 12s ease-in-out infinite alternate;
    z-index: 0;
    pointer-events: none;
}

@keyframes morphShape {
    0% { border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%; transform: rotate(0deg) scale(1); }
    100% { border-radius: 55% 45% 38% 62% / 53% 58% 42% 47%; transform: rotate(45deg) scale(1.1); }
}

.vf-hero-content {
    position: relative;
    z-index: 1;
    max-width: 950px;
}

/* Animación de Efecto de Texto en el Título */
.animated-title-effect {
    font-size: clamp(3rem, 6vw, 5.2rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ffffff 30%, var(--vf-light-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

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

/* Secciones Asimétricas (Diseño único para cada una) */
.vf-sec-asym {
    padding: 7rem 0;
    border-bottom: 1px solid var(--vf-glass-border);
    position: relative;
}

/* Imágenes optimizadas */
.vf-img-asym {
    width: 100%;
    height: auto;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.vf-img-asym:hover {
    transform: scale(1.02);
}

/* Footer institucional */
.vf-footer {
    background-color: var(--vf-dark-slate);
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--vf-glass-border);
    color: var(--vf-text-muted);
}

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