:root {
    /* Colors - Premium 2026 Palette */
    --bg-black: #05070A;
    --surface-dark: #0A0C10;
    --surface-bright: #11151C;
    --accent-cyan: #00FFFF;
    --accent-cyan-glow: rgba(0, 255, 255, 0.15);
    --text-primary: #E0E0E0;
    --text-secondary: #94A3B8;
    --border-fine: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(0, 255, 255, 0.2);
    
    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-condensed: 'Inter Tight', 'Inter', sans-serif; 
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    
    /* Transitions */
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-black);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-weight: 600; 
    line-height: 1.6; 
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

/* Background Grid Signature — ahora con canvas de red neural viva */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.bg-grid canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* ── CURSOR CUSTOM ──────────────────────────────────────────────────
   Punto interior (instantáneo) + anillo que sigue con retardo elástico.
   El anillo crece sobre elementos interactivos (clase .cursor-hover). */
#cursor-dot,
#cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 2147483647;   /* máximo entero de CSS: siempre sobre TODO, incluso modales */
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

#cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

#cursor-ring {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(0, 255, 255, 0.5);
    transition: width 0.25s ease, height 0.25s ease,
                border-color 0.25s ease, background 0.25s ease;
}

#cursor-ring.cursor-hover {
    width: 56px;
    height: 56px;
    border-color: rgba(0, 255, 255, 0.9);
    background: rgba(0, 255, 255, 0.06);
}

#cursor-ring.cursor-pressed {
    width: 22px;
    height: 22px;
}

/* Ocultar el cursor nativo SOLO en dispositivos con mouse fino (desktop).
   Regla universal: evita que elementos sin estilo propio (svg, .gift-box-btn,
   divs con onclick, etc.) rescaten la flecha del sistema. */
@media (hover: hover) and (pointer: fine) {
    body.custom-cursor, body.custom-cursor * {
        cursor: none !important;
    }
}

/* En móvil/touch el cursor custom no existe */
@media (hover: none), (pointer: coarse) {
    #cursor-dot, #cursor-ring { display: none; }
}

/* ── PARTÍCULAS EN BOTONES ───────────────────────────────────────────
   Canvas absoluto dentro del botón; los puntos nacen junto al cursor
   (los genera JS al hacer hover) y se desvanecen solos. */
.btn-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    z-index: 1;
}

/* Los contenedores de partículas necesitan clipping y contexto */
.tech-wa-btn, .mas-regalos-btn, .chatbot-toggle, #scrollTopBtn {
    position: relative;
    overflow: hidden;
}

/* ── HAZ DE LUZ SINÁPTICO ENTRE TARJETAS ─────────────────────────────
   Canvas fijo sobre toda la página (pointer-events: none) que dibuja
   rayos animados cursor→tarjeta y tarjeta↔tarjeta cuando la sección
   de servicios está en viewport. Lo pinta JS. */
#synapse-beams {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 5;    /* sobre las cards (z=1..2), bajo el chat (2000) y el modal */
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 32px;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.nav-container {
    background: rgba(5, 7, 10, 0.4);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    padding: 8px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.05em;
}

.nav-logo img {
    height: 44px; /* 20% larger than text visually */
    width: auto;
    filter: drop-shadow(0 0 8px var(--accent-cyan-glow));
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-link {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.5;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.nav-link:hover {
    opacity: 1;
    color: var(--accent-cyan);
}

/* ── Fondo del hero: capa fija con PARALLAX ──────────────────────────
   La imagen vive detrás de TODO el sitio (fixed), se desplaza más lento
   que el scroll (JS regula --bg-y) y se atenúa al bajar para ceder
   protagonismo al contenido. */
#hero-bg {
    position: fixed;
    inset: -30% -6% -12% -6%;      /* margen superior amplio: cubre el recorrido del parallax */
    background: url('hero-fondo-opt.jpg') center/cover no-repeat;
    transform: translateY(var(--bg-y, 0px)) scale(var(--bg-scale, 1));
    will-change: transform;
    z-index: -2;
}

/* Atenuación progresiva del fondo según profundidad de scroll */
#hero-fade {
    position: fixed;
    inset: 0;
    background: var(--bg-black);
    opacity: var(--bg-fade, 0);
    z-index: -1;
    pointer-events: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    background: transparent;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Viñeta suave para legibilidad del texto, sin apagar los brillos del fondo */
    background: radial-gradient(ellipse 90% 70% at 30% 50%, transparent 0%, rgba(5, 7, 10, 0.5) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-xl);
    width: 100%;
}

