/* ==========================================================================
   Select-IP — "el rack"
   La página es papel de hoja técnica; cada bloque es un panel de equipo
   (aluminio negro con tornillos, serigrafía, LEDs y etiquetas de rotuladora).
   Los cuatro pares del cable T568B identifican cada servicio.
   ========================================================================== */

:root {
  --bg: #f5f5f5;
  --bg-elevated: #e6e9ec;
  --bg-panel: #ffffff;
  --ink: #0e1f2e;
  --ink-muted: #4f606f;
  --border: rgba(5, 64, 104, 0.14);
  --border-strong: rgba(5, 64, 104, 0.30);
  --grid-line: rgba(5, 64, 104, 0.05);

  /* Color de cada servicio: tonos del azul de la marca; redes en verde (única excepción) */
  --or: #3d93d6;   /* telefonía (celeste) */
  --bl: #1f5f99;   /* cámaras   (azul)    */
  --br: #2f55d4;   /* accesos       (azul cobalto)   */
  --vp: #7a62d2;   /* videoportería (azul violáceo)  */
  --ia: #1aa3b5;   /* atención con IA (turquesa)     */
  --gr: #2e8b57;   /* redes     (verde)   */
  --accent: #054068; /* azul marino de la marca (web vieja) */
  --accent-soft: rgba(5, 64, 104, 0.10);
  --accent-contrast: #ffffff;
  --wa: #1e7a47;
  --wa-hover: #17663a;

  /* Panel de equipo (igual en los dos temas: es hardware, en azul marino acerado) */
  --plate: #0b2438;
  --plate-2: #10304a;
  --plate-ink: #eaf1f7;
  --silk: #9fb3c4;
  --plate-line: rgba(234, 241, 247, 0.13);
  --screen: #061420;
  --hl: #5aaee8;   /* acento sobre fondo oscuro */

  --font-serif: "Space Grotesk", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-plate: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 -1px 0 rgba(0, 0, 0, 0.4) inset, 0 20px 40px -18px rgba(6, 20, 32, 0.45);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Alias para contacto.css */
  --paper: var(--bg-elevated);
  --line: var(--border);
  --ink-soft: var(--ink-muted);
  --navy: #0b2438;
  --font: var(--font-sans);
  --display: var(--font-serif);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #06121d;
  --bg-elevated: #0c1f30;
  --bg-panel: #0a1928;
  --ink: #e8eef4;
  --ink-muted: #93a6b8;
  --border: rgba(232, 238, 244, 0.12);
  --border-strong: rgba(232, 238, 244, 0.26);
  --grid-line: rgba(232, 238, 244, 0.035);
  --or: #6cb8ee;
  --bl: #3f82c4;
  --br: #6a8ef7;
  --vp: #b99ff0;
  --ia: #3ccbdc;
  --gr: #45b37a;
  --accent: #5aaee8;
  --accent-soft: rgba(90, 174, 232, 0.15);
  --accent-contrast: #06121d;
  --plate: #0e2436;
  --plate-2: #143049;
  --navy: #143049;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.55; overflow-x: hidden;
  transition: background-color .35s var(--ease-expo), color .35s var(--ease-expo);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

.calibration-backdrop {
  position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image: linear-gradient(to right, var(--grid-line) 1px, transparent 1px), linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
}
.container { width: min(1220px, calc(100% - 2.5rem)); margin-inline: auto; }
.mono-label, .mono-text { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.mono-label { color: var(--ink-muted); }
kbd { display: inline-block; padding: .1rem .4rem; font-family: var(--font-mono); font-size: .72rem; border: 1px solid var(--border-strong); border-radius: 4px; background: var(--bg-elevated); }
svg.ic { width: 18px; height: 18px; flex: none; }

/* ========================================================================== Piezas de hardware */
/* Panel de aluminio negro con un tornillo en cada esquina */
.plate {
  --screw: radial-gradient(circle, #8a9aa9 0 2.2px, #2f4a63 2.6px 4.4px, rgba(0,0,0,.55) 4.8px 5.4px, transparent 5.8px);
  position: relative; color: var(--plate-ink); border-radius: var(--radius-md);
  background:
    var(--screw) 10px 10px / 12px 12px no-repeat,
    var(--screw) calc(100% - 10px) 10px / 12px 12px no-repeat,
    var(--screw) 10px calc(100% - 10px) / 12px 12px no-repeat,
    var(--screw) calc(100% - 10px) calc(100% - 10px) / 12px 12px no-repeat,
    repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, var(--plate-2), var(--plate));
  box-shadow: var(--shadow-plate);
}
/* Serigrafía: el texto impreso sobre el equipo */
.silk { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--silk); }
/* Etiqueta de rotuladora (cinta P-touch) en el color del par */
.tape {
  display: inline-block; font-family: var(--font-mono); font-size: .68rem; font-weight: 500; letter-spacing: .1em;
  padding: .22rem .55rem .2rem; color: #061420; background: color-mix(in srgb, var(--c) 72%, #fff);
  border-radius: 2px; box-shadow: 0 1px 0 rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.35);
}
.led { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.led.blink { animation: blink 1.7s steps(2, jump-none) infinite; }
.led.blink2 { animation: blink .9s steps(2, jump-none) infinite .3s; }
@keyframes blink { 50% { opacity: .25; } }
/* Boca RJ45 dibujada */
.rj {
  display: inline-block; width: 30px; height: 24px; background: #070707; border: 1px solid #2a4560; border-radius: 2px;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 76% 72%, 76% 100%, 24% 100%, 24% 72%, 0 72%);
  box-shadow: inset 0 3px 0 #0e1f2e;
}

/* ========================================================================== Barra superior */
.topbar { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: color-mix(in srgb, var(--bg) 85%, transparent); border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 64px; }
.brand { display: inline-flex; flex: none; white-space: nowrap; align-items: center; gap: .65rem; text-decoration: none; font-weight: 700; font-size: 1.02rem; }
.brand img { width: 36px; height: 36px; border-radius: 7px; flex: none; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand small { font-family: var(--font-mono); font-weight: 500; font-size: .6rem; letter-spacing: .1em; color: var(--ink-muted); }
.nav-links { display: flex; align-items: center; gap: 1.1rem; }
.nav-links a { color: var(--ink-muted); text-decoration: none; font-size: .82rem; font-weight: 500; white-space: nowrap; transition: color .2s ease; }
.nav-links a span { font-family: var(--font-mono); font-size: .64rem; color: var(--accent); margin-right: .3rem; }
.nav-links a:hover { color: var(--ink); }
.topbar-controls { display: flex; align-items: center; gap: .6rem; }
.telemetry-pill { white-space: nowrap; display: inline-flex; align-items: center; gap: .5rem; padding: .38rem .7rem; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-panel); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-muted); flex: none; }
.status-dot.is-live { background: #2fbf71; box-shadow: 0 0 10px rgba(47,191,113,.7); }
.status-dot.is-off { background: #f2c94c; box-shadow: 0 0 9px rgba(242,201,76,.75); }
.theme-toggle { display: inline-flex; align-items: center; gap: .45rem; padding: .38rem .8rem; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--bg-panel); color: var(--ink); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; cursor: pointer; transition: transform .2s var(--ease-spring), border-color .2s ease; }
.theme-toggle:hover { border-color: var(--accent); transform: translateY(-1px); }
.theme-toggle[hidden] { display: none; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--border-strong); border-radius: 10px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::before, .menu summary span::after { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; content: ""; }
.menu summary span::before { position: absolute; top: -6px; }
.menu summary span::after { position: absolute; top: 6px; }
.menu nav { position: absolute; right: 0; top: 52px; width: min(300px, calc(100vw - 2rem)); background: var(--bg-panel); border: 1px solid var(--border-strong); border-radius: var(--radius-md); box-shadow: 0 20px 40px -16px rgba(0,0,0,.3); padding: .5rem; display: grid; }
.menu nav a { padding: .8rem .9rem; border-radius: 8px; text-decoration: none; font-weight: 600; }
.menu nav a span { font-family: var(--font-mono); font-size: .7rem; color: var(--accent); margin-right: .5rem; }
.menu nav a:hover { background: var(--bg-elevated); }

/* ========================================================================== Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 46px; padding: .75rem 1.35rem; border-radius: 999px; font-family: var(--font-sans); font-size: .9rem; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap; transition: transform .24s var(--ease-spring), background-color .2s ease, border-color .2s ease, color .2s ease; }
.btn svg { width: 18px; height: 18px; }
.btn-sm { min-height: 38px; padding: .45rem 1rem; font-size: .82rem; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-outline { background: transparent; border-color: var(--border-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); background: var(--bg-elevated); }
.btn[hidden] { display: none; }

/* ========================================================================== Secciones */
.section { padding: clamp(3.5rem, 6vw, 5.75rem) 0; }
.section-bordered { border-top: 1px solid var(--border); }
.section-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem 2.5rem; margin-bottom: 2.5rem; }
.section-index { display: block; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; color: var(--accent); margin-bottom: .55rem; }
.section-title { margin: 0; font-family: var(--font-serif); font-weight: 600; font-size: clamp(2.3rem, 4.6vw, 3.7rem); line-height: 1.02; letter-spacing: -0.02em; max-width: 17ch; }
.section-title em, .hero-title em { font-style: normal; color: var(--accent); }
.section-subtitle { max-width: 48ch; margin: 0; color: var(--ink-muted); font-size: .98rem; }
.section-subtitle strong { color: var(--ink); font-weight: 600; }

/* ========================================================================== Portada */
.hero-section { padding-top: clamp(2.5rem, 5vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(2rem, 4vw, 3.75rem); align-items: center; }
.eyebrow-row { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1.5rem; }
.hero-title { margin: 0 0 1.25rem; font-family: var(--font-serif); font-weight: 600; font-size: clamp(3.1rem, 6.4vw, 5.3rem); line-height: .96; letter-spacing: -0.03em; }
.hero-lead { max-width: 46ch; margin: 0 0 2rem; color: var(--ink-muted); font-size: 1.07rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2.5rem; }
.hero-telemetry { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; padding-top: 1.35rem; border-top: 1px solid var(--border); }
.telemetry-cell dt { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em; color: var(--ink-muted); margin-bottom: .25rem; }
.telemetry-cell dd { margin: 0; font-family: var(--font-mono); font-size: .9rem; font-weight: 500; }

.hero-panel { padding: 1.3rem 1.3rem 1.4rem; }
.hero-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 .9rem .95rem; }
.leds { display: inline-flex; align-items: center; gap: .4rem; }
.leds b { font-family: var(--font-mono); font-weight: 400; font-size: .58rem; letter-spacing: .1em; color: var(--silk); }
.mods-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.hmod { position: relative; display: flex; flex-direction: column; border-radius: 6px; border: 1px solid #2a4560; background: #081a29; color: var(--plate-ink); text-decoration: none; overflow: hidden; box-shadow: inset 0 2px 6px rgba(0,0,0,.6); transition: transform .3s var(--ease-expo), border-color .2s ease; }
.hmod:hover, .hmod:focus-visible { transform: translateY(-3px); border-color: var(--c); }
.hmod-face { position: relative; display: block; height: 118px; margin: 6px 6px 0; border-radius: 4px; background: #f5f5f5; overflow: hidden; }
.hmod-face img { position: absolute; inset: .55rem; width: calc(100% - 1.1rem); height: calc(100% - 1.1rem); object-fit: contain; mix-blend-mode: multiply; transition: transform .5s var(--ease-expo); }
.hmod-face img.sin-leyenda { object-fit: contain; object-position: center top; height: calc(124% - 1.1rem); }
.hmod:hover .hmod-face img { transform: scale(1.06); }
.hmod-txt { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; padding: .7rem .8rem .85rem; }
.hmod-txt .tape { font-size: .58rem; padding: .16rem .45rem .14rem; }
.hmod-txt b { font-size: .9rem; font-weight: 600; line-height: 1.3; }
.hmod > .led { position: absolute; top: .9rem; right: .9rem; background: #2f4a63; box-shadow: none; transition: background-color .25s ease, box-shadow .25s ease; }
.hmod:hover > .led, .hmod:focus-visible > .led { background: var(--c); box-shadow: 0 0 8px var(--c); }
.hmod-wide { grid-column: 1 / -1; flex-direction: row; align-items: center; }
.hmod-icon { flex: none; width: 64px; height: 64px; margin: 6px 0 6px 6px; border-radius: 4px; background: rgba(90,174,232,.14); color: var(--hl); display: grid; place-items: center; }
.hmod-icon svg { width: 28px; height: 28px; }
.hmod-wide .hmod-txt { padding: .6rem .9rem; }
[id] { scroll-margin-top: 84px; }

.brands { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg-panel) 65%, transparent); }
.brands-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 2rem; padding: 1.05rem 0; }
.brands ul { display: flex; flex-wrap: wrap; gap: .5rem 2rem; list-style: none; margin: 0; padding: 0; }
.brands li { font-family: var(--font-serif); font-size: 1.45rem; letter-spacing: -0.01em; }

