/* INTEGRAL S-COM · estilo compartido de todo el sitio (rediseño 2026-11, prospecto G aprobado por el dueño).
   Un solo mundo: fondo negro, marco de líneas finas con cruces, títulos IBM Plex Sans con una palabra en verde,
   textos en Geist y datos (teléfonos, horarios, fichas técnicas) en Geist Mono. El verde del logo es el único acento. */

@font-face { font-family: "IBM Plex Sans"; font-weight: 100 700; font-display: swap; src: url(../fonts/ibm-plex-sans-latin.woff2) format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 100 900; font-display: swap; src: url(../fonts/geist-latin.woff2) format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 100 900; font-display: swap; src: url(../fonts/geist-mono-latin.woff2) format("woff2"); }

:root {
  /* Colores · paleta INTEGRAL S-COM (26-11-2026), sacada del logo.
     Marca: verde (botones y palabra destacada), turquesa (íconos y detalles), azul (datos y etiquetas).
     Base blanca (27-11-2026: el dueño dejó solo el fondo blanco). Aviso: ámbar, rojo y verde. */
  --bg: #ffffff; --negro: #f4f6f5; --panel: #ffffff; --panel-2: #f3f5f4;
  --line: #e4e8e6; --line-2: #d2d9d5;
  --txt: #56615b; --txt-2: #36403b; --hi: #0d1311; --apagado: #78827c;
  --acc: #3fd45f; --acc-2: #6be083; --acc-fondo: rgba(63, 212, 95, .1); --acc-linea: rgba(63, 212, 95, .45); --tinta: #04140a;
  --tq: #0f9d90; --tq-fondo: rgba(15, 157, 144, .1); --tq-linea: rgba(15, 157, 144, .45);
  --azul: #2a74d0; --ambar: #f5b83d;
  --error: #ff6b5e; --acc-txt: #17923a;
  --fundido-c: #ffffff; --hero-velo: 300px;   /* la foto/maqueta de arriba se funde en blanco, con un velo oscuro bajo el texto */
  /* Esquinas y sombra */
  --r-s: 4px; --r: 6px;
  --sombra: 0 28px 60px -30px rgba(13, 30, 22, .28);
  /* Letras */
  --f-tit: "IBM Plex Sans", system-ui, sans-serif; --f-txt: "Geist", system-ui, sans-serif; --f-mono: "Geist Mono", ui-monospace, monospace;
  --t-hero: clamp(44px, 6.4vw, 96px); --t-h2: clamp(34px, 4.2vw, 60px); --t-frase: clamp(30px, 4.3vw, 64px);
  /* Medidas */
  --logo: 46px;   /* alto del logo (27-11-2026, aprobado por el dueño): cabecera 46, pie 44, celular 38, chat 30; ~la mitad del alto de la cabecera */
  --max: 1328px; --rail: clamp(12px, 3.9vw, 56px); --pad: clamp(20px, 2.8vw, 40px); --hdr: 88px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color-scheme: light; overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px);
  scrollbar-color: #3a3a3a var(--bg); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; font: 400 16px/1.6 var(--f-txt); color: var(--txt); background: var(--bg); caret-color: var(--acc); }
