/* Concepto: "patio y mapa" — fondo claro de clínica/peluquería canina, ilustración de perro con el equipo real,
   anotaciones a mano como las de un cuaderno de paseador, y un bloque técnico con el sistema Teltonika. */
:root {
  --paper: #eef3fa;      /* fondo claro azulado */
  --card: #ffffff;
  --ink: #04213e;        /* azul noche (Teltonika) */
  --ink-2: #46607d;
  --sky: #0054a6;        /* azul Teltonika, principal */
  --ball: #1d9ad4;       /* acento: azul Ojo Digital */
  --coral: #e8455f;      /* alertas */
  --leaf: #10956f;       /* estado OK */
  --line: rgba(4, 33, 62, .13);
  --tint: #dce7f4;
  --on-ball: #04213e;
  --edge: #04213e;
  --pane-bg: #04213e; --pane-fg: #eef3fa; --pane-em: #1d9ad4;
  --shadow: 0 24px 50px -28px rgba(4, 33, 62, .45);

  --f-display: "Unbounded", "Arial Rounded MT Bold", "Segoe UI", sans-serif;
  --f-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --f-data: "IBM Plex Mono", "Consolas", ui-monospace, monospace;
  --f-hand: "Caveat", "Segoe Print", cursive;
  --f-t-head: "Oswald", "Arial Narrow", sans-serif;
  --f-t-body: "Open Sans", "Segoe UI", sans-serif;

  --s-sm: .9375rem;
  --s-md: 1.0625rem;
  --s-lg: 1.3rem;
  --s-xl: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem);
  --s-2xl: clamp(2.3rem, 1.3rem + 4.2vw, 4.6rem);
  --wrap: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #04213e; --card: #173057; --ink: #ffffff; --ink-2: #c3ccda; --sky: #20c0d7; --ball: #0054a6; --on-ball: #ffffff; --edge: #000000; --pane-bg: #0054a6; --pane-fg: #ffffff; --pane-em: #20c0d7;
    --coral: #ff6f86; --leaf: #3fd19a; --line: rgba(255, 255, 255, .14); --tint: #1e3d71; /* oscuro según brandbook Teltonika; cian #20C0D7 solo para realces */
    --shadow: 0 24px 50px -28px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #04213e; --card: #173057; --ink: #ffffff; --ink-2: #c3ccda; --sky: #20c0d7; --ball: #0054a6; --on-ball: #ffffff; --edge: #000000; --pane-bg: #0054a6; --pane-fg: #ffffff; --pane-em: #20c0d7;
  --coral: #ff6f86; --leaf: #3fd19a; --line: rgba(255, 255, 255, .14); --tint: #1e3d71; /* oscuro según brandbook Teltonika; cian #20C0D7 solo para realces */
  --shadow: 0 24px 50px -28px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: var(--s-md); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: calc(var(--wrap) + 32px); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.h2 { font-family: var(--f-display); font-weight: 700; font-size: var(--s-xl); line-height: 1.12; letter-spacing: -.02em; }
.hand { font-family: var(--f-hand); font-size: 1.6rem; line-height: 1.05; color: var(--sky); font-weight: 600; }
.mono { font-family: var(--f-data); font-size: .85rem; letter-spacing: .02em; }
.lead { color: var(--ink-2); max-width: 58ch; }

.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .95rem 1.35rem; border-radius: 14px; font: 700 var(--s-sm)/1 var(--f-body); text-decoration: none; cursor: pointer; border: 2px solid var(--ink); transition: transform .15s, box-shadow .15s; }
.btn--ball { background: var(--ball); color: var(--on-ball); border-color: var(--edge); box-shadow: 4px 4px 0 var(--edge); }
.btn--ball:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--edge); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--card); }
.btn svg { width: 18px; height: 18px; }