.hero-text h1 {
    font-size: clamp(4rem, 14vw, 10rem);
    font-weight: 800;
    margin-left: -0.05em; /* Optical alignment */
    line-height: 0.9;
    background: linear-gradient(to bottom, #fff 50%, #666);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.2rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--accent-cyan);
    font-weight: 500;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
    opacity: 0.9;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Services */
.services-section {
    background: var(--bg-black);
    padding: var(--space-xl) 0;
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 200px;
    background: linear-gradient(to bottom, var(--accent-cyan), transparent);
}

/* Services Zig-Zag Layout */
.services-layout {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

/* ── Tarjetas de servicio premium ──
   Borde con gradiente animado + glow interior + seguimiento de cursor */
.service-card {
    max-width: 500px;
    /* Glassmorphism: translúcido para que la red neural del fondo
       se transparente a través de la tarjeta (integración visual) */
    background: rgba(10, 12, 16, 0.55);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    padding: var(--space-md);
    border-radius: 32px;
    box-shadow: inset 0 0 10px rgba(0,255,255,0.02), 0 24px 48px rgba(0,0,0,0.45);
    position: relative;
    overflow: hidden;
    /* Tilt 3D — definiciones en el bloque de animaciones */
    transform-style: preserve-3d;
    transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transition: transform 0.25s ease-out, background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    will-change: transform;
}

/* Glow interior que sigue al cursor (coordenadas las setea JS) */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        300px circle at var(--card-mx, 50%) var(--card-my, 50%),
        rgba(0, 255, 255, 0.08),
        transparent 65%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.service-card:hover::before { opacity: 1; }

/* Asegura que el contenido quede por encima del glow */
.service-card > * { position: relative; z-index: 1; }

.service-card:nth-child(even) {
    align-self: flex-end;
}

.service-card:nth-child(odd) {
    align-self: flex-start;
}

/* Anillo exterior con gradiente al hover */
.service-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(
        from var(--card-angle, 0deg),
        rgba(0, 255, 255, 0.6),
        rgba(139, 92, 246, 0.3),
        transparent 40%,
        transparent 60%,
        rgba(0, 255, 255, 0.6)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

.service-card:hover::after { opacity: 1; }

@property --card-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes card-border-rotate {
    to { --card-angle: 360deg; }
}

.service-card:hover::after {
    animation: card-border-rotate 4s linear infinite;
}

.service-card:hover {
    border-color: transparent;
    background: rgba(17, 21, 28, 0.6);
    box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.05), 0 20px 40px rgba(0,0,0,0.4);
}

.card-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    display: block;
    opacity: 1;
    letter-spacing: 0.1em;
    transition: var(--transition-smooth);
}

/* El número también reacciona al hover */
.service-card:hover .card-number {
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
    letter-spacing: 0.18em;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

/* About Section Refinement */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about-img-wrapper {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    border: 1px solid var(--border-fine);
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
}

.about-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    filter: contrast(1.1) brightness(0.9);
    transition: var(--transition-smooth);
}

.about-img-wrapper:hover img {
    transform: scale(1.05);
}

.about-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5,7,10,0.4), transparent);
}

/* Chatbot Premium 2026 */
.chatbot-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 2000;
}

.chatbot-toggle {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    background: var(--surface-dark);
    border: 1px solid var(--border-fine);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 0 10px rgba(0,255,255,0.1);
    transition: var(--transition-smooth);
}

.chatbot-toggle:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 20px var(--accent-cyan-glow);
}

/* Mini red neural viva — el ícono del bot */
.bot-neural-icon {
    width: 44px;
    height: 44px;
    display: block;
    border-radius: inherit;
    pointer-events: none;
}

/* Anillo pulsante de actividad alrededor del bot (como "está pensando") */
.chatbot-toggle::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 28px;
    border: 1px solid rgba(0, 255, 255, 0.25);
    animation: bot-pulse 3s ease-in-out infinite;
    pointer-events: none;
}
@keyframes bot-pulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.08); opacity: 0.9; }
}