::selection { background: var(--acc); color: #000; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-tit); color: var(--hi); font-weight: 500; letter-spacing: -.02em; line-height: 1.06; text-wrap: balance; }
p { text-wrap: pretty; }
em { font-style: normal; color: var(--acc-txt); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 2px; }
a.enlace, .prosa a { color: var(--hi); text-decoration: underline; text-decoration-color: var(--acc-linea); text-underline-offset: 4px; }
a.enlace:hover, .prosa a:hover { text-decoration-color: var(--acc); }
svg.i { width: 18px; height: 18px; flex: none; }
.saltar { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 14px; background: var(--acc); color: #000; border-radius: var(--r); font-weight: 600; }
.saltar:focus { top: 12px; }

/* ── Marco: rieles verticales y divisiones con cruces ── */
.ancho { width: min(var(--max), calc(100% - 2 * var(--rail))); margin-inline: auto; }
.frame { position: relative; width: min(var(--max), calc(100% - 2 * var(--rail))); margin-inline: auto; border-inline: 1px solid var(--line); }
.div { position: relative; height: 1px; background: var(--line); box-shadow: 0 0 0 100vmax var(--line); clip-path: inset(0 -100vmax); }
.div::before, .div::after { content: ""; position: absolute; top: -7px; width: 15px; height: 15px;
  background: linear-gradient(var(--line-2), var(--line-2)) center / 1px 100% no-repeat, linear-gradient(var(--line-2), var(--line-2)) center / 100% 1px no-repeat; }
.div::before { left: -8px; } .div::after { right: -8px; }

/* ── Botones: cuadro con ícono + texto, como la referencia ── */
.btn { display: inline-flex; align-items: stretch; gap: 4px; height: 44px; font: 500 13px/1 var(--f-txt); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; border: 0; background: none; }
.btn .sq { width: 44px; display: grid; place-items: center; background: #fff; color: #000; border-radius: var(--r); transition: background .2s, transform .3s var(--ease); }
.btn .tx { display: grid; place-items: center; padding: 0 20px; white-space: nowrap; background: #fff; color: #000; border-radius: var(--r); transition: background .2s; }
.btn:hover .sq, .btn:hover .tx { background: #e4e4e4; }
.btn:hover .sq svg { transform: translateX(1px); }
.btn.go .sq, .btn.go .tx { background: var(--acc); color: var(--tinta); }
.btn.go:hover .sq, .btn.go:hover .tx { background: var(--acc-2); }
.btn.ln .sq, .btn.ln .tx { background: transparent; color: var(--hi); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ln:hover .sq, .btn.ln:hover .tx { background: rgba(255, 255, 255, .06); }
.btn:focus-visible { outline: none; } .btn:focus-visible .sq, .btn:focus-visible .tx { outline: 2px solid var(--acc); outline-offset: 2px; }
.btn[disabled] { opacity: .5; cursor: default; pointer-events: none; }
.btn.sm { height: 40px; } .btn.sm .sq { width: 40px; } .btn.sm .tx { padding: 0 16px; }
.fila-btn { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Cambio de página suave: el contenido entra al llegar y sale hacia arriba al ir a otra página del sitio (sitio.js, punto 5) ── */
main { animation: pgEntra .6s var(--ease) backwards; }
/* Secciones que suben al aparecer (js/sitio.js, punto 8) */
.revela { opacity: 0; }   /* lo prepara js/sitio.js §8; al aparecer, la subida la hace una animación por JS */
@keyframes pgEntra { from { opacity: 0; transform: translateY(16px); } }
html.pg-sale main { opacity: 0; transform: translateY(-14px); transition: opacity .26s ease, transform .3s cubic-bezier(.4, 0, 1, 1); }
/* Todo lo que se toca responde con un hundido corto */
a, button, summary, label { -webkit-tap-highlight-color: transparent; }
.btn .tx { transition: background .2s, transform .3s var(--ease); }
.btn:active .sq, .btn:active .tx { transform: scale(.96); transition-duration: .08s; }
:is(.chip span, .ct-f, .mm-col a, .mm-card, .pf-cols a, .pf-ic a, .menu a) { transition-property: color, background, border-color, box-shadow, transform; }
:is(.chip:active span, .ct-f:active, .mm-col a:active, .mm-card:active, .menu a:active) { transform: scale(.98); }

/* ── Cabecera fija ── */
.hdr { position: fixed; z-index: 100; inset: 0 0 auto; border-bottom: 1px solid var(--line); transition: background .3s, border-color .3s, box-shadow .4s; }
.hdr.solida { background: var(--bg); }
.hdr > .in { height: var(--hdr); display: flex; align-items: center; gap: 24px; padding-inline: 24px; }
.hdr .logo img { width: auto; height: var(--logo); }
.hdr nav { display: flex; align-items: center; gap: clamp(4px, .9vw, 14px); margin-inline: auto; font: 500 13px/1 var(--f-txt); letter-spacing: .14em; text-transform: uppercase; color: var(--hi); }
.hdr nav a, .mm-btn { display: inline-flex; align-items: center; gap: 7px; padding: 10px 12px; border-radius: var(--r); position: relative; white-space: nowrap; transition: color .2s, background .2s, transform .3s var(--ease); }
.mm-btn:active, .hdr nav a:active { transform: scale(.96); }
.mm-btn { background: none; border: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; }
.mm-btn .fl { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .35s var(--ease); }
.hdr nav a:hover, .hdr nav a[aria-current="page"], .mm-btn:hover, .mm-btn[aria-expanded="true"] { color: var(--acc); }
.mm-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .05); }
.mm-btn[aria-expanded="true"] .fl { transform: rotate(180deg); }
.hdr .acc { display: flex; gap: 6px; }
.hdr .menu-btn { display: none; }
/* Menús desplegables (como runwaydb.cl): la cabecera crece hacia abajo con suavidad y los dos paneles se funden en la misma celda.
   El alto lo pone sitio.js según el panel abierto. */
.hdr[data-menu] { background: var(--bg); border-bottom-color: var(--line-2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
.mm { height: 0; overflow: hidden; border-top: 1px solid transparent; transition: height .55s cubic-bezier(.65, 0, .35, 1), border-color .3s; }
.hdr[data-menu] .mm { border-top-color: var(--line); }
.hdr:not([data-menu]) .mm { transition: height .3s cubic-bezier(.3, 0, .2, 1), border-color .3s .2s; }
.mm-in { position: relative; padding-inline: 24px; }
.mm-p { position: absolute; left: 24px; right: 24px; top: 0; display: grid; grid-template-columns: 1fr 1fr 1fr 1.05fr; padding: 22px 0 26px; opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s, transform .35s var(--ease), visibility 0s .35s; }
.hdr[data-ult="svc"] .mm-p[data-p="svc"], .hdr[data-ult="rec"] .mm-p[data-p="rec"] { opacity: 1; visibility: visible; transform: none; transition: opacity .4s .08s, transform .5s .08s var(--ease), visibility 0s; }
.hdr:not([data-menu])[data-ult] .mm-p { opacity: 0; visibility: hidden; transition: opacity .18s, visibility 0s .3s; }
.mm-col { display: grid; align-content: start; gap: 2px; padding: 0 18px; border-left: 1px solid var(--line); }
.mm-col:first-child { border-left: 0; padding-left: 0; }
.mm-col h3 { padding: 6px 12px 12px; font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--apagado); }
.mm-col a { display: flex; align-items: flex-start; gap: 14px; padding: 11px 12px; border-radius: var(--r); transition: background .25s; }
.mm-col a:hover, .mm-col a:focus-visible { background: rgba(255, 255, 255, .045); }
.mm-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--tq); transition: box-shadow .25s, background .25s, color .25s, transform .35s var(--ease); }
.mm-ic .i { width: 18px; height: 18px; }
.mm-col a:hover .mm-ic { box-shadow: inset 0 0 0 1px var(--tq-linea); background: var(--tq-fondo); transform: scale(1.06); }
.mm-tx b { display: block; font: 500 15px/1.3 var(--f-tit); color: var(--hi); }
.mm-tx > span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--txt); text-transform: none; letter-spacing: 0; }
.mm-card { align-self: start; margin-left: 18px; display: grid; overflow: hidden; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel); transition: border-color .3s, transform .4s var(--ease); }
.mm-card:hover { border-color: var(--acc-linea); transform: translateY(-2px); }
.mm-card img { width: 100%; height: 128px; object-fit: cover; filter: saturate(.6) brightness(.7); transition: filter .4s; }
.mm-card:hover img { filter: saturate(.85) brightness(.85); }
.mm-card-tx { display: grid; gap: 6px; padding: 16px 16px 18px; text-transform: none; letter-spacing: 0; }
.mm-card b { font: 500 17px/1.25 var(--f-tit); color: var(--hi); }
.mm-card small { font-size: 13px; line-height: 1.45; color: var(--txt); }
.mm-ir { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font: 500 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--acc); }
.mm-ir .i { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.mm-card:hover .mm-ir .i { transform: translateX(3px); }
/* Las piezas del panel entran una tras otra */
.mm-p > * { opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .45s var(--ease); }
.hdr[data-menu][data-ult="svc"] .mm-p[data-p="svc"] > *, .hdr[data-menu][data-ult="rec"] .mm-p[data-p="rec"] > * { opacity: 1; transform: none; }
.mm-p > :nth-child(2) { transition-delay: .05s; } .mm-p > :nth-child(3) { transition-delay: .1s; } .mm-p > :nth-child(4) { transition-delay: .15s; }

.menu { position: fixed; z-index: 99; inset: var(--hdr) 0 0; background: var(--bg); overflow-y: auto; padding: 8px 24px 40px; border-top: 1px solid var(--line); }
.menu[hidden] { display: none; }
.menu a { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); font: 500 20px/1.2 var(--f-tit); color: var(--hi); }
.menu .sub a { padding: 12px 0 12px 16px; font: 400 16px/1.3 var(--f-txt); color: var(--txt-2); }
.menu h2 { margin: 26px 0 4px; font: 500 12px/1 var(--f-txt); letter-spacing: .14em; text-transform: uppercase; color: var(--apagado); }
.menu .btn { margin-top: 26px; }
body.menu-abierto { overflow: hidden; }

