/* ======================================================= */
/* =========== 1. VARIABLES GLOBALES Y RESET ============= */
/* ======================================================= */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&family=Outfit:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');

:root {
  /* --- PALETA DE COLORES: MONOCHROME LUXURY --- */
  --background-color: #020408;       /* Negro profundo */
  --surface-color: #0a0a0a;          /* Superficie secundaria */
  --text-color: #ffffff;             /* Blanco puro */
  --text-muted: #9ca3af;             /* Gris neutro */
  
  /* --- COLORES DE ACENTO (BLANCO/PLATA) --- */
  --accent-color: #ffffff;           /* Blanco Principal */
  --accent-dark: #cccccc;            /* Plata/Gris claro */
  --accent-light: #ffffff;           /* Blanco */
  --accent-glow: rgba(255, 255, 255, 0.5); /* Resplandor blanco */
  --accent-cyan: #ffffff;            /* Unificado a blanco */
  
  /* --- UI COMPONENTS --- */
  --border-color: rgba(255, 255, 255, 0.2);
  --light-gray-color: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(20px);
  --glass-bg: rgba(20, 20, 20, 0.6);
  
  /* --- FUENTES --- */
  --font-serif: 'Newsreader', serif;
  --font-sans: 'Outfit', sans-serif;
  --font-ar: 'Cairo', sans-serif;
  
  /* --- SOMBRAS --- */
  --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.9);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
body {
  overflow-x: hidden; font-family: var(--font-sans);
  width: 100%;
  background-color: var(--background-color); color: var(--text-color);
  line-height: 1.6; position: relative;
  /* Gradiente ajustado a escala de grises */
  background-image: radial-gradient(circle at 50% 0%, #1a1a1a 0%, #020408 60%);
}
body.no-scroll { overflow: hidden; }

/* ======================================================= */
/* =========== 2. EFECTOS GLOBALES Y ANIMACIONES ========= */
/* ======================================================= */

/* 2.1 TEXTURA DE RUIDO (Film Grain) */
body::before {
  content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9000;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.05;
}

/* 2.2 GLOW AMBIENTAL GLOBAL (Blanco sutil) */
body::after {
    content: ''; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: -1;
    width: 140vw; height: 140vh; background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 65%);
    pointer-events: none;
}

/* --- CURSOR PERSONALIZADO --- */
.cursor-dot, .cursor-outline {
  position: fixed; top: 0; left: 0; transform: translate(-50%, -50%); border-radius: 50%; z-index: 9999; pointer-events: none; display: none;
}
@media (min-width: 992px) { .cursor-dot, .cursor-outline { display: block; } }
.cursor-dot { width: 8px; height: 8px; background-color: var(--accent-color); }
.cursor-outline { width: 40px; height: 40px; border: 1px solid var(--accent-color); transition: width 0.2s, height 0.2s, background-color 0.2s; }

/* --- ANIMACIONES AVANZADAS (MOTION SYSTEM) --- */
/* Base para elementos animados */
.reveal-on-scroll { 
    opacity: 0; 
    will-change: opacity, transform; 
    transition-property: opacity, transform;
    transition-duration: 0.8s;
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1); /* Custom ease-out */
}

/* Estado visible por defecto */
.reveal-on-scroll.is-visible { 
    opacity: 1; 
    transform: none; 
}

/* 1. FADE EFFECTS */
.effect-fade-up { transform: translateY(40px); }
.effect-fade-down { transform: translateY(-40px); }
.effect-fade-left { transform: translateX(40px); }
.effect-fade-right { transform: translateX(-40px); }

/* 2. ZOOM EFFECTS */
.effect-zoom-in { transform: scale(0.92); }
.effect-zoom-out { transform: scale(1.08); }

/* 3. FLIP EFFECTS (3D) */
.effect-flip-x { transform: perspective(1000px) rotateX(20deg); }
.effect-flip-y { transform: perspective(1000px) rotateY(20deg); }

/* 4. BLUR REVEAL */
.effect-blur { filter: blur(10px); transform: scale(0.95); transition-property: opacity, transform, filter; }
.reveal-on-scroll.effect-blur.is-visible { filter: blur(0); transform: scale(1); }

/* Stagger System (Secuencial) */
.stagger-child { 
    opacity: 0; 
    transform: translateY(20px); 
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); 
}

.reveal-on-scroll.is-visible .stagger-child { 
    opacity: 1; 
    transform: translateY(0); 
}

/* Delays calculados */
.reveal-on-scroll.is-visible .stagger-child:nth-child(1) { transition-delay: 0.1s; }
.reveal-on-scroll.is-visible .stagger-child:nth-child(2) { transition-delay: 0.2s; }
.reveal-on-scroll.is-visible .stagger-child:nth-child(3) { transition-delay: 0.3s; }
.reveal-on-scroll.is-visible .stagger-child:nth-child(4) { transition-delay: 0.4s; }
.reveal-on-scroll.is-visible .stagger-child:nth-child(5) { transition-delay: 0.5s; }
.reveal-on-scroll.is-visible .stagger-child:nth-child(6) { transition-delay: 0.6s; }

/* Micro-interacciones (Hover) */
.hover-lift { transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.hover-lift:hover { transform: translateY(-5px); }

.hover-scale { transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.hover-scale:hover { transform: scale(1.05); }

.hover-glow { transition: box-shadow 0.3s ease; }
.hover-glow:hover { box-shadow: 0 0 25px var(--accent-glow); }

/* Animaciones Continuas */
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }
@keyframes rotate-galaxy { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes rotate-border { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes pulse-glow { 0%, 100% { opacity: 0.4; transform: translateY(-50%) scale(1); } 50% { opacity: 0.7; transform: translateY(-50%) scale(1.1); } }
@keyframes blink { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }

/* ======================================================= */
/* =========== 3. HEADER, HERO & COMPONENTS ============== */
/* ======================================================= */
/* Preloader */
#intro { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: #000; display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 9999; transition: opacity 0.8s ease-out, visibility 0.8s; }
#intro h1 { font-family: var(--font-sans); font-size: 3.5rem; font-weight: 500; margin-top: 1.5rem; color: var(--text-color); text-shadow: 0 0 20px var(--accent-glow); animation: float 3s infinite ease-in-out; }
.intro-logo { max-width: 250px; filter: drop-shadow(0 0 30px var(--accent-glow)); animation: rotate-galaxy 20s linear infinite; }
#app-container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; display: none; animation: fadeIn 1s ease-in-out; position: relative; z-index: 2; }

/* Header */
.app-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100vw; 
    margin-left: calc(50% - 50vw); 
    margin-right: calc(50% - 50vw); 
    padding: 0.6rem 3rem; /* Reduced padding for thinner bar */
    position: sticky; 
    top: 0; 
    z-index: 1001; 
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    background: rgba(2, 4, 8, 0.6);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

.app-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    box-shadow: 0 2px 20px rgba(255, 255, 255, 0.2);
    opacity: 0.5;
    transition: width 0.4s ease;
}

.app-header.scrolled { 
    padding: 0.8rem 3rem; 
    background: rgba(2, 4, 8, 0.85);
}
.app-header.scrolled::after {
    width: 100%;
    opacity: 0.8;
}

.logo-container { display: flex; align-items: center; text-decoration: none; z-index: 1002; }
/* .logo-icon removed */
.site-name { 
    font-family: var(--font-serif);
    font-weight: 500; 
    font-size: 1.8rem; 
    color: var(--text-color); 
    letter-spacing: -0.02em; 
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}
.logo-container:hover .site-name { text-shadow: 0 0 30px rgba(255, 255, 255, 0.6); color: #fff; transform: scale(1.02); }

/* Nav Links */
.nav-link-style { font-family: var(--font-sans); text-decoration: none; color: var(--text-muted); font-weight: 500; font-size: 0.9rem; transition: all 0.3s ease; background: none; border: none; cursor: pointer; padding: 0.5rem 0; display: flex; align-items: center; gap: 0.5rem; position: relative; }
.nav-link-style:hover, .nav-link-style:focus, .dropdown:hover .dropdown-toggle.nav-link-style { color: #ffffff; text-shadow: 0 0 12px var(--accent-color); }
@media (min-width: 992px) { .nav-link-style::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -4px; left: 50%; transform: translateX(-50%); background-color: var(--accent-color); box-shadow: 0 0 8px var(--accent-color); transition: width 0.3s ease; } .nav-link-style:hover::after, .dropdown:hover .dropdown-toggle.nav-link-style::after { width: 100%; } }
.dropdown-arrow { font-size: 0.7em; transition: transform 0.3s ease; }
.dropdown.is-open > .dropdown-toggle .dropdown-arrow { transform: rotate(180deg); }



.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; z-index: 1003; padding: 10px; width: 44px; height: 44px; }
.hamburger-icon { position: relative; display: block; width: 26px; height: 2px; background-color: var(--text-color); transition: all 0.3s; }
.hamburger-icon::before, .hamburger-icon::after { content: ''; position: absolute; left: 0; width: 100%; height: 2px; background-color: var(--text-color); transition: all 0.3s; }
.hamburger-icon::before { top: -9px; } .hamburger-icon::after { bottom: -9px; }
.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon { background-color: transparent; }
.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon::before { transform: translateY(9px) rotate(45deg); background-color: var(--accent-color); }
.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon::after { transform: translateY(-9px) rotate(-45deg); background-color: var(--accent-color); }

@media (min-width: 992px) {
    .nav-wrapper { display: flex; align-items: center; gap: 2.5rem; }
    .nav-menu { display: flex; align-items: center; gap: 1.5rem; }
    .dropdown { position: relative; }
    .mega-menu { display: block; position: absolute; top: 100%; left: 50%; width: max-content; padding: 1.5rem; background-color: #0a0a0a; border: 1px solid var(--border-color); border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,0.9); z-index: 1000; opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(20px); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
    .dropdown.is-open > .mega-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(15px); }
    .mega-menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .mega-menu-item { display: flex; flex-direction: column; padding: 1.5rem; background-color: rgba(255,255,255,0.02); border: 1px solid transparent; border-radius: 8px; transition: all 0.3s ease; text-decoration: none; color: var(--text-color); width: 300px; }
    .mega-menu-item:hover { border-color: var(--accent-color); background-color: rgba(255, 255, 255, 0.05); transform: translateY(-5px); box-shadow: 0 5px 20px rgba(0,0,0,0.8); }
    .mega-menu-item h4 { font-family: var(--font-serif); font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--accent-color); }
    .mega-menu-item p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
    .mega-menu-item i { align-self: flex-end; color: var(--accent-color); font-size: 1.2rem; }
}

/* Botones & Hero - IMPROVED */
.btn { 
    font-family: var(--font-sans); 
    text-decoration: none; 
    padding: 1rem 2.2rem; /* Más padding para presencia */
    border-radius: 8px; /* Redondeado sutil */
    font-weight: 500; 
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
    border: 1px solid rgba(255,255,255,0.1); 
    background-color: rgba(255,255,255,0.02); 
    color: var(--text-color); 
    cursor: pointer; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 0.8rem; 
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s ease;
    border-radius: 50%;
    pointer-events: none;
}

.btn:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.btn:hover { 
    border-color: var(--accent-color); 
    transform: translateY(-2px); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); 
}

