/*
  VOICE   cercana y segura: hablamos de negocios pequeños, no de "tecnología"
  IDEA    el trazo único del logo "an." recorre la web; el punto dorado marca lo importante
  PICTURE una demo que funciona: reservar una cita y verla llegar a la agenda
  COLOUR  noche #0a0e1c + papel #f6f6f2, degradado cian→lila solo en el trazo, oro solo en el punto
  TYPE    Sora (títulos) + Inter (texto), alojadas en la propia web
*/
@font-face { font-family: 'Sora'; src: url('../fonts/sora.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@view-transition { navigation: auto; }

:root {
  --noche: #0a0e1c;
  --noche-2: #131a30;
  --linea-osc: rgba(255, 255, 255, .09);
  --papel: #f6f6f2;
  --tinta: #0d1222;
  --gris: #5b6478;
  --gris-claro: #98a1b5;
  --linea: #e3e3dc;
  --cian: #22d3ee;
  --lila: #a78bfa;
  --oro: #fbbf24;
  --trazo: linear-gradient(90deg, var(--cian), var(--lila));
  --suave: cubic-bezier(.2, .7, .2, 1);
  --titulos: 'Sora', 'Inter', ui-sans-serif, system-ui, sans-serif;
}
* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font: 16.5px/1.6 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--tinta); background: var(--papel); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titulos); letter-spacing: -.035em; line-height: 1.06; text-wrap: balance; margin: 0; }
p { margin: 0; }
.contenedor { width: min(1200px, 100% - 40px); margin-inline: auto; }
.oculto { display: none !important; }
::selection { background: var(--oro); color: var(--noche); }
:focus-visible { outline: 2px solid var(--cian); outline-offset: 3px; border-radius: 6px; }

