@font-face {
    font-family: 'Fraunces';
    src: url('Media/fonts/fraunces-v38-latin-300.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fraunces';
    src: url('Media/fonts/fraunces-v38-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fraunces';
    src: url('Media/fonts/fraunces-v38-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fraunces';
    src: url('Media/fonts/fraunces-v38-latin-900.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('Media/fonts/poppins-v24-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('Media/fonts/poppins-v24-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('Media/fonts/poppins-v24-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
:root {
    --primario: #00A3FF;
    --primario-soft: rgba(0, 163, 255, 0.1);
    --fondo: #0A0A0A;
    --fondo-secundario: #141414;
    --texto-principal: #FFFFFF;
    --texto-secundario: #B5B5B5;
    --borde: rgba(255, 255, 255, 0.08);
}

/* Bloqueo de selección y resaltado táctil */
* {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--fondo); }
::-webkit-scrollbar-thumb { background: var(--primario); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #33b5ff; }

/* Global */
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
body {
    font-family: 'Poppins', sans-serif;
    background: var(--fondo);
    color: var(--texto-principal);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    width: 100%;
}

.glow-bg {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    /* Brillo estático centrado arriba, en lugar de seguir al ratón */
    background: radial-gradient(ellipse at 50% -20%, rgba(0, 163, 255, 0.15) 0%, transparent 70%);
    pointer-events: none; 
    z-index: 1; 
}

/* --- TEXTURA CINEMATOGRÁFICA (RUIDO OPTIMIZADO PARA WPO) --- */
body::after {
    content: "";
    /* Clave 1: Fijo a la pantalla, así no se recalcula al hacer scroll */
    position: fixed; 
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    
    /* Clave 2: Deja pasar los clics hacia los botones que hay debajo */
    pointer-events: none; 
    z-index: 9999; 
    
    /* Clave 3: Usamos un patrón PNG transparente estático en lugar de matemáticas SVG */
    /* Te pongo esta URL de ejemplo, pero lo ideal es descargarla y ponerla en tu carpeta Media/ */
    background-image: url("https://www.transparenttextures.com/patterns/stardust.png"); 
    opacity: 0.40; /* Súbelo o bájalo según lo intenso que quieras el grano */
    
    /* Clave 4: Forzamos la aceleración por hardware (GPU) para que la CPU descanse */
    transform: translateZ(0);
    will-change: transform;
}

/* Clave 5: Ajuste para pantallas móviles de alta densidad (Retina/OLED) */
@media (max-width: 768px) {
    body::after {
        display: block !important; /* Forzamos a que se muestre */
        opacity: 0.75; /* Subimos la intensidad porque el móvil atenúa el efecto */
        background-size: 120px; /* Escalamos el grano para que no sea microscópico */
    }
}

@media (hover: hover) {
    /* Eliminamos el cursor: none del body directamente */
    
    /* Nueva clase que añadiremos por JS solo si todo funciona */
    body.custom-cursor-active, 
    body.custom-cursor-active * { 
        cursor: none !important; 
    }
    
    /* ... el resto de tu CSS para .cursor y .cursor-ring se queda igual ... */
    
    /* El punto central (Ahora mucho más grande y visible) */
    .cursor { 
        width: 18px; /* Agrandado de 10px a 18px */
        height: 18px;
        background: var(--primario); /* Color azul primario */
        border-radius: 50%; 
        position: fixed; 
        top: 0; 
        left: 0; 
        pointer-events: none; 
        z-index: 10000; 
        
        /* Contraste garantizado: Borde blanco sutil */
        border: 2px solid #FFFFFF; 
        
        opacity: 0; 
        transition: opacity 0.3s ease; 
        will-change: transform; 
    }
    
    /* El anillo exterior (Mantenemos el sutil del paso anterior) */
    .cursor-ring { 
        width: 40px; height: 40px; border: 1.5px solid var(--primario); border-radius: 50%; 
        position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; 
        opacity: 0; 
        transition: opacity 0.3s ease; 
        will-change: transform; 
    }
}

.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; background: var(--primario); width: 0%; z-index: 2001; box-shadow: 0 0 10px var(--primario); }

#back-to-top {
    position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px;
    background: var(--primario); color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 163, 255, 0.3); text-decoration: none;
}
#back-to-top.show { opacity: 1; visibility: visible; transform: translateY(-5px); }

/* Cookie Banner */
.cookie-banner {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(120%);
    width: 90%; max-width: 600px; background: rgba(20, 20, 20, 0.9); backdrop-filter: blur(20px);
    border: 1px solid var(--borde); border-radius: 24px; padding: 24px;
    z-index: 1500; transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
    display: flex; flex-direction: column; gap: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.cookie-banner.active { transform: translateX(-50%) translateY(0); }
.cookie-content p { font-size: 0.85rem; color: var(--texto-secundario); }
.cookie-content strong { color: white; display: block; margin-bottom: 4px; }
.cookie-actions { display: flex; gap: 12px; }
.cookie-btn { flex: 1; padding: 12px; border-radius: 12px; font-size: 0.8rem; font-weight: 700; cursor: pointer !important; text-transform: uppercase; transition: 0.3s; border: 1px solid transparent; }
.btn-accept { background: var(--primario); color: white; }
.btn-settings { background: rgba(255,255,255,0.05); color: white; border-color: var(--borde); }

/* Navigation */
nav {
    position: fixed; top: 0; width: 100%; z-index: 1000; padding: 24px 48px;
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(10, 10, 10, 0.7); backdrop-filter: blur(30px); border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo { font-family: 'Fraunces', serif; font-size: 1.6rem; font-weight: 900; color: white; text-decoration: none; transition: 0.3s; z-index: 1001; }
.logo span { color: var(--primario); font-style: italic; font-weight: 400; transition: 0.3s; }
.logo:hover { transform: scale(1.05); }
.logo:hover span { text-shadow: 0 0 15px var(--primario); }

.nav-links { display: flex; gap: 40px; list-style: none; align-items: center; }
.nav-links a { text-decoration: none; color: var(--texto-secundario); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; transition: 0.3s; cursor: pointer !important; }
.nav-links a:hover { color: white; }

.nav-cta { 
    background: var(--primario); color: white !important; padding: 12px 28px; border-radius: 100px; 
    font-weight: 700; font-size: 0.85rem; text-transform: uppercase; text-decoration: none;
    display: inline-flex; align-items: center; gap: 10px; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 163, 255, 0.2);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 163, 255, 0.4); }

.menu-btn { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer !important; z-index: 1001; }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 160px 48px 100px; position: relative; z-index: 2; width: 100%; }
.hero-container { width: 100%; max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 100px; }
.hero h1 { font-family: 'Fraunces', serif; font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 900; line-height: 0.95; margin-bottom: 32px; }
.hero h1 em { font-style: italic; font-weight: 900; color: var(--primario); }
.hero-content p { font-size: 1.25rem; color: var(--texto-secundario); margin-bottom: 56px; max-width: 600px; }

.nav-cta.hero-btn {
    background: linear-gradient(135deg, var(--primario) 0%, #0077FF 100%);
    box-shadow: 0 10px 25px -5px rgba(0, 163, 255, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1); position: relative; overflow: hidden; transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.nav-cta.hero-btn::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transition: 0.5s;
}
.nav-cta.hero-btn:hover::before { left: 100%; }
.nav-cta.hero-btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 15px 35px -5px rgba(0, 163, 255, 0.6); }

.btn-secondary {
    color: white; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 12px;
    padding: 12px 24px; border-radius: 100px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--borde);
    backdrop-filter: blur(10px); transition: all 0.3s ease;
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); color: var(--primario); }