/* Botón Primario (Blanco Premium) */
.btn-primary { 
    background-color: #ffffff; 
    color: #000000; 
    border: 1px solid #ffffff; 
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.15); 
    font-weight: 600;
}

.btn-primary:hover { 
    background-color: #f0f0f0; 
    color: #000000; 
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.4); 
    transform: translateY(-3px) scale(1.02);
}

.btn-primary::after {
    display: none; /* Sin efecto ripple en el primario sólido */
}

.cta-button-nav { 
    display: inline-flex; 
    align-items: center; 
    gap: 0.75rem; 
    padding: 0.6rem 1.4rem; 
    border-radius: 50px; 
    font-size: 0.85rem; 
    font-weight: 600; 
    letter-spacing: 0.05em; 
    text-transform: uppercase; 
    border: 1px solid var(--accent-color); 
    background: transparent; 
    color: var(--accent-color); 
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1); 
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
}

.cta-button-work {
    background: var(--accent-color);
    color: #000;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.cta-button-work:hover {
    background: transparent;
    color: var(--accent-color);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-3px);
}

.cta-button-work:active {
    transform: scale(0.95) translateY(0);
    box-shadow: 0 0 10px var(--accent-glow);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.cta-button-work:hover i {
    animation: pulse-briefcase 1s infinite;
}

@keyframes pulse-briefcase {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.cta-button-work::before {
    display: none;
}

.nav-cta-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cta-button-nav::before {
    content: ''; 
    position: absolute; 
    inset: 0; 
    background: var(--accent-color);
    transform: scaleX(0); 
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); 
    z-index: -1;
}

.cta-button-nav:hover { 
    color: #000; 
    box-shadow: 0 0 30px var(--accent-glow); 
    letter-spacing: 0.1em;
    border-color: var(--accent-color); 
    transform: translateY(-2px); 
}

.cta-button-nav:hover::before { 
    transform: scaleX(1); 
    transform-origin: left; 
}

.hero { display: flex; align-items: center; justify-content: center; width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); height: 100vh; min-height: 100svh; padding: 0; position: relative; overflow: hidden; background: #020408; background-position: center; }
.hero .hero-bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0; opacity: 0.3; filter: grayscale(100%) contrast(1.1); transform: scale(1.02); }
.hero-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, #020408 0%, rgba(2, 4, 8, 0.7) 50%, rgba(2, 4, 8, 0.5) 100%); } /* Scrim ajustado para PC */
.hero-content-wrap { position: relative; z-index: 2; width: 100%; max-width: 1200px; /* Más ancho */ margin: 0 auto; padding: 0 2rem; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; }
.hero-overlay-content { margin-top: -5vh; }
.hero-kicker-block { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.hero-kicker { 
    color: var(--text-color); 
    letter-spacing: 0.4em; 
    text-transform: uppercase; 
    font-size: 0.9rem; 
    font-weight: 400; 
    opacity: 0.8;
    background: rgba(255,255,255,0.05);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}
.hero-kicker-logo { 
    width: 180px; 
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.3)); 
    animation: rotate-galaxy 25s linear infinite; 
}

.hero h1 { 
    font-family: var(--font-serif); 
    font-size: clamp(2.2rem, 4.5vw, 4rem); 
    line-height: 1.1; 
    margin-bottom: 0.8rem; 
    color: var(--text-color); 
    letter-spacing: -0.02em;
    max-width: 1200px; /* Aumentado ancho máximo */
    margin-left: auto; 
    margin-right: auto; 
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: none; /* Evitar guiones automáticos */
}

.hero-main-subtitle {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-color);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* Efecto letra por letra */
.char-reveal {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px) rotateX(45deg);
    filter: blur(10px);
    animation: revealChar 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes revealChar {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
        filter: blur(0);
    }
}

.hero .highlight { 
    color: #fff; 
    position: relative;
    display: inline-block;
    text-decoration: none;
}
/* Subrayado animado custom para el highlight */
.hero .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 4px; /* Más grueso */
    background: #fff;
    box-shadow: 0 0 20px rgba(255,255,255,0.8);
    transform-origin: right;
    transform: scaleX(0);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 1s;
}
.hero.is-visible .highlight::after {
    transform: scaleX(1);
    transform-origin: left;
}

.hero p { 
    font-size: 1.25rem; /* Subtítulo más grande */
    margin: 0 auto 1.5rem; 
    max-width: 700px; 
    color: #cbd5e1; 
    font-weight: 300; 
    line-height: 1.7;
}

.hero-discover { 
    display: inline-flex; 
    align-items: center; 
    gap: 1rem; 
    color: #fff; 
    text-decoration: none; 
    font-size: 0.9rem; 
    text-transform: uppercase; 
    letter-spacing: 0.15em; 
    padding: 1rem 2.5rem; 
    border: 1px solid rgba(255, 255, 255, 0.3); 
    border-radius: 50px; 
    background: rgba(255, 255, 255, 0.02); 
    backdrop-filter: blur(10px); 
    transition: all 0.3s ease; 
}
.hero-discover:hover { 
    background: rgba(255, 255, 255, 0.1); 
    border-color: #fff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1); 
    transform: translateY(-2px); 
}
.hero-discover-icon { 
    width: 28px; 
    height: 28px; 
    border-radius: 50%; 
    background: #fff; 
    color: #000;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: transform 0.3s ease;
}
.hero-discover:hover .hero-discover-icon {
    transform: rotate(90deg);
}