/* ── Cierre (llamado a agendar) ── */
.cta { position: relative; margin: var(--pad); min-height: 460px; overflow: hidden; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; text-align: center; }
.cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.5) brightness(.42); }
.cta::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 85% at 50% 55%, rgba(0, 0, 0, .62), rgba(0, 0, 0, .2)); }
.cta .in { position: relative; z-index: 1; padding: clamp(26px, 4.2vw, 60px); }
.cta h2 { font-size: clamp(36px, 4.5vw, 64px); max-width: 15ch; margin: 0 auto 16px; }
.cta .fila-btn { justify-content: center; }
.cta p { color: var(--txt-2); max-width: 46ch; margin: 0 auto 28px; }

/* ── Pie (como runwaydb.cl): dos bandas separadas por líneas. Arriba columnas de enlaces y el lema; abajo contacto, logo al centro y derechos ── */
.foot { font-size: 14px; }
.pf-cols { display: grid; grid-template-columns: repeat(4, 1fr) 1.3fr; gap: 32px; padding: 64px var(--pad) 60px; }
.pf-cols h2 { font: 500 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--hi); margin-bottom: 18px; }
.pf-cols div > a, .pf-cols div > span { display: block; width: fit-content; line-height: 1.5; padding: 5px 0; color: var(--txt); transition: color .2s; }
.pf-cols a:hover { color: var(--hi); }
.pf-cols .mono { font-size: 13px; }
.pf-lema { justify-self: end; align-self: start; max-width: 12em; text-align: right; font: 500 26px/1.2 var(--f-tit); letter-spacing: -.01em; color: var(--hi); text-wrap: balance; }
.pf-lema em { font-style: normal; color: var(--acc-txt); }
.pf-fila { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 22px var(--pad) 26px; border-top: 1px solid var(--line); }
.pf-ic { display: flex; gap: 8px; }
.pf-ic a { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--hi);
  transition: color .2s, background .2s, border-color .2s, transform .2s; }