/* Avatar & Stats */
.avatar-wrapper { 
    position: relative; 
    width: 100%; 
    max-width: 420px; 
    aspect-ratio: 1/1; 
    margin: 0 auto; 
    animation: float-photo 6s ease-in-out infinite; 
    transition: all 0.8s ease;
    z-index: 5;
}

.avatar-img { 
    width: 100%; 
    height: 100%; 
    border-radius: 48px; 
    object-fit: cover; 
    border: 1px solid var(--borde); 
    box-shadow: 0 40px 80px rgba(0,0,0,0.6); 
    transform: rotate(-3deg); 
    transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1); 
}

/* Estado desbloqueado cuando explotan las tarjetas */
.avatar-unlocked {
    animation: none !important;
    transform: translateY(0) !important;
}

.avatar-unlocked .avatar-img {
    transform: rotate(0deg) scale(1.1);
    border-color: var(--primario);
    box-shadow: 0 0 50px rgba(0, 163, 255, 0.4), 0 20px 60px rgba(0,0,0,0.8);
    filter: brightness(1.1);
}

.avatar-unlocked::before {
    content: '';
    position: absolute;
    inset: -30px;
    background: radial-gradient(circle, rgba(0, 163, 255, 0.35) 0%, transparent 70%);
    z-index: -1;
    border-radius: 60px;
    animation: pulse-glow 3s infinite alternate;
}