/* ======================================================= */
/* =========== 7. SECCIONES (GENERIC & OTHER) ============ */
/* ======================================================= */
section[id] { scroll-margin-top: 100px; }
.recent-works-section, .team-section, .speed-section-redesigned, .contact-luxury-section, .results-luxury-section { padding: 8rem 0; border-top: 1px solid var(--border-color); position: relative; overflow: hidden; }
h2 { font-family: var(--font-serif); font-size: 3rem; line-height: 1.2; text-align: center; margin-bottom: 1.5rem; color: var(--text-color); text-shadow: 0 0 25px rgba(255, 255, 255, 0.2); }
h3 { font-family: var(--font-serif); font-size: 1.8rem; margin-bottom: 1rem; }

/* ======================================================= */
/* =========== 8. SECCIÓN RESULTADOS (CASOS) - LUXURY ==== */
/* ======================================================= */
.results-luxury-section {
    background-color: #050505;
    padding: 24rem 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* ======================================================= */
/* =========== HEADER ANIMATIONS ========================= */
/* ======================================================= */

@keyframes headerSlideDown {
    0% { transform: translateY(-100%); }
    100% { transform: none; }
}

@keyframes contentFadeIn {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.app-header {
    animation: headerSlideDown 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Initial state for animated elements */
.logo-container,
.nav-menu .nav-link-style,
.nav-cta-container .cta-button-nav {
    opacity: 0; /* Hidden initially */
    animation: contentFadeIn 0.8s ease-out forwards;
}

/* Staggered Delays */
.logo-container {
    animation-delay: 0.5s;
}
.mobile-menu-toggle {
    opacity: 0;
    animation: contentFadeIn 0.8s ease-out forwards;
    animation-delay: 0.6s;
}

/* Nav Links Stagger */
.nav-menu .nav-link-style:nth-child(1) { animation-delay: 0.6s; }
.nav-menu .nav-link-style:nth-child(2) { animation-delay: 0.7s; }
.nav-menu .nav-link-style:nth-child(3) { animation-delay: 0.8s; }
.nav-menu .nav-link-style:nth-child(4) { animation-delay: 0.9s; }
.nav-menu .nav-link-style:nth-child(5) { animation-delay: 1.0s; }
.nav-menu .nav-link-style:nth-child(6) { animation-delay: 1.1s; }

/* Buttons Stagger */
.nav-cta-container .cta-button-nav:nth-child(1) { animation-delay: 1.3s; }
.nav-cta-container .cta-button-nav:nth-child(2) { animation-delay: 1.4s; }


/* Efectos de luz ambientales (Glows Blancos) */
.results-bg-glow-top, .results-bg-glow-bottom {
    position: absolute; width: 600px; height: 600px; border-radius: 50%; pointer-events: none; z-index: 0; filter: blur(120px); opacity: 0.1;
}
.results-bg-glow-top { top: -200px; left: -100px; background: radial-gradient(circle, var(--accent-color), transparent 70%); }
.results-bg-glow-bottom { bottom: -200px; right: -100px; background: radial-gradient(circle, #cccccc, transparent 70%); }

.results-container {
    max-width: 1300px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 2;
}

.results-grid {
    display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: center;
}

/* Columna Izquierda (Título) */
.results-left { text-align: left; }

/* Badge "Resultados" */
.results-label-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 18px; border-radius: 999px;
    background: linear-gradient(180deg, #2A2A2A 0%, #1F1F1F 100%);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 6px 14px rgba(0,0,0,0.35);
    color: #FFFFFF; font-size: 0.85rem; letter-spacing: 0.02em; font-weight: 600; text-transform: uppercase;
    margin-bottom: 2rem;
    transition: all 0.2s ease;
    cursor: default;
}
.results-label-badge:hover {
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 10px 20px rgba(0,0,0,0.45);
}
.pulsing-dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: radial-gradient(circle, #FFFFFF 0%, #FFFFFF70 40%, transparent 70%);
    box-shadow: 0 0 12px rgba(255,255,255,0.5);
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100% {opacity: .8} 50% {opacity: 1} }

.results-title {
    text-align: left; font-size: clamp(2.5rem, 4vw, 3.8rem); line-height: 1.15;
    color: #fff; margin-bottom: 0;
}

/* Highlight Blanco Neón */
.highlight-neon-blue {
    color: var(--accent-color);
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
    position: relative;
    display: inline-block;
}
/* Subrayado animado sutil */
.highlight-neon-blue::after {
    content: ''; position: absolute; bottom: 5px; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.7;
}

/* Columna Derecha (Descripción) */
.results-right {
    position: relative; padding-left: 2.5rem;
    display: flex; flex-direction: column; justify-content: center;
}

/* Línea decorativa vertical */
.results-separator-line {
    position: absolute; left: 0; top: 10%; height: 80%; width: 1px;
    background: linear-gradient(to bottom, transparent, var(--border-color), transparent);
}

.results-description {
    font-size: 1.2rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 2rem;
}

/* Acentos técnicos (Pills) */
.tech-accent-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.tech-pill {
    padding: 0.4rem 1rem; border: 1px solid rgba(255,255,255,0.1); border-radius: 4px;
    font-size: 0.8rem; color: var(--text-muted); font-family: var(--font-sans); letter-spacing: 0.05em;
    background: rgba(255,255,255,0.02); transition: all 0.3s ease;
}
.tech-pill:hover {
    border-color: var(--accent-color); color: var(--accent-color); box-shadow: 0 0 15px rgba(255, 255, 255, 0.2); transform: translateY(-2px);
}

/* --- NUEVO: BOTÓN DE RESULTADOS --- */
.results-action-wrapper { margin-top: 1rem; }
.btn-neon-pulse {
    position: relative; display: inline-flex; align-items: center; gap: 1rem;
    padding: 1rem 2.5rem; background: transparent;
    border: 1px solid var(--accent-color); color: var(--accent-color);
    font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
    border-radius: 50px; overflow: hidden; transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    text-decoration: none;
}
.btn-neon-pulse::before {
    content: ''; position: absolute; inset: 0; background: var(--accent-color);
    transform: scaleX(0); transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); z-index: -1;
}
.btn-neon-pulse:hover {
    color: #000; box-shadow: 0 0 30px var(--accent-glow); letter-spacing: 0.15em;
}
.btn-neon-pulse:hover::before { transform: scaleX(1); transform-origin: left; }


/* ======================================================= */
/* =========== 9. OTRAS SECCIONES ======================== */
/* ======================================================= */
/* Recent Works Header & Filter Redesign */
.section-header-centered { text-align: center; margin-bottom: 4rem; max-width: 900px; margin-left: auto; margin-right: auto; position: relative; z-index: 2; }
.section-header-centered h2 { font-size: 3.5rem; letter-spacing: -0.02em; margin-bottom: 1rem; color: #fff; }
.section-header-centered p { color: var(--text-muted); font-size: 1.2rem; font-weight: 300; max-width: 600px; margin: 0 auto; line-height: 1.6; }

.portfolio-filter-controls { 
    display: inline-flex; 
    justify-content: center; 
    gap: 3rem; 
    margin-bottom: 0; 
    margin-top: 3rem;
    position: relative; 
    z-index: 5; 
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

.portfolio-filter-controls:hover {
    border-color: transparent;
    box-shadow: none;
}

.btn-luxury-filter { 
    position: relative; 
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #fff;
    border-radius: 16px; 
    padding: 1.5rem 3rem; 
    cursor: pointer; 
    overflow: hidden; 
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); 
    min-width: 260px;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 1;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    animation: floating-side 6s ease-in-out infinite;
}

.btn-luxury-filter:hover { 
    color: #fff;
    transform: translateY(-5px);
    border-color: #fff;
    box-shadow: 0 0 60px rgba(255, 255, 255, 0.2), inset 0 0 30px rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.1);
}

.btn-luxury-filter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, transparent 70%);
    opacity: 1;
    transform: scale(1.2);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn-luxury-filter:hover::before {
    opacity: 1;
    transform: scale(1.4);
}

.btn-luxury-filter.active { 
    /* Styles are now shared, keeping this for reference or specific overrides if needed */
    background: rgba(255, 255, 255, 0.05);
}

.btn-luxury-filter i {
    font-size: 2rem;
    transition: transform 0.3s ease;
    margin-bottom: 0.5rem;
    color: #fff;
    animation: pulse-icon 2s infinite;
    transform: scale(1.2);
}

@keyframes floating-side {
    0%, 100% { transform: translate(0, -5px); box-shadow: 0 0 40px rgba(255, 255, 255, 0.1); }
    25% { transform: translate(8px, -8px); }
    50% { transform: translate(0, -12px); box-shadow: 0 0 60px rgba(255, 255, 255, 0.2); }
    75% { transform: translate(-8px, -8px); }
}

@keyframes pulse-icon {
    0% { transform: scale(1.2); text-shadow: 0 0 10px rgba(255,255,255,0.5); }
    50% { transform: scale(1.4); text-shadow: 0 0 20px rgba(255,255,255,0.8); }
    100% { transform: scale(1.2); text-shadow: 0 0 10px rgba(255,255,255,0.5); }
}

.btn-luxury-filter::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg) translate(-100%, -100%);
    animation: shine-sweep 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shine-sweep {
    0% { transform: rotate(45deg) translate(-150%, -150%); }
    20%, 100% { transform: rotate(45deg) translate(150%, 150%); }
}

/* Remove old glow/rotate elements that cluttered the design */
.btn-glow-container, .btn-bg, .btn-content { display: contents; }
.btn-glow-rotate { display: none; }

/* Wrapper for inner content to ensure z-index if needed */
.btn-luxury-filter span {
    position: relative;
    z-index: 2;
}
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; max-width: 1400px; margin: 0 auto; padding: 0 2rem; min-height: 300px; transition: opacity 0.3s ease; }
.empty-category-msg { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6rem 2rem; text-align: center; background: rgba(255, 255, 255, 0.02); border: 1px dashed rgba(255, 255, 255, 0.2); border-radius: 12px; animation: fadeIn 0.5s ease; }
.empty-icon-glow { font-size: 3rem; color: #fff; margin-bottom: 1.5rem; filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3)); animation: float 4s ease-in-out infinite; }
.empty-category-msg h3 { font-family: var(--font-serif); font-size: 2rem; color: #fff; margin-bottom: 1rem; }
.empty-category-msg p { max-width: 500px; color: var(--text-muted); font-size: 1.1rem; }
.work-card { background: rgba(20, 20, 20, 0.6); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; overflow: hidden; transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,0.5); position: relative; display: block; }
.work-card:hover { transform: translateY(-12px) scale(1.02); border-color: rgba(255, 255, 255, 0.5); box-shadow: 0 20px 50px rgba(255, 255, 255, 0.1), 0 0 30px rgba(255, 255, 255, 0.05); }
.work-info { padding: 2.5rem 1.5rem; text-align: center; }
.work-info h3 { font-family: var(--font-serif); font-size: 1.5rem; color: #fff; margin-bottom: 1.5rem; transition: 0.3s; }
.work-card:hover .work-info h3 { color: var(--accent-color); text-shadow: 0 0 15px rgba(255, 255, 255, 0.4); }
.btn-work-action { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: var(--text-muted); padding: 0.6rem 1.8rem; border-radius: 50px; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; transition: all 0.4s ease; position: relative; overflow: hidden; }
.btn-work-action::before { content: ''; position: absolute; top: 0; left: 0; width: 0%; height: 100%; background: var(--accent-color); z-index: -1; transition: 0.4s ease; }
.work-card:hover .btn-work-action { border-color: var(--accent-color); color: #000; box-shadow: 0 0 20px rgba(255, 255, 255, 0.2); }
.btn-work-action:hover::before { width: 100%; }
.btn-work-action:hover { box-shadow: 0 0 30px var(--accent-glow); }

/* Team Section - Deep Glow Professional Redesign */
.team-section { 
    padding: 8rem 0; 
    position: relative; 
    border-top: 1px solid var(--border-color); 
    background: linear-gradient(180deg, #0e0f11 0%, #15171a 100%); 
    overflow: hidden; 
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.team-container { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 2rem; 
    position: relative; 
    z-index: 2;
}

.team-header-block { 
    text-align: center; 
    margin-bottom: 6rem; 
}

.team-header-block h2 {
    color: #ffffff;
    text-shadow: 0 0 30px rgba(255,255,255,0.3);
}

.team-subtitle { 
    color: #bfc2c7; 
    font-size: 1.2rem; 
    font-weight: 300; 
    margin-top: 1rem; 
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.team-features-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 2.5rem; 
    margin-bottom: 6rem;
}

.team-feature-card { 
    background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(10,10,10,0.4) 100%);
    backdrop-filter: blur(20px); 
    border: 1px solid rgba(255, 255, 255, 0.08); 
    border-radius: 24px; 
    padding: 4rem 2.5rem; 
    text-align: center; 
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); 
    position: relative; 
    overflow: hidden; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.team-feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(180deg, rgba(255,255,255,0.15), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.team-feature-card:hover { 
    transform: translateY(-15px); 
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(10,10,10,0.5) 100%);
    border-color: rgba(255, 255, 255, 0.2); 
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 255, 255, 0.05); 
}

.team-icon-wrapper { 
    width: 90px; 
    height: 90px; 
    margin: 0 auto 2.5rem; 
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(255, 255, 255, 0.15); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 2.2rem; 
    color: #ffffff; 
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.05); 
    transition: 0.5s ease; 
}

.team-feature-card:hover .team-icon-wrapper { 
    background: rgba(255, 255, 255, 0.1); 
    border-color: #ffffff; 
    color: #ffffff; 
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.3); 
    transform: scale(1.1); 
}

.team-feature-card h3 { 
    font-family: var(--font-sans); 
    font-weight: 700;
    font-size: 1.6rem; 
    margin-bottom: 1.5rem; 
    color: #ffffff; 
    letter-spacing: -0.01em;
}

.team-feature-card p { 
    color: #bfc2c7; 
    font-size: 1.05rem; 
    line-height: 1.7; 
}

.team-feature-card p strong { 
    color: #ffffff; 
    font-weight: 600; 
}

.team-feature-card.active-glow { 
    border-color: rgba(255, 255, 255, 0.15); 
}

.team-divider { height: 1px; width: 100%; max-width: 600px; background: linear-gradient(to right, transparent, var(--border-color), transparent); margin: 5rem auto; }

.team-members-title { text-align: center; margin-bottom: 4rem; }
.team-members-title h3 { font-size: 2.5rem; color: var(--accent-color); font-family: var(--font-serif); text-shadow: 0 0 20px rgba(255,255,255,0.2); }

/* --- NEW TEAM SLIDER STYLES --- */
.team-slider-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    min-height: 400px;
}

.team-member-card {
    display: none; /* Hidden by default */
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.team-member-card.active-member {
    display: block;
    opacity: 1;
    transform: translateX(0);
    animation: fadeSlideIn 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateX(50px) scale(0.95); filter: blur(10px); }
    to { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}

.member-content-wrapper {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 4rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

/* Glass shine effect */
.member-content-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
    transform: skewX(-20deg) translateX(-150%);
    animation: shimmerCard 8s infinite;
    pointer-events: none;
}

@keyframes shimmerCard {
    0% { transform: skewX(-20deg) translateX(-150%); }
    20% { transform: skewX(-20deg) translateX(150%); }
    100% { transform: skewX(-20deg) translateX(150%); }
}

/* Image Styling */
.member-visual {
    position: relative;
}

.member-img-frame {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.6s ease;
    transform: scale(1.05);
}

.member-content-wrapper:hover .member-img {
    filter: grayscale(0%);
    transform: scale(1);
}

.member-glow-ring {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: inset 0 0 30px rgba(0,0,0,0.5);
    pointer-events: none;
    z-index: 2;
}

/* Details Styling */
.member-details {
    position: relative;
    z-index: 2;
    text-align: left;
}

.member-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1.5rem;
}

.member-role-badge {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.member-details h4 {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: #fff;
    margin: 0;
    line-height: 1.1;
}

.member-bio {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.member-stats {
    display: flex;
    gap: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-serif);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.2rem;
}

/* Slider Controls */
.team-slider-controls {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.btn-team-next {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    overflow: hidden;
}

.btn-team-next::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: -1;
}

.btn-team-next:hover {
    color: #000;
    border-color: var(--accent-color);
    box-shadow: 0 0 30px var(--accent-glow);
}

.btn-team-next:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: transform 0.4s ease;
}

.btn-team-next:hover .btn-icon {
    transform: translateX(5px);
}

/* Responsive Team */
@media (max-width: 991px) {
    .member-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 2rem;
    }
    
    .member-img-frame {
        width: 200px;
        margin: 0 auto;
    }
    
    .member-details {
        text-align: center;
    }
    
    .member-stats {
        justify-content: center;
    }
    
    .member-details h4 {
        font-size: 2.5rem;
    }
}