.pf-ic a.pf-wa { background: #25d366; border-color: #25d366; color: #fff; }
.pf-ic a:hover, .pf-ic a:focus-visible { border-color: var(--acc); color: var(--acc); transform: translateY(-2px); } .pf-ic a.pf-wa:hover { color: #fff; }
.pf-ic a:active { transform: scale(.95); }
.pf-ic .i { width: 19px; height: 19px; }
/* Aviso «Número copiado» encima del ícono del teléfono, solo después de tocarlo (js/sitio.js §9) */
.pf-dato { position: absolute; left: 50%; bottom: calc(100% + 12px); z-index: 5; display: grid; gap: 2px; padding: 9px 13px; border-radius: 10px; white-space: nowrap; text-align: center;
  background: #f4f6f5; color: #0d1311; font: 600 14px/1.2 var(--f-mono); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s; pointer-events: none; }
.pf-dato::after { content: ""; position: absolute; left: 50%; top: 100%; border: 7px solid transparent; border-top-color: #f4f6f5; transform: translateX(-50%); }
.pf-dato small { font: 500 10.5px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: #78827c; }
.pf-ic a.copiado .pf-dato { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.pf-marca img { width: auto; height: calc(var(--logo) - 2px); }
.pf-copy { justify-self: end; text-align: right; font: 500 11px/1.6 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }

/* ── Títulos de sección ── */
.sec { padding: clamp(80px, 9vw, 130px) var(--pad); }
.sec-tit { font-size: var(--t-h2); margin-bottom: 22px; }
.sec-intro { max-width: 52ch; font-size: 17px; }

/* ── Ficha técnica (filas de dato) ── */
.ficha { border-top: 1px solid var(--line); }
.ficha > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ficha b { font: 500 13px/1.4 var(--f-mono); color: var(--azul); letter-spacing: .04em; text-transform: uppercase; text-align: right; }

/* ── Cuadrícula de enlaces (marcas, otros servicios) ── */
.celdas { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); }
.celdas > * { display: grid; place-items: center; min-height: 86px; padding: 14px 8px; text-align: center; font: 500 14px/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--apagado); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: none; border-top: 0; border-left: 0; transition: color .2s, background .2s; }
.celdas > *:nth-child(6n) { border-right: 0; }

/* Rótulo de las imágenes hechas con IA */
.ilus { position: absolute; left: 10px; top: 10px; padding: 4px 8px; border-radius: 3px; background: rgba(0, 0, 0, .72); color: #fff;   /* blanco fijo: con el fondo blanco var(--hi) es casi negro */ font: 500 11px/1 var(--f-mono); letter-spacing: .04em; }

/* ── Ventanas (dialog): opinión ── */
dialog { margin: auto; color: var(--txt); background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--sombra); max-height: min(88vh, 900px); }
dialog::backdrop { background: rgba(0, 0, 0, .72); }
.ventana-cab { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); z-index: 1; }
.ventana-cab h2 { font-size: 24px; }
.cerrar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r); background: none; border: 1px solid var(--line-2); color: var(--hi); cursor: pointer; }
.cerrar { transition: background .25s, border-color .25s, color .25s, transform .4s var(--ease); } .cerrar svg { transition: transform .45s var(--ease); }
.cerrar:hover { background: rgba(255, 255, 255, .06); border-color: var(--acc-linea); color: var(--acc); } .cerrar:hover svg { transform: rotate(90deg); }
.cerrar:active { transform: scale(.88); transition-duration: .08s; }
dialog[open] { animation: ventanaEntra .4s var(--ease); } dialog[open]::backdrop { animation: veloEntra .4s ease; }
@keyframes ventanaEntra { from { opacity: 0; transform: translateY(16px) scale(.98); } } @keyframes veloEntra { from { opacity: 0; } }

/* ── Campos de formulario ── */
.campo { display: grid; gap: 8px; }
.campo > span, fieldset legend { font: 500 12px/1.2 var(--f-txt); letter-spacing: .12em; text-transform: uppercase; color: var(--txt-2); }
.entrada { width: 100%; min-height: 50px; padding: 13px 15px; background: var(--negro); border: 1px solid var(--line-2); border-radius: var(--r); color: var(--hi); font-size: 16px; transition: border-color .2s; }
.entrada::placeholder { color: var(--apagado); }
.entrada:hover { border-color: rgba(255, 255, 255, .28); }
.entrada:focus-visible { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-fondo); }
textarea.entrada { min-height: 110px; resize: vertical; line-height: 1.5; }
select.entrada { appearance: none; padding-right: 44px; cursor: pointer;
  background: var(--negro) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; }