@keyframes pulse-glow {
    from { opacity: 0.4; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1.1); }
}

/* Añadimos un pequeño latido al borde para invitar a interactuar */
@keyframes hint-pulse {
    0%, 100% { border-color: var(--borde); }
    50% { border-color: rgba(0, 163, 255, 0.6); box-shadow: 0 0 15px rgba(0, 163, 255, 0.2); }
}

.stat-card { 
    position: absolute; 
    background: rgba(24, 24, 24, 0.95); 
    backdrop-filter: blur(12px); 
    border: 1px solid var(--borde); 
    padding: 16px 24px; 
    border-radius: 20px; 
    /* Combinamos tu animación float con el latido del borde */
    animation: float 4s ease-in-out infinite, hint-pulse 3s infinite; 
    z-index: 5; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.4); 
    cursor: pointer !important; 
    transition: all 0.3s ease; 
}

/* Efecto hover vibrante */
.stat-card:hover {
    border-color: var(--primario);
    background: rgba(30, 30, 30, 0.95);
    box-shadow: 0 25px 50px rgba(0, 163, 255, 0.25);
}
.stat-card.one { top: -20px; right: -20px; animation-delay: 0s; }
.stat-card.two { bottom: 40px; left: -40px; animation-delay: 1s; }
.stat-card.three { top: 35%; left: -60px; animation-delay: 2.5s; }

@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-15px) rotate(2deg); } }
@keyframes float-photo { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(-1deg); } }

.stat-card.popping { transform: scale(0) !important; opacity: 0; pointer-events: none; }
.pop-particle { position: fixed; width: 8px; height: 8px; background: var(--primario); border-radius: 50%; pointer-events: none; z-index: 9999; animation: particle-fly 0.8s cubic-bezier(0.2, 1, 0.3, 1) forwards; }
@keyframes particle-fly { 0% { transform: translate(0,0) scale(1); opacity: 1; } 100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; } }

/* Sections Global */
.section { padding: 120px 48px; max-width: 1400px; margin: 0 auto; position: relative; z-index: 2; }
.section-tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(0, 163, 255, 0.1); color: var(--primario); padding: 8px 20px; border-radius: 100px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; margin-bottom: 24px; border: 1px solid rgba(0, 163, 255, 0.2); }
.section h2 { font-family: 'Fraunces', serif; font-size: clamp(2.8rem, 6vw, 4.5rem); margin-bottom: 48px; line-height: 1.05; }

/* Bento Grid */
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bento-item { background: var(--fondo-secundario); padding: 40px; border-radius: 40px; border: 1px solid var(--borde); transition: all 0.4s ease; position: relative; overflow: hidden; }
.bento-item.featured { grid-column: span 2; }
.bento-item h3 { font-family: 'Fraunces', serif; font-size: 1.6rem; margin: 24px 0 12px; }