/* Speed Section */
/* Speed Section - Advanced Luxury Redesign */
.speed-section-redesigned {
    position: relative;
    padding: 24rem 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background-color: #050505;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.speed-section-redesigned::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 40%, transparent 10%, #050505 90%);
    pointer-events: none;
    z-index: 1;
}

.speed-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 3;
}

/* Header Rediseñado */
.speed-header {
    text-align: center;
    margin-bottom: 7rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.icon-header-glow {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.4));
    animation: float 5s infinite ease-in-out;
    display: inline-block;
}

.speed-header h2 {
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.speed-subtitle {
    font-size: 1.4rem;
    color: #888;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

/* Advanced Grid Layout */
.speed-focus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 7rem;
    align-items: stretch;
}

.speed-focus-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 4rem 2.5rem;
    text-align: left;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.speed-focus-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.speed-focus-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.speed-focus-card:hover::after {
    opacity: 1;
}

.speed-focus-card.highlight-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
}

/* Iconos de las tarjetas */
.focus-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    transition: all 0.5s ease;
}

.speed-focus-card:hover .focus-icon {
    transform: scale(1.1);
    background: #fff;
    color: #000;
    border-color: #fff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.focus-text h4 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 500;
}

.focus-text p {
    color: #999;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Conclusion */
.speed-conclusion {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    border-radius: 50%;
}

.speed-conclusion p {
    font-size: 1.6rem;
    color: #ccc;
    margin-bottom: 1rem;
    font-weight: 300;
}

.speed-conclusion .highlight-text {
    color: #fff;
    font-weight: 600;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    display: block;
    margin-top: 1rem;
    font-size: 1.8rem;
}

/* Glows de fondo */
.speed-glow-left, .speed-glow-right {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent 70%);
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    filter: blur(80px);
    opacity: 0.6;
    animation: pulse-glow 8s infinite ease-in-out;
}
.speed-glow-left { left: -200px; }
.speed-glow-right { right: -200px; animation-delay: 4s; }