fieldset { border: 0; display: grid; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r); color: var(--txt-2); font-size: 14px; transition: border-color .2s, background .2s, color .2s; }
.chip input:hover + span { border-color: rgba(255, 255, 255, .32); color: var(--hi); }
.chip input:checked + span { border-color: var(--acc-linea); background: var(--acc-fondo); color: var(--acc); }
.chip input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }
.aviso { font-size: 13px; line-height: 1.5; color: var(--txt); }
.aviso a { color: var(--hi); text-decoration: underline; text-decoration-color: var(--acc-linea); text-underline-offset: 3px; }
.msg-error { color: var(--error); font-size: 14px; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Páginas de lectura (privacidad, cookies, créditos, 404) ── */
.lectura { padding: calc(var(--hdr) + clamp(60px, 7vw, 110px)) var(--pad) clamp(80px, 8vw, 120px); }
.lectura h1 { font-size: clamp(40px, 5vw, 72px); margin-bottom: 18px; }
.prosa { max-width: 68ch; }
.prosa .fecha { font: 500 13px/1 var(--f-mono); letter-spacing: .02em; color: var(--apagado); margin-bottom: 40px; }
.prosa h2 { font-size: 24px; margin: 44px 0 12px; }
.prosa p, .prosa li { color: var(--txt-2); }
.prosa p + p { margin-top: 12px; }
.prosa ul { margin: 12px 0 0 20px; display: grid; gap: 8px; }
.prosa strong { color: var(--hi); font-weight: 500; }
/* Páginas legales: tres páginas aparte (sin pestañas entre ellas), índice lateral fijo que marca la sección visible y tablas que en celular se vuelven fichas */
html:has(.legal) { scroll-behavior: smooth; }
.lg-cab { max-width: 860px; padding-bottom: clamp(36px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.lg-intro { font-size: clamp(17px, 1.4vw, 20px); color: var(--txt-2); max-width: 56ch; }
.lg-cab .fecha { margin-top: 18px; font: 500 13px/1 var(--f-mono); color: var(--apagado); }
.lg-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); padding-top: clamp(36px, 4vw, 56px); }
.lg-indice { position: sticky; top: calc(var(--hdr) + 28px); align-self: start; }
.lg-indice b { display: block; margin-bottom: 14px; font: 500 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--apagado); }
.lg-indice ol { list-style: none; display: grid; border-left: 1px solid var(--line); }
.lg-indice a { position: relative; display: block; padding: 8px 0 8px 16px; font-size: 14px; line-height: 1.35; color: var(--txt); transition: color .25s, transform .3s var(--ease); }
.lg-indice a::before { content: ""; position: absolute; left: -1px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--acc); transform: scaleY(0); transition: transform .35s var(--ease); }
.lg-indice a:hover { color: var(--hi); transform: translateX(3px); }
.lg-indice a.on { color: var(--hi); } .lg-indice a.on::before { transform: none; }
.lg-prosa { max-width: 76ch; }
.lg-sec { scroll-margin-top: calc(var(--hdr) + 24px); padding-bottom: 8px; }
.lg-sec + .lg-sec { margin-top: 12px; }
.lg-prosa h2 { display: flex; align-items: baseline; gap: 14px; margin-top: 40px; }
.lg-sec:first-child h2 { margin-top: 0; }
.lg-prosa h2 .mono { font-size: 13px; color: var(--azul); letter-spacing: .04em; }
.lg-prosa code { font: 500 13px/1 var(--f-mono); color: var(--hi); padding: 3px 6px; border-radius: var(--r-s); background: var(--panel-2); }
.lg-tabla { margin: 18px 0; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.lg-tabla table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lg-tabla th { text-align: left; padding: 12px 16px; background: var(--panel); font: 500 11px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--apagado); }
.lg-tabla td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: top; color: var(--txt-2); line-height: 1.5; }
.lg-tabla td:first-child { color: var(--hi); font-weight: 500; }
.lg-tabla tr { transition: background .2s; } .lg-tabla tbody tr:hover { background: rgba(255, 255, 255, .025); }
.lg-dudas { margin-top: 48px; padding: 20px 22px; border: 1px solid var(--acc-linea); border-radius: var(--r); background: var(--acc-fondo); }
.lg-sec { animation: pgEntra .7s var(--ease) backwards; } .lg-sec:nth-child(2) { animation-delay: .06s; } .lg-sec:nth-child(3) { animation-delay: .12s; }
@media (max-width: 1100px) { .lg-grid { grid-template-columns: 1fr; } .lg-indice { position: static; } .lg-indice ol { grid-template-columns: 1fr 1fr; column-gap: 20px; } }
@media (max-width: 760px) {
  .lg-indice ol { grid-template-columns: 1fr; }
  .lg-tabla { border: 0; border-radius: 0; overflow: visible; }
  .lg-tabla thead { display: none; }
  .lg-tabla tr { display: grid; gap: 6px; margin-bottom: 10px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r); }
  .lg-tabla td { padding: 0; border: 0; }
  .lg-tabla td:not(:first-child)::before { content: attr(data-c); display: block; margin-bottom: 2px; font: 500 11px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--apagado); }
}