/* Marquee */
.marquee { overflow: hidden; padding: 60px 0; background: rgba(255,255,255,0.02); border-top: 1px solid var(--borde); border-bottom: 1px solid var(--borde); margin: 60px 0; }
.marquee-content { display: flex; gap: 80px; animation: scroll 30s linear infinite; width: max-content; }
/* Pausar animación en hover para mejor legibilidad */
.marquee:hover .marquee-content {
    animation-play-state: paused;
}
.marquee-item { font-family: 'Fraunces', serif; font-size: 1.5rem; font-weight: 700; color: rgba(255,255,255,0.2); text-transform: uppercase; white-space: nowrap; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Process */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; margin-top: 60px; }
.process-step { position: relative; padding: 40px; background: rgba(255,255,255,0.02); border-radius: 32px; border: 1px solid var(--borde); }
.step-number { font-family: 'Fraunces', serif; font-size: 4rem; font-weight: 900; color: var(--primario); opacity: 0.2; position: absolute; top: 20px; right: 30px; }
.process-step h4 { font-family: 'Fraunces', serif; font-size: 1.4rem; margin-bottom: 16px; position: relative; }

/* Projects */
.filter-container { display: flex; gap: 12px; margin-bottom: 48px; flex-wrap: wrap; }
.filter-btn { background: transparent; border: 1px solid var(--borde); color: var(--texto-secundario); padding: 10px 24px; border-radius: 100px; font-weight: 600; font-size: 0.8rem; cursor: pointer !important; transition: 0.3s; text-transform: uppercase; }
.filter-btn.active { background: var(--primario); color: white; border-color: var(--primario); }

.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 32px; }

.project-card { 
    position: relative; 
    border-radius: 32px; 
    background: var(--fondo-secundario); 
    border: 1px solid var(--borde);
    padding: 20px;
    text-decoration: none !important; 
    display: flex; 
    flex-direction: column;
    gap: 24px;
    transition: all 0.4s ease; 
}

.project-card.hidden { display: none; }

.project-card:hover {
    border-color: var(--primario);
    box-shadow: 0 15px 40px rgba(0, 163, 255, 0.15);
    transform: translateY(-5px);
}

.project-img-wrapper {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/10;
    position: relative;
    border: 1px solid var(--borde);
}

.project-img-wrapper img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1); 
}

.project-card:hover .project-img-wrapper img { 
    transform: scale(1.05); 
}