@media (max-width: 992px) {
    .speed-focus-grid { grid-template-columns: 1fr; gap: 2rem; }
    .speed-header h2 { font-size: 3rem; }
    .speed-section-redesigned, 
    .results-luxury-section, 
    .comparison-section, 
    .contact-luxury-section { 
        padding: 8rem 0; 
    }
}

/* Comparison Section - Rediseñado para Impacto */
.comparison-section {
    padding: 24rem 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    border-top: 1px solid var(--border-color);
    background: radial-gradient(circle at 50% 50%, #050505 0%, #000 100%);
    overflow: hidden;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Fondo decorativo (Glows traseros Blancos) */
.comparison-section::before {
    content: ''; position: absolute; top: 20%; left: -10%; width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent 70%);
    filter: blur(80px); pointer-events: none; z-index: 0;
}
.comparison-section::after {
    content: ''; position: absolute; bottom: 20%; right: -10%; width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(200, 200, 200, 0.03), transparent 70%);
    filter: blur(80px); pointer-events: none; z-index: 0;
}

.comparison-header {
    text-align: center; max-width: 800px; margin: 0 auto 5rem; position: relative; z-index: 2;
}

.comparison-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 3rem;
    max-width: 1200px; margin: 0 auto; position: relative; z-index: 2;
    padding: 0 2rem;
}

.comparison-column-header {
    font-family: var(--font-serif); font-size: 1.8rem; padding-bottom: 1.5rem;
    text-align: center; letter-spacing: 0.05em; border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 1rem;
}

/* Columna Izquierda (Agencias Típicas) - Apagada */
.comparison-column-header:nth-child(1) { color: var(--text-muted); opacity: 0.7; }

/* Columna Derecha (Fractal) - Brillante */
.comparison-column-header:nth-child(2) {
    color: #fff; text-shadow: 0 0 20px var(--accent-glow);
    border-bottom: 1px solid var(--accent-color);
}

.comparison-card {
    padding: 2rem; border-radius: 16px; display: flex; align-items: flex-start; gap: 1.5rem;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative; backdrop-filter: blur(10px);
}

/* Estilo Tarjetas "Minus" (Agencias) */
.comparison-card.minus {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}
.comparison-card.minus:hover {
    background: rgba(255, 255, 255, 0.03);
}
.comparison-card.minus .comparison-icon {
    background: rgba(255, 255, 255, 0.05); color: #666; box-shadow: none;
}
.comparison-card.minus p { font-size: 0.95rem; line-height: 1.6; opacity: 0.8; }

/* Estilo Tarjetas "Plus" (Fractal) - Flotantes y Brillantes (Monocromo) */
.comparison-card.plus {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(6, 11, 25, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

/* Delay en animación flotante para que no se muevan todos igual */
.comparison-card.plus:nth-of-type(4) { animation-delay: 0s; }
.comparison-card.plus:nth-of-type(6) { animation-delay: 1.5s; }
.comparison-card.plus:nth-of-type(8) { animation-delay: 3s; }
.comparison-card.plus:nth-of-type(10) { animation-delay: 4.5s; }

.comparison-card.plus:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #fff;
    box-shadow: 0 15px 50px rgba(255, 255, 255, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.05);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(10, 10, 10, 0.8));
}

.comparison-card.plus .comparison-icon {
    background: var(--accent-color); color: #000;
    box-shadow: 0 0 20px var(--accent-glow);
    font-size: 1.1rem;
}

.comparison-card.plus p {
    color: #fff; font-size: 1.05rem; font-weight: 500; line-height: 1.6;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.comparison-icon {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    transition: all 0.3s ease;
}


