/* ==========================================================================
   VIACLAVE GLOBAL MOBILITY - HOJA DE ESTILOS AVANZADA & MODERNA
   Paleta: #d1313d, #e5625c, #f9bf76, #8eb2c5, #615375
   ========================================================================== */

:root {
    --c-primary: #d1313d;
    --c-secondary: #e5625c;
    --c-accent: #f9bf76;
    --c-blue: #8eb2c5;
    --c-purple: #615375;
    --c-dark: #1e1b24;
    --c-light: #fdfbf7;
    --font-main: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--c-light);
    color: var(--c-dark);
    font-family: var(--font-main);
    line-height: 1.8;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

body.loaded {
    opacity: 1;
}

/* --- EFECTO DE CARGA INICIAL (SOLO INDEX) --- */
#loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--c-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.4s ease;
}

.loader-circle {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(249, 191, 118, 0.2);
    border-top-color: var(--c-accent);
    border-radius: 50%;
    animation: spinLoader 0.6s linear infinite;
}

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

/* --- DISCLAIMER GOOGLE ADS --- */
.disclaimer-top-bar {
    background: linear-gradient(135deg, var(--c-purple), var(--c-dark));
    color: var(--c-accent);
    font-size: 0.75rem;
    text-align: center;
    padding: 0.5rem 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--c-primary);
}

/* --- FONDO ABSTRACTO DINÁMICO --- */
.bg-abstract-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.abstract-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: floatShape 12s ease-in-out infinite alternate;
}

.shape-1 { width: 400px; height: 400px; background: var(--c-primary); top: -100px; left: -100px; }
.shape-2 { width: 500px; height: 500px; background: var(--c-accent); top: 30%; right: -150px; animation-delay: -4s; }
.shape-3 { width: 350px; height: 350px; background: var(--c-blue); bottom: -50px; left: 20%; animation-delay: -8s; }

@keyframes floatShape {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(40px) scale(1.1); }
}

/* --- HEADER Y NAVBAR CON REBOTE Y ESCALONAMIENTO --- */
.site-header {
    background: rgba(253, 251, 247, 0.9);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(142, 178, 197, 0.3);
}

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

.brand-identity span {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--c-primary);
    text-transform: uppercase;
    display: block;
}

.brand-identity h1 {
    font-size: 1.25rem;
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--c-dark);
}

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

.nav-item {
    opacity: 0;
    transform: translateY(-15px);
    animation: navStaggerIn 0.5s forwards;
}

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

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

.nav-item a {
    text-decoration: none;
    color: var(--c-dark);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-block;
    transition: transform 0.2s ease, color 0.2s ease;
}

.nav-item a:hover {
    color: var(--c-primary);
    transform: translateY(-4px) scale(1.05);
}

/* --- BOTONES CON RETROALIMENTACIÓN INTERACTIVA (TOGGLE SHARING) --- */
.btn-interactive {
    background-color: var(--c-dark);
    color: var(--c-light);
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(30, 27, 36, 0.15);
    display: inline-block;
}

.btn-interactive.active-toggle {
    background-color: var(--c-primary);
    color: #ffffff;
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(209, 49, 61, 0.4);
}

.btn-interactive:hover {
    background-color: var(--c-purple);
    transform: translateY(-2px);
}

/* --- GLASSMORPHIC CARDS CON BRILLO AL HOVER --- */
.glass-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 10px 30px rgba(97, 83, 117, 0.08);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 45%,
        rgba(249, 191, 118, 0.25) 50%,
        transparent 55%
    );
    transform: rotate(35deg) translateX(-100%);
    transition: transform 0.6s ease;
}

.glass-card:hover::before {
    transform: rotate(35deg) translateX(100%);
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(209, 49, 61, 0.12);
    border-color: var(--c-accent);
}

/* --- EFECTO DE TEXTO ANIMADO EN TÍTULOS --- */
.animated-hero-title {
    font-family: var(--font-display);
    font-size: 3.8rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--c-dark);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--c-dark) 30%, var(--c-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGlowFade 2s ease-out forwards;
}

@keyframes titleGlowFade {
    0% { opacity: 0; transform: translateY(20px); filter: blur(10px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* --- FOOTER MODERNO --- */
.site-footer {
    background-color: var(--c-dark);
    color: var(--c-light);
    padding: 5rem 2rem 2rem 2rem;
    margin-top: 6rem;
    border-top: 4px solid var(--c-accent);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 3rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-links a {
    color: #a09cb0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--c-accent);
}

.footer-bottom {
    max-width: 1400px;
    margin: 2rem auto 0 auto;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #7a758a;
}