.project-info { 
    display: flex; 
    flex-direction: column; 
    gap: 16px;
    padding: 0 8px 8px;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.project-info .tag { 
    font-size: 0.7rem; 
    font-weight: 700; 
    padding: 6px 14px; 
    border-radius: 100px; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-info .tag:not(.outline) {
    background: rgba(0, 163, 255, 0.1);
    color: var(--primario);
    border: 1px solid rgba(0, 163, 255, 0.2);
}

.project-info .tag.outline {
    background: transparent;
    color: var(--texto-secundario);
    border: 1px solid var(--borde);
}

.project-info h3 { 
    color: #FFFFFF !important; 
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    margin: 0; 
}

/* Ajuste del Skeleton Loader para el nuevo diseño */
.skeleton { background-color: transparent; }
.skeleton .project-img-wrapper { background-color: #1a1a1a; }
.skeleton .project-img-wrapper::after {
    content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: skeleton-shine 1.5s infinite;
}
.skeleton-loaded .project-img-wrapper::after { display: none; }
.skeleton-loaded .project-img-wrapper { background-color: transparent !important; }

/* Testimonials */
.testimonial-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 32px; 
    align-items: start; 
}

.testimonial-card { 
    background: var(--fondo-secundario); 
    padding: 40px; 
    border-radius: 40px 40px 40px 0; 
    border: 1px solid var(--borde); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 163, 255, 0.15);
    border-color: rgba(0, 163, 255, 0.4);
}

@media (min-width: 1024px) {
    .testimonial-grid {
        grid-template-columns: repeat(3, 1fr);
        padding-bottom: 40px;
    }
    .testimonial-card:nth-child(3n+2) {
        margin-top: 40px;
    }
}
/* --- ETIQUETA DE DISPONIBILIDAD --- */
.availability-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    background: rgba(0, 255, 136, 0.08);
    color: #00FF88;
    padding: 5px 14px;
    border-radius: 100px;
    width: fit-content;
    margin: 0 auto 24px;
    font-size: 0.65rem;
    font-weight: 700;
    border: 1px solid rgba(0, 255, 136, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #00FF88;
    border-radius: 50%;
    box-shadow: 0 0 8px #00FF88;
    animation: pulse 2s infinite;
}

/* --- ESTILO DEL BOTÓN DE WHATSAPP --- */
.btn-whatsapp {
    background: #25D366;
    color: white !important;
    padding: 12px 28px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 8px 20px -5px rgba(37, 211, 102, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.btn-whatsapp i {
    font-size: 1.2rem;
}

.btn-whatsapp:hover {
    transform: translateY(-3px) scale(1.02);
    background: #20ba5a;
    box-shadow: 0 12px 28px -5px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: 0.6s;
}

.btn-whatsapp:hover::after {
    left: 100%;
}

/* --- FAQ MEJORADO (Tarjetas, 2 Columnas y Texto Justificado) --- */
.faq-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 24px; 
    align-items: start; 
}

.faq-item { 
    background: rgba(255, 255, 255, 0.02); 
    border: 1px solid var(--borde); 
    border-radius: 20px; 
    overflow: hidden; 
    transition: all 0.4s ease; 
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 163, 255, 0.3);
}

.faq-item.active {
    background: var(--fondo-secundario);
    border-color: var(--primario);
    box-shadow: 0 10px 30px rgba(0, 163, 255, 0.05);
}

.faq-question { 
    width: 100%;
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 24px;
    background: transparent;
    border: none;
    color: var(--texto-principal);
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem; 
    font-weight: 600; 
    text-align: left;
    cursor: pointer !important; 
    gap: 20px;
}

.faq-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 163, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

.faq-icon { 
    transition: 0.4s ease; 
    color: var(--primario); 
    font-size: 0.9rem;
}

.faq-item.active .faq-icon-wrapper {
    background: var(--primario);
}

.faq-item.active .faq-icon { 
    transform: rotate(45deg); 
    color: white;
}

.faq-answer-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

.faq-item.active .faq-answer-wrapper {
    grid-template-rows: 1fr;
}

.faq-answer { 
    overflow: hidden; 
}

.faq-answer p {
    padding: 0 24px 24px 24px;
    color: var(--texto-secundario);
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: justify;
    hyphens: auto;
}

/* Contact Box */
.contact-box { text-align: center; max-width: 800px; margin: 0 auto; background: var(--fondo-secundario); padding: 80px 40px; border-radius: 60px; border: 1px solid var(--borde); }

/* Footer */
footer { background: #070707; padding: 100px 48px 40px; border-top: 1px solid var(--borde); position: relative; z-index: 2; }
.footer-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; }
.footer-social a { color: white; background: rgba(255, 255, 255, 0.05); width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: 0.3s; border: 1px solid var(--borde); text-decoration: none; }
.footer-social a:hover { background: var(--primario); transform: translateY(-5px); border-color: var(--primario); }
.footer-bottom { max-width: 1400px; margin: 80px auto 0; padding-top: 40px; border-top: 1px solid var(--borde); display: flex; justify-content: space-between; align-items: center; color: rgba(255,255,255,0.3); font-size: 0.8rem; flex-wrap: wrap; gap: 20px; }

/* Modals */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.9); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; z-index: 2000; opacity: 0; visibility: hidden; transition: all 0.4s ease; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-container { background: var(--fondo-secundario); width: 90%; max-width: 800px; max-height: 80vh; border-radius: 40px; border: 1px solid var(--borde); padding: 60px 40px; position: relative; overflow-y: auto; transform: translateY(40px); transition: 0.4s ease; }
.modal-overlay.active .modal-container { transform: translateY(0); }
.modal-close { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; background: rgba(255,255,255,0.05); border: none; border-radius: 50%; color: white; cursor: pointer !important; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; z-index: 10; }
.modal-body { line-height: 1.8; color: var(--texto-secundario); }
.modal-body h3 { color: white; margin-bottom: 24px; font-family: 'Fraunces', serif; font-size: 2rem; }
.modal-body h4 { color: white; margin: 32px 0 16px; font-size: 1.25rem; font-weight: 600; }
.modal-body strong { color: white; }
.modal-body a { color: var(--primario); text-decoration: none; font-weight: 600; transition: 0.3s; }

