/* Awarefractal — la identidad de siempre, modernizada.
   Negro, verdes orgánicos, índigo de acento, Inter + Ubuntu Mono, partículas en el hero. */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary-color: #ffffff;
    --secondary-color: #a3a3a3;
    --accent-color: #4f46e5;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-green: linear-gradient(135deg, #065f46 0%, #064e3b 30%, #1f2937 70%, #000000 100%);
    --gradient-green-white: linear-gradient(120deg, #bdcea9 0%, #76b68f 30%, #10b981 62%, #22d3b6 100%);
    --bg-color: #0a0a0a;
    --bg-alt: #111111;
    --bg-dark: #000000;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-light: #6b7280;
    --border-color: #262626;
    --green: #10b981;
    --green-deep: #065f46;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Ubuntu Mono', ui-monospace, monospace;
    --nav-h: 68px;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid #34d399; outline-offset: 3px; border-radius: 4px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: #000; padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Navegación ---------- */
.site-nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); transition: background .35s, border-color .35s, backdrop-filter .35s; border-bottom: 1px solid transparent; }
.site-nav.scrolled { background: rgba(10, 10, 10, .72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom-color: rgba(255, 255, 255, .08); }
.nav-inner { max-width: 1200px; height: 100%; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { height: 27px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { text-decoration: none; font-size: .92rem; color: #cbd5e1; transition: color .25s; padding: 8px 0; }
.nav-links a:hover, .nav-links a[aria-current="true"] { color: #fff; }
.nav-links a.nav-cta { padding: .55rem 1.2rem; border-radius: 50px; border: 1px solid rgba(255, 255, 255, .22); color: #fff; transition: var(--transition); }
.nav-links a.nav-cta:hover { background: #fff; color: #000; border-color: #fff; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; margin-right: -10px; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 22px; height: 2px; background: #fff; position: relative; content: ''; transition: transform .25s, background .2s; }
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero con partículas ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; background: #000; position: relative; overflow: hidden; }
.universe-background { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
/* viñeta mínima: solo asegura que el texto se lea sobre las partículas */
.hero::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(90deg, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .34) 34%, rgba(0, 0, 0, 0) 60%), radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0, 0, 0, .55) 100%); }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(to bottom, transparent, var(--bg-color)); z-index: 2; pointer-events: none; }

.hero-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; z-index: 3; position: relative; width: 100%; }
.hero-left { flex: 1; max-width: 600px; position: relative; z-index: 3; }
/* velo oscuro traslúcido detrás del texto: casi imperceptible, evita que el mensaje se funda con las partículas */
.hero-left::before { content: ''; position: absolute; inset: -7rem -9rem -7rem -6rem; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 62% 56% at 46% 50%, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .42) 42%, rgba(0, 0, 0, .14) 72%, transparent 100%); }
.hero-title { font-size: 3.5rem; font-weight: 700; line-height: 1.1; margin-bottom: 1.5rem; color: var(--primary-color); text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); filter: drop-shadow(0 2px 16px rgba(0, 0, 0, .55)); position: relative; z-index: 4; }
.gradient-text { background: linear-gradient(100deg, #bdcea9 0%, #76b68f 18%, #10b981 36%, #22d3b6 54%, #5eead4 66%, #10b981 82%, #bdcea9 100%); background-size: 260% 100%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; position: relative; text-shadow: none; animation: vivo 9s ease-in-out infinite alternate; }
@keyframes vivo { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.hero-description { position: relative; z-index: 3; }
.hero-description p { font-size: 1.25rem; color: #b4bac4; line-height: 1.6; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); filter: drop-shadow(0 1px 10px rgba(0, 0, 0, .6)); }

.btn-outline {
    background: transparent; color: #a5b4fc; border: 2px solid var(--accent-color);
    padding: .75rem 1.5rem; border-radius: 25px; font-weight: 600; cursor: pointer;
    transition: var(--transition); font-family: var(--font-family); text-decoration: none;
    display: inline-block; backdrop-filter: blur(10px);
}
.btn-outline:hover { background: var(--accent-color); color: white; transform: translateY(-2px); }

/* ---------- Revelado ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Blog carousel ---------- */
.blog-carousel { padding: 6rem 0 3rem 0; background: var(--bg-color); overflow: hidden; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 700; margin-bottom: 1rem; color: var(--primary-color); letter-spacing: -.02em; text-wrap: balance; }
.section-header p { font-size: 1.125rem; color: var(--text-secondary); }
.blog-carousel .section-header { margin-bottom: 3rem; }

.infinite-carousel-container { position: relative; width: 100%; overflow: hidden; }
.carousel-viewport { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none; padding: 1.2rem 0 1.6rem; touch-action: pan-x pan-y; }
.carousel-viewport::-webkit-scrollbar { display: none; }
.infinite-carousel-track { display: flex; gap: 1.6rem; width: max-content; padding: 0 2rem; }

.carousel-fade-left, .carousel-fade-right { position: absolute; top: 0; width: 180px; height: 100%; z-index: 10; pointer-events: none; }
.carousel-fade-left { left: 0; background: linear-gradient(to right, var(--bg-color) 0%, rgba(10, 10, 10, 0.8) 40%, transparent 100%); }
.carousel-fade-right { right: 0; background: linear-gradient(to left, var(--bg-color) 0%, rgba(10, 10, 10, 0.8) 40%, transparent 100%); }

.blog-card {
    flex: 0 0 350px; height: 410px; display: flex; flex-direction: column;
    background: var(--bg-alt); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit;
    border: 1px solid var(--border-color); position: relative; transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s;
}
.blog-card:hover, .blog-card:focus-visible { transform: translateY(-10px); box-shadow: var(--card-shadow-hover), 0 0 0 1px rgba(16, 185, 129, .25); border-color: #1f6b52; }
.blog-card-image { width: 100%; height: 215px; background: var(--gradient-green); position: relative; overflow: hidden; flex: none; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.blog-card:hover .blog-card-image img { transform: scale(1.06); }
.blog-card-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(17, 17, 17, .85), transparent 55%); }
.blog-card-cat { position: absolute; left: 1rem; bottom: .9rem; z-index: 2; font-family: var(--font-mono); font-size: .85rem; color: #34d399; letter-spacing: .03em; }
.blog-card-content { padding: 1.3rem 1.5rem 1.4rem; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: .6rem; }
.blog-card-title { font-size: 1.2rem; font-weight: 600; color: var(--primary-color); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: .5rem; }
.blog-card-excerpt { color: var(--text-secondary); font-size: .9rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-meta { font-family: var(--font-mono); font-size: .85rem; color: #64748b; }

.blog-title { color: #10b981; font-style: oblique; }
.by-awarefractal { font-family: var(--font-mono); font-size: medium; color: #bdcea9; }

.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2); color: white;
    width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    transition: var(--transition); backdrop-filter: blur(10px); z-index: 20;
}
.carousel-btn:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-50%) scale(1.1); }
.carousel-prev { left: 2rem; }
.carousel-next { right: 2rem; }
.carousel-all { text-align: center; margin-top: 1rem; }
.carousel-all a { font-family: var(--font-mono); color: #34d399; text-decoration: none; font-size: 1.05rem; border-bottom: 1px solid transparent; transition: var(--transition); }
.carousel-all a:hover { border-bottom-color: #34d399; letter-spacing: .02em; }

.inspiration-section { position: relative; min-height: 78vh; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #000; }
/* capa de la ciudad: se mueve por JS (translate) más lento que el scroll; funciona también en móvil */
.inspiration-bg { position: absolute; left: 0; right: 0; top: -14%; bottom: -14%; background: url('images/city-night.jpg') center / cover no-repeat; will-change: transform; transform: translate3d(0, var(--py, 0px), 0) scale(1.04); }
.inspiration-section::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--bg-color) 0%, rgba(0, 0, 0, 0.55) 26%, rgba(0, 0, 0, 0.55) 74%, var(--bg-alt) 100%); z-index: 1; }
.inspiration-section::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at 50% 50%, rgba(16, 185, 129, .10), transparent 60%); }
.inspiration-content { position: relative; z-index: 2; text-align: center; max-width: 860px; padding: 5rem 2rem; transform: translate3d(0, var(--ty, 0px), 0); will-change: transform; }
.inspiration-content h2 { font-size: x-large; font-weight: 700; color: var(--primary-color); margin-bottom: 1.6rem; text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); line-height: 1.2; }
.awarefractal-green { font-family: var(--font-mono); color: #10b981; font-size: xx-large; }
.awarefractal-text { font-family: var(--font-mono); font-style: italic; font-size: clamp(1.25rem, 2.6vw, 1.75rem); line-height: 1.5; font-weight: 300; color: #cbd5e1; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); }
/* la frase se enciende palabra por palabra al cruzar la pantalla */
.awarefractal-text .w { transition: color .35s, opacity .35s; }
.js .awarefractal-text.split .w { opacity: .3; }
.js .awarefractal-text.split .w.on { opacity: 1; color: #fff; }

/* ---------- Productos: un escenario, cuatro mundos ---------- */
.products { padding: 6rem 0; background: var(--bg-alt); }
.prod-stage { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.prod-tabs { display: flex; flex-direction: column; border-left: 1px solid var(--border-color); }
.prod-tab { text-align: left; padding: 1.1rem 0 1.1rem 1.5rem; margin-left: -1px; border-left: 2px solid transparent; transition: border-color .3s, background .3s; display: flex; flex-direction: column; gap: .2rem; }
.prod-head { display: flex; align-items: center; gap: .75rem; }
.prod-logo { display: flex; align-items: center; height: 30px; flex: none; opacity: .55; filter: saturate(.55); transition: opacity .3s, filter .3s; }
.prod-logo img, .prod-logo svg { height: 100%; width: auto; }
.prod-logo--solo { height: 34px; margin-bottom: .1rem; }
.prod-logo--solo img { max-width: 170px; object-fit: contain; object-position: left center; }
.prod-tab:hover .prod-logo, .prod-tab[aria-selected="true"] .prod-logo { opacity: 1; filter: none; }
.prod-name { font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; color: #64748b; transition: color .3s, transform .3s; }
.prod-sub { font-family: var(--font-mono); font-size: .95rem; color: #475569; transition: color .3s; }
.prod-tab:hover .prod-name { color: #cbd5e1; }
.prod-tab[aria-selected="true"] { border-left-color: #10b981; background: linear-gradient(90deg, rgba(16, 185, 129, .08), transparent 70%); }
.prod-tab[aria-selected="true"] .prod-name { color: #fff; transform: translateX(4px); }
.prod-tab[aria-selected="true"] .prod-sub { color: #34d399; }

.prod-panels { min-width: 0; }
.prod-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.2rem; align-items: center; padding: 1.4rem; background: var(--bg-color); border: 1px solid var(--border-color); border-radius: 20px; min-height: 380px; }
.js .prod-panel:not(.active) { display: none; }
.js .prod-panel.active { animation: panelIn .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.product-visual { position: relative; height: 340px; background: #050505; border-radius: 14px; overflow: hidden; border: 1px solid var(--border-color); }
.mock-label { position: absolute; right: .8rem; bottom: .6rem; z-index: 3; font-family: var(--font-mono); font-size: .8rem; color: #64748b; }
.product-content { padding-right: .6rem; }
.product-content h3 { font-size: 1.8rem; font-weight: 700; margin-bottom: .9rem; color: var(--primary-color); letter-spacing: -.02em; }
.product-content p { color: var(--text-secondary); margin-bottom: 1rem; line-height: 1.6; font-size: .98rem; }
.product-features { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.3rem 0 1.6rem; }
.feature-tag { background: rgba(6, 95, 70, 0.14); color: #10b981; padding: .35rem .75rem; border-radius: 12px; font-size: .75rem; font-weight: 500; border: 1px solid rgba(6, 95, 70, 0.35); }

/* Neural CX: conversación que se escribe sola */
.mock-chat-wrap { background: radial-gradient(ellipse at 30% 0%, rgba(8, 145, 178, .18), transparent 60%), #050505; display: flex; align-items: center; justify-content: center; padding: 1.2rem; }
.mock-chat { width: 100%; max-width: 330px; background: #131a21; border: 1px solid #263340; border-radius: 18px; padding: 0 0 .9rem; display: flex; flex-direction: column; gap: .5rem; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); overflow: hidden; }
.mock-chat__head { display: flex; align-items: center; gap: .55rem; padding: .8rem 1rem; background: linear-gradient(90deg, #065f46, #0891b2); font-size: .9rem; }
.mock-chat__head small { color: rgba(255, 255, 255, .75); margin-left: auto; font-size: .75rem; }
.mock-dot { width: 8px; height: 8px; border-radius: 50%; background: #6ee7b7; box-shadow: 0 0 0 4px rgba(110, 231, 183, .2); }
.bubble { margin: 0 .9rem; padding: .55rem .8rem; border-radius: 14px; font-size: .82rem; line-height: 1.35; max-width: 82%; opacity: 0; animation: msg 12s ease-in-out infinite; }
.bubble.in { background: #1f2a35; color: #e2e8f0; border-bottom-left-radius: 4px; align-self: flex-start; }
.bubble.out { background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.bubble.b1 { animation-delay: 0s; }
.bubble.b2 { animation-delay: 1.4s; }
.bubble.b3 { animation-name: typing; animation-delay: 2.8s; display: flex; gap: 4px; padding: .7rem .9rem; margin-bottom: -2.1rem; position: relative; z-index: 1; align-self: flex-start; }
.bubble.b4 { animation-delay: 4.4s; }
.bubble.typing i { width: 6px; height: 6px; border-radius: 50%; background: #94a3b8; animation: dot 1s infinite; }
.bubble.typing i:nth-child(2) { animation-delay: .15s; }
.bubble.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes msg { 0% { opacity: 0; transform: translateY(8px); } 4%, 80% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: none; } }
@keyframes typing { 0% { opacity: 0; } 2%, 12% { opacity: 1; } 14%, 100% { opacity: 0; } }
@keyframes dot { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-4px); opacity: 1; } }

/* Businessensor: radar que respira */
.mock-radar-wrap { background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, .12), transparent 62%), #050505; display: flex; align-items: center; justify-content: center; }
.mock-radar { width: min(100%, 300px); height: auto; }
.radar-a { fill: rgba(16, 185, 129, .22); stroke: #10b981; stroke-width: 2; stroke-linejoin: round; }

/* Destino Inteligente: ruta que se dibuja */
.mock-route-wrap { background: linear-gradient(160deg, #0b0614 0%, #12091f 100%); }
.mock-route { position: absolute; inset: 0; width: 100%; height: 100%; }
.route-line { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 6s ease-in-out infinite; }
.route-stops circle { opacity: 0; animation: stop 6s ease-in-out infinite; }
.route-stops circle:nth-child(2) { animation-delay: .9s; }
.route-stops circle:nth-child(3) { animation-delay: 2.4s; }
@keyframes draw { 0% { stroke-dashoffset: 100; } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -100; } }
@keyframes stop { 0%, 8% { opacity: 0; transform: scale(.4); } 18%, 80% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
.route-stops circle { transform-box: fill-box; transform-origin: center; }
.mock-logo { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); width: 46%; max-width: 190px; height: auto; z-index: 2; }

/* Hospy: la luz encendida */
.mock-hospy-wrap { background: linear-gradient(160deg, #0b1a12 0%, #06100a 100%); display: flex; align-items: center; justify-content: center; }
.mock-logo--hospy { position: relative; left: auto; top: auto; transform: none; width: 62%; max-width: 280px; }
.hospy-glow { position: absolute; left: 50%; top: 50%; width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 158, 11, .35) 0%, transparent 65%); animation: glow 3.6s ease-in-out infinite; }
@keyframes glow { 0%, 100% { opacity: .55; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.08); } }

/* ---------- Servicios ---------- */
.services { padding: 6rem 0; background: var(--bg-color); }
.svc-list { list-style: none; border-top: 1px solid var(--border-color); }
.svc { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.8rem; align-items: center; padding: 1.15rem 1rem; border-bottom: 1px solid var(--border-color); transition: background .4s, padding .4s cubic-bezier(.2, .8, .2, 1); }
.svc::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, #10b981, #6366f1); transform: scaleY(0); transform-origin: top; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.svc:hover { background: linear-gradient(90deg, rgba(16, 185, 129, .07), transparent 75%); padding-left: 1.5rem; }
.svc:hover::before { transform: scaleY(1); }
.svc h3 { font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; color: #e2e8f0; transition: color .3s; }
.svc:hover h3 { color: #fff; }
.svc p { color: var(--text-secondary); line-height: 1.55; font-size: .92rem; }
.services { padding: 4.5rem 0; }
.services .section-header { margin-bottom: 2.4rem; }
.services .section-header h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.services .section-header p { font-size: 1rem; }
.service-icon { width: 42px; height: 42px; transition: filter .4s; }
.svc:hover .service-icon { filter: drop-shadow(0 0 7px rgba(52, 211, 153, .5)); }
.ic { width: 100%; height: 100%; overflow: visible; }
.lc * { stroke: url(#gic); transform-box: fill-box; transform-origin: center; }
.lc .nd, .lc .dot, .lc .pt { fill: url(#gic); }

/* IA: señales que recorren el circuito */
.lc-brain .tb { opacity: .28; }
.lc-brain .tr path { stroke-dasharray: .22 .78; animation: lcTrace 2.6s linear infinite; }
.lc-brain .tr path:nth-child(2) { animation-delay: -.7s; } .lc-brain .tr path:nth-child(3) { animation-delay: -1.4s; } .lc-brain .tr path:nth-child(4) { animation-delay: -2s; }
.lc-brain .nd { animation: lcBlink 2.6s ease-in-out infinite; }
.lc-brain .nd:nth-of-type(2) { animation-delay: .5s; } .lc-brain .nd:nth-of-type(3) { animation-delay: 1.1s; } .lc-brain .nd:nth-of-type(4) { animation-delay: 1.7s; }
@keyframes lcTrace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes lcBlink { 0%, 100% { transform: scale(1); opacity: .5; } 50% { transform: scale(2.6); opacity: 1; } }

/* Branding: destello que respira */
.lc-spark .st { animation: lcBreathe 4.2s ease-in-out infinite; }
.lc-spark .tw { animation: lcTwinkle 2.8s ease-in-out infinite; }
.lc-spark .dot { animation: lcTwinkle 3.4s ease-in-out infinite .8s; }
@keyframes lcBreathe { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.14) rotate(14deg); } }
@keyframes lcTwinkle { 0%, 100% { opacity: .35; transform: scale(.7) rotate(0); } 50% { opacity: 1; transform: scale(1.15) rotate(45deg); } }

/* Productos: vista explotada que se arma y se desarma */
.lc-boxes .bt { animation: lcUp 4s cubic-bezier(.5, 0, .2, 1) infinite; }
.lc-boxes .bl { animation: lcLeft 4s cubic-bezier(.5, 0, .2, 1) infinite; }
.lc-boxes .br { animation: lcRight 4s cubic-bezier(.5, 0, .2, 1) infinite; }
@keyframes lcUp { 0%, 25%, 100% { transform: translateY(0); } 55%, 75% { transform: translateY(-1.6px); } }
@keyframes lcLeft { 0%, 25%, 100% { transform: translate(0, 0); } 55%, 75% { transform: translate(-1.2px, .8px); } }
@keyframes lcRight { 0%, 25%, 100% { transform: translate(0, 0); } 55%, 75% { transform: translate(1.2px, .8px); } }

/* Consultoría: la aguja busca el rumbo */
.lc-compass .nee { animation: lcNeedle 6.5s cubic-bezier(.5, 0, .3, 1) infinite; }
.lc-compass .ring { opacity: .75; }
@keyframes lcNeedle { 0%, 100% { transform: rotate(0); } 22% { transform: rotate(70deg); } 40% { transform: rotate(-35deg); } 60% { transform: rotate(25deg); } 80% { transform: rotate(-8deg); } }

/* Micronichos: el visor se cierra sobre el objetivo */
.lc-focus .ring { animation: lcRing 3.4s ease-in-out infinite; }
.lc-focus .tk { animation: lcTicks 3.4s ease-in-out infinite; }
.lc-focus .pt { animation: lcPt 3.4s ease-in-out infinite; }
@keyframes lcRing { 0%, 100% { transform: scale(1); } 50% { transform: scale(.82); } }
@keyframes lcTicks { 0%, 100% { transform: scale(1); } 50% { transform: scale(.72); } }
@keyframes lcPt { 0%, 100% { transform: scale(.7); opacity: .6; } 50% { transform: scale(1.7); opacity: 1; } }

/* ---------- Contacto ---------- */
.contact { padding: 9rem 0 8rem; background: #000; color: white; position: relative; overflow: hidden; text-align: center; }
.contact::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 100%, rgba(16, 185, 129, 0.16) 0%, transparent 60%); pointer-events: none; }
.contact-fractal { position: absolute; left: 50%; top: 50%; width: min(900px, 120vw); height: auto; margin: calc(min(900px, 120vw) / -2) 0 0 calc(min(900px, 120vw) / -2); opacity: .11; animation: spinSlow 140s linear infinite; pointer-events: none; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.contact-wrap { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; }
.contact-wrap h2 { font-size: clamp(3rem, 9vw, 6.5rem); font-weight: 700; line-height: 1; letter-spacing: -.045em; margin-bottom: 1.8rem; background: linear-gradient(180deg, #fff 30%, #6ee7b7 120%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.contact-subtitle { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: #cbd5e1; line-height: 1.6; max-width: 34em; margin: 0 auto 2.6rem; }
.contact-cta { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.whatsapp-btn { display: inline-flex; align-items: center; gap: 1rem; background: linear-gradient(135deg, #25D366 0%, #1FA952 100%); color: white; padding: 1.2rem 2.5rem; border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 1.125rem; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); position: relative; overflow: hidden; }
.whatsapp-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: left 0.5s; }
.whatsapp-btn:hover::before { left: 100%; }
.whatsapp-btn:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4); }
.whatsapp-icon { width: 24px; height: 24px; flex-shrink: 0; }
.contact-mail { font-family: var(--font-mono); font-size: 1.3rem; color: #34d399; text-decoration: none; border-bottom: 1px solid rgba(52, 211, 153, .35); padding-bottom: 2px; transition: var(--transition); }
.contact-mail:hover { border-bottom-color: #34d399; letter-spacing: .02em; }
.contact-lines { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.2rem 3.2rem; margin-top: 4.5rem; padding-top: 2.2rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.contact-lines dt { font-family: var(--font-mono); font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; color: #64748b; margin-bottom: .3rem; }
.contact-lines dd { color: #e2e8f0; }
.contact-lines a { text-decoration: none; transition: color .25s; }
.contact-lines a:hover { color: #34d399; }

/* ---------- Footer ---------- */
.footer { background: #000; color: white; padding: 1.5rem 0 .9rem; border-top: 1px solid var(--border-color); }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.footer-logo { height: 34px; width: auto; }
.footer-nav { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.footer-nav a { font-family: var(--font-mono); font-size: 1rem; color: #94a3b8; text-decoration: none; transition: color .25s; padding: 4px 0; }
.footer-nav a:hover { color: #34d399; }
.footer-clients { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; margin: 1.1rem 0 .9rem; padding: .9rem 0; border-top: 1px solid rgba(255, 255, 255, .07); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.clients-label { font-family: var(--font-mono); font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; color: #64748b; white-space: nowrap; }
.clients { list-style: none; display: flex; flex: 1; justify-content: space-between; align-items: center; gap: .8rem 1.6rem; flex-wrap: wrap; }
.clients li { display: flex; align-items: center; opacity: .72; transition: opacity .25s; }
.clients li:hover { opacity: 1; }
.clients img { height: 20px; width: auto; max-width: 120px; filter: brightness(0) invert(1); }
.clients .l-bcc img { height: 30px; } .clients .l-ita img { height: 24px; } .clients .l-wal img { height: 16px; } .clients .l-fem img { height: 16px; } .clients .l-sco img { height: 16px; } .clients .l-bch img { height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; gap: .6rem 1rem; flex-wrap: wrap; color: #64748b; font-size: .85rem; }

/* ---------- Páginas internas (perspectivas) ---------- */
.page-head { padding: calc(var(--nav-h) + 5rem) 0 3rem; background: linear-gradient(180deg, #0f1f1a 0%, var(--bg-color) 100%); position: relative; overflow: hidden; }
.page-head::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 0%, rgba(16, 185, 129, .14), transparent 55%); pointer-events: none; }
.page-head .container { position: relative; }
.crumbs { font-family: var(--font-mono); color: #64748b; margin-bottom: 1.4rem; display: flex; gap: .6rem; flex-wrap: wrap; }
.crumbs a { text-decoration: none; color: #34d399; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; max-width: 18em; text-wrap: balance; }
.page-head .sub { margin-top: 1.1rem; font-size: clamp(1.1rem, 1.8vw, 1.35rem); color: #94a3b8; max-width: 38em; }
.page-head .meta { margin-top: 1.6rem; display: flex; gap: .4rem 1.4rem; flex-wrap: wrap; font-family: var(--font-mono); color: #34d399; font-size: 1rem; }
.article-hero { max-width: 1000px; margin: 0 auto; padding: 0 2rem; }
.article-hero img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--border-color); }
.prose { max-width: 700px; margin: 0 auto; padding: 3rem 2rem 1rem; }
.prose p { font-size: 1.15rem; line-height: 1.8; color: #cbd5e1; margin-bottom: 1.5em; }
.prose p:first-child { font-size: 1.4rem; line-height: 1.55; color: #f1f5f9; font-weight: 300; }
.article-links { max-width: 700px; margin: 1rem auto 0; padding: 1.5rem 2rem 0; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.article-links a { font-family: var(--font-mono); color: #34d399; text-decoration: none; border-bottom: 1px solid rgba(52, 211, 153, .4); }
.article-links a:hover { border-bottom-color: #34d399; }
.pn { max-width: 700px; margin: 3rem auto 0; padding: 0 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pn a { padding: 1.2rem 1.3rem; border: 1px solid var(--border-color); border-radius: 14px; text-decoration: none; display: block; transition: var(--transition); background: var(--bg-alt); }
.pn a:hover { border-color: #1f6b52; transform: translateY(-3px); }
.pn small { display: block; font-family: var(--font-mono); color: #64748b; margin-bottom: .3rem; }
.pn strong { font-weight: 600; line-height: 1.3; display: block; }
.pn a:last-child { text-align: right; }
.page-body { padding: 2rem 0 6rem; background: var(--bg-color); }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem; }
.post-grid .blog-card { flex: none; width: 100%; }
.page-foot-space { height: 4rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-container { justify-content: flex-start; }
    .prod-stage { grid-template-columns: 1fr; gap: 1.4rem; }
    .prod-tabs { flex-direction: row; border-left: 0; overflow-x: auto; scrollbar-width: none; gap: .6rem; padding-bottom: .2rem; }
    .prod-tabs::-webkit-scrollbar { display: none; }
    .prod-tab { flex: none; padding: .7rem 1.1rem; border: 1px solid var(--border-color); border-radius: 50px; margin: 0; }
    .prod-tab[aria-selected="true"] { border-color: #10b981; background: rgba(16, 185, 129, .1); }
    .prod-logo { height: 20px; }
    .prod-logo--solo { height: 22px; margin: 0; }
    .prod-logo--solo img { max-width: 100px; }
    .prod-head { gap: .5rem; }
    .prod-tab .prod-sub { display: none; }
    .prod-name { font-size: 1.05rem; }
    .prod-tab[aria-selected="true"] .prod-name { transform: none; }
    .prod-panel { grid-template-columns: 1fr; gap: 1.6rem; }
    .svc { grid-template-columns: 44px 1fr; gap: .6rem 1.2rem; }
    .svc p { grid-column: 2; }
    .blog-card { flex: 0 0 320px; }
}

@media (max-width: 768px) {
    .container, .nav-inner, .hero-container { padding-left: 1.2rem; padding-right: 1.2rem; }
    .nav-toggle { display: inline-flex; }
    .nav-links { position: fixed; inset: var(--nav-h) 0 auto 0; background: rgba(10, 10, 10, .96); backdrop-filter: blur(14px); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.2rem 1.5rem; border-bottom: 1px solid var(--border-color); transform: translateY(-120%); visibility: hidden; transition: transform .3s, visibility 0s .3s; }
    .nav-links.open { transform: none; visibility: visible; transition: transform .3s; }
    .nav-links a { padding: 1rem 0; font-size: 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, .07); }
    .nav-links a.nav-cta { margin-top: 1rem; text-align: center; border: 1px solid rgba(255, 255, 255, .25); }
    .site-nav.menu-open { background: rgba(10, 10, 10, .96); }
    .hero { align-items: flex-end; padding-bottom: 4.5rem; }
    .hero-title { font-size: 2.6rem; }
    .hero::before { background: linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, .1) 28%, rgba(10, 10, 10, .8) 52%, rgba(10, 10, 10, .9) 100%); }
    .contact { padding: 6rem 0; }
    .whatsapp-btn { padding: 1rem 2rem; font-size: 1rem; }
    .carousel-btn { width: 40px; height: 40px; }
    .carousel-prev { left: 1rem; }
    .carousel-next { right: 1rem; }
    .carousel-fade-left, .carousel-fade-right { width: 90px; }
    .blog-card { flex: 0 0 280px; height: 390px; }
    .infinite-carousel-track { padding: 0 1.2rem; }
    .inspiration-section { min-height: 62vh; }
    .products, .services { padding: 4.5rem 0; }
    .product-visual { height: 330px; }
    .bubble { font-size: .76rem; }
    .mock-chat { max-width: 300px; }
    .pn { grid-template-columns: 1fr; }
    .pn a:last-child { text-align: left; }
    .footer-top { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem 1.2rem; width: 100%; }
    .footer-nav a { font-size: .95rem; padding: .5rem 0; }
    .footer-clients { flex-direction: column; align-items: stretch; gap: 1rem; }
    .clients { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem .8rem; justify-items: center; }
    .clients li { width: 100%; justify-content: center; }
    .clients img { max-width: 100%; object-fit: contain; }
    .footer-bottom { flex-direction: column; gap: .3rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.2rem; }
    .section-header h2 { font-size: 1.8rem; }
    .blog-card { flex: 0 0 255px; height: 375px; }
    .inspiration-content { padding: 3rem 1rem; }
    .whatsapp-btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .ic *, .gradient-text, .contact-fractal, .hospy-glow, .route-line, .route-stops circle, .bubble { animation: none !important; }
    .bubble { opacity: 1; }
    .bubble.b3 { display: none; }
    .route-line { stroke-dashoffset: 0; }
    .route-stops circle { opacity: 1; }
}