/* ========================================================================== U1 Para quién: selector */
.who { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.who > input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.selector-plate { position: sticky; top: 88px; min-height: 380px; padding: 1.6rem 1.4rem; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem; text-align: center; }
.selector { position: relative; width: 230px; height: 230px; }
.selector-dial { position: absolute; inset: 15px; width: 200px; height: 200px; }
.selector-ticks line { stroke: var(--silk); stroke-width: 2; }
.dial-skirt { fill: #163049; stroke: #3d566e; stroke-width: 1.5; }
.dial-cap { fill: url(#dialGrad); fill: #1c3a55; stroke: rgba(255,255,255,.08); }
.dial-pointer { transform-origin: 100px 104px; transition: transform .45s var(--ease-spring); }
.dial-pointer rect { fill: var(--hl); }
#w-emp:checked ~ .selector-plate .dial-pointer { transform: rotate(-56deg); }
#w-edi:checked ~ .selector-plate .dial-pointer { transform: rotate(0deg); }
#w-casa:checked ~ .selector-plate .dial-pointer { transform: rotate(56deg); }
.pos { position: absolute; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; color: var(--silk); cursor: pointer; padding: .3rem .45rem; border-radius: 4px; transition: color .2s ease, background-color .2s ease; }
.pos:hover { color: var(--plate-ink); }
.pos-top { top: -6px; left: 50%; transform: translateX(-50%); }
.pos-left { left: -20px; top: 34px; }
.pos-right { right: -10px; top: 34px; }
#w-emp:checked ~ .selector-plate .pos-left, #w-edi:checked ~ .selector-plate .pos-top, #w-casa:checked ~ .selector-plate .pos-right { color: #fff; background: rgba(90,174,232,.25); }
#w-emp:focus-visible ~ .selector-plate .pos-left, #w-edi:focus-visible ~ .selector-plate .pos-top, #w-casa:focus-visible ~ .selector-plate .pos-right { outline: 2px solid var(--hl); }
.silk-bottom { margin-top: .25rem; }

.who-panels { position: relative; }
.who-panel { display: none; flex-direction: column; background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; animation: panelIn .5s var(--ease-expo); }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
#w-emp:checked ~ .who-panels [data-k="empresa"], #w-edi:checked ~ .who-panels [data-k="edificio"], #w-casa:checked ~ .who-panels [data-k="casa"] { display: flex; }
.who-banner { position: relative; height: 170px; background: var(--bg-elevated); }
.who-banner img { width: 100%; height: 100%; object-fit: cover; }
.who-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,13,12,.82) 0%, rgba(14,13,12,.45) 55%, rgba(14,13,12,.05) 100%); }
.who-banner-text { position: absolute; z-index: 1; left: clamp(1.1rem, 3vw, 1.75rem); bottom: 1.1rem; display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.who-banner-text h3 { margin: 0; color: #fff; font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.02; }
.pairs { padding: .4rem clamp(1.1rem, 3vw, 1.75rem) 0; }
.pairs-head, .pairs li { display: grid; grid-template-columns: minmax(0, .85fr) 28px minmax(0, 1.15fr); column-gap: .6rem; align-items: start; }
.pairs-head { padding: .7rem 0 .55rem; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; color: var(--ink-muted); border-bottom: 2px solid var(--ink); }
.pairs-head span:last-child { color: var(--accent); }
.pairs ul { list-style: none; margin: 0; padding: 0; }
.pairs li { padding: .7rem 0; border-bottom: 1px solid var(--border); }
.pair-now { margin: 0; color: var(--ink-muted); font-size: .88rem; line-height: 1.45; padding-top: .05rem; }
.pair-arrow { color: var(--accent); font-weight: 700; text-align: center; line-height: 1.4; }
.pair-sol { display: grid; grid-template-columns: 10px 1fr; column-gap: .65rem; }
.pair-sol::before { content: ""; grid-row: span 2; width: 7px; height: 7px; margin-top: .45rem; border-radius: 50%; background: var(--c); box-shadow: 0 0 7px var(--c); }
.pair-sol b { font-size: .95rem; line-height: 1.3; }
.pair-sol span { color: var(--ink-muted); font-size: .86rem; line-height: 1.45; }
.who-panel > .link-wa { margin: 1rem clamp(1.1rem, 3vw, 1.75rem) 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.who-body { padding: clamp(1.25rem, 3vw, 2rem); display: flex; flex-direction: column; align-items: flex-start; gap: .85rem; }
.who-body h3 { margin: 0; font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.06; }
.pains { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.pains li { position: relative; padding-left: 1.35rem; color: var(--ink-muted); font-size: .95rem; }
.pains li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.sols { list-style: none; margin: .1rem 0 .2rem; padding: 0; display: grid; gap: 0; width: 100%; border-top: 1px solid var(--border); }
.sols li { display: grid; grid-template-columns: 10px 1fr; column-gap: .8rem; padding: .62rem 0; border-bottom: 1px solid var(--border); }
.sols li::before { content: ""; grid-row: span 2; width: 7px; height: 7px; margin-top: .45rem; border-radius: 50%; background: var(--c); box-shadow: 0 0 7px var(--c); }
.sols b { font-weight: 700; font-size: .95rem; line-height: 1.3; }
.sols span { color: var(--ink-muted); font-size: .88rem; line-height: 1.45; }
.who-fix { margin: 0; font-size: .92rem; padding: .8rem .95rem; border-radius: var(--radius-sm); background: var(--bg-elevated); }
.who-fix b, .ru-case b { font-family: var(--font-mono); font-weight: 500; font-size: .64rem; letter-spacing: .1em; display: block; color: var(--ink-muted); margin-bottom: .2rem; }
.link-wa { display: inline-flex; align-items: center; gap: .5rem; color: var(--wa); font-weight: 700; text-decoration: none; font-size: .92rem; }
.link-wa:hover { text-decoration: underline; text-underline-offset: 3px; }
[data-theme="dark"] .link-wa { color: #4cc98a; }

/* ========================================================================== U2 Portabilidad: consola */
.porta-stage > input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.console { padding: clamp(1.4rem, 2.8vw, 2rem); }
.console-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 .6rem 1.2rem; border-bottom: 1px solid var(--plate-line); }
.porta-switch { display: flex; gap: .5rem; flex-wrap: wrap; }
.porta-switch label { display: inline-flex; align-items: center; gap: .55rem; padding: .5rem .95rem; border-radius: 6px; border: 1px solid #2a4560; background: linear-gradient(#17354f, #0f2a40); color: var(--plate-ink); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; cursor: pointer; box-shadow: 0 2px 0 #04101b; transition: all .2s ease; }
.porta-switch label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4a6178; transition: all .25s ease; }
#p-hoy:checked ~ .console label[for="p-hoy"] { border-color: rgba(90,174,232,.7); transform: translateY(1px); box-shadow: 0 1px 0 #04101b; }
#p-hoy:checked ~ .console label[for="p-hoy"]::before { background: var(--hl); box-shadow: 0 0 10px var(--hl); }
#p-con:checked ~ .console label[for="p-con"] { border-color: rgba(47,191,113,.6); transform: translateY(1px); box-shadow: 0 1px 0 #04101b; }
#p-con:checked ~ .console label[for="p-con"]::before { background: #2fbf71; box-shadow: 0 0 10px #2fbf71; }
#p-hoy:focus-visible ~ .console label[for="p-hoy"], #p-con:focus-visible ~ .console label[for="p-con"] { outline: 2px solid var(--hl); outline-offset: 2px; }
.console-meta { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em; color: var(--silk); }
.console-body { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 1.4rem; padding-top: 1.4rem; }
.scope-panel { background: var(--screen); border-radius: 6px; padding: .8rem .95rem; box-shadow: inset 0 0 0 1px #000, inset 0 0 0 3px #1a3651; }
.scope-meta { display: flex; justify-content: space-between; gap: .5rem; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .08em; color: #8a9aa9; margin-bottom: .5rem; }
.porta__fig { margin: 0; }
.porta__fig .scene { transition: opacity .45s var(--ease-expo), transform .45s var(--ease-expo); }
#p-hoy:checked ~ .console .porta__fig .scene--con { opacity: 0; transform: translateY(10px); }
#p-con:checked ~ .console .porta__fig .scene--hoy { opacity: 0; transform: translateY(-10px); }
.porta__fig svg { width: 100%; height: auto; display: block; }
.porta__fig .fig-mob { display: none; max-width: 420px; margin: 0 auto; }
.knob-side { display: flex; flex-direction: column; gap: 1rem; }
.knob-module { display: grid; grid-template-columns: 116px 1fr; gap: 1rem; align-items: center; padding: 1rem; border-radius: 8px; background: rgba(0,0,0,.22); border: 1px solid var(--plate-line); }
.rotary-knob { width: 116px; height: 116px; cursor: ns-resize; touch-action: none; border-radius: 50%; outline: none; display: none; }
.js .rotary-knob { display: block; }
.rotary-knob:focus-visible { box-shadow: 0 0 0 2px var(--hl); }
.knob-svg { width: 100%; height: 100%; }
.knob-track { fill: none; stroke: rgba(239,236,230,.14); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 198 264; transform: rotate(135deg); transform-origin: 50px 50px; }
.knob-arc { fill: none; stroke: var(--hl); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 0 264; transform: rotate(135deg); transform-origin: 50px 50px; }
.knob-cap { fill: #2c2a27; stroke: rgba(239,236,230,.2); stroke-width: 1.5; }
.knob-needle { stroke: var(--plate-ink); stroke-width: 2.5; stroke-linecap: round; transform-origin: 50px 50px; }
.knob-read .mono-label { color: var(--silk); }
.knob-read output { display: block; font-family: var(--font-serif); font-size: 3.4rem; line-height: 1; margin: .15rem 0; }
.knob-read small { font-family: var(--font-mono); font-size: .62rem; color: var(--silk); letter-spacing: .04em; }
.js .knob-read small { display: block; }
.knob-read small { display: none; }
.knob-fallback { display: grid; gap: .35rem; margin-top: .5rem; font-family: var(--font-mono); font-size: .7rem; color: var(--silk); }
.knob-fallback input { accent-color: var(--hl); width: 100%; }
.js .knob-fallback { display: none; }
.js .knob-module { grid-template-columns: 116px 1fr; }
.knob-module { grid-template-columns: 1fr; }
.readouts { display: grid; gap: .55rem; }
.readout { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .7rem .9rem; border-radius: 6px; border: 1px solid var(--plate-line); background: rgba(0,0,0,.18); }
.readout > span { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; color: var(--silk); text-transform: uppercase; }
.readout b { font-family: var(--font-serif); font-weight: 600; font-size: 1.5rem; line-height: 1.05; text-align: right; }
#p-hoy:checked ~ .console .v-con, #p-con:checked ~ .console .v-hoy { display: none; }
.console-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; padding: 1.2rem .6rem 0; border-top: 1px solid var(--plate-line); }
.console-foot p { margin: 0; max-width: 60ch; color: var(--silk); font-size: .9rem; }
.console-foot strong { color: var(--plate-ink); font-weight: 600; }

/* ========================================================================== U3 Equipos: unidades de rack */
.rack { display: grid; gap: .9rem; padding: .9rem; border-radius: var(--radius-lg); background: repeating-linear-gradient(180deg, transparent 0 14px, var(--border) 14px 15px), var(--bg-elevated); border: 1px solid var(--border); position: relative; }
.ru { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(1rem, 3vw, 2rem); padding: clamp(1.4rem, 2.8vw, 1.9rem) clamp(1.4rem, 3vw, 2.2rem); border-left: 0; }
.ru::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 3px 3px 0; background: var(--c); box-shadow: 0 0 14px color-mix(in srgb, var(--c) 60%, transparent); }
.ru-head { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; }
.ru-u { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; color: var(--silk); }
.ru-head h3 { margin: 0; font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.7rem, 2.6vw, 2.25rem); line-height: 1.05; }
.ru-head p { margin: 0; color: #b9c8d6; font-size: .93rem; }
.ru-case { padding: .75rem .9rem; border-radius: 6px; background: rgba(0,0,0,.25); border: 1px dashed var(--plate-line); color: var(--plate-ink) !important; }
.ru-case b { color: var(--silk); }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin: .15rem 0 0; }
.tags li { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .06em; padding: .24rem .55rem; border-radius: 3px; border: 1px solid #2a4560; color: var(--silk); background: rgba(0,0,0,.2); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .65rem; align-content: start; }
.slots:has(> .slot:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.slots:has(> .slot:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.slots:has(> .slot:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.slots:has(> .slot:nth-child(5):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.slots:has(> .slot:nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.slots:has(> .slot:nth-child(8):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.slot { display: flex; flex-direction: column; padding: 0; border-radius: 6px; overflow: hidden; border: 1px solid #2a4560; background: #081a29; color: var(--plate-ink); cursor: pointer; text-align: left; font: inherit; box-shadow: inset 0 2px 6px rgba(0,0,0,.6); transition: transform .3s var(--ease-expo), border-color .2s ease; }
.slot:hover { transform: translateY(-3px); border-color: var(--c); }
.slot-face { aspect-ratio: 1 / .82; margin: 6px 6px 0; border-radius: 4px; background: #f5f5f5; display: grid; place-items: center; padding: .7rem; overflow: hidden; }
.slot-face img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .5s var(--ease-expo); }
.slot-face img.sin-leyenda { object-fit: cover; object-position: top; }
.slot:hover .slot-face img { transform: scale(1.06); }
.slot-label { padding: .55rem .7rem .65rem; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .06em; color: var(--silk); text-transform: uppercase; display: flex; flex-direction: column; gap: .1rem; }
.slot-label b { font-family: var(--font-sans); font-size: .86rem; letter-spacing: 0; text-transform: none; color: var(--plate-ink); font-weight: 600; }
.ru-remote { grid-template-columns: auto 1fr; align-items: center; }
.ru-remote::before { background: #2fbf71; box-shadow: 0 0 14px rgba(47,191,113,.6); }
.ru-remote h3 { margin: .3rem 0 .3rem; font-family: var(--font-serif); font-weight: 600; font-size: 1.7rem; line-height: 1.08; }
.ru-remote p { margin: 0; color: #b9c8d6; font-size: .93rem; max-width: 70ch; }
.remote-led { width: 54px; height: 54px; border-radius: 10px; border: 1px solid #2a4560; background: #081a29; display: grid; place-items: center; }
.remote-led i { width: 12px; height: 12px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 14px #2fbf71; animation: blink 2.4s ease-in-out infinite; }

/* Inspector de equipos */
.modal-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(12,11,10,.72); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 1.25rem; }
.modal-backdrop[hidden] { display: none; }
.modal-dialog { width: min(860px, 100%); max-height: calc(100dvh - 2.5rem); overflow: auto; background: var(--bg-panel); color: var(--ink); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: 0 30px 80px rgba(0,0,0,.45); animation: panelIn .32s var(--ease-expo); }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--border); }
.modal-title { margin: .15rem 0 0; font-family: var(--font-serif); font-size: 1.95rem; font-weight: 600; line-height: 1.1; }
.modal-close { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-strong); background: transparent; color: var(--ink); cursor: pointer; font-size: 1rem; flex: none; }
.modal-close:hover { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }
.modal-body { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.5rem; padding: 1.5rem; }
.modal-stage { aspect-ratio: 1 / 1; background: #f5f5f5; border-radius: var(--radius-md); border: 1px solid var(--border); display: grid; place-items: center; padding: 1.5rem; }
.modal-stage img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.modal-stage img.sin-leyenda { height: auto; aspect-ratio: 1 / .8; object-fit: cover; object-position: top; }
.modal-desc { margin: 0 0 1.1rem; color: var(--ink-muted); }
.spec-table { margin: 0 0 1.25rem; border-top: 1px solid var(--border); }
.spec-table div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--border); font-size: .86rem; }
.spec-table dt { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; color: var(--ink-muted); text-transform: uppercase; flex: none; }
.spec-table dd { margin: 0; text-align: right; font-weight: 600; }
.modal-src { margin: .75rem 0 0; font-family: var(--font-mono); font-size: .62rem; color: var(--ink-muted); letter-spacing: .04em; }

/* ========================================================================== U4 Integración */
.flow-stage > input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
#f-llam:checked ~ .flow-plate label[for="f-llam"], #f-visita:checked ~ .flow-plate label[for="f-visita"], #f-emp:checked ~ .flow-plate label[for="f-emp"] { border-color: rgba(90,174,232,.7); transform: translateY(1px); box-shadow: 0 1px 0 #04101b; }
#f-llam:checked ~ .flow-plate label[for="f-llam"]::before, #f-visita:checked ~ .flow-plate label[for="f-visita"]::before, #f-emp:checked ~ .flow-plate label[for="f-emp"]::before { background: var(--hl); box-shadow: 0 0 10px var(--hl); }
#f-llam:focus-visible ~ .flow-plate label[for="f-llam"], #f-visita:focus-visible ~ .flow-plate label[for="f-visita"], #f-emp:focus-visible ~ .flow-plate label[for="f-emp"] { outline: 2px solid var(--hl); outline-offset: 2px; }
.flow { display: none; list-style: none; margin: 1.5rem 0 .4rem; padding: 0 .4rem; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 1.1rem; counter-reset: paso; }
#f-llam:checked ~ .flow-plate .flow[data-f="llamada"], #f-visita:checked ~ .flow-plate .flow[data-f="edificio"], #f-emp:checked ~ .flow-plate .flow[data-f="oficina"] { display: grid; }
.flow-step { position: relative; display: flex; flex-direction: column; gap: .85rem; counter-increment: paso; cursor: default; }
.js .flow-step { cursor: pointer; }
.flow-node { position: relative; min-height: 88px; padding: .9rem .85rem; border-radius: 6px; background: #081a29; border: 1px solid #2a4560; display: flex; flex-direction: column; justify-content: flex-end; gap: .25rem; box-shadow: inset 0 2px 6px rgba(0,0,0,.6); transition: border-color .3s ease, box-shadow .3s ease; }
.flow-node .led { position: absolute; top: .75rem; right: .75rem; transition: background-color .3s ease, box-shadow .3s ease; }
.flow-node b { font-family: var(--font-mono); font-weight: 500; font-size: .7rem; letter-spacing: .1em; color: var(--plate-ink); }
.flow-node small { font-size: .74rem; color: var(--silk); }
.flow-step:not(:last-child) .flow-node::after { content: ""; position: absolute; top: 50%; left: 100%; width: 1.1rem; height: 3px; margin-top: -1.5px; background: #2a4560; transition: background-color .3s ease, box-shadow .3s ease; }
.flow-step p { margin: 0; color: #b9c8d6; font-size: .88rem; line-height: 1.45; }
.flow-step p::before { content: "0" counter(paso) "  "; white-space: pre; font-family: var(--font-mono); font-size: .66rem; color: var(--hl); }
/* Sin JavaScript todo se ve encendido; con JavaScript se enciende paso a paso */
.js .flow .led { background: #2f4a63; box-shadow: none; }
.js .flow-step.is-done .led { background: color-mix(in srgb, var(--c) 55%, #000); box-shadow: none; }
.js .flow-step.is-done:not(:last-child) .flow-node::after { background: color-mix(in srgb, var(--c) 70%, #000); }
.js .flow-step.is-on .flow-node { border-color: var(--c); box-shadow: inset 0 2px 6px rgba(0,0,0,.6), 0 0 22px color-mix(in srgb, var(--c) 35%, transparent); }
.js .flow-step.is-on .led { background: var(--c); box-shadow: 0 0 9px var(--c); }
.js .flow-step.is-on p { color: var(--plate-ink); }
.js .flow-step:not(.is-on):not(.is-done) p { opacity: .55; }
.flow-step:hover .flow-node { border-color: var(--c); box-shadow: inset 0 2px 6px rgba(0,0,0,.6), 0 0 22px color-mix(in srgb, var(--c) 35%, transparent); }
.flow-step:hover .led { background: var(--c); box-shadow: 0 0 9px var(--c); }
.js .flow-step:hover p { opacity: 1; color: var(--plate-ink); }

/* Funciones de cada equipo (inspector) */
.feat { list-style: none; margin: 0 0 1.25rem; padding: 0; border-top: 1px solid var(--border); }
.feat li { position: relative; padding: .6rem 0 .6rem 1.5rem; border-bottom: 1px solid var(--border); font-size: .93rem; }
.feat li::before { content: "✓"; position: absolute; left: .1rem; top: .58rem; color: var(--gr); font-weight: 700; }

/* ========================================================================== U4 IA */
.ia-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.ia-lead { margin: 1rem 0 1.5rem; color: var(--ink-muted); max-width: 52ch; }
.mods { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.mod { display: grid; grid-template-columns: 34px 1fr; gap: .9rem; align-items: start; padding: 1.05rem 1.4rem 1.05rem 1.2rem; }
.mod-led { width: 34px; height: 34px; border-radius: 6px; border: 1px solid #2a4560; background: #081a29; display: grid; place-items: center; margin-top: .15rem; }
.mod h3 { margin: .2rem 0 .2rem; font-family: var(--font-serif); font-weight: 600; font-size: 1.45rem; line-height: 1.1; }
.mod p { margin: 0; color: #b9c8d6; font-size: .9rem; }
.mod em { font-style: normal; color: var(--plate-ink); font-weight: 600; }
.ia-fine { margin: 1.1rem 0 0; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .02em; color: var(--ink-muted); padding-left: .9rem; border-left: 2px solid var(--accent); max-width: 60ch; }
.ia-try { margin: 1.25rem 0 0; }
.phone { width: min(330px, 100%); margin-inline: auto; padding: 12px; border-radius: 42px; background: #0b1824; box-shadow: 0 30px 60px -24px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.08); }
.phone__screen { border-radius: 32px; overflow: hidden; background: #e3ebf2; }
.phone__bar { display: flex; align-items: center; gap: .65rem; padding: .9rem 1rem; background: #054068; color: #fff; }
.phone__bar b { display: block; font-size: .92rem; }
.phone__bar small { display: block; font-size: .72rem; opacity: .8; }
.phone__av { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; }
.phone__av img { width: 100%; height: 100%; display: block; }
.chat { display: flex; flex-direction: column; gap: .5rem; padding: 1rem .8rem 1.2rem; min-height: 380px; }
.msg { max-width: 84%; padding: .5rem .7rem; border-radius: 10px; font-size: .84rem; line-height: 1.4; color: #111b21; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.msg small { display: block; font-size: .68rem; font-weight: 700; color: #054068; margin-bottom: .1rem; }
.msg--out { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 3px; }
.msg--in { align-self: flex-start; background: #fff; border-top-left-radius: 3px; }
.sys { align-self: center; font-size: .7rem; padding: .3rem .6rem; border-radius: 8px; background: #d6e8f6; color: #0b2c47; }


/* ========================================================================== U3 WhatsApp multiagente */
.wa > input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.wa-console .console-top { padding-bottom: 1rem; }
.wa-body { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1rem, 2.4vw, 1.8rem); padding: 1.3rem .6rem .4rem; }
.wa-col { display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.wa-col-t { color: var(--silk); }
.wa-keys { display: grid; gap: .45rem; }
.wa-keys label { display: flex; align-items: flex-start; gap: .6rem; padding: .62rem .75rem; border-radius: 6px; border: 1px solid #2a4560; background: linear-gradient(#17354f, #0f2a40); color: var(--plate-ink); font-size: .84rem; line-height: 1.35; cursor: pointer; box-shadow: 0 2px 0 #04101b; transition: border-color .2s ease, transform .15s ease; }
.wa-keys label:hover { border-color: #4f606f; }
.wa-keys .led { flex: none; margin-top: .35rem; background: #4a6178; box-shadow: none; }
.wa-screen { border-radius: 8px; background: #e3ebf2; padding: .9rem .75rem; min-height: 230px; box-shadow: inset 0 2px 8px rgba(0,0,0,.35); }
.wa-conv { display: none; flex-direction: column; gap: .5rem; }
.wa-conv .msg--in { animation: wa-in .45s var(--ease-expo) both .35s; }
.wa-result { margin: .4rem 0 0; padding: .55rem .7rem; border-radius: 6px; background: #d6e8f6; color: #0b2c47; font-size: .78rem; line-height: 1.4; animation: wa-in .45s var(--ease-expo) both .75s; }
.wa-result b { display: block; font-family: var(--font-mono); font-weight: 500; font-size: .66rem; letter-spacing: .08em; margin-bottom: .15rem; }
.wa-result.is-ia { background: #d9f2e2; color: #1d5236; }
@keyframes wa-in { from { opacity: 0; transform: translateY(6px); } }
.puestos { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.puesto { display: grid; grid-template-columns: 10px 1fr; gap: .7rem; align-items: start; padding: .6rem .75rem; border-radius: 6px; border: 1px solid #2a4560; background: #081a29; box-shadow: inset 0 2px 6px rgba(0,0,0,.6); transition: border-color .25s ease; }
.puesto .led { margin-top: .3rem; background: #2f4a63; box-shadow: none; }
.puesto p { margin: .15rem 0 0; font-size: .8rem; line-height: 1.35; }
.puesto-off { color: #7d8fa0; }
.puesto-on { display: none; color: var(--plate-ink); }
.puesto-on b { display: block; color: #2fbf71; font-weight: 600; }
.puesto-on span { display: block; }
.puesto-on small { display: block; color: var(--silk); font-family: var(--font-mono); font-size: .64rem; margin-top: .2rem; }
.wa-back { margin: 0; font-family: var(--font-mono); font-size: .66rem; color: var(--silk); }
.wa-facts { list-style: none; margin: 1.6rem 0 1.3rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; border-top: 1px solid var(--border); padding-top: 1.2rem; }
.wa-facts b { display: block; font-size: .95rem; margin-bottom: .2rem; }
.wa-facts span { color: var(--ink-muted); font-size: .88rem; line-height: 1.45; }
.mod-link { color: var(--plate-ink); font-weight: 600; text-underline-offset: 3px; white-space: nowrap; }
#wa-1:checked ~ .wa-console label[for="wa-1"] { border-color: rgba(47,191,113,.7); transform: translateY(1px); box-shadow: 0 1px 0 #04101b; }
#wa-1:checked ~ .wa-console label[for="wa-1"] .led { background: #2fbf71; box-shadow: 0 0 8px #2fbf71; }
#wa-1:checked ~ .wa-console .wa-conv[data-wa="1"] { display: flex; }
#wa-2:checked ~ .wa-console label[for="wa-2"] { border-color: rgba(47,191,113,.7); transform: translateY(1px); box-shadow: 0 1px 0 #04101b; }
#wa-2:checked ~ .wa-console label[for="wa-2"] .led { background: #2fbf71; box-shadow: 0 0 8px #2fbf71; }
#wa-2:checked ~ .wa-console .wa-conv[data-wa="2"] { display: flex; }
#wa-2:checked ~ .wa-console .puesto[data-p="ventas"] { border-color: rgba(47,191,113,.6); }
#wa-2:checked ~ .wa-console .puesto[data-p="ventas"] .led { background: #2fbf71; box-shadow: 0 0 8px #2fbf71; animation: blink .9s steps(2, jump-none) infinite; }
#wa-2:checked ~ .wa-console .puesto[data-p="ventas"] .puesto-on { display: block; }
#wa-2:checked ~ .wa-console .puesto[data-p="ventas"] .puesto-off { display: none; }
#wa-3:checked ~ .wa-console label[for="wa-3"] { border-color: rgba(47,191,113,.7); transform: translateY(1px); box-shadow: 0 1px 0 #04101b; }
#wa-3:checked ~ .wa-console label[for="wa-3"] .led { background: #2fbf71; box-shadow: 0 0 8px #2fbf71; }
#wa-3:checked ~ .wa-console .wa-conv[data-wa="3"] { display: flex; }
#wa-3:checked ~ .wa-console .puesto[data-p="soporte"] { border-color: rgba(47,191,113,.6); }
#wa-3:checked ~ .wa-console .puesto[data-p="soporte"] .led { background: #2fbf71; box-shadow: 0 0 8px #2fbf71; animation: blink .9s steps(2, jump-none) infinite; }
#wa-3:checked ~ .wa-console .puesto[data-p="soporte"] .puesto-on { display: block; }
#wa-3:checked ~ .wa-console .puesto[data-p="soporte"] .puesto-off { display: none; }
#wa-4:checked ~ .wa-console label[for="wa-4"] { border-color: rgba(47,191,113,.7); transform: translateY(1px); box-shadow: 0 1px 0 #04101b; }
#wa-4:checked ~ .wa-console label[for="wa-4"] .led { background: #2fbf71; box-shadow: 0 0 8px #2fbf71; }
#wa-4:checked ~ .wa-console .wa-conv[data-wa="4"] { display: flex; }
#wa-4:checked ~ .wa-console .puesto[data-p="admin"] { border-color: rgba(47,191,113,.6); }
#wa-4:checked ~ .wa-console .puesto[data-p="admin"] .led { background: #2fbf71; box-shadow: 0 0 8px #2fbf71; animation: blink .9s steps(2, jump-none) infinite; }
#wa-4:checked ~ .wa-console .puesto[data-p="admin"] .puesto-on { display: block; }
#wa-4:checked ~ .wa-console .puesto[data-p="admin"] .puesto-off { display: none; }
#wa-5:checked ~ .wa-console label[for="wa-5"] { border-color: rgba(47,191,113,.7); transform: translateY(1px); box-shadow: 0 1px 0 #04101b; }
#wa-5:checked ~ .wa-console label[for="wa-5"] .led { background: #2fbf71; box-shadow: 0 0 8px #2fbf71; }
#wa-5:checked ~ .wa-console .wa-conv[data-wa="5"] { display: flex; }
#wa-5:checked ~ .wa-console .puesto[data-p="norte"] { border-color: rgba(47,191,113,.6); }
#wa-5:checked ~ .wa-console .puesto[data-p="norte"] .led { background: #2fbf71; box-shadow: 0 0 8px #2fbf71; animation: blink .9s steps(2, jump-none) infinite; }
#wa-5:checked ~ .wa-console .puesto[data-p="norte"] .puesto-on { display: block; }
#wa-5:checked ~ .wa-console .puesto[data-p="norte"] .puesto-off { display: none; }
.wa > input:focus-visible ~ .wa-console .wa-keys { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
@media (max-width: 980px) {
  .wa-body { grid-template-columns: 1fr; }
  .wa-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .wa-facts { grid-template-columns: 1fr; gap: .9rem; }
  .wa-screen { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .wa-conv .msg--in, .wa-result { animation: none; } }

/* ========================================================================== U5 Orden de trabajo */
.como-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.como-grid .section-subtitle { margin-top: 1rem; }
.como-photo { margin-top: 2rem; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid var(--border); }
.como-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.03); }
.ticket {
  --perf: radial-gradient(circle at 8px 0, transparent 5px, #ffffff 5.5px);
  position: relative; color: #0e1f2e; background: #ffffff; padding: 2rem 1.75rem 1.75rem;
  font-family: var(--font-mono); transform: rotate(.6deg); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 24px 40px -22px rgba(23,22,20,.5);
  background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(47,111,209,.08) 31px 32px);
}
.ticket::before, .ticket::after { content: ""; position: absolute; left: 0; right: 0; height: 10px; background: var(--perf) 0 0 / 16px 10px repeat-x; }
.ticket::before { top: -9px; }
.ticket::after { bottom: -9px; transform: scaleY(-1); }
.ticket-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-bottom: 1rem; border-bottom: 2px solid #0e1f2e; }
.ticket-head b { display: block; font-family: var(--font-sans); font-size: 1.15rem; letter-spacing: .02em; }
.ticket-head span { font-size: .66rem; letter-spacing: .14em; color: #4f606f; }
.ticket-no { font-size: .8rem; padding: .25rem .5rem; border: 1.5px solid #0e1f2e; }
.ticket-steps { list-style: none; margin: 0; padding: 0; }
.ticket-steps li { display: grid; grid-template-columns: 34px 1fr 24px; gap: .75rem; align-items: start; padding: 1rem 0; border-bottom: 1px dashed rgba(27,26,24,.35); }
.t-n { font-size: .78rem; color: var(--accent); padding-top: .15rem; }
.ticket-steps b { display: block; font-family: var(--font-serif); font-weight: 600; font-size: 1.45rem; line-height: 1.1; }
.ticket-steps small { display: block; font-size: .74rem; color: #4f606f; line-height: 1.5; margin-top: .15rem; }
.t-ok { font-family: var(--font-sans); font-weight: 700; color: var(--gr); font-size: 1.05rem; text-align: right; }
.ticket-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding-top: 1.4rem; font-size: .66rem; color: #4f606f; letter-spacing: .06em; }
.stamp { flex: none; text-align: center; line-height: 1.25; padding: .55rem .8rem; border: 2.5px solid var(--accent); color: var(--accent); border-radius: 6px; transform: rotate(-8deg); font-size: .62rem; letter-spacing: .12em; opacity: .9; }
.stamp b { font-family: var(--font-sans); font-size: 1.05rem; letter-spacing: .05em; }

/* ========================================================================== U6 Contacto */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-lead { margin: 1rem 0 1.75rem; color: var(--ink-muted); font-size: 1.07rem; max-width: 46ch; }
.sticker { max-width: 440px; margin-top: .5rem; padding: 1.1rem 1.2rem; background: #f5f5f5; color: #0e1f2e; border-radius: 8px; border: 1px solid rgba(0,0,0,.1); box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 12px 24px -16px rgba(0,0,0,.35); font-family: var(--font-mono); }
.sticker-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: .6rem; margin-bottom: .2rem; border-bottom: 2px solid #0e1f2e; }
.sticker-head b { font-family: var(--font-sans); font-size: 1rem; }
.sticker-head span { font-size: .6rem; letter-spacing: .14em; color: #4f606f; }
.sticker dl { margin: 0; }
.sticker dl div { display: grid; grid-template-columns: 92px 1fr; gap: .75rem; padding: .5rem 0; border-bottom: 1px solid rgba(27,26,24,.15); }
.sticker dt { font-size: .62rem; letter-spacing: .12em; color: #4f606f; padding-top: .15rem; }
.sticker dd { margin: 0; font-family: var(--font-sans); font-weight: 600; font-size: .92rem; }
.sticker a { text-decoration: none; border-bottom: 1px solid rgba(27,26,24,.3); }
.sticker-foot { display: flex; align-items: center; gap: .85rem; padding-top: .8rem; font-size: .6rem; letter-spacing: .12em; color: #4f606f; line-height: 1.6; }
.sticker-foot img { width: 80px; height: 80px; border-radius: 8px; flex: none; }

.patch { padding: clamp(1.6rem, 3vw, 2.1rem); }
.patch-top { display: flex; justify-content: space-between; gap: 1rem; padding: 0 .4rem; }
.patch h3 { margin: 1rem 0 .55rem; font-family: var(--font-serif); font-weight: 600; font-size: clamp(2rem, 3vw, 2.5rem); line-height: 1.04; }
.patch h3 em { color: var(--hl); }
.patch > p { margin: 0; color: #b9c8d6; font-size: .94rem; }
.patch > p strong { color: var(--plate-ink); }
.ports { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; padding: 1rem .8rem; border-radius: 6px; background: rgba(0,0,0,.28); border: 1px solid var(--plate-line); }
.port { display: flex; flex-direction: column; align-items: center; gap: .45rem; padding: .7rem .3rem .75rem; border-radius: 6px; border: 1px solid transparent; background: transparent; color: var(--plate-ink); text-decoration: none; font: inherit; cursor: pointer; text-align: center; transition: border-color .2s ease, background-color .2s ease; }
.port[hidden] { display: none; }
.port:hover { border-color: var(--c); background: rgba(255,255,255,.03); }
.port .rj { width: 40px; height: 32px; }
.port-leds { display: flex; gap: 18px; }
.port-leds i { width: 6px; height: 6px; border-radius: 50%; background: #2f4a63; }
.port:hover .port-leds i:first-child, .port:focus-visible .port-leds i:first-child { background: var(--c); box-shadow: 0 0 8px var(--c); }
.port:hover .port-leds i:last-child { background: #2fbf71; box-shadow: 0 0 8px #2fbf71; animation: blink .5s steps(2, jump-none) infinite; }
.port-tape { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .08em; padding: .2rem .4rem; color: #061420; background: color-mix(in srgb, var(--c) 72%, #fff); border-radius: 2px; white-space: nowrap; }
.port small { font-family: var(--font-mono); font-size: .58rem; color: var(--silk); letter-spacing: .03em; line-height: 1.35; }
.demo-nojs { margin: 1rem 0 0; font-family: var(--font-mono); font-size: .68rem; color: var(--silk); }
.demo-nojs[hidden] { display: none; }

/* ========================================================================== Pie */
.footer { border-top: 1px solid var(--border); padding: 1.8rem 0 6rem; font-size: .86rem; color: var(--ink-muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.footer strong { color: var(--ink); }
.footer-shortcuts { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; font-family: var(--font-mono); font-size: .72rem; }
.back-top { color: var(--accent); text-decoration: none; }

/* ========================================================================== Botón flotante */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; }
.fab summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .6rem; background: var(--wa); color: #fff; font-weight: 600; font-size: .94rem; padding: .85rem 1.25rem; border-radius: 999px; box-shadow: 0 14px 30px -8px rgba(11,24,36,.45); transition: background-color .2s ease, transform .2s var(--ease-spring); }
.fab summary::-webkit-details-marker { display: none; }
.fab summary svg { width: 20px; height: 20px; }
.fab summary:hover { background: var(--wa-hover); transform: translateY(-2px); }
.fab[open] summary { background: var(--ink); color: var(--bg); }
.fab__panel { position: absolute; right: 0; bottom: 64px; width: min(320px, calc(100vw - 36px)); background: var(--bg-panel); color: var(--ink); border: 1px solid var(--border-strong); border-radius: var(--radius-md); box-shadow: 0 22px 50px -12px rgba(11,24,36,.34); padding: .55rem; display: grid; gap: 2px; }
.fab[open] .fab__panel { animation: panelIn .24s var(--ease-expo); }
.fab__title { margin: 0; padding: .6rem .75rem .5rem; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.fab__panel a, .fab__opt { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: .7rem; padding: .6rem .75rem; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--ink); }
.fab__panel a:hover { background: var(--bg-elevated); }
.fab__panel i { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--bg-elevated); color: var(--ink); }
.fab__panel a:first-of-type i { background: rgba(30,122,71,.14); color: var(--wa); }
.fab__panel i svg { width: 18px; height: 18px; }
.fab__panel small { display: block; font-weight: 400; font-size: .76rem; color: var(--ink-muted); }

/* ========================================================================== Responsive */
/* Menú visible en escritorio (desplegable Soluciones, empresa y contacto); hamburguesa en tablet y celular.
   El cartel de horario muestra solo el punto cuando falta lugar. */
.nav-links { gap: 1.35rem; }
@media (max-width: 1300px) { .telemetry-pill .mono-text { display: none; } }
@media (max-width: 1040px) {
  .nav-links { display: none; }
  .menu { display: block; }
}
@media (max-width: 640px) { .topbar-cta { display: none; } }
@media (max-width: 960px) {
  .hero-grid, .console-body, .ia-grid, .contact-grid, .modal-body, .como-grid, .ru { grid-template-columns: 1fr; }
  .who { grid-template-columns: 1fr; }
  .selector-plate { position: static; min-height: 0; flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .knob-side { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 2rem); }
  .telemetry-pill .mono-text { display: none; }
  .theme-toggle .lbl { display: none; }
  .brand small { display: none; }
  .hero-telemetry { grid-template-columns: 1fr 1fr; }
  .hero-telemetry .telemetry-cell:last-child { grid-column: 1 / -1; }
  .hero-actions .btn { flex: 1 1 100%; }
  .selector { transform: scale(.86); margin: -14px 0; }
  .porta__fig .fig-desk { display: none; }
  .porta__fig .fig-mob { display: block; }
  .knob-side { grid-template-columns: 1fr; }
  .who-banner { height: 150px; }
  .pairs-head { display: none; }
  .pairs li { grid-template-columns: 1fr; row-gap: .35rem; padding: .85rem 0; }
  .pair-now { font-size: .84rem; padding-left: 1.4rem; position: relative; }
  .pair-now::before { content: "HOY"; position: absolute; left: 0; top: .1rem; font-family: var(--font-mono); font-size: .52rem; letter-spacing: .08em; color: var(--ink-muted); }
  .pair-arrow { display: none; }
  .flow { grid-template-columns: 1fr; gap: .9rem; padding: 0; }
  .flow-step { flex-direction: row; align-items: center; gap: .9rem; }
  .flow-node { flex: 0 0 128px; min-height: 74px; }
  .flow-step:not(:last-child) .flow-node::after { top: 100%; left: 50%; width: 3px; height: .9rem; margin: 0 0 0 -1.5px; }
  .hero-panel { padding: 1rem .8rem 1.1rem; }
  .hero-panel-top { padding: 0 .5rem .8rem; }
  .mods-grid { gap: .5rem; }
  .hmod-face { height: 88px; }
  .hmod-txt { padding: .6rem .6rem .7rem; }
  .hmod-txt b { font-size: .8rem; }
  .hmod-txt .tape { font-size: .56rem; letter-spacing: .06em; }
  .rack { padding: .5rem; }
  .ru { padding: 1.3rem 1.1rem; }
  .slots, .slots:has(> .slot:nth-child(4):last-child), .slots:has(> .slot:nth-child(5):last-child), .slots:has(> .slot:nth-child(6):last-child), .slots:has(> .slot:nth-child(8):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ru-remote { grid-template-columns: 1fr; }
  .ports { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ports > :not([hidden]):last-child:nth-child(odd) { grid-column: 1 / -1; }
  .ticket { transform: none; padding: 1.7rem 1.2rem 1.4rem; }
  .ticket-foot { flex-direction: column; align-items: flex-start; }
  .sticker dl div { grid-template-columns: 80px 1fr; }
  .brands li { font-size: 1.2rem; }
}

/* ==========================================================================
   Páginas de servicio (una por solución: /telefonia-ip, /redes, etc.)
   Reusan las piezas de la portada (placas, cintas, rack, pares) y suman:
   miga de pan, portada del servicio, notas técnicas, preguntas, otras soluciones y pie con mapa.
   ========================================================================== */
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: .2rem; }
.menu nav a[aria-current="page"] { background: var(--accent-soft); }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 1.4rem; padding: 0; list-style: none; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.crumbs a { color: var(--accent); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--border-strong); }

.svc-hero { padding-top: clamp(2rem, 4vw, 3.5rem); }
.svc-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 4vw, 3.75rem); align-items: center; }
.svc-hero .hero-title { font-size: clamp(2.8rem, 5.6vw, 4.6rem); }
.svc-shot { padding: 1.2rem 1.2rem 1.3rem; }
.svc-shot-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 .8rem .9rem; }
.svc-shot-face { position: relative; aspect-ratio: 4 / 3; border-radius: 6px; background: #f5f5f5; overflow: hidden; box-shadow: inset 0 2px 8px rgba(0,0,0,.25); display: grid; place-items: center; padding: 1.4rem; }
.svc-shot-face img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.svc-shot-face.is-photo { padding: 0; }
.svc-shot-face.is-photo img { object-fit: cover; mix-blend-mode: normal; }
.svc-shot-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; margin-top: .6rem; }
.svc-shot-row span { aspect-ratio: 1 / .8; border-radius: 5px; background: #f5f5f5; display: grid; place-items: center; padding: .5rem; box-shadow: inset 0 2px 6px rgba(0,0,0,.25); }
.svc-shot-row img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.svc-shot-cap { margin: .8rem .5rem 0; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .08em; color: var(--silk); text-transform: uppercase; }

/* Tarjeta clara con los pares "situación actual → con Select-IP" */
.card { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.card .pairs { padding-bottom: .6rem; }
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.split > .section-header { margin-bottom: 0; flex-direction: column; align-items: flex-start; position: sticky; top: 96px; }

/* Notas técnicas: bloques de texto con cinta de color, en dos o tres columnas */
.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.note { padding: 1.3rem 1.35rem 1.35rem; background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius-md); display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
.note h3 { margin: 0; font-family: var(--font-serif); font-weight: 600; font-size: 1.55rem; line-height: 1.1; }
.note p { margin: 0; color: var(--ink-muted); font-size: .93rem; }
.note ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .35rem; }
.note li { position: relative; padding-left: 1.1rem; color: var(--ink-muted); font-size: .9rem; line-height: 1.45; }
.note li::before { content: ""; position: absolute; left: 0; top: .55rem; width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--accent)); }
.note b { color: var(--ink); font-weight: 600; }

/* Preguntas frecuentes */
.faq { display: grid; gap: .55rem; }
.faq details { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius-md); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 26px; gap: 1rem; align-items: center; padding: 1rem 1.2rem; font-weight: 600; font-size: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border-strong); display: grid; place-items: center; font-family: var(--font-mono); font-weight: 400; color: var(--accent); transition: transform .3s var(--ease-expo); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 1.2rem 1.1rem; color: var(--ink-muted); font-size: .94rem; max-width: 75ch; }
.faq details > div p { margin: 0 0 .5rem; }
.faq details > div p:last-child { margin-bottom: 0; }

/* Otras soluciones: placa con un módulo por servicio */
.otras { padding: 1.2rem; }
.otras-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; margin-top: .9rem; }
.otras .hmod-face { height: 96px; }
.otras .hmod-icon { width: auto; height: 96px; margin: 6px 6px 0; }
.otras .hmod-icon svg { width: 34px; height: 34px; }

/* Banda de contacto al final de cada servicio */
.cta-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 2.5rem; align-items: center; padding: clamp(1.6rem, 3.4vw, 2.4rem) clamp(1.5rem, 3.4vw, 2.6rem); }
.cta-band h2 { margin: .4rem 0 .5rem; font-family: var(--font-serif); font-weight: 600; font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.03; }
.cta-band h2 em { color: var(--hl); }
.cta-band p { margin: 0; color: #b9c8d6; max-width: 56ch; }
.cta-band .hero-actions { margin: 0; justify-content: flex-end; }
.cta-band .btn-outline { color: var(--plate-ink); border-color: var(--plate-line); }
.cta-band .btn-outline:hover { background: rgba(255,255,255,.06); border-color: var(--plate-ink); }

/* Pie con mapa del sitio */
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; padding-bottom: 1.6rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--border); }
.footer-brand p { margin: .8rem 0 0; max-width: 38ch; }
.footer-redes { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; }
.footer-redes a { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink); text-decoration: none; }
.footer-redes a:hover { color: var(--accent); }
.footer-redes svg { width: 18px; height: 18px; flex: none; }
.footer-col { display: flex; flex-direction: column; gap: .45rem; }
.footer-col .mono-label { margin-bottom: .25rem; }
.footer-col a { color: var(--ink); text-decoration: none; }
.footer-col a:hover { color: var(--accent); }

/* Portada: los módulos ahora son seis (dos por fila) */
.mods-grid .hmod-txt b { font-size: .86rem; }

@media (max-width: 1100px) { .otras-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .svc-hero-grid, .split, .cta-band { grid-template-columns: 1fr; }
  .split > .section-header { position: static; }
  .cta-band .hero-actions { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .otras-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .otras .hmod-face, .otras .hmod-icon { height: 76px; }
  .svc-shot { padding: .9rem .8rem 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
.pair-sol b a { color: inherit; text-decoration: none; background-image: linear-gradient(var(--c), var(--c)); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat; padding-bottom: 1px; }
.pair-sol b a:hover { color: var(--accent); }
.pair-sol b a::after { content: " →"; color: var(--c); font-weight: 400; }
/* Tarjetas de servicio: un ícono por servicio, teñido con el color de su etiqueta (antes eran fotos) */
.hmod:not(.hmod-wide) > .hmod-icon {
  --tinte: color-mix(in srgb, var(--c) 58%, #ffffff);
  position: relative; width: auto; height: 118px; margin: 6px 6px 0; color: var(--tinte);
  background:
    radial-gradient(circle at 50% 48%, color-mix(in srgb, var(--c) 26%, transparent), color-mix(in srgb, var(--c) 5%, transparent) 68%),
    repeating-linear-gradient(0deg, transparent 0 13px, rgba(255,255,255,.035) 13px 14px),
    repeating-linear-gradient(90deg, transparent 0 13px, rgba(255,255,255,.035) 13px 14px);
  border: 1px solid color-mix(in srgb, var(--c) 22%, transparent);
}
.hmod:not(.hmod-wide) > .hmod-icon svg { width: 46px; height: 46px; transition: transform .5s var(--ease-expo); filter: drop-shadow(0 0 10px color-mix(in srgb, var(--c) 45%, transparent)); }
.hmod:not(.hmod-wide):hover > .hmod-icon svg { transform: scale(1.08); }
.otras .hmod:not(.hmod-wide) > .hmod-icon { height: 96px; }
.otras .hmod:not(.hmod-wide) > .hmod-icon svg { width: 36px; height: 36px; }
@media (max-width: 640px) { .hmod:not(.hmod-wide) > .hmod-icon, .otras .hmod:not(.hmod-wide) > .hmod-icon { height: 80px; } }

/* ========================================================================== Redes: demo de VLANs (CSS puro, sin JavaScript) */
.vlan-stage > input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.vlan-body { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(1rem, 2.4vw, 1.8rem); padding: 1.3rem .6rem .4rem; }
.vlan-origen { display: flex; flex-direction: column; gap: .7rem; }
.vlan-origen .wa-keys label { cursor: pointer; }
.vlan-read { margin-top: .4rem; padding: .85rem .95rem; border-radius: 6px; border: 1px solid var(--plate-line); background: rgba(0,0,0,.22); display: flex; flex-direction: column; gap: .3rem; }
.vlan-read .vr { display: none; font-family: var(--font-serif); font-weight: 600; font-size: 1.7rem; line-height: 1.05; color: var(--plate-ink); }
.vlan-map { display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.vlan-sw { display: flex; align-items: center; gap: .9rem; padding: .7rem .9rem; border-radius: 6px; background: linear-gradient(#17354f, #0f2a40); border: 1px solid #2a4560; box-shadow: 0 2px 0 #04101b; }
.vlan-ports { flex: 1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.vlan-ports i { aspect-ratio: 1.25 / 1; border-radius: 2px; background: #070707; border: 1px solid #2a4560; box-shadow: inset 0 -3px 0 #4a6178; transition: box-shadow .35s ease; }
.vlan-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.vtile { position: relative; display: flex; flex-direction: column; gap: .35rem; min-height: 112px; padding: .8rem .85rem; border-radius: 6px; background: #081a29; border: 1px solid #2a4560; box-shadow: inset 0 2px 6px rgba(0,0,0,.6); transition: border-color .3s ease, box-shadow .3s ease, opacity .3s ease; }
.vtag { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .1em; color: var(--silk); }
.vtag b { font-weight: 500; color: var(--plate-ink); }
.vtile p { margin: 0; font-size: .88rem; color: #b9c8d6; line-height: 1.35; }
.vstate { margin-top: auto; display: flex; align-items: center; gap: .45rem; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .1em; }
.vstate em { font-style: normal; display: none; }
.vstate .led { background: #2f4a63; box-shadow: none; transition: all .3s ease; }
.vtile .s-no { display: inline; color: #7d8fa0; }
.vtile .v-on { display: none; }
#vm-vlan:checked ~ .vlan-console .v-on { display: inline; }
#vm-vlan:checked ~ .vlan-console .v-off { display: none; }
#vm-plana:checked ~ .vlan-console label[for="vm-plana"], #vm-vlan:checked ~ .vlan-console label[for="vm-vlan"] { border-color: rgba(90,174,232,.7); transform: translateY(1px); box-shadow: 0 1px 0 #04101b; }
#vm-plana:checked ~ .vlan-console label[for="vm-plana"]::before, #vm-vlan:checked ~ .vlan-console label[for="vm-vlan"]::before { background: var(--hl); box-shadow: 0 0 10px var(--hl); }
.vlan-stage > input:focus-visible ~ .vlan-console .vlan-switch, .vlan-stage > input[name="vorigen"]:focus-visible ~ .vlan-console .vlan-origen .wa-keys { outline: 2px solid var(--hl); outline-offset: 3px; border-radius: 6px; }
/* Modo VLAN: cada boca del switch toma el color de su VLAN */

#vm-vlan:checked ~ .vlan-console .vlan-ports i[data-v="of"] { --pc: var(--or); --pf: var(--or); }
#vm-vlan:checked ~ .vlan-console .vlan-ports i[data-v="im"] { --pc: var(--br); --pf: var(--br); }
#vm-vlan:checked ~ .vlan-console .vlan-ports i[data-v="te"] { --pc: var(--hl); --pf: var(--hl); }
#vm-vlan:checked ~ .vlan-console .vlan-ports i[data-v="ca"] { --pc: var(--bl); --pf: var(--bl); }
#vm-vlan:checked ~ .vlan-console .vlan-ports i[data-v="in"] { --pc: var(--gr); --pf: var(--gr); }
#vo-pc:checked ~ .vlan-console label[for="vo-pc"] { border-color: rgba(90,174,232,.7); transform: translateY(1px); box-shadow: 0 1px 0 #04101b; }
#vo-pc:checked ~ .vlan-console label[for="vo-pc"] .led { background: var(--hl); box-shadow: 0 0 8px var(--hl); }
#vm-vlan:checked ~ #vo-pc:checked ~ .vlan-console .vr-pc { display: block; }
#vo-cam:checked ~ .vlan-console label[for="vo-cam"] { border-color: rgba(90,174,232,.7); transform: translateY(1px); box-shadow: 0 1px 0 #04101b; }
#vo-cam:checked ~ .vlan-console label[for="vo-cam"] .led { background: var(--hl); box-shadow: 0 0 8px var(--hl); }
#vm-vlan:checked ~ #vo-cam:checked ~ .vlan-console .vr-cam { display: block; }
#vo-tel:checked ~ .vlan-console label[for="vo-tel"] { border-color: rgba(90,174,232,.7); transform: translateY(1px); box-shadow: 0 1px 0 #04101b; }
#vo-tel:checked ~ .vlan-console label[for="vo-tel"] .led { background: var(--hl); box-shadow: 0 0 8px var(--hl); }
#vm-vlan:checked ~ #vo-tel:checked ~ .vlan-console .vr-tel { display: block; }
#vo-inv:checked ~ .vlan-console label[for="vo-inv"] { border-color: rgba(90,174,232,.7); transform: translateY(1px); box-shadow: 0 1px 0 #04101b; }
#vo-inv:checked ~ .vlan-console label[for="vo-inv"] .led { background: var(--hl); box-shadow: 0 0 8px var(--hl); }
#vm-vlan:checked ~ #vo-inv:checked ~ .vlan-console .vr-inv { display: block; }
#vm-plana:checked ~ .vlan-console .vr-plana { display: block; }
#vm-plana:checked ~ #vo-pc:checked ~ .vlan-console .vtile[data-v="im"],
#vm-plana:checked ~ #vo-pc:checked ~ .vlan-console .vtile[data-v="te"],
#vm-plana:checked ~ #vo-pc:checked ~ .vlan-console .vtile[data-v="ca"],
#vm-plana:checked ~ #vo-pc:checked ~ .vlan-console .vtile[data-v="in"],
#vm-vlan:checked ~ #vo-pc:checked ~ .vlan-console .vtile[data-v="im"],
#vm-plana:checked ~ #vo-cam:checked ~ .vlan-console .vtile[data-v="of"],
#vm-plana:checked ~ #vo-cam:checked ~ .vlan-console .vtile[data-v="im"],
#vm-plana:checked ~ #vo-cam:checked ~ .vlan-console .vtile[data-v="te"],
#vm-plana:checked ~ #vo-cam:checked ~ .vlan-console .vtile[data-v="in"],
#vm-plana:checked ~ #vo-tel:checked ~ .vlan-console .vtile[data-v="of"],
#vm-plana:checked ~ #vo-tel:checked ~ .vlan-console .vtile[data-v="im"],
#vm-plana:checked ~ #vo-tel:checked ~ .vlan-console .vtile[data-v="ca"],
#vm-plana:checked ~ #vo-tel:checked ~ .vlan-console .vtile[data-v="in"],
#vm-plana:checked ~ #vo-inv:checked ~ .vlan-console .vtile[data-v="of"],
#vm-plana:checked ~ #vo-inv:checked ~ .vlan-console .vtile[data-v="im"],
#vm-plana:checked ~ #vo-inv:checked ~ .vlan-console .vtile[data-v="te"],
#vm-plana:checked ~ #vo-inv:checked ~ .vlan-console .vtile[data-v="ca"] { border-color: var(--c); box-shadow: inset 0 2px 6px rgba(0,0,0,.6), 0 0 20px color-mix(in srgb, var(--c) 30%, transparent); }
#vm-plana:checked ~ #vo-pc:checked ~ .vlan-console .vtile[data-v="im"] .s-yes,
#vm-plana:checked ~ #vo-pc:checked ~ .vlan-console .vtile[data-v="te"] .s-yes,
#vm-plana:checked ~ #vo-pc:checked ~ .vlan-console .vtile[data-v="ca"] .s-yes,
#vm-plana:checked ~ #vo-pc:checked ~ .vlan-console .vtile[data-v="in"] .s-yes,
#vm-vlan:checked ~ #vo-pc:checked ~ .vlan-console .vtile[data-v="im"] .s-yes,
#vm-plana:checked ~ #vo-cam:checked ~ .vlan-console .vtile[data-v="of"] .s-yes,
#vm-plana:checked ~ #vo-cam:checked ~ .vlan-console .vtile[data-v="im"] .s-yes,
#vm-plana:checked ~ #vo-cam:checked ~ .vlan-console .vtile[data-v="te"] .s-yes,
#vm-plana:checked ~ #vo-cam:checked ~ .vlan-console .vtile[data-v="in"] .s-yes,
#vm-plana:checked ~ #vo-tel:checked ~ .vlan-console .vtile[data-v="of"] .s-yes,
#vm-plana:checked ~ #vo-tel:checked ~ .vlan-console .vtile[data-v="im"] .s-yes,
#vm-plana:checked ~ #vo-tel:checked ~ .vlan-console .vtile[data-v="ca"] .s-yes,
#vm-plana:checked ~ #vo-tel:checked ~ .vlan-console .vtile[data-v="in"] .s-yes,
#vm-plana:checked ~ #vo-inv:checked ~ .vlan-console .vtile[data-v="of"] .s-yes,
#vm-plana:checked ~ #vo-inv:checked ~ .vlan-console .vtile[data-v="im"] .s-yes,
#vm-plana:checked ~ #vo-inv:checked ~ .vlan-console .vtile[data-v="te"] .s-yes,
#vm-plana:checked ~ #vo-inv:checked ~ .vlan-console .vtile[data-v="ca"] .s-yes { display: inline; color: var(--plate-ink); }
#vm-plana:checked ~ #vo-pc:checked ~ .vlan-console .vtile[data-v="im"] .s-no,
#vm-plana:checked ~ #vo-pc:checked ~ .vlan-console .vtile[data-v="te"] .s-no,
#vm-plana:checked ~ #vo-pc:checked ~ .vlan-console .vtile[data-v="ca"] .s-no,
#vm-plana:checked ~ #vo-pc:checked ~ .vlan-console .vtile[data-v="in"] .s-no,
#vm-vlan:checked ~ #vo-pc:checked ~ .vlan-console .vtile[data-v="im"] .s-no,
#vm-plana:checked ~ #vo-cam:checked ~ .vlan-console .vtile[data-v="of"] .s-no,
#vm-plana:checked ~ #vo-cam:checked ~ .vlan-console .vtile[data-v="im"] .s-no,
#vm-plana:checked ~ #vo-cam:checked ~ .vlan-console .vtile[data-v="te"] .s-no,
#vm-plana:checked ~ #vo-cam:checked ~ .vlan-console .vtile[data-v="in"] .s-no,
#vm-plana:checked ~ #vo-tel:checked ~ .vlan-console .vtile[data-v="of"] .s-no,
#vm-plana:checked ~ #vo-tel:checked ~ .vlan-console .vtile[data-v="im"] .s-no,
#vm-plana:checked ~ #vo-tel:checked ~ .vlan-console .vtile[data-v="ca"] .s-no,
#vm-plana:checked ~ #vo-tel:checked ~ .vlan-console .vtile[data-v="in"] .s-no,
#vm-plana:checked ~ #vo-inv:checked ~ .vlan-console .vtile[data-v="of"] .s-no,
#vm-plana:checked ~ #vo-inv:checked ~ .vlan-console .vtile[data-v="im"] .s-no,
#vm-plana:checked ~ #vo-inv:checked ~ .vlan-console .vtile[data-v="te"] .s-no,
#vm-plana:checked ~ #vo-inv:checked ~ .vlan-console .vtile[data-v="ca"] .s-no { display: none; }
#vm-plana:checked ~ #vo-pc:checked ~ .vlan-console .vtile[data-v="im"] .led,
#vm-plana:checked ~ #vo-pc:checked ~ .vlan-console .vtile[data-v="te"] .led,
#vm-plana:checked ~ #vo-pc:checked ~ .vlan-console .vtile[data-v="ca"] .led,
#vm-plana:checked ~ #vo-pc:checked ~ .vlan-console .vtile[data-v="in"] .led,
#vm-vlan:checked ~ #vo-pc:checked ~ .vlan-console .vtile[data-v="im"] .led,
#vm-plana:checked ~ #vo-cam:checked ~ .vlan-console .vtile[data-v="of"] .led,
#vm-plana:checked ~ #vo-cam:checked ~ .vlan-console .vtile[data-v="im"] .led,
#vm-plana:checked ~ #vo-cam:checked ~ .vlan-console .vtile[data-v="te"] .led,
#vm-plana:checked ~ #vo-cam:checked ~ .vlan-console .vtile[data-v="in"] .led,
#vm-plana:checked ~ #vo-tel:checked ~ .vlan-console .vtile[data-v="of"] .led,
#vm-plana:checked ~ #vo-tel:checked ~ .vlan-console .vtile[data-v="im"] .led,
#vm-plana:checked ~ #vo-tel:checked ~ .vlan-console .vtile[data-v="ca"] .led,
#vm-plana:checked ~ #vo-tel:checked ~ .vlan-console .vtile[data-v="in"] .led,
#vm-plana:checked ~ #vo-inv:checked ~ .vlan-console .vtile[data-v="of"] .led,
#vm-plana:checked ~ #vo-inv:checked ~ .vlan-console .vtile[data-v="im"] .led,
#vm-plana:checked ~ #vo-inv:checked ~ .vlan-console .vtile[data-v="te"] .led,
#vm-plana:checked ~ #vo-inv:checked ~ .vlan-console .vtile[data-v="ca"] .led { background: var(--c); box-shadow: 0 0 8px var(--c); animation: blink .9s steps(2, jump-none) infinite; }
#vo-pc:checked ~ .vlan-console .vtile[data-v="of"],
#vo-cam:checked ~ .vlan-console .vtile[data-v="ca"],
#vo-tel:checked ~ .vlan-console .vtile[data-v="te"],
#vo-inv:checked ~ .vlan-console .vtile[data-v="in"] { border-color: var(--hl); border-style: dashed; }
#vo-pc:checked ~ .vlan-console .vtile[data-v="of"] .s-src,
#vo-cam:checked ~ .vlan-console .vtile[data-v="ca"] .s-src,
#vo-tel:checked ~ .vlan-console .vtile[data-v="te"] .s-src,
#vo-inv:checked ~ .vlan-console .vtile[data-v="in"] .s-src { display: inline; color: var(--hl); }
#vo-pc:checked ~ .vlan-console .vtile[data-v="of"] .s-no,
#vo-cam:checked ~ .vlan-console .vtile[data-v="ca"] .s-no,
#vo-tel:checked ~ .vlan-console .vtile[data-v="te"] .s-no,
#vo-inv:checked ~ .vlan-console .vtile[data-v="in"] .s-no { display: none; }
#vo-pc:checked ~ .vlan-console .vtile[data-v="of"] .led,
#vo-cam:checked ~ .vlan-console .vtile[data-v="ca"] .led,
#vo-tel:checked ~ .vlan-console .vtile[data-v="te"] .led,
#vo-inv:checked ~ .vlan-console .vtile[data-v="in"] .led { background: var(--hl); box-shadow: 0 0 10px var(--hl); }
@media (max-width: 980px) { .vlan-body { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .vlan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vlan-ports { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .vlan-sw .silk { display: none; }
  .vtile { min-height: 100px; }
}
/* Flujo único (páginas de servicio): siempre visible, sin selector */
.flow-stage.solo .flow { display: grid; }
section[id] { scroll-margin-top: 72px; }
/* Tres equipos verticales lado a lado (portada de Accesos) */
.svc-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.svc-trio span { position: relative; aspect-ratio: 3 / 3.6; border-radius: 6px; background: #f5f5f5; box-shadow: inset 0 2px 8px rgba(0,0,0,.25); display: grid; place-items: center; padding: .3rem .3rem 1.7rem; overflow: hidden; }
.svc-trio img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transform: scale(1.18); }
.svc-trio small { position: absolute; left: 0; right: 0; bottom: .55rem; text-align: center; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: #4f606f; }

/* Atención con IA: los dos botones para probar el asistente van juntos (si no entran al lado de WhatsApp, bajan de a dos) */
.hero-actions-par { display: flex; flex-wrap: wrap; gap: .85rem; }

/* ==========================================================================
   Propuesta 2026-12-04 (después de mirar la competencia): menú visible,
   pedido de presupuesto, Quiénes somos, preguntas generales y call center como caso de uso.
   ========================================================================== */

/* Encabezado: desplegable "Soluciones", botón de presupuesto y tema solo con ícono */
.navdrop { position: relative; }
.navdrop summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; color: var(--ink-muted); font-size: .82rem; font-weight: 500; transition: color .2s ease; }
.navdrop summary::-webkit-details-marker { display: none; }
.navdrop summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.navdrop[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.navdrop summary:hover, .navdrop[open] summary { color: var(--ink); }
.navdrop summary.is-current { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: .2rem; }
.navdrop-panel { position: absolute; left: -1rem; top: calc(100% + 20px); width: 580px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: .6rem; background: var(--bg-panel); border: 1px solid var(--border-strong); border-radius: var(--radius-md); box-shadow: 0 24px 48px -18px rgba(6,20,32,.35); }
.navdrop[open] .navdrop-panel { animation: panelIn .22s var(--ease-expo); }
.nav-links .navdrop-panel a { display: grid; grid-template-columns: 42px 1fr; gap: .75rem; align-items: center; padding: .6rem .65rem; border-radius: 8px; color: var(--ink); white-space: normal; font-size: inherit; }
.nav-links .navdrop-panel a:hover, .nav-links .navdrop-panel a[aria-current="page"] { background: var(--bg-elevated); box-shadow: none; padding-bottom: .6rem; font-weight: inherit; }
.nav-links .navdrop-panel a span { font-family: inherit; font-size: inherit; color: inherit; margin: 0; }
.navdrop-panel i { width: 42px; height: 42px; border-radius: 6px; display: grid; place-items: center; background: linear-gradient(180deg, var(--plate-2), var(--plate)); color: color-mix(in srgb, var(--c) 75%, #fff); box-shadow: inset 0 0 0 1px var(--plate-line); }
.navdrop-panel i svg { width: 22px; height: 22px; }
.navdrop-panel b { display: block; font-size: .9rem; font-weight: 600; }
.navdrop-panel small { display: block; font-size: .76rem; color: var(--ink-muted); line-height: 1.35; }
.topbar-cta { min-height: 36px; padding: .4rem 1rem; font-size: .8rem; }
.theme-toggle { width: 36px; height: 36px; padding: 0; justify-content: center; font-size: .95rem; }
.menu nav { max-height: calc(100vh - 90px); overflow: auto; }
.menu nav hr { border: 0; border-top: 1px solid var(--border); margin: .35rem .4rem; }
.menu nav a.menu-cta { margin-top: .35rem; background: var(--accent); color: var(--accent-contrast); text-align: center; }
.menu nav a.menu-cta:hover { background: var(--accent); filter: brightness(1.08); }

/* Pedido de presupuesto: hoja de pedido en papel, como la orden de trabajo; cada casilla tiene su LED */
.pedido {
  --perf: radial-gradient(circle at 8px 0, transparent 5px, #ffffff 5.5px);
  position: relative; color: #0e1f2e; background: #ffffff; padding: 1.7rem 1.6rem 1.4rem; border-radius: 0 0 4px 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 24px 40px -24px rgba(6,20,32,.5); font-family: var(--font-sans);
}
.pedido::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 10px; background: var(--perf) 0 0 / 16px 10px repeat-x; }
.pedido-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-bottom: .9rem; margin-bottom: .2rem; border-bottom: 2px solid #0e1f2e; font-family: var(--font-mono); }
.pedido-head b { display: block; font-family: var(--font-sans); font-size: 1.12rem; letter-spacing: .02em; }
.pedido-head span { font-size: .64rem; letter-spacing: .14em; color: #4f606f; }
.pedido .ticket-no { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .08em; padding: .25rem .5rem; border: 1.5px solid #0e1f2e; white-space: nowrap; }
.pedido fieldset { border: 0; margin: 0; padding: .95rem 0 .25rem; min-width: 0; border-bottom: 1px dashed rgba(27,26,24,.3); }
.pedido legend, .campo-lbl { display: flex; align-items: baseline; gap: .55rem; padding: 0; margin-bottom: .6rem; font-weight: 600; font-size: .95rem; }
.pedido legend { float: left; width: 100%; }
.pedido legend + * { clear: both; }
.pedido .t-n { font-family: var(--font-mono); font-size: .72rem; font-weight: 500; color: var(--accent); padding-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; padding-bottom: .7rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: .45rem; padding: .42rem .78rem; border: 1px solid rgba(14,31,46,.24); border-radius: 999px; font-size: .84rem; font-weight: 500; background: #fff; transition: border-color .15s ease, background-color .15s ease; }
.chip span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #c6d0d9; flex: none; transition: background-color .15s ease, box-shadow .15s ease; }
.chip:hover span { border-color: rgba(14,31,46,.5); }
.chip input:checked + span { border-color: color-mix(in srgb, var(--c, var(--accent)) 75%, #0e1f2e); background: color-mix(in srgb, var(--c, var(--accent)) 13%, #fff); }
.chip input:checked + span::before { background: var(--c, var(--accent)); box-shadow: 0 0 8px var(--c, var(--accent)); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pedido-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-top: .95rem; }
.campo { display: block; padding-top: .95rem; }
.pedido-row .campo { padding-top: 0; }
.campo-lbl small { font-weight: 400; color: #4f606f; font-size: .78rem; }
.campo input, .campo textarea { display: block; width: 100%; font: inherit; font-size: .92rem; color: #0e1f2e; background: #f6f8fa; border: 1px solid rgba(14,31,46,.22); border-radius: 6px; padding: .6rem .7rem; }
.campo textarea { resize: vertical; min-height: 86px; }
.campo input::placeholder, .campo textarea::placeholder { color: #7a8794; }
.campo input:focus, .campo textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; background: #fff; }
.pedido-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.25rem; }
.pedido-actions .btn-outline { color: #0e1f2e; border-color: rgba(14,31,46,.3); }
.pedido-actions .btn-outline:hover { background: #eef1f4; border-color: #0e1f2e; }
.pedido-nota { margin: .9rem 0 0; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .02em; color: #4f606f; line-height: 1.55; }
.pedido.is-incompleto .pedido-nota { color: #a33a2b; }

/* Contacto: columna con botones y datos */
.contact-side { display: grid; gap: 1.2rem; align-content: start; }
.contact-side .hero-actions { margin: 0; }
.contact-side .sticker { margin-top: 0; }
.patch-wide { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 1rem 2.2rem; align-items: center; }
.patch-wide .patch-top, .patch-wide .demo-nojs { grid-column: 1 / -1; }
.patch-wide .ports { margin-top: 0; }
.patch-copy h3 { margin-top: .3rem; }
.patch-copy p { margin: 0; color: #b9c8d6; font-size: .94rem; }
.patch-copy p strong { color: var(--plate-ink); }

/* Quiénes somos: placa de datos de aluminio remachada, como la de atrás de un equipo */
.nos-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.nos-copy { margin-top: 1.3rem; max-width: 56ch; }
.nos-copy p:last-child { margin-bottom: 0; }
.nos-copy p { margin: 0 0 1rem; color: var(--ink-muted); font-size: 1.04rem; }
.rating {
  --rivet: radial-gradient(circle, #f6f8fa 0 1.4px, #98a4af 1.9px 3.4px, rgba(0,0,0,.32) 3.8px 4.4px, transparent 4.8px);
  position: relative; margin: 0; padding: 1.6rem 1.7rem 1.25rem; border-radius: 6px; color: #1b2a37; font-family: var(--font-mono); transform: rotate(-.5deg);
  background:
    var(--rivet) 9px 9px / 10px 10px no-repeat,
    var(--rivet) calc(100% - 9px) 9px / 10px 10px no-repeat,
    var(--rivet) 9px calc(100% - 9px) / 10px 10px no-repeat,
    var(--rivet) calc(100% - 9px) calc(100% - 9px) / 10px 10px no-repeat,
    repeating-linear-gradient(90deg, rgba(255,255,255,.2) 0 1px, rgba(0,0,0,.025) 1px 2px, transparent 2px 4px),
    linear-gradient(160deg, #eceff2, #cad2d9 55%, #e0e5e9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(0,0,0,.18), 0 18px 34px -18px rgba(6,20,32,.45);
}
.rating-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: .55rem; border-bottom: 1.5px solid rgba(27,42,55,.55); }
.rating-head b { font-family: var(--font-sans); font-size: 1.15rem; letter-spacing: .04em; }
.rating-head span { font-size: .6rem; letter-spacing: .16em; color: #3d4b57; }
.rating dl { margin: 0; }
.rating dl div { display: grid; grid-template-columns: 108px 1fr; gap: .8rem; padding: .5rem 0; border-bottom: 1px solid rgba(27,42,55,.18); }
.rating dt { font-size: .6rem; letter-spacing: .12em; color: #3d4b57; padding-top: .2rem; }
.rating dd { margin: 0; font-family: var(--font-sans); font-weight: 600; font-size: .9rem; text-shadow: 0 1px 0 rgba(255,255,255,.65); }
.rating figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; padding-top: .75rem; font-size: .58rem; letter-spacing: .14em; color: #3d4b57; }

/* Pie con cuatro columnas */
.footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }

@media (max-width: 960px) {
  .nos-grid, .patch-wide { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .rating { transform: none; max-width: 520px; }
}
@media (max-width: 640px) {
  .pedido { padding: 1.5rem 1.1rem 1.2rem; }
  .pedido-row { grid-template-columns: 1fr; }
  .pedido-head { flex-direction: column; gap: .5rem; }
  .pedido-actions .btn { flex: 1 1 100%; }
  .rating { padding: 1.4rem 1.2rem 1.1rem; }
  .rating dl div { grid-template-columns: 92px 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Los saltos del menú (#nosotros, #presupuesto…) quedan debajo del encabezado fijo */
section[id], form[id] { scroll-margin-top: 80px; }

/* Caso de uso (call center en Telefonía IP): enlace de consulta al pie de la tarjeta */
.card > .caso-cta { margin: .4rem clamp(1.1rem, 3vw, 1.75rem) 1.25rem; }

/* Telefonía IP: central en la oficina o en la nube (dos placas comparables) */
.donde { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.opcion { padding: 1.4rem 1.5rem 1.35rem; }
.opcion-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0 .3rem .9rem; border-bottom: 1px solid var(--plate-line); }
.opcion-top .silk { display: inline-flex; align-items: center; gap: .5rem; }
.opcion-top .ic { width: 16px; height: 16px; color: var(--hl); }
.opcion h3 { margin: 1.05rem 0 .4rem; font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.6rem, 2.4vw, 2.05rem); line-height: 1.05; }
.opcion h3 em { font-style: normal; color: var(--hl); }
.opcion > p { margin: 0 0 1.05rem; color: #b9c8d6; font-size: .93rem; }
.opcion dl { margin: 0; border-top: 1px solid var(--plate-line); }
.opcion dl div { display: grid; grid-template-columns: 132px 1fr; gap: .9rem; padding: .65rem 0; border-bottom: 1px solid var(--plate-line); }
.opcion dt { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .1em; color: var(--silk); padding-top: .2rem; }
.opcion dd { margin: 0; font-size: .9rem; line-height: 1.45; color: var(--plate-ink); }
.donde-comun { margin: 1.1rem 0 0; max-width: 75ch; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .02em; color: var(--ink-muted); padding-left: .9rem; border-left: 2px solid var(--accent); }
.donde-comun a { color: var(--accent); }
@media (max-width: 860px) { .donde { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .opcion { padding: 1.2rem 1.1rem; } .opcion dl div { grid-template-columns: 1fr; gap: .2rem; } }

/* Fotos de equipos centradas: el marco tiene alto fijo (aspect-ratio) y la foto se achica para entrar.
   Antes la foto cuadrada tomaba el ancho y se desbordaba por abajo (centrales, portero, cámaras). */
.slot-face, .svc-shot-face, .svc-shot-row span { grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
.slot-face img, .svc-shot-face img, .svc-shot-row img { min-width: 0; min-height: 0; max-height: 100%; }

/* Rubros: desplegables con el mismo estilo que las preguntas; adentro, una cinta por pieza */
.rubros summary > span { display: grid; gap: .15rem; }
.rubros summary small { font-weight: 400; font-size: .86rem; color: var(--ink-muted); }
.rubro-piezas { list-style: none; margin: .2rem 0 0; padding: 0; display: grid; gap: .7rem; }
.rubro-piezas li { display: grid; grid-template-columns: 150px 1fr; gap: .9rem; align-items: baseline; padding-top: .7rem; border-top: 1px dashed var(--border); }
.rubro-piezas li:first-child { border-top: 0; padding-top: 0; }
.rubro-piezas .tape { justify-self: start; white-space: nowrap; text-decoration: none; }
a.tape:hover { filter: brightness(1.08); text-decoration: underline; text-underline-offset: 3px; }
.rubro-piezas p { margin: 0; color: var(--ink-muted); font-size: .94rem; }
.faq details.cerrando summary::after { transform: none; }
@media (max-width: 640px) { .rubro-piezas li { grid-template-columns: 1fr; gap: .35rem; } }

/* WhatsApp multiagente: selector de rubro (botones con el estilo de las llaves de la consola) */
.wa-rubros { padding: 1rem .6rem 0; }
.wa-rubros[hidden] { display: none; }
.wa-rubros button { display: inline-flex; align-items: center; gap: .55rem; padding: .5rem .95rem; border-radius: 6px; border: 1px solid #2a4560; background: linear-gradient(#17354f, #0f2a40); color: var(--plate-ink); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; cursor: pointer; box-shadow: 0 2px 0 #04101b; transition: all .2s ease; }
.wa-rubros button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4a6178; transition: all .25s ease; }
.wa-rubros button:hover { border-color: #4f606f; }
.wa-rubros button[aria-pressed="true"] { border-color: rgba(47,191,113,.6); transform: translateY(1px); box-shadow: 0 1px 0 #04101b; }
.wa-rubros button[aria-pressed="true"]::before { background: #2fbf71; box-shadow: 0 0 10px #2fbf71; }
.wa-rubros button:focus-visible { outline: 2px solid var(--hl); outline-offset: 2px; }

/* Portabilidad: la perilla gira suave y las piezas del diagrama se acomodan con animación */
.knob-needle { transition: transform .35s var(--ease-expo); }
.knob-arc { transition: stroke-dasharray .35s var(--ease-expo); }
.rotary-knob.arrastrando .knob-needle, .rotary-knob.arrastrando .knob-arc { transition: none; }
.porta__fig .pz { transition: transform .55s var(--ease-expo), opacity .35s ease; }
.porta__fig .pz.fuera { opacity: 0; }
.porta__fig .cables { animation: cablesIn .45s ease .25s both; }
.porta__fig .sin-animar .pz, .porta__fig svg.sin-animar .pz { transition: none !important; }
.porta__fig svg.sin-animar .cables { animation: none; }
@keyframes cablesIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .knob-needle, .knob-arc, .porta__fig .pz { transition: none; }
  .porta__fig .cables { animation: none; }
}

/* La foto oficial de la central trae el modelo escrito abajo: se recorta ese pie y la central queda centrada (regla de no mostrar modelos) */
.svc-shot-face img.sin-leyenda { object-fit: cover; object-position: 50% 35%; }

/* Rubros: la línea de integración entre soluciones, con su cinta propia */
.rubro-piezas .rubro-int { border-top-style: solid; }
.tape.tape-int { --c: #9fb3c4; background: linear-gradient(90deg, color-mix(in srgb, var(--or) 70%, #fff), color-mix(in srgb, var(--gr) 70%, #fff)); }
.rubro-piezas .rubro-int p { color: var(--ink); }

/* Redes · VLANs: cada boca del switch es un RJ45 dibujado. En red plana, todas huecas y grises;
   con VLANs, rellenas con el color de su red (las bocas libres quedan huecas). */
.vlan-ports i { --pc: #4a6178; --pf: #070707; position: relative; background: #0a0f14; border: 1px solid #22384d; box-shadow: none; }
.vlan-ports i::before, .vlan-ports i::after {
  content: ""; position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 74% 70%, 74% 100%, 26% 100%, 26% 70%, 0 70%);
  transition: background-color .35s ease;
}
.vlan-ports i::before { width: 68%; height: 66%; background: var(--pc); }
.vlan-ports i::after { width: calc(68% - 4px); height: calc(66% - 4px); background: var(--pf); }

/* ==========================================================================
   Cámaras · "En el celular": recreación de la app con el aviso y la grabación
   ========================================================================== */
.app-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.app-copy .section-subtitle { margin: 1rem 0 1.4rem; }
.app-pasos { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .5rem; }
.app-pasos li { display: grid; grid-template-columns: 30px 1fr; gap: .7rem; padding: .8rem .95rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-panel); transition: border-color .25s ease, box-shadow .25s ease; }
.app-pasos .t-n { font-family: var(--font-mono); font-size: .74rem; color: var(--accent); padding-top: .15rem; }
.app-pasos b { display: block; font-size: .98rem; }
.app-pasos small { color: var(--ink-muted); font-size: .88rem; }
.app-wrap:has(.app-phone[data-paso="1"]) .app-pasos li[data-p="1"],
.app-wrap:has(.app-phone[data-paso="2"]) .app-pasos li[data-p="2"],
.app-wrap:has(.app-phone[data-paso="3"]) .app-pasos li[data-p="3"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.app-phone { justify-self: center; width: min(320px, 100%); aspect-ratio: 9 / 18.5; padding: 10px; border-radius: 40px; background: #0b1824; box-shadow: 0 30px 60px -26px rgba(6,20,32,.6), inset 0 0 0 1px #24384b; }
.app-screen { position: relative; height: 100%; border-radius: 31px; overflow: hidden; background: #e3ebf2; font-family: var(--font-sans); color: #0e1f2e; }
.app-bar { display: flex; align-items: center; gap: .65rem; padding: 1.4rem 1rem .9rem; background: #054068; color: #fff; }
.app-av { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.app-av svg { width: 20px; height: 20px; }
.app-bar b { display: block; font-size: .95rem; }
.app-bar small { display: block; font-size: .72rem; opacity: .8; }
.app-cams { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; padding: .8rem; }
.app-cam { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #13283a; transition: box-shadow .3s ease; }
.app-cam svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.app-cam i { position: absolute; right: 6px; top: 5px; font-style: normal; font-family: var(--font-mono); font-size: .55rem; color: #fff; display: flex; align-items: center; gap: 4px; }
.app-cam i::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #e05a4b; }
.app-cam span { position: absolute; left: 6px; bottom: 5px; font-size: .62rem; font-weight: 600; color: #fff; background: rgba(11,36,56,.75); padding: 2px 6px; border-radius: 4px; }
.app-phone[data-paso="1"] .app-cam:first-child { box-shadow: 0 0 0 3px #5aaee8; animation: detParpadeo 1s ease-in-out infinite; }
.app-filas { padding: 0 .8rem; display: grid; gap: .45rem; }
.app-filas div { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 10px; padding: .6rem .7rem; font-size: .74rem; }
.app-filas em { font-style: normal; font-family: var(--font-mono); font-size: .6rem; color: #2e8b57; }
.app-notif { position: absolute; left: 8px; right: 8px; top: 8px; display: flex; gap: .6rem; align-items: flex-start; text-align: left; padding: .7rem .75rem; border: 0; border-radius: 16px; background: rgba(255,255,255,.97); box-shadow: 0 14px 30px -12px rgba(0,0,0,.45); font: inherit; color: inherit; cursor: pointer; transform: translateY(-140%); transition: transform .5s cubic-bezier(.2,.9,.25,1.2); }
.app-notif-ic { width: 32px; height: 32px; border-radius: 9px; background: #054068; display: grid; place-items: center; flex: none; }
.app-notif-ic svg { width: 18px; height: 18px; }
.app-notif-txt b { display: block; font-size: .8rem; }
.app-notif-txt span { font-size: .74rem; color: #4f606f; }
.app-notif small { margin-left: auto; font-family: var(--font-mono); font-size: .58rem; color: #4f606f; }
.app-phone[data-paso="2"] .app-notif { transform: none; animation: notifPulso 1.6s ease-in-out .6s infinite; }
@keyframes notifPulso { 50% { box-shadow: 0 14px 30px -12px rgba(0,0,0,.45), 0 0 0 4px rgba(90,174,232,.5); } }
.app-play { position: absolute; inset: 0; display: flex; flex-direction: column; background: #0b1824; color: #fff; opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility 0s linear .4s; }
.app-phone[data-paso="3"] .app-play { opacity: 1; visibility: visible; transition: opacity .4s ease; }
.app-play-hd { display: flex; justify-content: space-between; align-items: center; padding: 1.4rem .9rem .8rem; font-size: .88rem; }
.app-play-hd em { font-style: normal; font-family: var(--font-mono); font-size: .62rem; color: #e05a4b; }
.app-vid { position: relative; aspect-ratio: 16 / 9; background: #13283a; overflow: hidden; }
.app-vid svg { width: 100%; height: 100%; display: block; }
.app-box { position: absolute; left: 60%; top: 30%; width: 16%; height: 58%; border: 2px solid #5aaee8; border-radius: 4px; }
.app-box i { position: absolute; left: -2px; top: -15px; font-style: normal; font-family: var(--font-mono); font-size: .5rem; background: #5aaee8; color: #061420; padding: 1px 4px; border-radius: 2px; }
.app-phone[data-paso="3"] .app-box { animation: detParpadeo 1.1s ease-in-out 3; }
@keyframes detParpadeo { 50% { opacity: .3; } }
.app-tl { position: relative; margin: 1rem .9rem 1.4rem; height: 26px; border-radius: 6px; background: #13283a; }
.app-tl i { position: absolute; top: 0; bottom: 0; left: 46%; width: 6%; background: #5aaee8; border-radius: 4px; }
.app-tl b { position: absolute; top: -4px; bottom: -4px; left: 48%; width: 3px; background: #fff; border-radius: 2px; }
.app-tl span { position: absolute; top: 31px; font-family: var(--font-mono); font-size: .52rem; color: #9fb3c4; }
.app-tl span:nth-of-type(1) { left: 0; }
.app-tl span:nth-of-type(2) { left: 43%; color: #5aaee8; }
.app-tl span:nth-of-type(3) { right: 0; }
.app-play p { margin: .4rem .9rem 0; font-size: .8rem; color: #cfdbe6; line-height: 1.45; }
.app-volver { margin: auto .9rem 1.1rem; padding: .6rem; border-radius: 10px; border: 1px solid #2a4560; background: #10283d; color: #eaf1f7; font: inherit; font-size: .78rem; cursor: pointer; }
.app-volver:hover { border-color: #5aaee8; }
@media (max-width: 860px) { .app-wrap { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .app-notif { transition: none; } .app-phone * { animation: none !important; } }

/* ==========================================================================
   Videoportería · plano: atender en casa o desde el celular
   ========================================================================== */
.plano-stage > input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
#pl-casa:checked ~ .plano-console label[for="pl-casa"], #pl-afuera:checked ~ .plano-console label[for="pl-afuera"] { border-color: rgba(90,174,232,.7); transform: translateY(1px); box-shadow: 0 1px 0 #04101b; }
#pl-casa:checked ~ .plano-console label[for="pl-casa"]::before, #pl-afuera:checked ~ .plano-console label[for="pl-afuera"]::before { background: var(--hl); box-shadow: 0 0 10px var(--hl); }
.plano-stage > input:focus-visible ~ .plano-console .porta-switch { outline: 2px solid var(--hl); outline-offset: 3px; border-radius: 6px; }
#pl-casa:checked ~ .plano-console .solo-afuera, #pl-afuera:checked ~ .plano-console .solo-casa,
#pl-casa:checked ~ .plano-console .pasos-afuera, #pl-afuera:checked ~ .plano-console .pasos-casa { display: none; }
#pl-afuera:checked ~ .plano-console .pl-zona-afuera { fill: rgba(90,174,232,.09); }
.plano-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .32fr); gap: 1.4rem; padding: 1.2rem .6rem .4rem; align-items: center; }
.plano-svg-wrap { min-width: 0; }
.plano-svg { width: 100%; height: auto; display: block; border-radius: 6px; background: var(--screen); border: 1px solid var(--plate-line); }
.plano-svg text { font-family: var(--font-mono); font-size: 12px; fill: #9fb3c4; letter-spacing: .06em; }
.plano-svg .pl-lbl-chica { font-size: 10px; }
.pl-zona { fill: rgba(255,255,255,.025); transition: fill .4s ease; }
.pl-pared { fill: none; stroke: #9fb3c4; stroke-width: 4; stroke-linecap: square; }
.pl-pared-fina { stroke-width: 2.5; }
.pl-puerta { fill: none; stroke: #4f6a83; stroke-width: 1.5; stroke-dasharray: 3 3; }
.pl-escalera path { stroke: #33506b; stroke-width: 2; }
.pl-cable { fill: none; stroke: #2f4c66; stroke-width: 2; stroke-dasharray: 5 4; }
.pl-senal { fill: none; stroke: var(--hl); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 4px rgba(90,174,232,.7)); }
.pl-equipo rect { fill: #17354f; stroke: #4f6a83; }
.plano-svg .pl-equipo text, .plano-svg .pl-nube text { fill: #eaf1f7; font-size: 11px; }
.pl-frente rect { fill: #d6e3ee; }
.pl-frente circle { fill: #0b2438; }
.pl-monitor > rect:first-child, .pl-cel > rect:first-child { fill: #d6e3ee; }
.pl-pantalla { fill: #1f4466; }
.pl-nube path { fill: #17354f; stroke: #4f6a83; }
.pl-persona circle, .pl-persona path { fill: #6f8fab; }
.pl-vos circle, .pl-vos path { fill: var(--hl); }
.pl-globo rect { fill: #eaf1f7; }
.plano-svg .pl-globo text { font-family: var(--font-sans); font-size: 14px; font-weight: 500; fill: #0e1f2e; letter-spacing: 0; }
.pl-globo-vos rect { fill: #d9f2e2; }
.pl-ring, .pl-dev-ring { fill: none; stroke: var(--hl); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.pl-ondas path { fill: none; stroke: var(--hl); stroke-width: 2; stroke-linecap: round; opacity: 0; }
.plano-svg .pl-oye { opacity: 0; fill: var(--hl); }
.plano-anda .pl-b-visita { animation: plVisita 8s infinite; }
.plano-anda .pl-ring { animation: plRing 8s infinite; }
.plano-anda .pl-senal { animation: plSenal 8s infinite; }
.plano-anda .pl-dev-ring { animation: plDev 8s infinite; }
.plano-anda .pl-b-resp, .plano-anda .pl-oye { animation: plResp 8s infinite; }
.plano-anda .pl-ondas path { animation: plOndas 8s infinite; }
@keyframes plVisita { 0%, 3% { opacity: 0; transform: translateY(6px); } 8%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes plRing { 0%, 4% { opacity: 0; transform: scale(.6); } 10% { opacity: 1; } 18%, 100% { opacity: 0; transform: scale(1.5); } }
@keyframes plSenal { 0%, 14% { stroke-dashoffset: 100; opacity: 1; } 36%, 92% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes plDev { 0%, 36% { opacity: 0; transform: scale(.6); } 42% { opacity: 1; } 50% { opacity: 0; transform: scale(1.5); } 51% { opacity: 0; transform: scale(.6); } 56% { opacity: 1; } 64%, 100% { opacity: 0; transform: scale(1.5); } }
@keyframes plResp { 0%, 62% { opacity: 0; transform: translateY(6px); } 68%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes plOndas { 0%, 66% { opacity: 0; } 70% { opacity: 1; } 75% { opacity: .2; } 80% { opacity: 1; } 85% { opacity: .2; } 90%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .plano-anda * { animation: none !important; }
  .pl-senal { stroke-dashoffset: 0; }
  .pl-b-resp, .pl-ondas path, .plano-svg .pl-oye { opacity: 1; }
}
.plano-pasos ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.plano-pasos li { display: grid; grid-template-columns: 28px 1fr; gap: .5rem; color: #cfdbe6; font-size: .92rem; line-height: 1.45; }
.plano-pasos .t-n { font-family: var(--font-mono); font-size: .7rem; color: var(--hl); padding-top: .2rem; }
.plano-hint { display: none; margin: .4rem 0 0; font-family: var(--font-mono); font-size: .64rem; color: var(--silk); }
@media (max-width: 960px) { .plano-body { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .plano-svg-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .plano-svg { min-width: 680px; }
  .plano-hint { display: block; }
}

/* ==========================================================================
   Accesos · "Probalo": terminal, cerradura y registro del día
   ========================================================================== */
.acc > input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.acc-body { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1rem, 2.4vw, 1.8rem); padding: 1.3rem .6rem .4rem; }
.acc-keys label > span { display: grid; }
.acc-keys small { font-family: var(--font-mono); font-size: .62rem; color: var(--silk); margin-top: .15rem; }
.acc-term { border-radius: 8px; background: var(--screen); border: 1px solid var(--plate-line); box-shadow: inset 0 2px 8px rgba(0,0,0,.45); min-height: 190px; display: grid; place-items: center; padding: 1.2rem; text-align: center; }
.acc-res { display: none; flex-direction: column; align-items: center; gap: .4rem; animation: wa-in .45s var(--ease-expo) both; }
.acc-ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 1.5rem; }
.acc-ic.ok { background: rgba(47,191,113,.16); color: #2fbf71; box-shadow: 0 0 0 2px rgba(47,191,113,.5); }
.acc-ic.no { background: rgba(224,90,75,.16); color: #ff8a7a; box-shadow: 0 0 0 2px rgba(224,90,75,.5); }
.acc-ic.al { background: rgba(242,201,76,.16); color: #f2c94c; box-shadow: 0 0 0 2px rgba(242,201,76,.5); animation: blink .9s steps(2, jump-none) infinite; }
.acc-res b { font-family: var(--font-serif); font-size: 1.35rem; color: var(--plate-ink); font-weight: 600; }
.acc-res span { font-family: var(--font-mono); font-size: .72rem; color: var(--silk); }
.acc-estado { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.acc-estado > div { padding: .6rem .7rem; border-radius: 6px; border: 1px solid #2a4560; background: linear-gradient(#17354f, #0f2a40); display: grid; gap: .3rem; }
.acc-estado b { display: none; align-items: center; gap: .45rem; font-family: var(--font-mono); font-size: .72rem; font-weight: 500; color: var(--plate-ink); }
.acc-estado .c-trab, .acc-estado .a-off { display: flex; }
.c-trab .led { --c: #6f8fab; }
.c-lib .led { --c: #2fbf71; }
.a-off .led { --c: #4a6178; box-shadow: none; }
.a-on .led { --c: #f2c94c; animation: blink .5s steps(2, jump-none) infinite; }
.acc-log { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.acc-log li { display: grid; grid-template-columns: 46px 1fr; gap: 0 .6rem; padding: .5rem .65rem; border-radius: 6px; border: 1px solid #2a4560; background: rgba(0,0,0,.2); opacity: .5; transition: opacity .25s ease, border-color .25s ease; }
.acc-log span { grid-row: span 2; font-family: var(--font-mono); font-size: .72rem; color: var(--silk); padding-top: .1rem; }
.acc-log b { font-size: .86rem; color: var(--plate-ink); font-weight: 600; }
.acc-log em { font-style: normal; font-family: var(--font-mono); font-size: .62rem; color: var(--silk); }
.acc-pres { margin: .7rem 0 0; padding: .6rem .7rem; border-radius: 6px; border: 1px dashed #2a4560; display: grid; gap: .2rem; }
.acc-pres b { font-size: .82rem; color: var(--plate-ink); font-weight: 600; }
.acc > input:focus-visible ~ .acc-console .acc-keys { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
@media (max-width: 980px) { .acc-body { grid-template-columns: 1fr; } }

#ac-1:checked ~ .acc-console label[for="ac-1"] { border-color: rgba(47,191,113,.7); transform: translateY(1px); box-shadow: 0 1px 0 #04101b; }
#ac-1:checked ~ .acc-console label[for="ac-1"] .led { background: #2fbf71; box-shadow: 0 0 8px #2fbf71; }
#ac-1:checked ~ .acc-console .acc-res[data-r="1"] { display: flex; }
#ac-1:checked ~ .acc-console .acc-log li[data-r="1"] { opacity: 1; border-color: rgba(90,174,232,.7); }
#ac-2:checked ~ .acc-console label[for="ac-2"] { border-color: rgba(47,191,113,.7); transform: translateY(1px); box-shadow: 0 1px 0 #04101b; }
#ac-2:checked ~ .acc-console label[for="ac-2"] .led { background: #2fbf71; box-shadow: 0 0 8px #2fbf71; }
#ac-2:checked ~ .acc-console .acc-res[data-r="2"] { display: flex; }
#ac-2:checked ~ .acc-console .acc-log li[data-r="2"] { opacity: 1; border-color: rgba(90,174,232,.7); }
#ac-3:checked ~ .acc-console label[for="ac-3"] { border-color: rgba(47,191,113,.7); transform: translateY(1px); box-shadow: 0 1px 0 #04101b; }
#ac-3:checked ~ .acc-console label[for="ac-3"] .led { background: #2fbf71; box-shadow: 0 0 8px #2fbf71; }
#ac-3:checked ~ .acc-console .acc-res[data-r="3"] { display: flex; }
#ac-3:checked ~ .acc-console .acc-log li[data-r="3"] { opacity: 1; border-color: rgba(90,174,232,.7); }
#ac-4:checked ~ .acc-console label[for="ac-4"] { border-color: rgba(47,191,113,.7); transform: translateY(1px); box-shadow: 0 1px 0 #04101b; }
#ac-4:checked ~ .acc-console label[for="ac-4"] .led { background: #2fbf71; box-shadow: 0 0 8px #2fbf71; }
#ac-4:checked ~ .acc-console .acc-res[data-r="4"] { display: flex; }
#ac-4:checked ~ .acc-console .acc-log li[data-r="4"] { opacity: 1; border-color: rgba(90,174,232,.7); }
#ac-5:checked ~ .acc-console label[for="ac-5"] { border-color: rgba(47,191,113,.7); transform: translateY(1px); box-shadow: 0 1px 0 #04101b; }
#ac-5:checked ~ .acc-console label[for="ac-5"] .led { background: #2fbf71; box-shadow: 0 0 8px #2fbf71; }
#ac-5:checked ~ .acc-console .acc-res[data-r="5"] { display: flex; }
#ac-5:checked ~ .acc-console .acc-log li[data-r="5"] { opacity: 1; border-color: rgba(90,174,232,.7); }
#ac-1:checked ~ .acc-console .c-trab, #ac-2:checked ~ .acc-console .c-trab, #ac-5:checked ~ .acc-console .c-trab { display: none; }
#ac-1:checked ~ .acc-console .c-lib, #ac-2:checked ~ .acc-console .c-lib, #ac-5:checked ~ .acc-console .c-lib { display: flex; }
#ac-5:checked ~ .acc-console .a-off { display: none; }
#ac-5:checked ~ .acc-console .a-on { display: flex; }
#ac-2:checked ~ .acc-console .acc-pres { border-color: rgba(90,174,232,.7); }

/* Plano de videoportería, versión prolija: referencias de las líneas y paredes más finas */
.pl-pared { stroke-width: 3; }
.pl-pared-fina { stroke-width: 2; }
.pl-cable { stroke-width: 1.5; }
.pl-ref-senal { fill: none; stroke: var(--hl); stroke-width: 3; stroke-linecap: round; }
.plano-svg .pl-ref text { font-size: 10.5px; }

/* Cámaras: pista "Tocá la notificación" con flecha, solo cuando el aviso está esperando (y con JavaScript, que es lo que lo abre) */
.app-hint { position: absolute; left: 50%; top: 96px; z-index: 2; transform: translateX(-50%); padding: .42rem .8rem; border-radius: 999px; background: #5aaee8; color: #061420; font-size: .74rem; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .3s ease; box-shadow: 0 8px 18px -8px rgba(0,0,0,.5); }
.app-hint::before { content: ""; position: absolute; left: 50%; top: -6px; margin-left: -6px; border: 6px solid transparent; border-top: 0; border-bottom-color: #5aaee8; }
.js .app-phone[data-paso="2"] .app-hint { opacity: 1; animation: hintBote 1.2s ease-in-out .8s infinite; }
@keyframes hintBote { 50% { transform: translate(-50%, -5px); } }
@media (prefers-reduced-motion: reduce) { .js .app-phone[data-paso="2"] .app-hint { animation: none; } }

/* ==========================================================================
   Portada · "Cómo se integra todo": cuarto ejemplo y un plano por ejemplo,
   que se despliega al tocar un ejemplo y avanza junto con los pasos de arriba
   ========================================================================== */
#f-net:checked ~ .flow-plate label[for="f-net"] { border-color: rgba(90,174,232,.7); transform: translateY(1px); box-shadow: 0 1px 0 #04101b; }
#f-net:checked ~ .flow-plate label[for="f-net"]::before { background: var(--hl); box-shadow: 0 0 10px var(--hl); }
#f-net:focus-visible ~ .flow-plate label[for="f-net"] { outline: 2px solid var(--hl); outline-offset: 2px; }
#f-net:checked ~ .flow-plate .flow[data-f="internet"] { display: grid; }
.fplanos { margin: 1.1rem .4rem .2rem; }
.fplanos-pista { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .8rem; padding: .5rem .85rem; border-radius: 6px; border: 1px dashed #2a4560; background: transparent; color: var(--hl); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; cursor: pointer; }
.fplanos-pista:hover { border-color: var(--hl); }
.fplanos-pista[hidden] { display: none; }
.js .fplanos.cerrado .fplanos-cuerpo { display: none; }
.fplanos-cuerpo { overflow: hidden; }
.fplano-wrap { display: none; }
#f-llam:checked ~ .flow-plate .fplano-wrap[data-f="llamada"],
#f-visita:checked ~ .flow-plate .fplano-wrap[data-f="edificio"],
#f-emp:checked ~ .flow-plate .fplano-wrap[data-f="oficina"],
#f-net:checked ~ .flow-plate .fplano-wrap[data-f="internet"] { display: block; }
/* lo que aparece en cada paso */
.fplano [data-p], .fplano [data-solo], .fplano [data-hasta] { transition: opacity .35s ease; }
.fplano [data-p], .fplano [data-solo] { opacity: 0; }
.fplano .pl-senal { transition: stroke-dashoffset .8s var(--ease-expo); }
.fplano .pl-senal[data-p] { opacity: 1; }
.fplano:not([data-paso]) [data-p], .fplano:not([data-paso]) [data-solo] { opacity: 1; }
.fplano:not([data-paso]) .pl-senal[data-p] { stroke-dashoffset: 0; }
.fp-anillo, .fp-marco { fill: none; stroke: var(--hl); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
@keyframes fpAnillo { 0% { opacity: 0; transform: scale(.8); } 30% { opacity: .95; } 100% { opacity: 0; transform: scale(1.25); } }
/* piezas propias de estos planos */
.fp-tel rect:first-child, .fp-cam rect, .fp-term rect, .fp-lector rect, .fp-antena rect { fill: #d6e3ee; }
.fp-cam circle { fill: #0b2438; }
.fp-antena path { stroke: #9fb3c4; stroke-width: 2; }
.fp-ia rect { fill: rgba(26,163,181,.16); stroke: var(--ia); }
.plano-svg .fp-ia text { fill: #eaf1f7; font-size: 11px; }
.fp-card > rect { fill: #10283d; stroke: #4f6a83; }
.plano-svg .fp-card-t { font-size: 10px; fill: #9fb3c4; }
.plano-svg .fp-card-s { font-family: var(--font-sans); font-size: 13px; fill: #eaf1f7; letter-spacing: 0; }
.pl-globo-ia rect { fill: #d4f1f4; }
.fp-cerr { fill: #9fb3c4; }
.fp-led-rojo { fill: #e05a4b; }
.fp-led-verde { fill: #2fbf71; }
.fp-alarma circle { fill: none; stroke: #f2c94c; stroke-width: 2; }
.fp-alarma path { stroke: #f2c94c; stroke-width: 2; }
.fp-puerta-on { fill: none; stroke: var(--hl); stroke-width: 2.5; }
.fp-puerta-alerta { fill: none; stroke: #f2c94c; stroke-width: 2.5; }
.fp-camino { fill: none; stroke: var(--hl); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 8; }
.fp-fibra { fill: none; stroke: #4f6a83; stroke-width: 2; }
.fp-cortada { fill: none; stroke: #e05a4b; stroke-width: 3; stroke-dasharray: 6 5; }
.fp-corte path { stroke: #e05a4b; stroke-width: 3; stroke-linecap: round; }
.fp-aire { fill: none; stroke: #4f6a83; stroke-width: 2; stroke-dasharray: 2 5; }
.plano-svg .fp-hl { fill: var(--hl); }
.plano-svg .fp-ok { fill: #2fbf71; }
.plano-svg .fp-alerta { fill: #f2c94c; }
.plano-svg .fp-rojo, .plano-svg .fp-rec { fill: #ff8a7a; }
@media (prefers-reduced-motion: reduce) { .fplano * { transition: none !important; animation: none !important; } }
.fplano[data-paso="1"] [data-p="1"] { opacity: 1; }
.fplano[data-paso="1"] .pl-senal[data-p="1"] { stroke-dashoffset: 0; }
.fplano[data-paso="1"] [data-solo="1"] { opacity: 1; }
.fplano[data-paso="1"] [data-anillo="1"] { animation: fpAnillo 1.4s ease-out infinite; }
.fplano[data-paso="2"] [data-p="1"] { opacity: 1; }
.fplano[data-paso="2"] .pl-senal[data-p="1"] { stroke-dashoffset: 0; }
.fplano[data-paso="2"] [data-p="2"] { opacity: 1; }
.fplano[data-paso="2"] .pl-senal[data-p="2"] { stroke-dashoffset: 0; }
.fplano[data-paso="2"] [data-solo="2"] { opacity: 1; }
.fplano[data-paso="2"] [data-anillo="2"] { animation: fpAnillo 1.4s ease-out infinite; }
.fplano[data-paso="3"] [data-p="1"] { opacity: 1; }
.fplano[data-paso="3"] .pl-senal[data-p="1"] { stroke-dashoffset: 0; }
.fplano[data-paso="3"] [data-p="2"] { opacity: 1; }
.fplano[data-paso="3"] .pl-senal[data-p="2"] { stroke-dashoffset: 0; }
.fplano[data-paso="3"] [data-p="3"] { opacity: 1; }
.fplano[data-paso="3"] .pl-senal[data-p="3"] { stroke-dashoffset: 0; }
.fplano[data-paso="3"] [data-solo="3"] { opacity: 1; }
.fplano[data-paso="3"] [data-anillo="3"] { animation: fpAnillo 1.4s ease-out infinite; }
.fplano[data-paso="4"] [data-p="1"] { opacity: 1; }
.fplano[data-paso="4"] .pl-senal[data-p="1"] { stroke-dashoffset: 0; }
.fplano[data-paso="4"] [data-p="2"] { opacity: 1; }
.fplano[data-paso="4"] .pl-senal[data-p="2"] { stroke-dashoffset: 0; }
.fplano[data-paso="4"] [data-p="3"] { opacity: 1; }
.fplano[data-paso="4"] .pl-senal[data-p="3"] { stroke-dashoffset: 0; }
.fplano[data-paso="4"] [data-p="4"] { opacity: 1; }
.fplano[data-paso="4"] .pl-senal[data-p="4"] { stroke-dashoffset: 0; }
.fplano[data-paso="4"] [data-solo="4"] { opacity: 1; }
.fplano[data-paso="4"] [data-anillo="4"] { animation: fpAnillo 1.4s ease-out infinite; }
.fplano[data-paso="5"] [data-p="1"] { opacity: 1; }
.fplano[data-paso="5"] .pl-senal[data-p="1"] { stroke-dashoffset: 0; }
.fplano[data-paso="5"] [data-p="2"] { opacity: 1; }
.fplano[data-paso="5"] .pl-senal[data-p="2"] { stroke-dashoffset: 0; }
.fplano[data-paso="5"] [data-p="3"] { opacity: 1; }
.fplano[data-paso="5"] .pl-senal[data-p="3"] { stroke-dashoffset: 0; }
.fplano[data-paso="5"] [data-p="4"] { opacity: 1; }
.fplano[data-paso="5"] .pl-senal[data-p="4"] { stroke-dashoffset: 0; }
.fplano[data-paso="5"] [data-p="5"] { opacity: 1; }
.fplano[data-paso="5"] .pl-senal[data-p="5"] { stroke-dashoffset: 0; }
.fplano[data-paso="5"] [data-solo="5"] { opacity: 1; }
.fplano[data-paso="5"] [data-anillo="5"] { animation: fpAnillo 1.4s ease-out infinite; }
.fplano[data-paso="6"] [data-p="1"] { opacity: 1; }
.fplano[data-paso="6"] .pl-senal[data-p="1"] { stroke-dashoffset: 0; }
.fplano[data-paso="6"] [data-p="2"] { opacity: 1; }
.fplano[data-paso="6"] .pl-senal[data-p="2"] { stroke-dashoffset: 0; }
.fplano[data-paso="6"] [data-p="3"] { opacity: 1; }
.fplano[data-paso="6"] .pl-senal[data-p="3"] { stroke-dashoffset: 0; }
.fplano[data-paso="6"] [data-p="4"] { opacity: 1; }
.fplano[data-paso="6"] .pl-senal[data-p="4"] { stroke-dashoffset: 0; }
.fplano[data-paso="6"] [data-p="5"] { opacity: 1; }
.fplano[data-paso="6"] .pl-senal[data-p="5"] { stroke-dashoffset: 0; }
.fplano[data-paso="6"] [data-p="6"] { opacity: 1; }
.fplano[data-paso="6"] .pl-senal[data-p="6"] { stroke-dashoffset: 0; }
.fplano[data-paso="6"] [data-solo="6"] { opacity: 1; }
.fplano[data-paso="6"] [data-anillo="6"] { animation: fpAnillo 1.4s ease-out infinite; }
.fplano[data-paso="2"] [data-hasta="1"] { opacity: 0; }
.fplano[data-paso="3"] [data-hasta="1"] { opacity: 0; }
.fplano[data-paso="4"] [data-hasta="1"] { opacity: 0; }
.fplano[data-paso="5"] [data-hasta="1"] { opacity: 0; }
.fplano[data-paso="6"] [data-hasta="1"] { opacity: 0; }
.fplano[data-paso="3"] [data-hasta="2"] { opacity: 0; }
.fplano[data-paso="4"] [data-hasta="2"] { opacity: 0; }
.fplano[data-paso="5"] [data-hasta="2"] { opacity: 0; }
.fplano[data-paso="6"] [data-hasta="2"] { opacity: 0; }
.fplano[data-paso="4"] [data-hasta="3"] { opacity: 0; }
.fplano[data-paso="5"] [data-hasta="3"] { opacity: 0; }
.fplano[data-paso="6"] [data-hasta="3"] { opacity: 0; }
.fplano[data-paso="5"] [data-hasta="4"] { opacity: 0; }
.fplano[data-paso="6"] [data-hasta="4"] { opacity: 0; }
.fplano[data-paso="6"] [data-hasta="5"] { opacity: 0; }


/* ========================================================================== Perilla: que se note que se toca (4/12) */
.selector-dial { cursor: pointer; }
.selector-dial .dial-cap { transition: fill .2s ease; }
.selector-dial:hover .dial-cap { fill: #23476a; }
.dial-hint { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; color: rgba(152, 180, 206, .5); transition: color .2s ease; }
.selector-dial:hover .dial-hint { color: var(--hl); }
.pos { display: inline-flex; align-items: center; gap: .42rem; white-space: nowrap; font-size: .7rem; letter-spacing: .1em; color: var(--plate-ink); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .24); border-radius: 999px; padding: .42rem .74rem .42rem .6rem; transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.pos::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3d566e; flex: none; transition: background-color .2s ease, box-shadow .2s ease; }
.pos:hover { color: #fff; border-color: var(--hl); background: rgba(90, 174, 232, .14); }
#w-emp:checked ~ .selector-plate .pos-left, #w-edi:checked ~ .selector-plate .pos-top, #w-casa:checked ~ .selector-plate .pos-right { color: #fff; background: rgba(90, 174, 232, .26); border-color: var(--hl); }
#w-emp:checked ~ .selector-plate .pos-left::before, #w-edi:checked ~ .selector-plate .pos-top::before, #w-casa:checked ~ .selector-plate .pos-right::before { background: #2fbf71; box-shadow: 0 0 8px #2fbf71; }
.pos-top { top: -12px; }
.pos-left { left: -30px; top: 30px; }
.pos-right { right: -30px; top: 30px; }
.perilla-ayuda { display: inline-flex; align-items: center; gap: .5rem; color: var(--plate-ink); }
.perilla-ayuda::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 8px #2fbf71; animation: ayudaLed 1.8s ease-in-out infinite; }
@keyframes ayudaLed { 50% { opacity: .25; } }
@keyframes perillaInvita { 0%, 100% { transform: rotate(-56deg); } 35% { transform: rotate(-8deg); } 70% { transform: rotate(-50deg); } }
@keyframes chipLlama { 0%, 100% { box-shadow: 0 0 0 0 rgba(90, 174, 232, 0); } 45% { box-shadow: 0 0 0 6px rgba(90, 174, 232, .3); } }
#w-emp:checked ~ .selector-plate.invita .dial-pointer { animation: perillaInvita 1.5s var(--ease-expo) .25s 1; }
.selector-plate.invita .pos-top { animation: chipLlama 1s ease .55s 1; }
.selector-plate.invita .pos-right { animation: chipLlama 1s ease .95s 1; }
@media (prefers-reduced-motion: reduce) {
  .perilla-ayuda::before, #w-emp:checked ~ .selector-plate.invita .dial-pointer, .selector-plate.invita .pos { animation: none; }
}

/* Titular de la portada: más largo que antes, un poco más chico */
.pg-inicio .hero-title { font-size: clamp(2.45rem, 4.9vw, 4.25rem); line-height: 1; }

/* ========================================================================== Contacto: WhatsApp primero y la hoja de presupuesto plegada (4/12) */
.btn-lg { min-height: 54px; padding: .9rem 1.6rem; font-size: .98rem; }
.btn-lg svg { width: 20px; height: 20px; }
.contact-main { display: grid; gap: 1.1rem; align-content: start; min-width: 0; }
.contact-main > .hero-actions, .contacto-solo .hero-actions { margin: 0; }
.contacto-solo { display: grid; gap: 1.4rem; max-width: 780px; }
.pedido-pliegue > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .9rem; padding: .9rem 1.1rem; border: 1px dashed var(--border-strong); border-radius: var(--radius-md); background: var(--bg-panel); color: var(--ink); transition: border-color .2s ease, background-color .2s ease; }
.pedido-pliegue > summary::-webkit-details-marker { display: none; }
.pedido-pliegue > summary:hover { border-color: var(--ink); background: var(--bg-elevated); }
.pedido-pliegue > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pliegue-ic { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; background: var(--bg-elevated); color: var(--ink); flex: none; }
.pliegue-ic svg { width: 20px; height: 20px; }
.pliegue-txt { display: grid; gap: .15rem; flex: 1; min-width: 0; }
.pliegue-txt b { font-size: .96rem; font-weight: 600; }
.pliegue-txt small { font-size: .82rem; color: var(--ink-muted); }
.pliegue-flecha { width: 10px; height: 10px; margin: 0 .35rem .3rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .25s var(--ease-expo); flex: none; }
.pedido-pliegue[open] > summary { border-style: solid; margin-bottom: 1.7rem; }
.pedido-pliegue[open] .pliegue-flecha { transform: translateY(.3rem) rotate(-135deg); }
.pedido-pliegue[open] > .pedido { animation: panelIn .35s var(--ease-expo); }
details[id] { scroll-margin-top: 80px; }

/* Botón flotante más chico en el celular, para que tape menos (4/12) */
@media (max-width: 640px) {
  .fab { right: 12px; bottom: 12px; }
  .fab summary { font-size: .86rem; padding: .6rem .95rem; gap: .45rem; }
  .fab summary svg { width: 18px; height: 18px; }
  .fab__panel { bottom: 52px; }
}

/* Perilla en el celular: más compacta, para que no ocupe toda la pantalla */
@media (max-width: 640px) {
  .selector-plate { padding: 1.1rem 1rem .95rem; gap: .35rem; }
  .selector { margin: 6px 0 -30px; }
}

/* Celulares chicos (360 px o menos): los títulos grandes bajan un poco para que ninguna palabra larga desborde */
@media (max-width: 360px) {
  .hero-title, .pg-inicio .hero-title { font-size: 2.2rem; }
  .svc-hero .hero-title { font-size: 2.35rem; }
  .section-title { overflow-wrap: break-word; }
  .hero-actions .btn, .contacto-solo .btn, .contact-main .btn { white-space: normal; text-align: center; }
}