/* Utilities */
/* Utilities */
.reveal { opacity: 0; transform: translateY(30px); transition: 1s cubic-bezier(0.2, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 255, 136, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; gap: 60px; text-align: center; }
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .hero-cta-container { justify-content: center; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-item.featured { grid-column: span 1; }
    .footer-grid { grid-template-columns: 1fr 1fr; text-align: center; }
    .footer-brand, .footer-col { display: flex; flex-direction: column; align-items: center; }
    .footer-col ul { align-items: center; }
    .footer-social { justify-content: center; }
}

@media (max-width: 768px) {
    /* Desactivar ruido SVG en móviles para evitar tirones de rendimiento (Scroll Jank) */
    body::after {
        display: none !important;
    }
    /* Ajustes FAQ móvil */
    .faq-container {
        grid-template-columns: 1fr; /* Vuelve a 1 sola columna en móviles */
        max-width: 800px;
    }
    .faq-question {
        padding: 20px;
        font-size: 1rem;
    }
    .faq-answer p {
        padding: 0 20px 20px 20px;
        font-size: 0.85rem;
    }

    /* Resto de ajustes móviles */
    .section { padding: 80px 24px; text-align: center; }
    .section h2 { font-size: clamp(2.5rem, 11vw, 3.2rem); text-align: center; }
    .section-tag { margin-left: auto; margin-right: auto; display: flex; width: fit-content; justify-content: center; }
    .hero { padding-top: 120px; }
    .hero h1 { font-size: clamp(2.6rem, 10vw, 3.5rem); text-align: center; }
    .hero-content { align-items: center; text-align: center; }
    .hero-cta-container { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-social { justify-content: center; }
    .footer-bottom { justify-content: center; text-align: center; flex-direction: column; width: 100%; margin: 40px 0 0 0; }
    .stat-card { padding: 10px 14px; min-width: 110px; scale: 0.8; }
    .stat-card.one { top: -40px; right: 0px; }
    .stat-card.two { bottom: -30px; left: 0px; }
    .stat-card.three { top: 40%; left: -40px; }
    .menu-btn { display: block; }
    
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background: rgba(10, 10, 10, 0.98); backdrop-filter: blur(20px);
        flex-direction: column; justify-content: center; align-items: center; gap: 40px;
        transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1); z-index: 1000;
    }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.4rem; }
    .nav-cta { font-size: 1.2rem; padding: 16px 36px; }
    
    .testimonial-grid, .project-grid, .process-grid { grid-template-columns: 1fr; }
    .step-number { position: relative; top: 0; right: 0; margin-bottom: 10px; display: block; }

    .btn-whatsapp { display: inline-flex; width: auto; min-width: 200px; max-width: 260px; margin: 10px auto 0; padding: 10px 20px; font-size: 0.8rem; }
    .btn-whatsapp i { font-size: 1rem; }
    .availability-tag { padding: 4px 12px; font-size: 0.6rem; }
}

/* Corrección de legibilidad y accesibilidad */
.availability-tag, 
.stat-card p, 
.project-info span,
.cookie-content p,
.cookie-btn { 
    font-size: 0.875rem; 
}

.text-outline { 
    color: var(--primario); 
    -webkit-text-stroke: 0; 
}
@keyframes spin-svg { 100% { transform: rotate(360deg); } }
.project-card { text-decoration: none !important; }
.project-info h3 { color: #FFFFFF !important; margin: 0; }
.project-info span { color: #79D1FF !important; }
/* Honeypot Oculto (Anti-spam) */
.hp-wrapper {
    opacity: 0;
    position: absolute;
    top: 0;
    left: -9999px;
    height: 0;
    width: 0;
    z-index: -1;
    pointer-events: none;
}
/* --- MICRO-INTERACCIONES FORMULARIO (CORREGIDO) --- */

/* 1. Resetear Autofill del Navegador (Crucial para mantener el fondo oscuro y texto blanco) */
#contactForm input:-webkit-autofill,
#contactForm textarea:-webkit-autofill {
    box-shadow: 0 0 0px 1000px rgba(18, 18, 18, 1) inset !important; /* Usamos #121212 que es tu fondo bento aprox */
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s; /* Evita que el navegador cambie el color */
}

/* 2. Efecto FOCUS GLOBAL (Brillo azul al escribir) */
#contactForm input:focus, 
#contactForm textarea:focus {
    outline: none;
    border-color: var(--primario) !important;
    box-shadow: 0 0 15px rgba(0, 163, 255, 0.2);
    transition: all 0.3s ease;
}