/* --- NEW CHATBOT EVOLUTION (IMAGE 1 STYLE) --- */
.chatbot-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 550px;
    background: rgba(10, 15, 25, 0.9);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    display: none;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: hidden;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.chatbot-header {
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.bot-avatar-wrapper {
    width: 45px;
    height: 45px;
    border-radius: 14px;
    border: 1px solid var(--accent-cyan);
    padding: 2px;
    background: var(--surface-bright);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.bot-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.header-info h4 { 
    font-size: 1.1rem; 
    font-weight: 700; 
    color: #fff; 
    margin: 0; 
    letter-spacing: -0.5px;
}

.status-dot {
    color: var(--accent-cyan);
    font-size: 0.9rem;
    margin: 0 4px;
}

.status-text {
    color: var(--accent-cyan);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.chatbot-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scrollbar-width: none;
}

/* Bubbles Style - Mirroring Image 1 */
.message {
    max-width: 85%;
    padding: 1rem 1.2rem;
    font-size: 0.9rem;
    line-height: 1.5;
    position: relative;
}

.message.system {
    align-self: flex-start;
    background: #1A222C;
    color: #E2E8F0;
    border-radius: 4px 20px 20px 20px;
    border: 1px solid rgba(255,255,255,0.03);
}

.message.user {
    align-self: flex-end;
    background: #3B82F6; /* Azure blue from Image 1 */
    color: #fff;
    border-radius: 20px 20px 4px 20px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.message-time {
    font-size: 0.65rem;
    opacity: 0.5;
    display: block;
    text-align: right;
    margin-top: 5px;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: #1A222C;
    border-radius: 4px 20px 20px 20px;
    width: fit-content;
    margin-bottom: 1rem;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
}

/* Quick Reply Chips */
.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.chip {
    padding: 6px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
    color: #fff;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chip:hover {
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--accent-cyan);
}

.chatbot-input {
    padding: 1.2rem;
    background: rgba(255,255,255,0.02);
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    gap: 10px;
}

.chatbot-input input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
}

/* Components */
.btn-accent {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: transparent;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-accent:hover {
    background: var(--accent-cyan);
    color: var(--bg-black);
    box-shadow: 0 0 30px var(--accent-cyan-glow);
    transform: translateY(-2px);
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--surface-bright);
    border: 1px solid var(--border-fine);
    border-radius: 100px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

/* Animaciones — Reveal con stagger (visible → se anima al entrar en viewport) */
.reveal {
    opacity: 0;
    translate: 0 40px;
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), translate 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0s);
}

.reveal.active {
    opacity: 1;
    translate: 0 0;
}

/* ── TILT 3D — perspectiva para tarjetas y foto de perfil ──────────
   (las propiedades del tilt viven en .service-card; aquí el contenedor) */
.services-layout {
    perspective: 1200px;
}

/* Capa de brillo especular que se desplaza con el tilt */
.service-card .tilt-shine {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.06) 50%,
        transparent 60%
    );
    translate: var(--shine-x, 0px) var(--shine-y, 0px);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.service-card:hover .tilt-shine { opacity: 1; }

/* Profundidad interna: el número "flota" por encima de la tarjeta */
.service-card .card-number {
    transform: translateZ(30px);
}

/* ── Nodo neural 3D en el hero ─────────────────────────────────────
   JS regula --node-rx/--node-ry según posición del mouse */
.hero-visual {
    perspective: 1000px;
}

.neural-node {
    transform: rotateX(var(--node-rx, 0deg)) rotateY(var(--node-ry, 0deg));
    transform-style: preserve-3d;
    transition: transform 0.3s ease-out;
    will-change: transform;
}

/* ── Barra de progreso de scroll ──────────────────────────────────── */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    transform-origin: 0 50%;
    transform: scaleX(var(--scroll-pct, 0));
    background: linear-gradient(90deg, var(--accent-cyan), #8B5CF6);
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.6);
    z-index: 10000;
    pointer-events: none;
}

@keyframes pulse-cyan {
    0%, 100% { opacity: 0.5; filter: blur(40px); }
    50% { opacity: 0.8; filter: blur(60px); }
}

/* FAQ Pills inside Chatbot */
.faq-pills-container {
    padding: 0 0 1rem 0;
}