/* ── Asistente «Sofía» (asistente.js y asistente-chat.js arman el botón y el panel; aquí solo su aspecto) ── */
/* Botón verde lleno (28-11-2026, prospecto A elegido por el dueño): blanco se perdía sobre las secciones blancas; el verde de la marca
   se ve sobre cualquier fondo y es el mismo de «Agendar visita» */
.asist { position: fixed; z-index: 95; right: 22px; bottom: 22px; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 16px; border: 1px solid var(--acc); border-radius: var(--r);
  background: var(--acc); color: var(--tinta); font: 600 13px/1 var(--f-txt); letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
  box-shadow: 0 12px 30px -10px rgba(23, 146, 58, .65), 0 2px 6px rgba(13, 30, 22, .18); transition: background .2s, border-color .2s, transform .35s var(--ease); }
.asist:active { transform: scale(.94); transition-duration: .08s; }
.asist:hover { background: var(--acc-2); border-color: var(--acc-2); }
.asist svg { width: 22px; height: 22px; color: var(--tinta); overflow: visible; }
.asist-onda { position: absolute; inset: -1px; border-radius: inherit; border: 1px solid var(--acc-txt); opacity: 0; pointer-events: none; }
.asist.asist-vibra .asist-onda { animation: asistOnda 1.6s var(--ease); }
.asist.asist-vibra .asist-onda:nth-of-type(2) { animation-delay: .35s; }
@keyframes asistOnda { from { transform: scale(1); opacity: .8; } to { transform: scale(1.25, 1.6); opacity: 0; } }
/* Vibración de verdad (28-11-2026, pedido del dueño: que al entrar se note que el chat está ahí). El botón entra subiendo, a los
   1,8 s zumba dos veces fuerte con un brillo verde y aparece un punto verde de «mensaje sin leer»; después, un zumbido corto
   cada 7 s mientras el chat esté cerrado (js/asistente.js). */
.asist:not(.asist-entro) { animation: asistEntra .8s var(--ease) .9s backwards; }   /* una sola vez (js/asistente.js pone .asist-entro) */
@keyframes asistEntra { from { opacity: 0; transform: translateY(40px) scale(.6); } }
.asist.asist-vibra { animation: asistZumbido .9s ease-in-out; }
.asist.asist-vibra.asist-fuerte { animation: asistZumbido .9s ease-in-out 2, asistBrillo 1.8s ease-out; }
@keyframes asistZumbido {
  0%, 62%, 100% { transform: none; }
  6% { transform: translateX(-4px) rotate(-6deg) scale(1.06); } 14% { transform: translateX(4px) rotate(6deg) scale(1.06); }
  22% { transform: translateX(-4px) rotate(-5deg) scale(1.05); } 30% { transform: translateX(3px) rotate(4deg) scale(1.04); }
  38% { transform: translateX(-2px) rotate(-3deg) scale(1.02); } 46% { transform: translateX(1px) rotate(1deg); } }
@keyframes asistBrillo { 0% { box-shadow: var(--sombra), 0 0 0 0 rgba(63, 212, 95, .55); } 40% { box-shadow: var(--sombra), 0 0 0 10px rgba(63, 212, 95, .18), 0 0 34px 6px rgba(63, 212, 95, .45); } 100% { box-shadow: var(--sombra), 0 0 0 18px rgba(63, 212, 95, 0); } }
.asist.asist-fuerte .asist-onda { border-width: 2px; }
/* Punto de «mensaje sin leer»: aparece con el primer zumbido y se va al abrir el chat */
.asist-aviso { display: none; position: absolute; top: -5px; right: -5px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--acc-txt);
  box-shadow: 0 0 0 0 rgba(63, 212, 95, .6); animation: asistAvisoEntra .4s var(--ease) backwards, asistAvisoLate 2s ease-out .4s infinite; }