/* 3. Efecto VÁLIDO (Anula el azul, pone borde verde y Checkmark) */
/* El orden importa: lo ponemos después del focus para que gane si está validado */
.input-valid {
    border-color: #00FF88 !important; /* Borde Verde */
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2) !important; /* Resplandor Verde */
    
    /* Asegurar fondo oscuro y texto blanco explícitamente */
    background: rgba(18, 18, 18, 0.95) !important; 
    color: white !important;

    /* Icono Checkmark Verde */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' fill='%2300FF88'%3E%3Cpath d='M470.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 338.7 425.4 105.4c12.5-12.5 32.8-12.5 45.3 0z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 20px !important;
    padding-right: 45px !important; 
    transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}
/* --- SMART NAVBAR (Navegación Inteligente) --- */

/* 1. Le damos al nav actual la capacidad de animarse de forma fluida */
nav {
    transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1), padding 0.4s ease, background 0.4s ease !important;
    will-change: transform;
}

/* 2. Clase que oculta el menú tirándolo hacia arriba de la pantalla */
nav.nav-hidden {
    transform: translateY(-100%);
}

/* 3. Clase que hace el menú un poco más compacto cuando el usuario ya no está arriba del todo */
nav.scrolled {
    padding-top: 16px;
    padding-bottom: 16px;
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    nav.scrolled {
        padding-top: 12px;
        padding-bottom: 12px;
    }
}
/* --- TOOLTIP COPIAR EMAIL --- */
.copy-email-btn {
    position: relative; /* Crucial para que el tooltip flote respecto a este botón */
    cursor: pointer !important;
}

.email-tooltip {
    position: absolute;
    bottom: 140%; /* Aparece flotando encima del botón */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--primario);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap; /* Evita que el texto se parta en dos líneas */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.2, 1, 0.3, 1);
    pointer-events: none; /* Evita clics fantasma en el tooltip */
    box-shadow: 0 4px 15px rgba(0, 163, 255, 0.3);
}

/* El piquito inferior (la flecha del bocadillo) */
.email-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--primario) transparent transparent transparent;
}

/* Clase que aplicaremos con JS para mostrarlo */
.email-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
/* --- ROTADOR DE PALABRAS HERO --- */
#hero-word {
    display: inline-block; /* Necesario para poder moverlo hacia arriba/abajo */
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    will-change: opacity, transform;
}
/* --- SELECCIÓN DE TEXTO PERSONALIZADA --- */
::selection {
    background: var(--primario);
    color: #000000; /* Texto en negro para máximo contraste */
    text-shadow: none;
}
::-moz-selection {
    background: var(--primario);
    color: #000000;
    text-shadow: none;
}
/* 1. Resetear Autofill del Navegador (Versión Blindada) */
#contactForm input:-webkit-autofill,
#contactForm input:-webkit-autofill:hover,
#contactForm input:-webkit-autofill:focus,
#contactForm textarea:-webkit-autofill,
#contactForm textarea:-webkit-autofill:hover,
#contactForm textarea:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #121212 inset !important;
    box-shadow: 0 0 0px 1000px #121212 inset !important;
    -webkit-text-fill-color: #FFFFFF !important;
    transition: background-color 5000s ease-in-out 0s;
}
/* --- EFECTO FOCO (Focus Dimming) --- */

/* 1. Cuando el ratón entra en el contenedor del grid, atenuamos TODAS las tarjetas */
.bento-grid:hover .bento-item,
.project-grid:hover .project-card {
    opacity: 0.35;
    filter: blur(4px) grayscale(30%);
    transition: all 0.4s ease;
}