/* ---------- Iconos propios (trazo redondo + punto dorado) ---------- */
.ic { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic .punto { fill: var(--oro); stroke: none; }

/* ---------- Botones ---------- */
.boton { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 999px; border: 0; font: 600 15.5px/1 'Inter', sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .35s var(--suave), background .25s, color .25s, box-shadow .35s var(--suave); }
.boton:active { transform: scale(.97); }
.boton .flecha { width: 18px; height: 18px; transition: transform .35s var(--suave); }
.boton:hover .flecha { transform: translateX(4px); }
.boton.claro { background: #fff; color: var(--noche); }
.boton.claro:hover { box-shadow: 0 0 0 6px rgba(255, 255, 255, .12); }
.boton.oscuro { background: var(--noche); color: #fff; }
.boton.oscuro:hover { box-shadow: 0 0 0 6px rgba(10, 14, 28, .1); }
.boton.fantasma { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28); background: transparent; }
.boton.fantasma:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.boton.linea { color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--linea); background: #fff; }
.boton.linea:hover { box-shadow: inset 0 0 0 1.5px var(--tinta); }
.boton.wa { background: #1fbf5b; color: #fff; }
.boton.wa:hover { box-shadow: 0 0 0 6px rgba(31, 191, 91, .18); }
.boton.peq { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.punto-oro { display: inline-block; width: .3em; height: .3em; border-radius: 50%; background: var(--oro); margin-left: .05em; }

/* ---------- Cabecera ---------- */
.cabecera { position: fixed; inset: 0 0 auto 0; z-index: 60; color: #fff; transition: background .4s, box-shadow .4s; view-transition-name: cabecera; }
.cabecera .contenedor { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 20px; transition: height .4s var(--suave); }
.cabecera.solida, body.simple .cabecera { background: rgba(10, 14, 28, .88); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); box-shadow: 0 1px 0 var(--linea-osc); }
.cabecera.solida .contenedor { height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.logo img { width: 40px; height: 40px; border-radius: 11px; }
.logo b { display: block; font: 700 19px/1 var(--titulos); letter-spacing: -.03em; }
.logo b i { font-style: normal; background: var(--trazo); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo small { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: .42em; color: var(--gris-claro); margin-top: 5px; }
.menu { display: flex; align-items: center; gap: 6px; }
.menu a:not(.boton) { position: relative; text-decoration: none; color: #c9cfdc; font-weight: 500; font-size: 15px; padding: 10px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.menu a:not(.boton):hover { color: #fff; background: rgba(255, 255, 255, .06); }
.menu a.activo:not(.boton) { color: #fff; }
.menu a.activo:not(.boton)::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--oro); }
.menu .boton { margin-left: 10px; }
.hamburguesa { display: none; width: 44px; height: 44px; border: 0; background: none; color: #fff; cursor: pointer; position: relative; }
.hamburguesa span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--suave), right .35s var(--suave); }
.hamburguesa span:nth-child(1) { top: 17px; } .hamburguesa span:nth-child(2) { top: 26px; right: 18px; }
.hamburguesa[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.hamburguesa[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); right: 11px; }

/* ---------- Portada ---------- */
.hero { position: relative; background: var(--noche); color: #fff; overflow: hidden; padding: 136px 0 96px; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(640px 420px at var(--mx, 78%) var(--my, 45%), rgba(167, 139, 250, .2), transparent 70%),
  radial-gradient(700px 500px at 0% 0%, rgba(34, 211, 238, .12), transparent 60%); }
.trazo-fondo { position: absolute; z-index: -1; right: -140px; bottom: -200px; width: 780px; opacity: .06; pointer-events: none; }
.hero .contenedor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 70px); font-weight: 700; }
.rotador { display: inline-grid; vertical-align: bottom; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; transition: width .7s var(--suave); }
.rotador span { grid-area: 1 / 1; justify-self: start; background: var(--trazo); -webkit-background-clip: text; background-clip: text; color: transparent; transform: translateY(110%); opacity: 0; transition: transform .75s var(--suave), opacity .75s; white-space: nowrap; }
.rotador span.ver { transform: none; opacity: 1; }
.rotador span.sale { transform: translateY(-110%); opacity: 0; }
.hero .lead { font-size: 18.5px; color: #b8c0d2; max-width: 520px; margin: 26px 0 34px; }
.hero .acciones { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .datos { display: flex; gap: 36px; flex-wrap: wrap; margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--linea-osc); }
.hero .datos b { display: block; font: 700 26px/1 var(--titulos); letter-spacing: -.03em; margin-bottom: 6px; }
.hero .datos span { font-size: 14px; color: var(--gris-claro); }

/* ---------- Demo en vivo ---------- */
.demo { position: relative; display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 26px; align-items: center; padding-top: 30px; }
.aviso-demo { position: absolute; top: 0; left: 0; font-size: 13px; color: var(--gris-claro); display: flex; align-items: center; gap: 9px; }
.aviso-demo i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; animation: latido 2s infinite; }
@keyframes latido { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .5); } 100% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } }
.telefono { background: #fff; color: var(--tinta); border-radius: 34px; padding: 22px 16px 16px; box-shadow: 0 0 0 8px #1b2238, 0 0 0 9px rgba(255, 255, 255, .1), 0 40px 80px rgba(0, 0, 0, .5); position: relative; }
.telefono::before { content: ''; position: absolute; top: 9px; left: 50%; width: 60px; height: 5px; margin-left: -30px; border-radius: 9px; background: #e6e7ee; }
.telefono .negocio { display: flex; align-items: center; gap: 10px; margin: 4px 0 6px; }
.telefono .negocio .av { width: 38px; height: 38px; border-radius: 12px; background: var(--noche); color: #fff; display: grid; place-items: center; font: 700 15px var(--titulos); }
.telefono .negocio b { display: block; font: 700 14.5px/1.2 var(--titulos); letter-spacing: -.02em; }
.telefono .negocio span { font-size: 11.5px; color: var(--gris); }
.telefono h4 { margin: 14px 0 8px; font-size: 11.5px; font-weight: 600; color: var(--gris); }
.servicios { display: grid; gap: 6px; }
.servicios button, .horas button { font: inherit; border: 1.5px solid #e7e8ee; background: #fff; border-radius: 12px; cursor: pointer; transition: border-color .2s, background .2s, color .2s; color: var(--tinta); }
.servicios button { display: flex; justify-content: space-between; padding: 9px 12px; font-size: 13px; font-weight: 500; }
.servicios button b { font-weight: 700; }
.servicios button[aria-pressed="true"], .horas button[aria-pressed="true"] { border-color: var(--noche); background: var(--noche); color: #fff; }
.horas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.horas button { padding: 8px 0; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.horas button:disabled { color: #c3c6d1; text-decoration: line-through; cursor: not-allowed; background: #f6f6f8; }
.pista { animation: pista 1.6s var(--suave) infinite; }
@keyframes pista { 50% { border-color: var(--oro); box-shadow: 0 0 0 4px rgba(251, 191, 36, .28); } }
.telefono .reservar { width: 100%; margin-top: 14px; min-height: 44px; border-radius: 14px; border: 0; background: var(--noche); color: #fff; font: 600 14px 'Inter', sans-serif; cursor: pointer; transition: opacity .25s; }
.telefono .reservar:disabled { opacity: .28; cursor: not-allowed; }
.telefono .hecho { position: absolute; inset: 0; border-radius: 34px; background: #fff; display: grid; place-content: center; text-align: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity .45s, visibility .45s; }
.telefono .hecho.ver { opacity: 1; visibility: visible; }
.telefono .hecho svg { width: 64px; height: 64px; margin: 0 auto 16px; }
.telefono .hecho svg path { stroke-dasharray: 60; stroke-dashoffset: 60; }
.telefono .hecho.ver svg path { transition: stroke-dashoffset .7s .2s var(--suave); stroke-dashoffset: 0; }
.telefono .hecho b { font: 700 19px var(--titulos); letter-spacing: -.02em; }
.telefono .hecho span { display: block; color: var(--gris); font-size: 13px; margin-top: 6px; }
.telefono .hecho button { margin-top: 18px; background: none; border: 0; color: var(--gris); font: 500 13px 'Inter', sans-serif; text-decoration: underline; cursor: pointer; padding: 8px; }

.panel { background: var(--noche-2); border: 1px solid var(--linea-osc); border-radius: 22px; padding: 20px; box-shadow: 0 30px 70px rgba(0, 0, 0, .4); position: relative; }
.panel .cab { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; gap: 10px; }
.panel .cab b { font: 600 15px var(--titulos); }
.panel .cab span { font-size: 12.5px; color: var(--gris-claro); }
.citas { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.citas li { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); font-size: 13.5px; }
.citas time { font-weight: 700; font-variant-numeric: tabular-nums; color: #fff; }
.citas .quien b { display: block; font-weight: 600; color: #fff; }
.citas .quien span { color: var(--gris-claro); font-size: 12.5px; }
.citas .est { font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 99px; background: rgba(52, 211, 153, .14); color: #6ee7b7; white-space: nowrap; }
.citas li.nueva { animation: entra .9s var(--suave) both; background: rgba(251, 191, 36, .1); box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .45); }
.citas li.nueva .est { background: var(--oro); color: var(--noche); }
@keyframes entra { from { opacity: 0; transform: translateY(-12px) scale(.97); } }
.panel .pie-panel { display: flex; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--linea-osc); font-size: 12.5px; color: var(--gris-claro); }
.panel .pie-panel div { flex: 1; }
.panel .pie-panel b { display: block; font: 700 20px/1.1 var(--titulos); color: #fff; font-variant-numeric: tabular-nums; margin-bottom: 2px; }
.toast { position: absolute; top: -22px; right: 16px; display: flex; gap: 10px; align-items: center; background: #fff; color: var(--tinta); border-radius: 16px; padding: 10px 16px 10px 10px; box-shadow: 0 20px 40px rgba(0, 0, 0, .35); opacity: 0; transform: translateY(-12px); transition: opacity .45s var(--suave), transform .45s var(--suave); pointer-events: none; max-width: calc(100% - 32px); z-index: 2; }
.toast.ver { opacity: 1; transform: none; }
.toast .ic { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--noche); color: #fff; }
.toast b { display: block; font-size: 13px; }
.toast span { color: var(--gris); font-size: 12px; }

/* ---------- Secciones ---------- */
.seccion { padding: clamp(80px, 10vw, 128px) 0; }
.seccion.blanca { background: #fff; }
.seccion.noche { background: var(--noche); color: #fff; }
.cabeza { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 40px; align-items: end; margin-bottom: 52px; }
.cabeza h2 { font-size: clamp(32px, 4.2vw, 52px); font-weight: 700; }
.cabeza p { color: var(--gris); font-size: 17.5px; }
.noche .cabeza p { color: var(--gris-claro); }
.marca-seccion { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--gris); margin-bottom: 18px; }
.marca-seccion::before { content: ''; width: 28px; height: 3px; border-radius: 3px; background: var(--trazo); }
.noche .marca-seccion { color: var(--gris-claro); }

/* Para tu negocio */
.sectores { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.sectores button { font: 500 15px 'Inter', sans-serif; padding: 11px 20px; border-radius: 999px; border: 1.5px solid var(--linea); background: #fff; color: var(--tinta); cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.sectores button:hover { border-color: var(--tinta); }
.sectores button[aria-pressed="true"] { background: var(--noche); border-color: var(--noche); color: #fff; }
.adaptado { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 18px; }
.caja { background: #fff; border: 1px solid var(--linea); border-radius: 28px; padding: clamp(26px, 3.4vw, 44px); }
.cambiante { transition: opacity .3s, transform .45s var(--suave); }
.cambiante.cambia { opacity: 0; transform: translateY(10px); }
.adaptado h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; margin-bottom: 22px; }
.dolores { list-style: none; margin: 0; padding: 0; }
.dolores li { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--linea); font-size: 15.5px; }
.dolores .antes { color: var(--gris); text-decoration: line-through; text-decoration-color: rgba(91, 100, 120, .4); }
.dolores .ic { width: 22px; height: 22px; color: var(--gris-claro); }
.dolores .ahora { font-weight: 600; }
.recomendado { background: var(--noche); color: #fff; border: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; position: relative; overflow: hidden; }
.recomendado .eti { font-size: 13.5px; color: var(--gris-claro); }
.recomendado h3 { font-size: clamp(30px, 3.4vw, 42px); margin: 10px 0 12px; }
.recomendado p { color: #b8c0d2; }
.recomendado .boton { align-self: flex-start; }
.trazo-deco { position: absolute; right: -50px; bottom: -70px; width: 280px; opacity: .12; pointer-events: none; }

/* Soluciones */
.rejilla { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sol { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px; border-radius: 28px; background: #fff; border: 1px solid var(--linea); text-decoration: none; transition: transform .5s var(--suave), box-shadow .5s var(--suave), border-color .3s; overflow: hidden; }
.sol:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(13, 18, 34, .08); border-color: #d2d2ca; }
.sol > .ic { width: 46px; height: 46px; stroke-width: 1.8; }
.sol .ic :is(path, rect, circle:not(.punto), line, polyline) { stroke-dasharray: 240; stroke-dashoffset: 0; }
.sol:hover .ic :is(path, rect, circle:not(.punto), line, polyline) { animation: dibuja 1.2s var(--suave); }
@keyframes dibuja { from { stroke-dashoffset: 240; } }
.sol h3 { font-size: 24px; font-weight: 700; }
.sol p { color: var(--gris); }
.estado { font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; color: var(--gris); }
.estado::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #c9cbd3; }
.estado.ok::before { background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .16); }
.estado.consulta::before { background: var(--oro); }
.ir { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; padding-top: 8px; }
.ir svg { width: 18px; height: 18px; transition: transform .35s var(--suave); }
.sol:hover .ir svg { transform: translateX(4px); }
.sol.destacada { grid-column: 1 / -1; background: var(--noche); color: #fff; border: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .78fr); gap: 28px; padding: 40px 40px 0; }
.sol.destacada .texto { display: flex; flex-direction: column; gap: 16px; padding-bottom: 40px; }
.sol.destacada h3 { font-size: clamp(30px, 3.4vw, 44px); }
.sol.destacada p { color: #b8c0d2; font-size: 17px; }
.marca-prod { display: flex; align-items: center; gap: 12px; }
.marca-prod img { width: 52px; height: 52px; }
.sol.destacada ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; }
.sol.destacada li { display: flex; gap: 10px; align-items: center; color: #dde2ee; font-size: 15px; }
.sol.destacada li .ic { width: 20px; height: 20px; color: var(--cian); stroke-width: 2.4; }
.sol.destacada .ir { color: var(--oro); }
.sol.destacada .captura { align-self: end; border-radius: 26px 26px 0 0; overflow: hidden; box-shadow: 0 0 0 7px #1b2238, 0 -10px 60px rgba(167, 139, 250, .25); transform: translateY(14px); transition: transform .8s var(--suave); }
.sol.destacada:hover .captura { transform: translateY(0); }
.sol.destacada .captura { width: min(100%, 340px); justify-self: center; }
.sol.destacada .captura img { width: 100%; aspect-ratio: 390 / 520; object-fit: cover; object-position: top; }

/* Cómo trabajamos: línea que se llena con el scroll */
.recorrido { position: relative; max-width: 860px; }
.via { position: absolute; left: 22.5px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--linea); }
.via i { position: absolute; inset: 0 0 auto 0; height: var(--avance, 0%); border-radius: 3px; background: linear-gradient(var(--cian), var(--lila)); }
.via i::after { content: ''; position: absolute; bottom: -7px; left: -5.5px; width: 14px; height: 14px; border-radius: 50%; background: var(--oro); box-shadow: 0 0 0 6px rgba(251, 191, 36, .22); }
.paso { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 28px; padding-bottom: 60px; }
.paso:last-child { padding-bottom: 0; }
.paso .nodo { width: 48px; height: 48px; border-radius: 50%; background: var(--papel); border: 1.5px solid var(--linea); display: grid; place-items: center; position: relative; z-index: 1; transition: border-color .5s, background .5s, color .5s; color: var(--gris-claro); }
.paso .nodo .ic { width: 22px; height: 22px; }
.paso.activo .nodo { background: var(--noche); border-color: var(--noche); color: #fff; }
.paso h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; margin: 8px 0 10px; }
.paso p { color: var(--gris); font-size: 17px; max-width: 560px; }
.cuando { display: inline-block; margin-top: 14px; font-size: 13.5px; font-weight: 600; background: #fff; border: 1px solid var(--linea); padding: 6px 13px; border-radius: 99px; }

/* Principios */
.principios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--linea-osc); }
.principio { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; padding: 36px 32px 36px 0; border-bottom: 1px solid var(--linea-osc); }
.principio:nth-child(odd) { border-right: 1px solid var(--linea-osc); }
.principio:nth-child(even) { padding-left: 36px; }
.principio .ic { width: 36px; height: 36px; color: var(--cian); stroke-width: 1.9; }
.principio h3 { font-size: 21px; font-weight: 600; margin-bottom: 8px; letter-spacing: -.025em; }
.principio p { color: var(--gris-claro); }

/* Contacto conversacional */
.contacto { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contacto h2 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 700; margin-bottom: 20px; }
.contacto .intro { color: var(--gris); font-size: 17.5px; margin-bottom: 32px; }
.canales { display: grid; gap: 10px; }
.canal { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 20px; background: #fff; border: 1px solid var(--linea); text-decoration: none; transition: border-color .3s, transform .4s var(--suave); }
a.canal:hover { border-color: var(--tinta); transform: translateX(4px); }
.canal .ic { width: 26px; height: 26px; }
.canal b { display: block; font-weight: 600; }
.canal span { color: var(--gris); font-size: 14.5px; overflow-wrap: anywhere; }
.chat { background: #fff; border: 1px solid var(--linea); border-radius: 30px; overflow: hidden; box-shadow: 0 30px 60px rgba(13, 18, 34, .06); }
.chat .barra { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--linea); }
.chat .barra img { width: 38px; height: 38px; border-radius: 11px; }
.chat .barra b { display: block; font-size: 15px; }
.chat .barra span { font-size: 12.5px; color: #16a34a; }
.chat .barra button { margin-left: auto; background: none; border: 0; color: var(--gris); font: 500 13.5px 'Inter', sans-serif; cursor: pointer; padding: 10px; border-radius: 10px; }
.chat .barra button:hover { background: var(--papel); }
.mensajes { padding: 22px 18px; height: 380px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; background: var(--papel); }
.burb { max-width: 84%; padding: 11px 15px; border-radius: 18px; font-size: 15px; line-height: 1.45; animation: burb .5s var(--suave) both; white-space: pre-line; overflow-wrap: anywhere; }
@keyframes burb { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.burb.ella { background: #fff; border: 1px solid var(--linea); border-bottom-left-radius: 6px; align-self: flex-start; }
.burb.yo { background: var(--noche); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.burb.escribiendo { display: flex; gap: 4px; padding: 15px 16px; }
.burb.escribiendo i { width: 7px; height: 7px; border-radius: 50%; background: var(--gris-claro); animation: puntos 1.2s infinite; }
.burb.escribiendo i:nth-child(2) { animation-delay: .15s; } .burb.escribiendo i:nth-child(3) { animation-delay: .3s; }
@keyframes puntos { 30% { transform: translateY(-4px); opacity: .5; } }
.burb.vista { align-self: stretch; max-width: none; background: #e3f8e7; border: 1px solid #c4ecc9; }
.burb.vista small { display: block; font-size: 12px; color: #2f7a3e; margin-bottom: 6px; font-weight: 600; }
.respuesta { padding: 14px; border-top: 1px solid var(--linea); background: #fff; min-height: 78px; }
.respuesta form { display: flex; gap: 8px; align-items: flex-end; }
.respuesta label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.respuesta input, .respuesta textarea { flex: 1; font: 16px 'Inter', sans-serif; border: 1.5px solid var(--linea); border-radius: 16px; padding: 12px 16px; background: var(--papel); color: var(--tinta); resize: none; min-height: 48px; }
.respuesta input:focus, .respuesta textarea:focus { outline: 0; border-color: var(--tinta); background: #fff; }
.respuesta .enviar { width: 48px; height: 48px; flex: none; border-radius: 50%; border: 0; background: var(--noche); color: #fff; cursor: pointer; display: grid; place-items: center; transition: transform .3s var(--suave); }
.respuesta .enviar:hover { transform: scale(1.06); }
.respuesta .enviar svg { width: 20px; height: 20px; }
.opciones { display: flex; flex-wrap: wrap; gap: 8px; }
.opciones button { font: 500 14.5px 'Inter', sans-serif; padding: 11px 16px; border-radius: 999px; border: 1.5px solid var(--linea); background: #fff; color: var(--tinta); cursor: pointer; transition: border-color .25s, background .25s; }
.opciones button:hover { border-color: var(--tinta); }
.opciones button.saltar { color: var(--gris); border-style: dashed; }
.finales { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.finales .boton { width: 100%; }
.nota-chat { font-size: 12.5px; color: var(--gris); margin-top: 10px; text-align: center; }

/* Cierre */
.cierre { text-align: center; }
.cierre h2 { font-size: clamp(36px, 5.4vw, 68px); font-weight: 700; max-width: 900px; margin: 0 auto 22px; }
.cierre p { color: var(--gris-claro); font-size: 18px; margin-bottom: 34px; }
.cierre .acciones { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.trazo-cierre { width: min(380px, 70%); margin: 0 auto 40px; overflow: visible; }
.trazo-cierre path { stroke-dasharray: 700; stroke-dashoffset: 700; }
.trazo-cierre.visible path { transition: stroke-dashoffset 2.2s var(--suave); stroke-dashoffset: 0; }
.trazo-cierre circle { opacity: 0; transform-origin: center; transform-box: fill-box; transform: scale(0); }
.trazo-cierre.visible circle { transition: opacity .3s 1.7s, transform .7s 1.7s cubic-bezier(.3, 1.6, .5, 1); opacity: 1; transform: none; }

/* Pie */
.pie { background: var(--noche); color: var(--gris-claro); padding: 72px 0 32px; font-size: 14.5px; border-top: 1px solid var(--linea-osc); }
.pie .contenedor { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.pie h4 { color: #fff; margin: 0 0 14px; font: 600 14px 'Inter', sans-serif; }
.pie a { display: block; text-decoration: none; padding: 4px 0; transition: color .2s; }
.pie a:hover { color: #fff; }
.pie .logo { display: inline-flex; color: #fff; margin-bottom: 16px; padding: 0; }
.pie .final { grid-column: 1 / -1; border-top: 1px solid var(--linea-osc); padding-top: 24px; margin-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- Página de producto ---------- */
.prod-hero { background: var(--noche); color: #fff; padding: 136px 0 0; overflow: hidden; position: relative; isolation: isolate; }
.prod-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 500px at 80% 100%, rgba(124, 58, 237, .35), transparent 65%); }
.prod-hero .contenedor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.prod-hero .texto { padding-bottom: 96px; }
.prod-hero .marca-prod { margin-bottom: 28px; gap: 14px; }
.prod-hero .marca-prod img { width: 60px; height: 60px; }
.prod-hero .marca-prod b { font: 700 26px/1 var(--titulos); letter-spacing: -.03em; }
.prod-hero .marca-prod span { display: block; font-size: 13.5px; color: var(--gris-claro); margin-top: 5px; }
.prod-hero h1 { font-size: clamp(38px, 5vw, 64px); font-weight: 700; }
.prod-hero .lead { color: #b8c0d2; font-size: 18.5px; margin: 24px 0 34px; max-width: 540px; }
.prod-hero .acciones { display: flex; gap: 12px; flex-wrap: wrap; }
.pantallas { display: flex; gap: 20px; justify-content: center; align-items: flex-end; }
.pantallas figure { margin: 0; width: 250px; border-radius: 30px 30px 0 0; overflow: hidden; box-shadow: 0 0 0 8px #1b2238, 0 -20px 80px rgba(167, 139, 250, .22); }
.pantallas figure:nth-child(2) { width: 230px; margin-bottom: -40px; }
.pantallas figure img { width: 100%; aspect-ratio: 390 / 640; object-fit: cover; object-position: top; }
.funciones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--linea); }
.funcion { padding: 34px 30px; border-bottom: 1px solid var(--linea); border-right: 1px solid var(--linea); }
.funcion:nth-child(3n) { border-right: 0; padding-right: 0; }
.funcion:nth-child(3n+1) { padding-left: 0; }
.funcion .ic { width: 34px; height: 34px; margin-bottom: 18px; stroke-width: 1.9; }
.funcion h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; letter-spacing: -.025em; }
.funcion p { color: var(--gris); }
.selector-plan { display: inline-flex; background: #fff; border: 1px solid var(--linea); border-radius: 999px; padding: 5px; margin-bottom: 24px; }
.selector-plan button { font: 600 15px 'Inter', sans-serif; border: 0; background: none; padding: 11px 26px; border-radius: 999px; cursor: pointer; color: var(--gris); transition: background .35s var(--suave), color .35s; }
.selector-plan button[aria-pressed="true"] { background: var(--noche); color: #fff; }
.tabla-plan { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; }
.tabla-plan h3 { font-size: clamp(32px, 3.6vw, 46px); font-weight: 700; }
.tabla-plan .equipo { color: var(--gris); margin: 10px 0 26px; font-size: 17px; }
.tabla-plan ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; align-content: start; }
.tabla-plan li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--linea); font-size: 15.5px; transition: color .4s; }
.tabla-plan li .ic { width: 20px; height: 20px; stroke-width: 2.4; transition: color .4s; }
.tabla-plan li.si .ic { color: #16a34a; }
.tabla-plan li.no { color: #b2b6c2; }
.tabla-plan li.no .ic { color: #d0d3db; }
.faq { max-width: 840px; }
.faq details { border-bottom: 1px solid var(--linea); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; font: 600 19px var(--titulos); letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1.5px solid var(--linea); position: relative; transition: background .3s, border-color .3s, color .3s; }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; margin: -.75px 0 0 -5px; background: currentColor; transition: transform .4s var(--suave); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i { background: var(--noche); color: #fff; border-color: var(--noche); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq details p { color: var(--gris); padding: 0 48px 26px 0; font-size: 16.5px; }

/* ---------- Páginas legales y 404 ---------- */
.legal { max-width: 780px; margin: 0 auto; padding: 140px 0 96px; }
.legal h1 { font-size: clamp(34px, 4vw, 48px); margin-bottom: 28px; }
.legal h2 { font-size: 20px; margin: 36px 0 10px; letter-spacing: -.02em; }
.legal p, .legal li { color: #3b4357; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; }
.legal li { padding: 3px 0; }
.perdida { min-height: 78vh; display: grid; place-content: center; text-align: center; padding: 140px 20px 80px; }
.perdida svg { width: 200px; margin: 0 auto 30px; }
.perdida h1 { font-size: clamp(34px, 4.6vw, 56px); margin-bottom: 14px; }
.perdida p { color: var(--gris); margin-bottom: 30px; }

/* ---------- Aparición al hacer scroll ---------- */
.aparece { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--suave), transform .9s var(--suave); transition-delay: calc(var(--i, 0) * 90ms); }
.aparece.visible { opacity: 1; transform: none; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .aparece { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  .trazo-cierre path { stroke-dashoffset: 0; } .trazo-cierre circle { opacity: 1; transform: none; }
}

/* ---------- Tableta ---------- */
@media (max-width: 1020px) {
  .hero .contenedor, .prod-hero .contenedor { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 120px; }
  .demo { max-width: 640px; margin-top: 30px; }
  .cabeza, .adaptado, .contacto, .tabla-plan { grid-template-columns: minmax(0, 1fr); }
  .cabeza { gap: 16px; }
  .rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prod-hero .texto { padding-bottom: 24px; }
  .funciones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .funcion, .funcion:nth-child(3n), .funcion:nth-child(3n+1) { padding: 30px 24px; border-right: 1px solid var(--linea); }
  .funcion:nth-child(odd) { padding-left: 0; }
  .funcion:nth-child(even) { border-right: 0; padding-right: 0; }
  .pie .contenedor { grid-template-columns: 1fr 1fr 1fr; }
  .pie .contenedor > div:first-child { grid-column: 1 / -1; }
  .menu { position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 20px 24px; background: rgba(10, 14, 28, .98); border-bottom: 1px solid var(--linea-osc); opacity: 0; transform: translateY(-10px); visibility: hidden; transition: opacity .35s, transform .35s var(--suave), visibility .35s; }
  .cabecera:not(.solida) .menu { top: 80px; }
  .menu.abierto { opacity: 1; transform: none; visibility: visible; }
  .menu a:not(.boton) { font-size: 18px; padding: 15px 4px; border-radius: 0; border-bottom: 1px solid var(--linea-osc); }
  .menu a:not(.boton):hover { background: none; }
  .menu a.activo::after { display: none; }
  .menu .boton { margin: 16px 0 0; }
  .hamburguesa { display: block; }
}
/* ---------- Móvil ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .demo { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .telefono { max-width: 290px; margin: 0 auto; width: 100%; }
  .hero .datos { gap: 24px; }
  .rejilla { grid-template-columns: minmax(0, 1fr); }
  .sol.destacada { grid-column: auto; grid-template-columns: minmax(0, 1fr); padding: 30px 30px 0; }
  .sol.destacada .texto { padding-bottom: 6px; }
  .sol.destacada .captura { max-width: 260px; margin: 0 auto; width: 100%; }
  .dolores li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .dolores .ic { display: none; }
  .principios { grid-template-columns: minmax(0, 1fr); }
  .principio, .principio:nth-child(even) { padding: 28px 0; border-right: 0; }
  .paso { gap: 18px; }
  .finales { grid-template-columns: minmax(0, 1fr); }
  .mensajes { height: 360px; }
  .funciones { grid-template-columns: minmax(0, 1fr); }
  .funcion, .funcion:nth-child(n) { padding: 26px 0; border-right: 0; }
  .tabla-plan ul { grid-template-columns: minmax(0, 1fr); }
  .pantallas { gap: 12px; } .pantallas figure { width: 48%; } .pantallas figure:nth-child(2) { width: 44%; }
  .selector-plan { display: flex; } .selector-plan button { flex: 1; padding: 11px 0; }
  .pie .contenedor { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* =====================================================================
   FONDO AMBIENTAL: el logo "an." gigante y difuminado, que cambia de
   posición, tamaño y tono en cada sección, y toda la web en modo noche.
   ===================================================================== */
:root { --cristal: rgba(19, 25, 46, .55); --borde-cristal: rgba(255, 255, 255, .1); --texto-2: #aab3c7; }
body { background: var(--noche); color: #e9ecf4; }
.ambiente { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(120% 90% at 50% 0%, #10162b 0%, var(--noche) 60%); }
.ambiente .capa { position: absolute; left: 50%; top: 50%; transition: transform 2.4s var(--suave), opacity 2.4s var(--suave); will-change: transform; }
.ambiente .flota { animation: flota 22s ease-in-out infinite alternate; }
.ambiente svg { display: block; width: 100%; height: auto; overflow: visible; }
.ambiente .luz { width: 92vmax; margin: -30vmax 0 0 -46vmax; filter: blur(70px); opacity: var(--o1, .55); transform: translate(var(--x1, 22vw), var(--y1, 4vh)) rotate(var(--r1, -6deg)) scale(var(--s1, 1)); }
.ambiente .luz2 { width: 70vmax; margin: -22vmax 0 0 -35vmax; filter: blur(80px); opacity: var(--o2, .25); transform: translate(var(--x2, -30vw), var(--y2, 30vh)) rotate(var(--r2, 12deg)) scale(var(--s2, 1)); }
.ambiente .luz2 .flota { animation-duration: 28s; animation-direction: alternate-reverse; }
.ambiente .silueta { width: 120vmax; margin: -38vmax 0 0 -60vmax; filter: blur(3px); opacity: var(--o3, .05); transform: translate(var(--x3, 18vw), var(--y3, 8vh)) rotate(var(--r3, -6deg)) scale(var(--s3, 1)); }
.ambiente .oro { width: 26vmax; height: 26vmax; margin: -13vmax 0 0 -13vmax; border-radius: 50%; background: radial-gradient(circle, rgba(251, 191, 36, .55), rgba(251, 191, 36, 0) 65%); filter: blur(30px); opacity: var(--o4, .35); transform: translate(var(--x4, 40vw), var(--y4, 30vh)) scale(var(--s4, 1)); }
.ambiente .grano { position: absolute; inset: 0; background: radial-gradient(transparent 55%, rgba(5, 7, 15, .65)); }
@keyframes flota { 0% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(2.5vw, -2vh) rotate(3deg); } 100% { transform: translate(-2vw, 2.5vh) rotate(-2deg); } }

/* Escenas: cada sección coloca el logo en un sitio distinto */
body[data-escena="sectores"] .ambiente { --x1: -26vw; --y1: 10vh; --r1: 8deg; --s1: .9; --o1: .5; --x2: 30vw; --y2: -20vh; --r2: -20deg; --o2: .4; --x3: -22vw; --y3: 4vh; --r3: 8deg; --s3: .9; --x4: -40vw; --y4: -28vh; --o4: .25; }
body[data-escena="soluciones"] .ambiente { --x1: 0vw; --y1: -18vh; --r1: 0deg; --s1: 1.15; --o1: .42; --x2: -34vw; --y2: 26vh; --r2: 30deg; --o2: .35; --x3: 0vw; --y3: -10vh; --r3: 0deg; --s3: 1.2; --o3: .04; --x4: 36vw; --y4: 34vh; --o4: .3; }
body[data-escena="como"] .ambiente { --x1: 30vw; --y1: 16vh; --r1: -16deg; --s1: .85; --o1: .5; --x2: -30vw; --y2: -24vh; --r2: 4deg; --o2: .3; --x3: 28vw; --y3: 12vh; --r3: -16deg; --s3: .85; --o3: .06; --x4: 22vw; --y4: 38vh; --o4: .4; }
body[data-escena="forma"] .ambiente { --x1: -22vw; --y1: -14vh; --r1: 14deg; --s1: 1.05; --o1: .45; --x2: 34vw; --y2: 24vh; --r2: -8deg; --o2: .45; --x3: -18vw; --y3: -8vh; --r3: 14deg; --s3: 1.05; --x4: -34vw; --y4: 30vh; --o4: .3; }
body[data-escena="contacto"] .ambiente { --x1: 30vw; --y1: -6vh; --r1: -4deg; --s1: .8; --o1: .4; --x2: -36vw; --y2: 10vh; --r2: 18deg; --o2: .35; --x3: 26vw; --y3: 0vh; --r3: -4deg; --s3: .8; --o3: .045; --x4: 44vw; --y4: 24vh; --o4: .3; }
body[data-escena="cierre"] .ambiente { --x1: 0vw; --y1: 6vh; --r1: 0deg; --s1: 1.3; --o1: .6; --x2: 0vw; --y2: -30vh; --r2: 0deg; --o2: .3; --x3: 0vw; --y3: 4vh; --r3: 0deg; --s3: 1.35; --o3: .06; --x4: 18vw; --y4: 20vh; --s4: 1.4; --o4: .55; }

/* Secciones transparentes sobre el fondo */
.hero, .prod-hero, .seccion, .seccion.blanca, .seccion.noche { background: transparent; color: #fff; }
.pie { background: rgba(5, 7, 15, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.cabeza p, .contacto .intro, .paso p, .sol p, .funcion p, .tabla-plan .equipo, #plan-frase, .faq details p, .perdida p { color: var(--texto-2) !important; }
.marca-seccion { color: var(--texto-2); }
.legal p, .legal li { color: #c9d0de; }

/* Tarjetas de cristal */
.caja, .sol, .canal, .tabla-plan.caja, .selector-plan, .sectores button, .paso .nodo, .cuando { background: var(--cristal); border-color: var(--borde-cristal); color: #fff; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.sol:hover { border-color: rgba(255, 255, 255, .22); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
a.canal:hover, .sectores button:hover { border-color: rgba(255, 255, 255, .45); }
.sectores button[aria-pressed="true"], .selector-plan button[aria-pressed="true"] { background: #fff; color: var(--noche); border-color: #fff; }
.selector-plan button { color: var(--texto-2); }
.recomendado { background: linear-gradient(150deg, rgba(34, 211, 238, .16), rgba(167, 139, 250, .2)) , var(--cristal); border: 1px solid rgba(167, 139, 250, .35); }
.sol.destacada { background: linear-gradient(160deg, rgba(124, 58, 237, .28), rgba(19, 25, 46, .6) 60%); border: 1px solid rgba(167, 139, 250, .3); }
.dolores li, .faq details, .tabla-plan li, .funciones, .funcion, .principios, .principio { border-color: var(--borde-cristal) !important; }
.dolores .antes { color: #8c96ab; text-decoration-color: rgba(140, 150, 171, .5); }
.dolores .ahora, .tabla-plan li.si { color: #fff; }
.tabla-plan li.si .ic { color: #4ade80; }
.tabla-plan li.no, .tabla-plan li.no .ic { color: #5d6780; }
.via { background: var(--borde-cristal); }
.paso.activo .nodo { background: #fff; border-color: #fff; color: var(--noche); }
.faq summary i { border-color: var(--borde-cristal); }
.faq details[open] summary i { background: #fff; color: var(--noche); border-color: #fff; }
.estado { color: var(--texto-2); }
.canal span { color: var(--texto-2); }
.chat { border: 0; box-shadow: 0 40px 90px rgba(0, 0, 0, .45); color: var(--tinta); }
.trazo-deco { opacity: .1; }

@media (prefers-reduced-motion: reduce) { .ambiente .flota { animation: none; } }
@media (max-width: 640px) {
  .ambiente .luz { width: 150vmax; margin: -48vmax 0 0 -75vmax; filter: blur(50px); }
  .ambiente .luz2 { filter: blur(50px); }
  .ambiente .silueta { width: 190vmax; margin: -60vmax 0 0 -95vmax; }
}