.faq-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.faq-pill {
    padding: 0.5rem 1rem;
    background: #1A2635;
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.faq-pill:hover {
    background: #23344a;
    border-color: var(--accent-cyan);
}

@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { display: none; }
    .about-grid { grid-template-columns: 1fr; text-align: center; }
    .about-img-wrapper { order: -1; max-width: 400px; margin: 0 auto; }
    .nav-links { display: none; }
    .faq-pills { justify-content: center; }
}

/* ═══════════════════════════════════════════════
   MOBILE RESPONSIVE — 768px y menor
═══════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* ── Base ── */
    html { font-size: 15px; }
    body { overflow-x: hidden; }
    .container { padding: 0 1.25rem; }

    /* ── Navbar ── */
    .navbar { top: 12px; left: 0; right: 0; width: 100%; }
    .nav-container {
        padding: 10px 18px;
        border-radius: 16px;
        margin: 0 1rem;
        max-width: calc(100% - 2rem);
    }
    .nav-logo { font-size: 1.1rem; }
    .nav-logo img { height: 32px; }
    .nav-links { display: none; }

    /* ── Hero ── */
    .hero {
        height: auto;
        min-height: 100svh;
        padding: 110px 0 60px;
        align-items: flex-start;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .hero-visual { display: none; }
    .hero-text h1 {
        font-size: clamp(3rem, 18vw, 5rem);
        line-height: 0.92;
    }
    .hero-subtitle {
        font-size: 0.72rem;
        letter-spacing: 0.2em;
        margin-bottom: 2rem;
    }
    .hero-cta-group {
        flex-direction: column;
        align-items: center;
        gap: 0.85rem;
    }
    .hero-cta-group a, .hero-cta-group button {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        text-align: center;
    }

    /* ── Section spacing ── */
    section { padding: 70px 0 !important; }
    .section-title { font-size: clamp(1.8rem, 8vw, 2.5rem); }

    /* ── Services grid → columna única ── */
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    .service-card { padding: 1.5rem; }

    /* ── About ── */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .about-img-wrapper { max-width: 260px; margin: 0 auto; }
    .about-stats { justify-content: center; }

    /* ── Chatbot window ── */
    .chatbot-window {
        width: calc(100vw - 2rem) !important;
        max-width: 360px;
        right: 1rem !important;
        bottom: 5rem !important;
        height: 72vh !important;
    }
    .chatbot-toggle {
        right: 1rem !important;
        bottom: 1.25rem !important;
    }

    /* ── Gift box / tech panel ── */
    .gift-wrapper { padding: 2rem 1.25rem !important; }
    .gift-box-btn { padding: 1.5rem 1rem; }
    .gift-emoji { font-size: 2.8rem !important; }
    .gift-title { font-size: 1rem !important; }
    .tech-panel { width: 100% !important; }
    .tech-messages { height: 180px !important; }

    /* ── Scripts list (más regalos) ── */
    .scripts-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .scripts-dl-link { align-self: flex-end; }

    /* ── Floating buttons: no se pisen ── */
    #scrollTopBtn {
        bottom: 5.5rem !important;
        right: 1rem !important;
        width: 38px !important;
        height: 38px !important;
    }

    /* ── Exit intent modal ── */
    #exitModal > div {
        padding: 2rem 1.25rem !important;
        width: 92% !important;
    }

    /* ── Footer responsive ── */
    footer > div > div:first-child {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    footer > div > div:last-child {
        flex-direction: column !important;
        text-align: center !important;
        gap: 0.5rem !important;
    }
}

/* ═══════════════════════════════════════════════
   MOBILE XS — 480px y menor
═══════════════════════════════════════════════ */
@media (max-width: 480px) {
    .hero-text h1 { font-size: clamp(2.6rem, 20vw, 3.5rem); }
    .hero-subtitle { font-size: 0.65rem; letter-spacing: 0.12em; }
    .section-title { font-size: 1.6rem; }
    .chatbot-window {
        width: calc(100vw - 1.5rem) !important;
        right: 0.75rem !important;
    }
    .nav-container { margin: 0 0.75rem; }
}

/* ═══════════════════════════════════════════════
   ACCESIBILIDAD — Utilidades y prefers-reduced-motion
   ═══════════════════════════════════════════════ */

/* Oculto visualmente pero disponible para lectores de pantalla */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Indicador de foco visible para navegación por teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

/* Respeto a usuarios con movimiento reducido (vétigo, migrañas) */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