/* 2. Pero la tarjeta exacta que el ratón está tocando recupera todo su brillo y nitidez */
.bento-grid .bento-item:hover,
.project-grid .project-card:hover {
    opacity: 1 !important;
    filter: blur(0px) grayscale(0%) !important;
    z-index: 10; /* La ponemos por encima del resto */
}
/* --- ANIMACIÓN EN CASCADA (HERO LOAD) --- */
.hero-anim {
    opacity: 0;
    transform: translateY(40px);
    /* Animación fluida hacia arriba */
    animation: cascadeFadeUp 1s cubic-bezier(0.2, 1, 0.3, 1) forwards;
    /* Lee el retraso que hemos puesto en el HTML para el efecto dominó */
    animation-delay: var(--delay, 0s);
    will-change: opacity, transform;
}

@keyframes cascadeFadeUp {
    0% { 
        opacity: 0; 
        transform: translateY(40px); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0); 
    }
}
/* --- AJUSTE DE BOTÓN WHATSAPP EN MÓVIL --- */
@media (max-width: 768px) {
    /* 1. Asegurar que el contenedor del footer centra los elementos */
    footer .flex.flex-col {
        align-items: center !important; /* Centra el botón y el enlace de email */
        gap: 20px !important; /* Espacio más equilibrado entre los dos */
    }

    /* 2. Reducir y centrar el botón de WhatsApp */
    .btn-whatsapp {
        width: auto !important; /* Anular el 100% de ancho */
        display: inline-flex !important; /* Volver a su estado natural inline */
        padding: 12px 28px !important; /* Reducir relleno vertical y horizontal */
        font-size: 0.95rem !important; /* Un poco más pequeña la letra */
        border-radius: 30px !important; /* Un toque más redondeado para suavizar */
    }
}
/* --- AJUSTE BOTÓN "EMPEZAR PROYECTO" EN MÓVIL --- */
@media (max-width: 768px) {
    /* Reducimos el tamaño exagerado del botón principal */
    .nav-cta, .nav-cta.hero-btn {
        font-size: 0.9rem !important; /* Letra más elegante y estándar */
        padding: 12px 28px !important; /* Relleno proporcional */
        width: auto !important; 
        display: inline-flex !important;
        justify-content: center;
    }
    
    /* Aseguramos que los botones de la cabecera se apilen bien sin estirarse */
    .hero-cta-container {
        display: flex !important;
        flex-direction: column !important; /* Pone un botón encima del otro */
        align-items: center !important; /* Los centra horizontalmente */
        gap: 16px !important; /* Espacio entre los dos botones */
        width: 100%;
    }
}
/* --- SKELETON LOADER (Efecto de carga para imágenes) --- */
.skeleton {
    position: relative;
    overflow: hidden;
    background-color: #1a1a1a; /* Un gris ligeramente más claro que tu fondo */
}

.skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    /* El brillo que se desplaza */
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    animation: skeleton-shine 1.5s infinite;
}

@keyframes skeleton-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Clase para ocultar el esqueleto cuando la imagen esté lista */
.skeleton-loaded::after {
    display: none;
}
.skeleton-loaded {
    background-color: transparent !important;
}
/* --- WIDGET DE ESTADO Y HORA --- */
.status-widget {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid var(--borde);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--texto-secundario);
    margin-bottom: 20px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00FF88; /* Verde neón */
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 10px #00FF88;
}

/* Efecto de latido LED */
.status-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #00FF88;
    animation: status-pulse 2s infinite;
    opacity: 0;
}

@keyframes status-pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(2.5); opacity: 0; }
}
/* Ajuste específico para el widget en el footer */
.footer-status {
    margin-top: 20px; /* Separación de los iconos sociales */
    background: rgba(255, 255, 255, 0.02) !important; /* Más sutil */
    border-color: rgba(255, 255, 255, 0.05) !important;
    display: flex !important;
    width: fit-content;
}

/* Si tu footer está centrado en móvil, esto lo mantendrá alineado */
@media (max-width: 1024px) {
    .footer-status {
        margin-left: auto;
        margin-right: auto;
    }
}
#successModal strong {
    color: var(--primario); /* Hace que el "24 horas" brille en tu azul corporativo */
    font-weight: 700;
}