/* Contact Section Luxury */
.contact-luxury-section { 
    position: relative; 
    padding: 24rem 0; 
    min-height: 100vh;
    overflow: hidden; 
    background: radial-gradient(circle at center, #050505 0%, #000000 100%); 
    display: flex; 
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
.contact-bg-elements { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.contact-orb { position: absolute; top: 50%; left: 50%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%); transform: translate(-50%, -50%); animation: pulse-glow 8s infinite ease-in-out; }
.contact-grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px); background-size: 50px 50px; mask-image: radial-gradient(circle at center, black 30%, transparent 80%); }
.contact-wrapper { position: relative; z-index: 2; width: 100%; max-width: 900px; padding: 0 2rem; }
.contact-card-glass { background: rgba(10, 10, 10, 0.6); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 24px; padding: 4rem 3rem; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); text-align: center; position: relative; overflow: hidden; transition: transform 0.4s ease; }
.contact-card-glass:hover { border-color: rgba(255, 255, 255, 0.3); }
.contact-subtitle { display: inline-block; font-size: 0.9rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 1.5rem; border: 1px solid rgba(255, 255, 255, 0.3); padding: 0.5rem 1.5rem; border-radius: 50px; background: rgba(255, 255, 255, 0.05); }
.contact-title { font-size: 4rem; line-height: 1.1; margin-bottom: 1.5rem; color: #fff; font-family: var(--font-serif); }
.text-gradient { background: linear-gradient(135deg, #fff 30%, #999 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.contact-desc { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 3rem; line-height: 1.7; }
.contact-methods { display: flex; flex-direction: column; gap: 1.5rem; max-width: 500px; margin: 0 auto; }
.contact-method-item { display: flex; align-items: center; gap: 1.5rem; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05); padding: 1.2rem 2rem; border-radius: 12px; text-decoration: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; }
.contact-method-item:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.05); }
.contact-method-item.active-method { border-color: rgba(255, 255, 255, 0.4); background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent); }
.contact-method-item.active-method:hover { border-color: var(--accent-color); box-shadow: 0 0 30px rgba(255, 255, 255, 0.1); }
.contact-method-item.active-method .method-icon { color: var(--accent-color); text-shadow: 0 0 15px var(--accent-color); }
.method-icon { font-size: 1.8rem; color: var(--text-muted); transition: 0.3s; width: 50px; display: flex; justify-content: center; }
.method-info { flex-grow: 1; text-align: left; }
.method-label { display: block; font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.3rem; }
.method-value { display: block; font-size: 1.2rem; color: #fff; font-weight: 500; font-family: var(--font-serif); }
.method-arrow { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.05); display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: 0.3s; }
.contact-method-item:hover .method-arrow { background: var(--accent-color); color: #000; transform: translateX(5px); }

/* ======================================================= */
/* =========== 10. DETALLES Y FOOTER ===================== */
/* ======================================================= */
.page-detail-section { display: none; padding: 4rem 0; animation: fadeIn 0.5s ease-in-out; border-top: 1px solid var(--border-color); }
.btn-back { background: none; border: none; font-size: 1rem; font-weight: 500; cursor: pointer; margin-bottom: 2rem; transition: color 0.3s ease; padding: 0; color: var(--text-muted); }
.btn-back:hover { color: var(--accent-color); transform: translateX(-5px); text-shadow: 0 0 10px var(--accent-color); }
.intro-service-text { text-align: center; font-size: 1.1rem; max-width: 800px; margin: 0 auto 3rem; color: var(--text-muted); }
.illustration-showcase { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; padding: 2rem 0; }
.video-wrapper { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-color); box-shadow: 0 0 20px rgba(0,0,0,0.5); transition: 0.3s; }
.video-wrapper:hover { border-color: var(--accent-color); transform: scale(1.02); }
.showcase-image { width: 100%; height: 300px; object-fit: cover; opacity: 0.8; transition: 0.3s; }
.video-wrapper:hover .showcase-image { opacity: 1; }
.fullscreen-btn { position: absolute; top: 15px; right: 15px; width: 40px; height: 40px; background: rgba(0,0,0,0.7); border: 1px solid var(--accent-color); color: var(--accent-light); border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.3s; }
.video-wrapper:hover .fullscreen-btn { opacity: 1; }
.service-content-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 4rem; }
.service-features li { margin-bottom: 1rem; color: var(--text-muted); position: relative; padding-left: 2rem; }
.service-features li::before { content: '✓'; color: var(--accent-color); position: absolute; left: 0; text-shadow: 0 0 5px var(--accent-color); }
.problem-solution-card { background-color: rgba(255, 255, 255, 0.05); padding: 2rem; border-radius: 8px; border-left: 3px solid var(--accent-color); margin-bottom: 1.5rem; }
.problem-solution-card strong { color: var(--accent-light); }
.problem-solution-card p { margin: 0; color: var(--text-muted); }
.gallery-container { display: flex; justify-content: center; margin-top: 2rem; }
.gallery-frame { position: relative; width: 100%; max-width: 1000px; aspect-ratio: 16/9; background: #000; border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 50px rgba(255, 255, 255, 0.1); }
.gallery-item-display video, .gallery-item-display img { max-width: 100%; max-height: 100%; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.6); color: var(--accent-light); border: 1px solid var(--border-color); font-size: 1.5rem; cursor: pointer; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.gallery-nav:hover { background: var(--accent-color); color: #000; box-shadow: 0 0 20px var(--accent-glow); }
.gallery-nav.prev { left: -25px; } .gallery-nav.next { right: -25px; }

/* ======================================================= */
/* =========== 10. ADVANCED LUXURY FOOTER ================ */
/* ======================================================= */

.site-footer-advanced {
    background-color: #010101;
    position: relative;
    padding-top: 6rem;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: var(--font-sans);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Fondo Glow Ambiental */
.footer-glow-effect {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.03), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* --- CTA Section (Top) --- */
.footer-cta-wrapper {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    position: relative;
    z-index: 2;
    padding: 0 2rem;
}

.footer-cta-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.footer-cta-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn-footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2.5rem;
    background: var(--accent-color);
    color: #000;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-footer-cta:hover {
    background: #fff;
    box-shadow: 0 0 40px var(--accent-glow);
    transform: translateY(-3px);
}

/* --- Divider --- */
.footer-divider {
    height: 1px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 4rem;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* --- Main Grid Content --- */
.footer-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Brand Column */
.footer-brand-col {
    padding-right: 2rem;
}

.footer-logo-lockup {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo {
    width: 40px;
    filter: invert(1);
}

.footer-brand-name {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: #fff;
    font-weight: 600;
}

.footer-mission {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 300px;
}

.footer-social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Links Columns */
.footer-links-col h4, .footer-contact-col h4 {
    color: #fff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

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

.footer-links-col ul li {
    margin-bottom: 0.8rem;
}

.footer-links-col ul a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links-col ul a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Contact Column */
.footer-contact-col {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-item i {
    color: var(--accent-color);
    margin-top: 3px;
}

.contact-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
}

.contact-item a:hover {
    color: #fff;
    text-decoration: underline;
}

.contact-item.location span {
    opacity: 0.8;
}

/* --- Bottom Bar --- */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #555;
    font-size: 0.85rem;
    position: relative;
    z-index: 2;
}

.tech-badge {
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 0.5rem;
    color: #777;
}

/* Responsive Footer */
@media (max-width: 991px) {
    .footer-content-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .footer-brand-col {
        grid-column: 1 / -1;
        text-align: center;
        padding-right: 0;
    }
    .footer-logo-lockup {
        justify-content: center;
    }
    .footer-mission {
        margin: 0 auto 2rem;
    }
    .footer-social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .footer-content-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .contact-item {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* --- WhatsApp Floating Button (Redesigned - Luxury Green) --- */
.whatsapp-fab {
    position: fixed;
    width: 64px;
    height: 64px;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%); /* Verde WhatsApp Premium */
    color: #ffffff; /* Icono Blanco Puro */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px; /* Icono ligeramente más grande */
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4); /* Sombra verde brillante */
    z-index: 10000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.2); /* Borde sutil para definición */
}

/* Pulse Ring Effect - Green Glow */
.whatsapp-fab::after {
    content: '';
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    z-index: -1;
    opacity: 0.6;
}

@keyframes pulse-ring {
    0% { transform: scale(0.95); opacity: 0.7; border-width: 2px; }
    100% { transform: scale(1.5); opacity: 0; border-width: 0px; }
}

.whatsapp-fab:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%); /* Más oscuro al hover */
    color: #ffffff;
    border-color: #ffffff;
}

.whatsapp-fab:active {
    transform: scale(0.95);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

/* Tooltip/Label on Hover */
.whatsapp-fab::before {
    content: "¡Escríbenos!"; 
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%) translateX(20px);
    background: #ffffff;
    color: #075E54;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    font-family: var(--font-sans);
    pointer-events: none;
}

.whatsapp-fab:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* ======================================================= */
/* =========== 11. PROJECT MODAL (REDESIGNED) ============ */
/* ======================================================= */
#project-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#project-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.project-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(15px);
    transition: backdrop-filter 0.4s ease;
}

.project-window {
    position: relative;
    width: 90%;
    max-width: 1100px;
    background: #050505;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
}

/* Efecto de borde brillante animado */
.project-window::before {
    content: '';
    position: absolute;
    inset: -1px;
    z-index: -1;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    background-size: 200% 200%;
    animation: shimmerBorder 3s infinite linear;
    border-radius: 16px;
    opacity: 0.5;
}

@keyframes shimmerBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#project-modal.is-open .project-window {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* --- HEADER --- */
.window-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(20, 20, 20, 0.9);
}

.window-title-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.window-title-icon { 
    color: var(--accent-color); 
    font-size: 1.1rem;
    filter: drop-shadow(0 0 5px var(--accent-color));
}

#window-project-title { 
    font-family: var(--font-serif); 
    font-size: 1.3rem; 
    color: #fff; 
    letter-spacing: 0.02em;
}