/* cabecera */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.top__in { display: flex; align-items: center; gap: 1.2rem; padding-block: .75rem; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand img { width: 50px; height: 50px; }
.brand b { font-family: var(--f-display); font-size: 1.3rem; letter-spacing: -.02em; }
.nav { margin-left: auto; display: flex; gap: 1.3rem; align-items: center; }
.nav a { text-decoration: none; font-size: var(--s-sm); font-weight: 700; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.nav a.btn { color: var(--on-ball); padding: .65rem 1rem; }
.theme-btn { width: 40px; height: 40px; border-radius: 12px; border: 2px solid var(--line); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.theme-btn svg { width: 18px; height: 18px; }
@media (max-width: 880px) { .nav a:not(.btn) { display: none; } }

/* héroe */
.hero { position: relative; overflow: hidden; padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem); }
.hero__topo { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--sky); opacity: .24; pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }
.hero__copy { display: grid; gap: 1.5rem; }
.ask { font-family: var(--f-hand); font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); color: var(--ink-2); transform: rotate(-2deg); transform-origin: left; }
.hero h1 { font-family: var(--f-display); font-weight: 800; font-size: var(--s-2xl); line-height: 1.02; letter-spacing: -.035em; }
.hero h1 .hl { background: linear-gradient(transparent 58%, var(--ball) 58%, var(--ball) 92%, transparent 92%); padding-inline: .08em; color: var(--ink); }
:root[data-theme="dark"] .hero h1 .hl { color: var(--sky); background: none; }
:root[data-theme="dark"] .hero { background: linear-gradient(135deg, #04213e 0%, #173057 55%, #1e3d71 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero h1 .hl { color: var(--sky); background: none; } :root:not([data-theme="light"]) .hero { background: linear-gradient(135deg, #04213e 0%, #173057 55%, #1e3d71 100%); } }
.coords { display: inline-flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center; font-family: var(--f-data); font-size: .9rem; color: var(--ink-2); border: 2px dashed var(--line); border-radius: 12px; padding: .55rem .8rem; justify-self: start; }
.coords b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.coords .live { width: 9px; height: 9px; border-radius: 50%; background: var(--leaf); animation: blink 1.4s infinite; }
.coords.is-out .live { background: var(--coral); }
@keyframes blink { 50% { opacity: .25; } }
.hero__sub { font-size: var(--s-lg); color: var(--ink-2); max-width: 36ch; line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.stage { position: relative; max-width: 520px; width: 100%; justify-self: center; }
.dog { width: 100%; height: auto; display: block; }
.mapcard { position: absolute; left: -12%; top: -3%; width: 40%; aspect-ratio: 1; background: var(--card); border: 2px solid var(--ink); border-radius: 22px; overflow: hidden; box-shadow: 6px 6px 0 var(--edge); transform: rotate(-4deg); }
.mapcard canvas { width: 100%; height: 100%; display: block; }
.mapcard__tag { position: absolute; left: 8px; bottom: 8px; font-family: var(--f-data); font-size: .7rem; background: var(--card); padding: .15rem .45rem; border-radius: 6px; border: 1px solid var(--line); }
.note { position: absolute; font-family: var(--f-hand); font-size: clamp(1.25rem, 1rem + .8vw, 1.6rem); line-height: 1; color: var(--ink); display: flex; align-items: flex-end; gap: .3rem; pointer-events: none; }
.note svg { width: 54px; height: 40px; color: var(--ink); flex: none; }
.note--map { left: -10%; top: 36%; transform: rotate(-6deg); }
.note--dev { right: -2%; bottom: 7%; flex-direction: row-reverse; text-align: right; transform: rotate(4deg); }
.alert { position: absolute; right: -2%; top: 8%; width: min(260px, 64%); background: var(--card); border: 2px solid var(--coral); border-radius: 16px; padding: .7rem .85rem; display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; line-height: 1.35; box-shadow: var(--shadow); opacity: 0; transform: translateY(-10px) scale(.96); transition: opacity .35s, transform .35s; }
.alert.show { opacity: 1; transform: none; }
.alert b { display: block; }
.alert small { font-family: var(--f-data); font-size: .72rem; color: var(--ink-2); }
.alert__ic { width: 30px; height: 30px; border-radius: 9px; background: color-mix(in srgb, var(--coral) 16%, transparent); color: var(--coral); display: grid; place-items: center; flex: none; }
.alert__ic svg { width: 17px; height: 17px; }
@media (max-width: 560px) { .stage { margin-top: 2.5rem; } .note--map { left: 0; top: 34%; } .note svg { width: 40px; } .mapcard { left: -2%; top: -6%; width: 36%; } .tags { gap: .45rem; padding-block: 1rem; } .tag { font-size: .8rem; padding: .35rem .65rem .35rem .55rem; } }

/* placas */
.tags { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; padding-block: 1.4rem; border-block: 2px solid var(--ink); background: var(--card); }
.tag { position: relative; display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem .4rem .65rem; border-radius: 10px 999px 999px 10px; background: var(--tint); font-weight: 700; font-size: .9rem; }
.tag svg { width: 16px; height: 16px; color: var(--sky); }

/* un día de Luna */
.day { padding-block: clamp(3.5rem, 7vw, 6rem); }
.day__head { display: flex; flex-wrap: wrap; gap: 1rem 3rem; align-items: end; justify-content: space-between; margin-bottom: 2.6rem; }
.day__head .lead { max-width: 46ch; }
.trail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.2rem; position: relative; }
.trail::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; border-top: 3px dotted color-mix(in srgb, var(--ink) 35%, transparent); }
.stop { position: relative; display: grid; gap: .5rem; align-content: start; min-width: 0; }
.stop__pin { width: 48px; height: 48px; border-radius: 50% 50% 50% 8px; transform: rotate(-45deg); background: var(--card); border: 2px solid var(--ink); display: grid; place-items: center; position: relative; z-index: 1; }
.stop__pin svg { width: 22px; height: 22px; transform: rotate(45deg); color: var(--ink); }
.stop time { font-family: var(--f-data); font-weight: 600; font-size: 1.05rem; margin-top: .4rem; }
.stop h3 { font-size: 1.05rem; line-height: 1.25; }
.stop p { color: var(--ink-2); font-size: .92rem; line-height: 1.5; }
.stop--alert .stop__pin { background: var(--coral); border-color: var(--coral); }
.stop--alert .stop__pin svg { color: #fff; }
.stop--alert time { color: var(--coral); }
.stop--ok .stop__pin { background: var(--ball); }
.stop--ok .stop__pin svg { color: var(--on-ball); }
@media (max-width: 1060px) { .trail { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.4rem; } .trail::before { display: none; } }
@media (max-width: 620px) {
  .trail { grid-template-columns: 1fr; row-gap: 1.6rem; padding-left: 0; }
  .trail::before { display: block; left: 23px; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 3px dotted color-mix(in srgb, var(--ink) 35%, transparent); }
  .stop { grid-template-columns: 48px 1fr; column-gap: 1rem; }
  .stop__pin { grid-row: span 3; }
  .stop time { margin-top: 0; }
}

/* app */
.app { background: var(--tint); padding-block: clamp(3.5rem, 7vw, 6rem); border-block: 2px solid var(--ink); }
.app__head { display: grid; gap: .8rem; margin-bottom: 2.4rem; max-width: 640px; }
.app__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px minmax(0, 1fr); gap: clamp(1rem, 3vw, 2.5rem); align-items: center; }
.feats { display: grid; gap: .8rem; }
.feat { display: grid; grid-template-columns: 44px 1fr; gap: .8rem; text-align: left; align-items: start; background: var(--card); color: var(--ink); border: 2px solid var(--line); border-radius: 16px; padding: .9rem 1rem; cursor: pointer; font: inherit; transition: border-color .2s, box-shadow .2s, transform .2s; }
.feat:hover { border-color: var(--ink); }
.feat[aria-selected="true"] { border-color: var(--ink); box-shadow: 4px 4px 0 var(--edge); transform: translate(-2px, -2px); }
.feat__ic { width: 44px; height: 44px; border-radius: 12px; background: var(--tint); display: grid; place-items: center; color: var(--sky); }
.feat[aria-selected="true"] .feat__ic { background: var(--ball); color: var(--on-ball); }
.feat__ic svg { width: 22px; height: 22px; }
.feat b { display: block; font-size: 1rem; }
.feat span { color: var(--ink-2); font-size: .88rem; line-height: 1.45; display: block; margin-top: .15rem; }
.app__foot { margin-top: 2rem; font-family: var(--f-data); font-size: .82rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
@media (max-width: 980px) { .app__grid { grid-template-columns: 1fr 1fr; } .phone { grid-column: 1 / -1; grid-row: 1; margin-inline: auto; } }
@media (max-width: 560px) { .app__grid { grid-template-columns: 1fr; } }

.phone { width: 300px; max-width: 100%; aspect-ratio: 9 / 18.5; border-radius: 44px; padding: 10px; background: #04213e; box-shadow: 10px 10px 0 var(--ball), var(--shadow); position: relative; }
.phone__screen { position: relative; height: 100%; border-radius: 35px; overflow: hidden; background: #f5f8fc; color: #04213e; font-family: var(--f-body); font-size: 13px; }
.phone__notch { position: absolute; top: 9px; left: 50%; translate: -50% 0; width: 84px; height: 22px; background: #04213e; border-radius: 20px; z-index: 5; }
.scr { position: absolute; inset: 0; padding: 44px 14px 14px; display: flex; flex-direction: column; gap: 9px; opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s; pointer-events: none; }
.scr.on { opacity: 1; transform: none; pointer-events: auto; }
.scr__title { font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; align-items: center; }
.scr__title span { font-family: var(--f-data); font-size: 11px; font-weight: 400; color: #4a6178; }
.scr__map { flex: 1; border-radius: 18px; overflow: hidden; background: #e4ecf6; }
.scr__map svg { width: 100%; height: 100%; display: block; }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 11px; padding: 4px 9px; border-radius: 999px; background: #dce7f4; color: #04213e; font-weight: 700; }
.chip--ok { background: #1d9ad4; color: #04213e; }
.card-m { background: #fff; border: 1px solid rgba(14, 42, 71, .1); border-radius: 14px; padding: 9px 11px; display: flex; gap: 10px; align-items: center; }
.card-m b { display: block; font-size: 13px; }
.card-m small { color: #4a6178; font-size: 11.5px; }
.ava { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 12px; color: #04213e; }
.bar { height: 6px; border-radius: 3px; background: #dce7f4; overflow: hidden; margin-top: 5px; }
.bar i { display: block; height: 100%; background: #10956f; }
.alert-i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.alert-i svg { width: 16px; height: 16px; }

/* para quién: acordeón horizontal */
.who { padding-block: clamp(3.5rem, 7vw, 6rem); }
.who__head { display: flex; flex-wrap: wrap; gap: 1rem 3rem; justify-content: space-between; align-items: end; margin-bottom: 2.2rem; }
.acc { display: flex; gap: .7rem; min-height: 360px; }
.pane { position: relative; flex: 1; min-width: 0; border: 2px solid var(--ink); border-radius: 22px; background: var(--card); overflow: hidden; transition: flex .45s cubic-bezier(.3, .8, .2, 1), background .3s; display: flex; flex-direction: column; }
.pane[data-open="true"] { flex: 4.2; background: var(--pane-bg); color: var(--pane-fg); }
.pane__btn { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; padding: 1.1rem; height: 100%; width: 100%; }
.pane__btn:focus-visible { outline: 3px solid var(--sky); outline-offset: -6px; }
.pane__ic { width: 48px; height: 48px; border-radius: 14px; background: var(--ball); color: var(--on-ball); display: grid; place-items: center; }
.pane__ic svg { width: 24px; height: 24px; }
.pane__name { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; line-height: 1.15; writing-mode: vertical-rl; transform: rotate(180deg); align-self: flex-start; }
.pane[data-open="true"] .pane__name { writing-mode: horizontal-tb; transform: none; font-size: var(--s-lg); }
.pane[data-open="true"] .pane__btn { height: auto; flex-direction: row; align-items: center; justify-content: flex-start; padding-bottom: .4rem; }
.pane__body { padding: .4rem 1.3rem 1.4rem; display: none; gap: 1.1rem; }
.pane[data-open="true"] .pane__body { display: grid; animation: fade .4s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.pane__big { font-family: var(--f-display); font-size: clamp(1.15rem, 1rem + .9vw, 1.6rem); line-height: 1.25; max-width: 30ch; }
.pane__big em { font-style: normal; color: var(--pane-em); }
.pane ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.pane li { border-top: 2px solid color-mix(in srgb, var(--pane-fg) 30%, transparent); padding-top: .7rem; font-size: .92rem; line-height: 1.45; color: color-mix(in srgb, var(--pane-fg) 78%, transparent); }
.pane li b { display: block; color: var(--pane-fg); font-size: 1rem; margin-bottom: .2rem; }
@media (max-width: 900px) {
  .acc { flex-direction: column; min-height: 0; }
  .pane__name { writing-mode: horizontal-tb; transform: none; align-self: center; }
  .pane__btn { flex-direction: row; align-items: center; justify-content: flex-start; height: auto; }
  .pane ul { grid-template-columns: 1fr; }
}

/* comparación */
.vs { padding-block: clamp(3rem, 6vw, 5rem); background: var(--tint); border-block: 2px solid var(--ink); }
.vs__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .vs__grid { grid-template-columns: 1fr; } }
.vs__intro { display: grid; gap: 1rem; }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .95rem; background: var(--card); border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; }
.cmp th, .cmp td { text-align: left; padding: .8rem .95rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { font-family: var(--f-data); font-size: .78rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-2); background: var(--paper); }
.cmp thead th.us { background: var(--ball); color: var(--on-ball); }
.cmp td.us { background: color-mix(in srgb, var(--ball) 22%, transparent); font-weight: 700; }
.cmp tbody tr:last-child td { border-bottom: 0; }
.y { color: var(--leaf); font-weight: 700; } .n { color: var(--coral); font-weight: 700; }
@media (max-width: 640px) {
  .cmp, .cmp tbody, .cmp tr, .cmp td { display: block; width: 100%; }
  .cmp thead { display: none; }
  .cmp tr { border-bottom: 2px solid var(--ink); padding: .4rem 0; }
  .cmp tbody tr:last-child { border-bottom: 0; }
  .cmp td { border: 0; padding: .3rem .95rem; display: grid; grid-template-columns: 9.5rem 1fr; gap: .6rem; }
  .cmp td:first-child { font-weight: 700; display: block; padding-top: .6rem; }
  .cmp td:not(:first-child)::before { content: attr(data-l); font-family: var(--f-data); font-size: .75rem; color: var(--ink-2); padding-top: .15rem; }
  .cmp td.us { background: transparent; }
}

/* Ojo Digital */
.od { padding-block: clamp(3.5rem, 7vw, 6rem); }
.od__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .od__grid { grid-template-columns: 1fr; } }
.od__copy { display: grid; gap: 1.1rem; }
.od__logo { background: #ffffff; border-radius: 22px; padding: clamp(1.2rem, 3vw, 2rem); justify-self: start; border: 2px solid var(--line); }
.od__logo img { width: clamp(180px, 30vw, 260px); height: auto; }
.od__copy p { color: var(--ink-2); max-width: 58ch; }
.od__copy p strong { color: var(--ink); }
.caps { display: flex; flex-wrap: wrap; gap: .45rem; }
.caps span { font-size: .85rem; font-weight: 700; padding: .35rem .75rem; border-radius: 999px; background: var(--tint); }

.contact { background: var(--card); border: 2px solid var(--ink); border-radius: 24px; padding: clamp(1.2rem, 3vw, 2rem); display: grid; gap: 1rem; box-shadow: 8px 8px 0 var(--edge); }
.contact h3 { font-family: var(--f-display); font-size: var(--s-lg); }
.field { display: grid; gap: .3rem; }
.field label { font-weight: 700; font-size: .88rem; }
.field input, .field select, .field textarea { font: var(--s-sm)/1.4 var(--f-body); color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: 12px; padding: .75rem .85rem; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sky); outline: none; }
.field textarea { min-height: 96px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } }
.contact__alt { display: grid; gap: .25rem; font-size: .92rem; color: var(--ink-2); border-top: 2px dashed var(--line); padding-top: .9rem; }
.contact__alt b { color: var(--ink); user-select: all; }
.form-msg { font-size: .92rem; min-height: 1.2em; }

.foot { border-top: 2px solid var(--ink); padding-block: 1.8rem; font-size: .85rem; color: var(--ink-2); }
.foot__in { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.foot__od { display: flex; align-items: center; gap: .6rem; }
.foot__od img { width: 34px; height: 34px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- HARDWARE · sistema Teltonika ---------- */
.hw {
  --t-blue: #0054a6; --t-navy: #1e3d71; --t-deep: #04213e; --t-cyan: #20c0d7; --t-grey: #f1f2f4;
  background: linear-gradient(135deg, var(--t-deep) 0%, #173057 45%, var(--t-blue) 100%);
  color: #ffffff;
  font-family: var(--f-t-body);
  padding-block: clamp(3.5rem, 7vw, 6rem);
  position: relative; overflow: hidden;
  color-scheme: dark;
}
.hw::after { /* rejilla de circuito tenue */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 80% 30%, #000 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse at 80% 30%, #000 0%, transparent 60%);
}
.hw .wrap { position: relative; z-index: 1; }
.hw__top { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; padding-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.hw__logo { padding: 9px; /* zona de exclusión: ½ alto del ícono */ }
.hw__logo img { width: 230px; height: auto; }
.hw__kicker { font-family: var(--f-t-head); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; font-size: 1rem; color: rgba(255, 255, 255, .75); }
.hw__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); padding-top: 2.5rem; align-items: start; }
@media (max-width: 900px) { .hw__grid { grid-template-columns: 1fr; } }
.hw h2 { font-family: var(--f-t-head); font-weight: 500; text-transform: uppercase; font-size: clamp(2.4rem, 1.6rem + 3vw, 4.2rem); line-height: 1; letter-spacing: .01em; }
.hw h2 small { display: block; font-size: .38em; font-weight: 400; letter-spacing: .12em; color: rgba(255, 255, 255, .7); margin-top: .7rem; }
.hw__intro { display: grid; gap: 1.3rem; }
.hw__intro p { color: rgba(255, 255, 255, .82); max-width: 52ch; font-size: var(--s-sm); line-height: 1.7; }
.hw__rule { width: 120px; height: 2px; background: #fff; }

/* ilustración interactiva del equipo */
.device { position: relative; max-width: 440px; margin-inline: auto; }
.device__stage { position: relative; }
.device svg { width: 100%; height: auto; display: block; overflow: visible; }
.device__stage img { position: relative; width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); transition: opacity .3s; }
.views { display: flex; gap: .4rem; justify-content: center; margin-top: 1rem; flex-wrap: wrap; }
.views button { font: 500 .8rem/1 var(--f-t-head); text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .75); background: transparent; border: 1px solid rgba(255, 255, 255, .3); padding: .5rem .85rem; cursor: pointer; }
.views button[aria-pressed="true"] { background: #fff; color: #0054a6; border-color: #fff; }
.device__glow { position: absolute; inset: 12% 10%; border-radius: 50%; background: radial-gradient(circle, rgba(32, 192, 215, .35), transparent 65%); filter: blur(20px); }
.hot {
  position: absolute; width: 28px; height: 28px; translate: -50% -50%;
  border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  background: rgba(255, 255, 255, .95); color: var(--t-blue);
  font: 700 13px/28px var(--f-t-body);
  box-shadow: 0 0 0 6px rgba(32, 192, 215, .28);
  animation: hotpulse 2.4s infinite;
}
@keyframes hotpulse { 50% { box-shadow: 0 0 0 11px rgba(32, 192, 215, .06); } }
.hot[aria-expanded="true"] { background: var(--t-cyan); color: #04213e; }
.device__cap {
  margin-top: 1rem; min-height: 4.6rem;
  border-left: 2px solid var(--t-cyan);
  padding: .3rem 0 .3rem 1rem; font-size: var(--s-sm); color: rgba(255, 255, 255, .88);
}
.device__cap b { font-family: var(--f-t-head); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; display: block; color: #fff; }
.device__ref { font-size: .75rem; color: rgba(255, 255, 255, .55); margin-top: .5rem; }

.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .16); margin-top: 2.5rem; }
@media (max-width: 760px) { .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .specs { grid-template-columns: 1fr; } }
.spec { background: #0b2b55; padding: 1.2rem; display: grid; grid-template-columns: 52px 1fr; gap: .9rem; align-items: start; }
.spec__ic { width: 52px; height: 52px; }
.spec h3 { font-family: var(--f-t-head); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; font-size: 1.15rem; line-height: 1.15; }
.spec p { font-size: .84rem; color: rgba(255, 255, 255, .75); line-height: 1.5; margin-top: .3rem; }
.hw__fine { font-size: .78rem; color: rgba(255, 255, 255, .6); margin-top: 1.2rem; max-width: 90ch; line-height: 1.6; }
.hw__fine a { color: #fff; }

/* funda propia */
.case { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2rem; align-items: center; margin-top: 3rem; background: var(--t-grey); color: #414042; border-radius: 4px; overflow: hidden; }
@media (max-width: 760px) { .case { grid-template-columns: 1fr; } }
.case img { width: 100%; height: 100%; object-fit: cover; background: #f6f6f6; }
.case__txt { padding: 1.6rem 1.6rem 1.6rem 0; display: grid; gap: .7rem; }
@media (max-width: 760px) { .case__txt { padding: 0 1.4rem 1.6rem; } }
.case__txt h3 { font-family: var(--f-t-head); font-weight: 500; text-transform: uppercase; font-size: 1.6rem; color: #1e3d71; line-height: 1.1; }
.case__txt p { font-size: .92rem; line-height: 1.65; }
.case__badge { justify-self: start; font-family: var(--f-t-head); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; background: #0054a6; color: #fff; padding: .25rem .6rem; }


@media (max-width: 420px) {
  .top__in { gap: .6rem; }
  .nav { gap: .5rem; }
  .brand img { width: 42px; height: 42px; }
  .brand b { font-size: 1rem; }
  .nav a.btn { padding: .6rem .8rem; }
}

.fine { font-size: .8rem; line-height: 1.5; color: var(--ink-2); margin-top: .9rem; max-width: 80ch; }

/* Selector de perro: rueda con las razas */
.picker { position: relative; }
.picker__btn svg { width: 22px; height: 22px; }
.picker.open .picker__btn { background: var(--ball); color: var(--on-ball); border-color: var(--ball); }
.wheel { position: absolute; top: calc(100% + 12px); left: 50%; width: 330px; height: 330px; margin-left: -165px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--edge), var(--shadow);
  opacity: 0; visibility: hidden; transform: scale(.6) rotate(-30deg); transform-origin: 50% 0;
  transition: opacity .25s, transform .35s cubic-bezier(.2,.9,.3,1.2), visibility 0s .35s; z-index: 70; }
.picker.open .wheel { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .35s cubic-bezier(.2,.9,.3,1.2), visibility 0s; }
.picker::after { content: ""; position: absolute; left: -20px; right: -20px; top: 100%; height: 14px; } /* puente para que el mouse no cierre la rueda */
.wheel__item { all: unset; box-sizing: border-box; position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  border-radius: 50%; cursor: pointer; transform: translate(var(--x), var(--y)) scale(.4); opacity: 0;
  transition: transform .35s cubic-bezier(.2,.9,.3,1.3) var(--d), opacity .25s var(--d); }
.picker.open .wheel__item { transform: translate(var(--x), var(--y)); opacity: 1; }
.wheel__item svg { width: 100%; height: 100%; display: block; overflow: visible; }
.wheel__item:hover, .wheel__item:focus-visible { transform: translate(var(--x), var(--y)) scale(1.15) !important; z-index: 2; }
.wheel__item:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.wheel__item[aria-checked="true"]::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 3px solid var(--coral); }
.wheel__center { all: unset; box-sizing: border-box; position: absolute; left: 50%; top: 50%; width: 112px; height: 112px; margin: -56px 0 0 -56px;
  border-radius: 50%; background: var(--tint); display: grid; place-items: center; text-align: center; cursor: pointer; padding: .6rem; }
.wheel__center:focus-visible { outline: 3px solid var(--sky); }
.wheel__label { font-size: .72rem; line-height: 1.25; color: var(--ink-2); }
.wheel__label b { display: block; font-family: var(--f-display); font-size: .82rem; color: var(--ink); margin-bottom: .15rem; }
@media (max-width: 560px) {
  .wheel { position: fixed; top: calc(70px + env(safe-area-inset-top, 0px)); left: 50%; }
}
@media (max-width: 420px) {
  .top__in { gap: .5rem; }
  .nav { gap: .35rem; }
  .brand { gap: .4rem; }
  .brand img { width: 38px; height: 38px; }
  .brand b { font-size: .9rem; }
  .theme-btn { width: 36px; height: 36px; border-radius: 10px; }
  .nav a.btn { padding: .55rem .65rem; font-size: .8rem; }
}