.asist.asist-con-aviso .asist-aviso { display: block; }
@keyframes asistAvisoEntra { from { transform: scale(0); } }
@keyframes asistAvisoLate { 0% { box-shadow: 0 0 0 0 rgba(63, 212, 95, .6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(63, 212, 95, 0); } }
@media (prefers-reduced-motion: reduce) { .asist, .asist.asist-vibra, .asist-aviso { animation: none; } }
.asist-pt { transform-box: fill-box; transform-origin: center; }
.asist.asist-vibra .asist-pt { animation: asistPunto .6s ease-in-out 3; }
.asist.asist-vibra .asist-pt:nth-of-type(2) { animation-delay: .12s; } .asist.asist-vibra .asist-pt:nth-of-type(3) { animation-delay: .24s; }
@keyframes asistPunto { 50% { transform: translateY(-2px); } }
@keyframes msgEntra { from { opacity: 0; transform: translateY(8px); } }
.asist-panel { position: fixed; z-index: 96; right: 22px; bottom: 88px; width: min(380px, calc(100vw - 24px)); height: min(620px, calc(100dvh - var(--hdr) - 110px)); display: none; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; box-shadow: var(--sombra); }
.asist-panel { transform-origin: 100% 100%; }
.asist-panel.asist-visible { display: flex; animation: asistPanel .45s var(--ease); }
.asist-panel.asist-saliendo { animation: asistSale .23s cubic-bezier(.4, 0, 1, 1) forwards; }
@keyframes asistPanel { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes asistSale { to { opacity: 0; transform: translateY(14px) scale(.97); } }
.asist-cab { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.asist-nom { display: flex; align-items: center; gap: 10px; }
.asist-cab strong { display: block; font: 500 17px/1.2 var(--f-tit); color: var(--hi); }
.asist-logo { height: 30px; width: auto; padding-left: 10px; border-left: 1px solid var(--line-2); }
.asist-visible .asist-nom > * { animation: asistCab .5s var(--ease) backwards; } .asist-visible .asist-logo { animation-delay: .08s; }
@keyframes asistCab { from { opacity: 0; transform: translateX(-8px); } }
/* × de cerrar: se dibuja al abrir, gira al pasar el mouse y se hunde al tocarla */
.asist-x { margin-left: auto; flex: none; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: var(--r); background: none; color: var(--hi); cursor: pointer;
  transition: background .25s, border-color .25s, color .25s, transform .4s var(--ease); }
.asist-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; transition: transform .45s var(--ease); }
.asist-x path { stroke-dasharray: 18; stroke-dashoffset: 0; }
.asist-visible .asist-x path { animation: xTraza .5s var(--ease) .15s backwards; } .asist-visible .asist-x path + path { animation-delay: .25s; }
@keyframes xTraza { from { stroke-dashoffset: 18; } }
.asist-x:hover, .asist-x:focus-visible { background: rgba(255, 255, 255, .06); border-color: var(--acc-linea); color: var(--acc); }
.asist-x:hover svg { transform: rotate(90deg); }
.asist-x:active { transform: scale(.88); transition-duration: .08s; }
.asist-cuerpo { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 18px; overflow-y: auto; overscroll-behavior: contain; background: var(--negro); }
.asist-msg { animation: msgEntra .4s var(--ease) backwards; max-width: 88%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r) var(--r) var(--r) 2px; background: var(--panel); color: var(--txt-2); font-size: 15px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.asist-msg a { color: var(--acc); text-decoration: underline; text-underline-offset: 3px; }
.asist-msg.asist-yo { align-self: flex-end; border-radius: var(--r) var(--r) 2px var(--r); background: var(--acc-fondo); border-color: var(--acc-linea); color: var(--hi); }
.asist-msg.asist-escribiendo { color: var(--apagado); font-style: italic; }
.asist-ops { display: flex; flex-wrap: wrap; gap: 6px; }
.asist-chip { min-height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: none; color: var(--hi); font: 500 13px/1 var(--f-mono); cursor: pointer; }
.asist-chip { transition: border-color .2s, color .2s, background .2s, transform .3s var(--ease); animation: msgEntra .4s var(--ease) backwards; }
.asist-chip:hover { border-color: var(--acc-linea); color: var(--acc); background: var(--acc-fondo); } .asist-chip:active { transform: scale(.94); transition-duration: .08s; }
.asist-tarjeta { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--acc-linea); border-radius: var(--r); background: var(--acc-fondo); color: var(--txt-2); font-size: 14px; }
.asist-tarjeta strong { color: var(--acc); font-weight: 500; }
.asist-pie { display: grid; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.asist-pie p { font-size: 13px; }
.asist-pie .btn { display: flex; justify-content: center; align-items: center; height: 44px; border-radius: var(--r); background: var(--acc); color: var(--tinta); }
.asist-form { display: flex; gap: 8px; }
.asist-campo { flex: 1; min-width: 0; min-height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--negro); color: var(--hi); font-size: 16px; }
.asist-campo:focus-visible { outline: none; border-color: var(--acc); }
.asist-enviar { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: var(--r); background: var(--acc); color: var(--tinta); cursor: pointer; }
.asist-enviar { transition: background .2s, transform .3s var(--ease); } .asist-enviar:hover { background: var(--acc-2); }
.asist-enviar:not(:disabled):active { transform: scale(.9); transition-duration: .08s; }
.asist-enviar svg { width: 20px; height: 20px; transition: transform .3s var(--ease); } .asist-enviar:hover svg { transform: translateY(-2px); }
.asist-enviar:disabled, .asist-campo:disabled { opacity: .5; cursor: not-allowed; }
.asist-velo { display: none; }
.asist-legal { font-size: 12px; line-height: 1.45; color: var(--txt); padding: 10px 14px; border: 1px dashed var(--line-2); border-radius: var(--r); }
.asist-legal a { color: var(--hi); text-decoration: underline; text-underline-offset: 3px; }

/* ── Pantallas medianas ── */
@media (max-width: 1100px) {
  .hdr nav, .mm { display: none; }
  .hdr .menu-btn { display: inline-flex; }
  .hdr .acc { margin-left: auto; }
  .pf-cols { grid-template-columns: repeat(4, 1fr); }
  .pf-lema { grid-column: 1 / -1; justify-self: start; text-align: left; max-width: none; }
}
/* ── Celular ── */
@media (max-width: 760px) {
  :root { --hdr: 72px; --logo: 38px; }
  .pf-marca img { height: var(--logo); }
  body { font-size: 15px; }
  .hdr .in { padding-inline: 20px; gap: 12px; }
  .hdr .logo img { height: var(--logo); }
  .hdr .acc .btn .tx { display: none; }
  .btn { letter-spacing: .08em; } .btn .tx { padding: 0 15px; }
  .celdas { grid-template-columns: repeat(3, 1fr); }
  .celdas > *:nth-child(6n) { border-right: 1px solid var(--line); } .celdas > *:nth-child(3n) { border-right: 0; }
  .celdas > * { min-height: 64px; font-size: 11px; letter-spacing: .08em; }
  .cta { min-height: 500px; }
  .pf-cols { grid-template-columns: 1fr 1fr; gap: 34px 20px; padding: 48px var(--pad) 40px; }
  .pf-lema { order: -1; font-size: 24px; }
  .pf-fila { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 18px; padding: 30px var(--pad) 90px; }
  .pf-marca { order: -1; } .pf-ic { justify-content: center; } .pf-copy { justify-self: center; text-align: center; }
  .ficha > div { font-size: 13px; } .ficha b { font-size: 12px; }
  .asist { right: 14px; bottom: 14px; height: 50px; width: 50px; padding: 0; justify-content: center; }
  .asist-txt { display: none; }
  .asist-panel { inset: 0; width: auto; height: var(--alto, 100dvh); border: 0; border-radius: 0; z-index: 120; }
  .asist-cab { padding-top: calc(16px + env(safe-area-inset-top)); }
  .asist-pie { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  html.asist-chat, html.asist-chat body { overflow: hidden; }
}

/* ── Zonas oscuras sobre el fondo blanco ──
   La portada (maqueta 3D), el menú sobre ella, las fotos del acordeón, el panel «un solo número», el cierre y el pie van oscuros,
   como pantallas sobre papel blanco. */
:is(.hero, .sp, .hdr:not(.solida):not([data-menu]), .af, .cta, .foot) {
  --bg: #0a0a0a; --negro: #050706; --panel: #141816; --panel-2: #1b201e;
  --line: #1f2522; --line-2: #2f3633;
  --txt: #a9b3ae; --txt-2: #cdd4d0; --hi: #f4f6f5; --apagado: #8a948f;
  --acc-txt: var(--acc); --tq: #22c3b4; --tq-fondo: rgba(34, 195, 180, .12); --tq-linea: rgba(34, 195, 180, .5); --azul: #3b8beb;
}
.foot { background: #0a0a0a; box-shadow: 0 0 0 100vmax #0a0a0a; clip-path: inset(0 -100vmax -100vmax); }
.hdr.solida, .hdr[data-menu] {
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 10px 30px -22px rgba(13, 30, 22, .35); }
/* Con el menú abierto, blanco liso: sin vidrio esmerilado el panel baja fluido sobre la maqueta 3D */
.hdr[data-menu] { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
:is(.hdr.solida, .hdr[data-menu]) .logo img, .asist-logo { content: url(/img/logo-integralscom-claro.webp); }
:is(.hdr nav a:hover, .hdr nav a[aria-current="page"], .mm-btn:hover, .mm-btn[aria-expanded="true"]) { color: var(--acc-txt); }
:is(.mm-col a:hover, .mm-col a:focus-visible, .mm-btn[aria-expanded="true"], .btn.ln:hover .sq, .btn.ln:hover .tx, .cerrar:hover) { background: rgba(13, 19, 17, .05); }
.btn:not(.go):not(.ln) :is(.sq, .tx) { background: #0d1311; color: #fff; }
:is(.hero, .sp, .cta, .af) .btn:not(.go):not(.ln) :is(.sq, .tx) { background: #fff; color: #000; }
dialog::backdrop { background: rgba(13, 19, 17, .45); }

/* Preguntas frecuentes (portada y páginas de servicio) */
.faq { display: grid; gap: 44px; }
.faq .fijo { text-align: center; }
.faq .fijo .fila-btn { justify-content: center; }
.faq .lista { width: 100%; max-width: 860px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; cursor: pointer; font: 500 clamp(18px, 1.5vw, 21px)/1.3 var(--f-tit); color: var(--hi); transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--acc); }
.faq summary svg { width: 20px; height: 20px; color: var(--acc); transition: transform .35s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 48px 26px 0; max-width: 64ch; color: var(--txt-2); }
.faq details.cerrando summary svg { transform: none; }
.faq summary:active { transform: translateX(3px); } .faq summary { transition: color .2s, transform .25s var(--ease); }
@media (max-width: 760px) {
  .faq summary { padding: 20px 0; font-size: 17px; }
  .faq details p { padding-right: 0; }
}