.window-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.project-progress {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.window-close-btn {
    background: none; 
    border: none; 
    color: var(--text-muted); 
    font-size: 1.8rem; 
    cursor: pointer; 
    transition: 0.3s;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.window-close-btn:hover { 
    color: #fff; 
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

/* --- CONTENT WRAPPER & SLIDE ANIMATIONS --- */
.window-content-wrapper {
    position: relative;
    overflow: hidden;
    background: #000;
    min-height: 400px;
}

.window-content { 
    padding: 0; 
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.5s ease;
}

/* Animation Classes applied by JS */
.slide-out-left {
    transform: translateX(-50px);
    opacity: 0;
}
.slide-in-right {
    animation: slideInRight 0.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.slide-out-right {
    transform: translateX(50px);
    opacity: 0;
}
.slide-in-left {
    animation: slideInLeft 0.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes slideInRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideInLeft {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* --- VIDEO & SKELETON --- */
.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.video-container video { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; /* Ajustar sin cortar */
    display: block; 
    max-height: 75vh;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.video-container video.is-loaded {
    opacity: 1;
}

.skeleton-loader {
    position: absolute;
    inset: 0;
    background: #0a0a0a;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.skeleton-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.skeleton-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-20deg);
    animation: shimmer 1.5s infinite;
}

.skeleton-spinner {
    font-size: 3rem;
    color: var(--accent-color);
    filter: drop-shadow(0 0 15px var(--accent-color));
}

@keyframes shimmer {
    0% { transform: translateX(-150%) skewX(-20deg); }
    100% { transform: translateX(150%) skewX(-20deg); }
}

/* --- FOOTER --- */
.window-footer {
    padding: 1.2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(20, 20, 20, 0.9);
}

.nav-window-btn {
    background: transparent; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    color: var(--text-muted);
    padding: 0.6rem 1.4rem; 
    border-radius: 50px; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    display: flex; 
    align-items: center; 
    gap: 0.8rem;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.9rem;
}

.nav-window-btn:hover { 
    border-color: var(--accent-color); 
    color: #fff; 
    background: rgba(255, 255, 255, 0.05); 
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.window-footer-dots {
    display: flex;
    gap: 8px;
}

.footer-dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-dot.active {
    background: var(--accent-color);
    box-shadow: 0 0 8px var(--accent-color);
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    .project-window { width: 95%; }
    .window-header, .window-footer { padding: 1rem; }
    .nav-window-btn span { display: none; }
    .window-footer-dots { display: none; }
    #window-project-title { font-size: 1.1rem; }
    .project-progress { font-size: 0.8rem; padding: 0.2rem 0.6rem; }
}


/* ======================================================= */
/* =========== 12. INTRO MODAL (LUXURY) ================== */
/* ======================================================= */
.intro-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.5s ease; }
.intro-modal.is-open { opacity: 1; pointer-events: auto; }
.intro-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 2, 8, 0.95); backdrop-filter: blur(15px); }
.intro-modal-card { position: relative; width: 90%; max-width: 1000px; transform: translateY(20px) scale(0.95); transition: 0.5s ease; z-index: 2; }
.intro-modal.is-open .intro-modal-card { transform: translateY(0) scale(1); }
.intro-modal-frame { padding: 12px; border-radius: 20px; background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(0,0,0,0.5)); border: 1px solid var(--accent-color); box-shadow: 0 0 80px rgba(255, 255, 255, 0.1); }
.intro-modal-video { width: 100%; border-radius: 12px; display: block; filter: grayscale(100%); }
.intro-modal-btn { margin: 1.5rem auto 0; display: flex; width: fit-content; align-items: center; gap: 0.8rem; padding: 1rem 3rem; border-radius: 50px; font-weight: 600; background: transparent; color: var(--accent-color); border: 1px solid var(--accent-color); box-shadow: 0 0 20px rgba(255, 255, 255, 0.2); cursor: pointer; transition: 0.3s; }
.intro-modal-btn:hover { background: var(--accent-color); color: #000; box-shadow: 0 0 50px var(--accent-glow); }
body.modal-open { overflow: hidden; }

/* ======================================================= */
/* =========== SOCIAL PROOF SECTION (CAROUSEL) =========== */
/* ======================================================= */
.social-proof-section {
    padding: 8rem 0;
    background-color: #020408;
    background-image: radial-gradient(circle at 50% 0%, #111 0%, #020408 80%);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
}

.social-proof-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    z-index: 2;
}

.social-proof-header h2 {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

/* --- CAROUSEL STRUCTURE --- */
.testimonial-carousel-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto 3rem;
    z-index: 2;
}

.testimonial-slides-wrapper {
    position: relative;
    min-height: 550px;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: 1fr;
}

.testimonial-slide {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform: translateX(40px) scale(0.95);
    filter: blur(5px);
    pointer-events: none;
}

.testimonial-slide.active-testimonial {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
    filter: blur(0);
    pointer-events: auto;
}

/* --- SLIDE CONTENT LAYOUT --- */
.testimonial-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.8) 0%, rgba(5, 5, 5, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 4rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

/* Efecto de brillo en el borde */
.testimonial-content-grid::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
    transform: skewX(-20deg) translateX(-150%);
    animation: shimmer 8s infinite;
    pointer-events: none;
}

/* Left Col: Info */
.testimonial-info-col {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.testimonial-info-col .card-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #fff 0%, #999 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    opacity: 1;
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.3));
}

.testimonial-quote {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-style: italic;
    color: #ffffff;
    line-height: 1.4;
    margin-bottom: 2.5rem;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.testimonial-author {
    margin-bottom: 2.5rem;
    padding-left: 1.2rem;
    border-left: 3px solid var(--accent-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.author-name {
    display: block;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

.author-role {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.3rem;
    font-weight: 300;
}

/* Instruction Box -> Developer Note (Redesign) */
.developer-note-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid #25D366; /* Success Green hint */
    border-radius: 8px;
    padding: 1.2rem;
    position: relative;
    transition: all 0.3s ease;
}

.developer-note-box:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.note-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.note-header i {
    color: #25D366;
    font-size: 0.9rem;
}

.instruction-label {
    font-family: var(--font-sans);
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.instruction-text {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Placeholder legacy support if needed */
.instruction-box-placeholder {
    /* Mismo estilo por si acaso */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1rem;
    font-family: monospace;
    color: var(--text-muted);
    font-size: 0.85rem;
}


/* Right Col: Visuals */
.testimonial-visual-col {
    position: relative;
    perspective: 1000px;
}

.visual-compare-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(0,0,0,0.3);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: inset 0 0 30px rgba(0,0,0,0.5);
}

.visual-half {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.visual-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    font-weight: 600;
    background: rgba(0,0,0,0.5);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
}

/* "Before" Mockup - Wireframe style */
.visual-content-mockup {
    width: 100%;
    aspect-ratio: 4/3;
    background: #151515;
    background-image: linear-gradient(45deg, #1a1a1a 25%, transparent 25%, transparent 75%, #1a1a1a 75%, #1a1a1a), 
                      linear-gradient(45deg, #1a1a1a 25%, transparent 25%, transparent 75%, #1a1a1a 75%, #1a1a1a);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    color: #444;
    gap: 0.8rem;
    text-align: center;
    padding: 1rem;
    opacity: 0.7;
    transition: 0.3s;
}

.visual-content-mockup:hover {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.2);
}

.visual-content-mockup i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.visual-content-mockup span {
    font-size: 0.85rem;
    font-family: monospace;
}

/* "After" Image - Premium style */
.visual-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease;
}

.visual-half.after:hover .visual-img {
    transform: scale(1.05);
    border-color: var(--accent-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255,255,255,0.1);
}

.visual-half.after .visual-badge {
    color: #000;
    background: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-glow);
}

.visual-arrow {
    color: var(--accent-color);
    font-size: 1.5rem;
    opacity: 0.8;
    animation: pulse-arrow 2s infinite;
}

@keyframes pulse-arrow {
    0%, 100% { transform: translateX(0); opacity: 0.5; }
    50% { transform: translateX(5px); opacity: 1; }
}

/* --- CONTROLS --- */
.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.testimonial-nav-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.testimonial-nav-btn:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 20px var(--accent-glow);
    border-color: var(--accent-color);
    transform: scale(1.1);
}

.testimonial-dots {
    display: flex;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.dot-indicator {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s ease;
}

.dot-indicator.active {
    background: var(--accent-color);
    transform: scale(1.4);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* CTA */
.social-proof-cta {
    text-align: center;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

/* Responsive */
@media (max-width: 991px) {
    .testimonial-content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2.5rem;
    }
    
    .testimonial-visual-col {
        order: 1; /* Visual below on mobile */
    }
    
    .testimonial-quote {
        font-size: 1.3rem;
        text-align: center;
    }
    
    .testimonial-info-col {
        align-items: center;
        text-align: center;
    }
    
    .testimonial-author {
        border-left: none;
        padding-left: 0;
        border-top: 2px solid var(--accent-color);
        padding-top: 1rem;
        align-items: center;
    }
    
    .developer-note-box {
        width: 100%;
    }
    
    .visual-compare-card {
        flex-direction: column;
        gap: 2rem;
    }
    
    .visual-arrow {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
}


/* ======================================================= */
/* =========== 13. MEDIA QUERIES (RESPONSIVE) ============ */
/* ======================================================= */
@media (max-width: 991px) {
    .mobile-menu-toggle { display: block; }
    .nav-wrapper { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: #020305; flex-direction: column; justify-content: flex-start; padding-top: 120px; padding-bottom: 40px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.4s ease; z-index: 1000; }
    .nav-wrapper.is-active, .mobile-menu-toggle[aria-expanded="true"] + .nav-wrapper { opacity: 1; visibility: visible; transform: translateY(0); }
    .nav-menu { flex-direction: column; gap: 1.5rem; text-align: center; width: 100%; }
    .nav-link-style { font-size: 1.6rem; color: var(--text-color); justify-content: center; font-family: var(--font-serif); }
    .nav-cta-container { flex-direction: column; width: 100%; justify-content: center; margin-top: 2rem; }
    .cta-button-nav { width: 80%; justify-content: center; max-width: 300px; }
    .dropdown .mega-menu { position: static; opacity: 1; visibility: visible; background: transparent; box-shadow: none; border: none; transform: none; display: none; padding: 0; }
    .dropdown.is-open .mega-menu { display: block; animation: fadeIn 0.3s; }
    .mega-menu-grid { grid-template-columns: 1fr; gap: 0.5rem; }
    .mega-menu-item { width: 100%; background: transparent; padding: 0.5rem; text-align: center; }
    .mega-menu-item h4 { font-size: 1.1rem; color: var(--text-muted); font-family: var(--font-sans); }
    .mega-menu-item p, .mega-menu-item i { display: none; }
    
    .service-teaser-grid, .pack-tier-grid, .comparison-grid, .cases-grid-layout, .service-content-layout, .team-features-grid, .speed-focus-grid { grid-template-columns: 1fr; gap: 2rem; }
    .works-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .illustration-showcase { grid-template-columns: 1fr; padding: 0 1rem; }
    .showcase-image { height: auto; aspect-ratio: 16/9; }
    .team-members-grid { grid-template-columns: repeat(2, 1fr); }
    
    .hero { align-items: center; justify-content: center; }
    .hero-content-wrap { padding-bottom: 2rem; }
    .hero h1 { font-size: 2.4rem; }
    .hero-kicker-logo { width: 140px; }
    
    /* Resultados Mobile */
    .results-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .results-left { text-align: center; }
    .results-right { padding-left: 0; }
    .results-separator-line { display: none; }
    .tech-accent-row { justify-content: center; }
    
    .gallery-nav.prev { left: 10px; } .gallery-nav.next { right: 10px; }
    .contact-title { font-size: 2.5rem; }
    .contact-card-glass { padding: 3rem 1.5rem; }
    .contact-method-item { flex-direction: column; text-align: center; gap: 1rem; }
    .method-icon { width: auto; font-size: 2rem; }
    .method-info { text-align: center; }
    .method-arrow { display: none; }
}

@media (max-width: 576px) {
    .app-header { padding: 1rem; }
    .hero-kicker-logo { width: 120px; }
    h2 { font-size: 2.2rem; }
    .footer-bottom-bar { flex-direction: column; gap: 1rem; text-align: center; }
    .footer-bottom-left { flex-direction: column; gap: 0.5rem; }
    .footer-bottom-left a { margin-left: 0; }
    .whatsapp-fab { width: 56px; height: 56px; bottom: 20px; right: 20px; font-size: 28px; }
    .team-members-grid { grid-template-columns: 1fr; }
    .works-grid { grid-template-columns: 1fr; }
    
    .hero .highlight::after {
        bottom: -4px;
    }

    /* --- Hero Mobile Adjustments --- */
    .hero h1 {
        font-size: 1.7rem;
        word-break: normal;
        overflow-wrap: break-word;
        line-height: 1.2;
    }
    
    .hero-content-wrap {
        padding: 0 1rem;
    }

    /* --- Social Proof Section Mobile Fixes --- */
    .social-proof-section {
        padding: 3rem 0;
    }

    .social-proof-header {
        margin-bottom: 2.5rem;
        padding: 0 1.5rem;
    }

    .social-proof-header h2 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .testimonial-content-grid {
        padding: 1.5rem;
        gap: 2rem;
        border-radius: 20px;
    }

    .testimonial-quote {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .testimonial-author {
        margin-bottom: 1.5rem;
    }

    .visual-compare-card {
        padding: 1rem;
        gap: 1rem;
    }
    
    .testimonial-controls {
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .testimonial-nav-btn {
        width: 40px;
        height: 40px;
    }

    .social-proof-cta {
        margin-top: 2.5rem;
    }

    /* Fix for overlapping content on mobile due to absolute positioning */
    .testimonial-slides-wrapper {
        min-height: auto;
        height: auto;
        margin-bottom: 2rem;
    }

    .testimonial-slide {
        position: absolute; /* Default state for inactive slides */
        opacity: 0;
        visibility: hidden;
    }

    .testimonial-slide.active-testimonial {
        position: relative; /* Active slide takes up space */
        opacity: 1;
        visibility: visible;
    }

    /* Fix for Recent Works buttons on mobile */
    .portfolio-filter-controls {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
        padding: 0 1rem;
    }

    .portfolio-filter-controls .btn-luxury-filter {
        width: 100%;
        max-width: 100%;
        min-width: auto;
        margin: 0;
    }
}

/* ======================================================= */
/* =========== 14. SOPORTE RTL (ÁRABE) =================== */
/* ======================================================= */
html[lang="ar"] { direction: rtl; }
html[lang="ar"] body { font-family: var(--font-ar); }
html[lang="ar"] .hero-content-wrap, html[lang="ar"] .cases-content-left h2, html[lang="ar"] .cases-content-right p, html[lang="ar"] .pack-tier-card, html[lang="ar"] .luxury-card { text-align: right; }
html[lang="ar"] .card-arrow { right: auto; left: 1.5rem; transform: rotate(180deg); }
html[lang="ar"] .mega-menu-item i { float: left; transform: rotate(180deg); }
html[lang="ar"] .service-features li { padding-left: 0; padding-right: 2rem; }
html[lang="ar"] .service-features li::before { left: auto; right: 0; }
html[lang="ar"] .problem-solution-card { border-left: none; border-right: 3px solid var(--accent-color); }
html[lang="ar"] .gallery-nav.prev { right: 0; left: auto; }
html[lang="ar"] .gallery-nav.next { left: 0; right: auto; }
html[lang="ar"] .whatsapp-fab { right: auto; left: 30px; }
html[lang="ar"] .logo-container { flex-direction: row; }

/* ======================================================= */
/* =========== NEW STYLES FOR RECENT WORKS =========== */
/* ======================================================= */

.recent-works-section {
    background: radial-gradient(circle at 50% 30%, #0a0a0a 0%, #000000 80%);
    min-height: 60vh; /* Ensure it takes up some space since we removed grid */
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}



/* Ensure buttons are centered and match description */
.portfolio-filter-controls {
    margin-bottom: 0; /* No need for large margin since grid is gone */
    margin-top: 3rem;
}

.portfolio-filter-controls .btn-luxury-filter {
    min-width: 260px;
}
