/* PRESERTEC · sitio público. Tokens de la identidad oficial (frontend/src/estilos.css): verde protagonista, rojo solo
   como acento o alerta, neutros. IBM Plex Sans para el texto y IBM Plex Mono para cifras. Sin dependencias. */
:root {
  --verde-50: #F3F9EA; --verde-100: #E5F2D0; --verde-200: #CBE6A3; --verde-300: #A6D56B; --verde-400: #84DB43;
  --verde-500: #62A11A; --marca: #4F8B0D; --accion: #3F7A0A; --accion-h: #2F5807; --verde-900: #1F3C05;
  --rojo: #D32E12; --rojo-bg: #FDECE8; --aviso: #FFCC00;
  --tinta: #131313; --texto: #333333; --gris: #6B6B6B; --linea: #DEDEDE; --linea-f: #CDCDCD;
  --fondo: #FFFFFF; --tono: #F5F5F5; --blanco: #FFFFFF; --foco: #1F5FA8;
  --equipo: #1B1D1A; --lcd: #0E1A08; --led-off: #3A3D38;
  --r: 4px; --r-panel: 10px;
  --g: clamp(16px, 4vw, 40px);
  --sec: clamp(72px, 10vw, 144px);
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --salir: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--fondo); color: var(--texto);
  font: 400 18px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accion); text-underline-offset: 3px; }
h1, h2, h3 { color: var(--tinta); margin: 0; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.2vw, 80px); line-height: 1; letter-spacing: -0.035em; }
h2 { font-size: clamp(31px, 4.2vw, 54px); line-height: 1.05; letter-spacing: -0.03em; max-width: 20ch; }
h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 2px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.saltar { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--tinta); color: #fff; padding: 10px 16px; border-radius: var(--r); }
.saltar:focus { top: 12px; }
.w { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--g); }
.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.pic { width: 44px; height: 44px; fill: none; stroke: var(--marca); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.num, .hechos dd, .ctl, .serv-tag { font-variant-numeric: tabular-nums; }

/* ---------- botones ---------- */
.b {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 18px; border-radius: var(--r); border: 2px solid transparent;
  font-weight: 600; font-size: 17px; line-height: 1.15; text-decoration: none; text-align: center;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: transform 160ms ease-out, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.b:active { transform: scale(0.97); }
.b-wa, .b-prim { background: var(--accion); color: #fff; }
.b-cot { background: transparent; border-color: var(--tinta); color: var(--tinta); }
.b-sos { background: transparent; border-color: var(--rojo); color: var(--tinta); }
.b-sos .i { color: var(--rojo); }
.b-grande { width: 100%; min-height: 56px; font-size: 18px; }
.b[disabled] { opacity: .6; cursor: progress; }
.enlace { background: none; border: 0; padding: 0; color: var(--accion); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.enlace-flecha { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--accion); margin-top: 20px; }
.enlace-flecha .i { width: 18px; height: 18px; transition: transform 160ms ease-out; }
@media (hover: hover) and (pointer: fine) {
  .b-wa:hover, .b-prim:hover { background: var(--accion-h); }
  .b-cot:hover { background: var(--tinta); color: #fff; }
  .b-sos:hover { background: var(--rojo-bg); }
  .enlace-flecha:hover .i { transform: translateX(4px); }
  .enlace:hover { color: var(--accion-h); }
}
.lg { display: inline; } .sm { display: none; }

/* El trío de contacto: misma forma y mismo lugar en cada sección */
.trio { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
/* En columnas angostas: WhatsApp arriba a todo el ancho; cotización y emergencia debajo */
@media (min-width: 600px) {
  .serv-cab .trio, .serv-cuerpo .trio, .lic-txt .trio, .sg-txt .trio, .con-datos .trio, .faq-grid .trio, .ficha-info .trio {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 470px;
  }
  .serv-cab .trio .b-wa, .serv-cuerpo .trio .b-wa, .lic-txt .trio .b-wa, .sg-txt .trio .b-wa, .con-datos .trio .b-wa, .faq-grid .trio .b-wa, .ficha-info .trio .b-wa { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  .trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .trio .b { flex-direction: column; gap: 4px; min-height: 66px; padding: 8px 4px; font-size: 14px; }
  .trio .lg { display: none; } .trio .sm { display: inline; }
}

/* ---------- cabecera ---------- */
.cab { position: sticky; top: 0; z-index: 40; background: var(--blanco); border-bottom: 1px solid var(--linea); }
.cab-in { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.marca img { height: 38px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--tinta); text-decoration: none; font-weight: 500; font-size: 16px; padding: 8px 0; border-bottom: 2px solid transparent; }
.cab-sos { display: flex; flex-direction: column; text-decoration: none; color: var(--gris); font-size: 13px; line-height: 1.2; padding-left: 18px; position: relative; }
.cab-sos .punto { position: absolute; left: 0; top: 5px; }
.cab-sos b { color: var(--tinta); font: 600 16px/1.3 var(--mono); }
.cab-cot { min-height: 46px; font-size: 16px; padding: 0 18px; }
.cab-menu { display: none; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px; margin-left: auto; background: none; border: 2px solid var(--tinta); border-radius: var(--r); font-weight: 600; color: var(--tinta); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { border-bottom-color: var(--marca); } }
.punto { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--rojo); box-shadow: 0 0 0 0 rgba(211, 46, 18, .5); animation: latido 2.4s ease-out infinite; }
@keyframes latido { 0% { box-shadow: 0 0 0 0 rgba(211, 46, 18, .45); } 70%, 100% { box-shadow: 0 0 0 10px rgba(211, 46, 18, 0); } }
@media (max-width: 1080px) { .cab-sos span { display: none; } .nav { gap: 20px; } }
@media (max-width: 899px) {
  .cab-in { min-height: 64px; gap: 12px; }
  .marca img { height: 30px; }
  .cab-sos, .cab-cot { display: none; }
  .cab-menu { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--blanco); border-bottom: 1px solid var(--linea); padding: 8px var(--g) 16px; box-shadow: 0 16px 32px -20px rgba(0, 0, 0, .3); }
  .nav.abierto { display: flex; }
  .nav a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--linea); }
  .nav a:last-child { border-bottom: 0; }
}

/* ---------- inicio ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); }
.hero h1 { max-width: 24ch; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 5vw, 72px); margin-top: clamp(28px, 4vw, 56px); align-items: start; }
.lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; color: var(--texto); max-width: 40ch; }
.hero-detalle { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-weight: 600; text-decoration: none; }
.hero-detalle[hidden] { display: none; }
.hechos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; margin: 56px 0 0; max-width: 520px; }
.hechos div { display: flex; flex-direction: column-reverse; gap: 4px; }
.hechos dt { font-size: 15px; color: var(--gris); line-height: 1.35; }
.hechos dd { margin: 0; font: 600 clamp(34px, 3.6vw, 46px)/1 var(--mono); color: var(--tinta); letter-spacing: -0.02em; }
.hechos dd.txt { font-family: var(--sans); letter-spacing: -0.03em; }
@media (max-width: 899px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hechos { margin-top: 40px; } }

/* Módulo de control (ilustración en HTML: secuencia de un corte de red) */
.equipo { margin: 0; }
.ctl { background: var(--equipo); border-radius: 18px; padding: clamp(16px, 2.4vw, 26px); color: #BFC5B9; font-family: var(--mono); box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .55); }
.ctl-cab { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--verde-300); margin-bottom: 14px; }
.ctl-modo { border: 1px solid #4A5046; border-radius: 3px; padding: 2px 8px; color: #E5F2D0; }
.ctl-lcd { background: var(--lcd); border-radius: 8px; padding: clamp(14px, 2vw, 22px); box-shadow: inset 0 0 0 1px #1F3C05, inset 0 6px 18px rgba(0, 0, 0, .5); }
.ctl-estado { font-size: 15px; color: #F3F9EA; min-height: 1.5em; margin-bottom: 14px; }
.ctl[data-estado="1"] .ctl-estado { color: #FF8A73; }
.ctl-lect { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; margin: 0; }
.ctl-lect div { min-width: 0; }
.ctl-lect dt { font-size: 12px; color: var(--verde-400); opacity: .85; }
.ctl-lect dd { margin: 2px 0 0; font-size: 14px; color: #A6B59A; white-space: nowrap; }
.ctl-lect b { font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; color: #F3F9EA; letter-spacing: -0.02em; }
.ctl-barra { height: 4px; background: #1F3C05; border-radius: 2px; margin-top: 18px; overflow: hidden; }
.ctl-barra i { display: block; height: 100%; width: 0; background: var(--verde-400); transition: width 900ms var(--salir); }
.ctl-leds { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 13px; }
.ctl-leds li { display: flex; align-items: center; gap: 8px; }
.ctl-leds li::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--led-off); transition: background-color 200ms ease; }
.ctl-leds li[data-on="ok"]::before { background: var(--verde-500); }
.ctl-leds li[data-on="falla"]::before { background: var(--rojo); animation: parpadeo 700ms steps(2, start) infinite; }
@keyframes parpadeo { to { visibility: hidden; } }
.ctl-teclas { display: flex; gap: 14px; margin-top: 18px; }
.ctl-teclas .k { width: 34px; height: 34px; border-radius: 50%; background: #2A2D28; box-shadow: inset 0 0 0 3px #3A3D38; }
.ctl-teclas .k-stop { background: #8E1F0C; }
.ctl-teclas .k-start { background: var(--accion); }
.equipo figcaption { font-size: 14px; color: var(--gris); margin-top: 14px; line-height: 1.45; }
.equipo figcaption .enlace { font-size: 14px; }

/* ---------- secciones ---------- */
.sec { padding: var(--sec) 0; }
.tono { background: var(--tono); }
.sec-cab { display: grid; gap: 20px; max-width: 760px; }
.sec-cab p, .serv-cab p, .lic-txt > p, .sg-txt > p, .con-datos > p, .sos p { font-size: 19px; max-width: 58ch; }
.lista-ok { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.lista-ok li { padding-left: 32px; position: relative; }
.lista-ok li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F8B0D' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / contain no-repeat; }
.lista-ok b { color: var(--tinta); }

/* Servicios: índice desplegable */
.serv-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.serv-cab { position: sticky; top: 120px; display: grid; gap: 20px; }
.serv-cab .trio { margin-top: 12px; }
.serv { border-top: 1px solid var(--linea); }
.serv:last-child { border-bottom: 1px solid var(--linea); }
.serv summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 44px minmax(0, 1fr) 24px;
  grid-template-areas: "pic tit abre" "pic d abre" "pic tag abre"; column-gap: 22px; row-gap: 6px; padding: 26px 0; align-items: start;
}
.serv summary::-webkit-details-marker { display: none; }
.serv .pic { grid-area: pic; }
.serv h3 { grid-area: tit; }
.serv-d { grid-area: d; color: var(--texto); font-size: 17px; line-height: 1.45; }
.serv-tag { grid-area: tag; justify-self: start; margin-top: 6px; font: 500 13px/1 var(--mono); color: var(--accion-h); background: var(--verde-50); padding: 6px 9px; border-radius: 3px; }
.serv .abre { grid-area: abre; margin-top: 4px; color: var(--tinta); transition: transform 200ms var(--salir); }
.serv[open] .abre { transform: rotate(180deg); }
.serv-cuerpo { padding: 0 0 36px 66px; }
.serv-cuerpo > p { max-width: 62ch; }
.serv:target summary h3, .serv.destacado summary h3 { color: var(--accion); }
@media (hover: hover) and (pointer: fine) { .serv summary:hover h3 { color: var(--accion); } }
@media (max-width: 899px) {
  .serv-grid { grid-template-columns: minmax(0, 1fr); }
  .serv-cab { position: static; }
}
@media (max-width: 599px) {
  .serv summary { grid-template-columns: 36px minmax(0, 1fr) 22px; column-gap: 14px; padding: 22px 0; }
  .serv .pic { width: 36px; height: 36px; }
  .serv h3 { font-size: 20px; }
  .serv-cuerpo { padding-left: 0; }
}

/* Contratos: plan anual */
.plan-marco { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); margin-top: 56px; align-items: start; }
.plan { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.plan caption { caption-side: bottom; text-align: left; font-size: 14px; color: var(--gris); padding-top: 10px; }
.plan thead th { font: 500 13px var(--mono); color: var(--gris); padding-bottom: 4px; }
.plan thead th:first-child, .plan tbody th { width: 128px; }
.plan abbr { text-decoration: none; }
.plan tbody th { text-align: left; font-size: 15px; font-weight: 600; color: var(--tinta); padding-right: 8px; }
.plan td { height: 46px; background: var(--blanco); border-radius: 3px; padding: 0; }
.plan td i { display: block; height: 100%; border-radius: 3px; font-size: 0; }
.f-ins td i { background: var(--verde-200); }
.f-pre td i { background: var(--marca); }
.f-ban td i { background: var(--tinta); }
.plan-incluye { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.plan-incluye b { display: block; color: var(--tinta); font-size: 19px; }
@media (max-width: 899px) { .plan-marco { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 599px) {
  .plan { border-spacing: 2px; }
  .plan thead th:first-child, .plan tbody th { width: 82px; }
  .plan tbody th { font-size: 13px; line-height: 1.2; }
  .plan td { height: 34px; }
  .plan thead th { font-size: 11px; }
}

/* Protocolo */
.proto { margin-top: clamp(56px, 7vw, 96px); background: var(--blanco); border-radius: var(--r-panel); padding: clamp(22px, 4vw, 48px); }
.proto-cab { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; margin-bottom: 28px; }
.proto-cab h3 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.02em; }
.pestanas { display: inline-flex; background: var(--tono); border-radius: var(--r); padding: 4px; gap: 4px; }
.pestanas button { border: 0; background: transparent; border-radius: 3px; padding: 10px 16px; min-height: 44px; font-weight: 600; color: var(--tinta); display: inline-flex; gap: 8px; align-items: baseline; transition: background-color 160ms ease, color 160ms ease; }
.pestanas button span { font: 500 13px var(--mono); color: var(--gris); }
.pestanas button[aria-selected="true"] { background: var(--tinta); color: #fff; }
.pestanas button[aria-selected="true"] span { color: var(--verde-300); }
@media (max-width: 599px) {
  .pestanas { display: flex; width: 100%; }
  .pestanas button { flex: 1; justify-content: center; flex-wrap: wrap; gap: 0 6px; padding: 8px; }
}
.proto-lista { list-style: none; margin: 0; padding: 0; columns: 2 320px; column-gap: 48px; }
.proto-lista li { break-inside: avoid; padding: 10px 0 10px 36px; position: relative; font-size: 17px; line-height: 1.45; }
.proto-lista li::before { content: ""; position: absolute; left: 0; top: 11px; width: 22px; height: 22px; border-radius: 3px; background: var(--marca) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 16px no-repeat; }
#contratos > .w > .trio { margin-top: 40px; }

/* Emergencias */
.sos { background: var(--tinta); color: #D9D9D9; }
.sos h2 { color: #fff; }
.sos-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 96px); align-items: end; }
.sos-grid > div:first-child { display: grid; gap: 20px; }
.sos-grid .trio { grid-column: 1 / -1; margin-top: 8px; }
.sos-tel { display: inline-flex; align-items: center; gap: 18px; color: #fff; text-decoration: none; font: 600 clamp(28px, 4.3vw, 54px)/1 var(--mono); letter-spacing: -0.03em; white-space: nowrap; }
.sos-tel .punto { width: 14px; height: 14px; flex: none; }
.sos-num p { margin-top: 18px; font-size: 17px; color: #BDBDBD; }
.sos .b-cot { border-color: #fff; color: #fff; }
.sos .b-sos { color: #fff; }
.sos .b-sos .i { color: #FF8A73; }
.sos :focus-visible { outline-color: var(--verde-300); }
@media (hover: hover) and (pointer: fine) {
  .sos-tel:hover b { color: var(--verde-300); }
  .sos .b-cot:hover { background: #fff; color: var(--tinta); }
  .sos .b-sos:hover { background: rgba(211, 46, 18, .18); }
}
@media (max-width: 899px) { .sos-grid { grid-template-columns: minmax(0, 1fr); } }

/* Licitaciones e informe de ejemplo */
.lic-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.lic-txt { display: grid; gap: 20px; }
.lic-txt .lista-ok { margin-top: 4px; }
.lic-txt .trio { margin-top: 12px; }
.informe-fig { margin: 0; }
.informe { background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--r); padding: clamp(18px, 3vw, 32px); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .35); font-size: 15px; line-height: 1.4; }
.inf-cab { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding-bottom: 16px; border-bottom: 3px solid var(--marca); }
.inf-marca { font-weight: 700; color: var(--marca); letter-spacing: .02em; }
.inf-tit { grid-column: 1; color: var(--tinta); font-weight: 600; }
.inf-folio { grid-row: 1 / 3; grid-column: 2; align-self: center; font: 500 14px var(--mono); color: var(--gris); }
.inf-datos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 18px 0; }
.inf-datos dt { font-size: 12px; color: var(--gris); }
.inf-datos dd { margin: 0; color: var(--tinta); font-weight: 500; }
.inf-datos .num { font-family: var(--mono); }
.inf-check { list-style: none; margin: 0 0 16px; padding: 14px 0 0; border-top: 1px solid var(--linea); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.inf-check li { padding-left: 26px; position: relative; color: var(--tinta); }
.inf-check li::before { content: ""; position: absolute; left: 0; top: 1px; width: 17px; height: 17px; border-radius: 2px; background: var(--marca) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 13px no-repeat; }
.inf-med { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 14px; }
.inf-med th { text-align: left; font: 400 14px var(--sans); color: var(--texto); padding: 7px 0; border-top: 1px solid var(--linea); }
.inf-med td { text-align: right; color: var(--tinta); padding: 7px 0; border-top: 1px solid var(--linea); }
.inf-fotos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.inf-fotos span { background: var(--tono); border-radius: 3px; aspect-ratio: 4 / 3; display: grid; place-items: center; align-content: center; gap: 4px; font-size: 12px; color: var(--gris); }
.inf-fotos svg { width: 34px; height: 34px; fill: none; stroke: #9AA394; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.inf-firma { margin-top: 18px; display: grid; justify-items: end; }
.inf-firma svg { width: 150px; height: 38px; fill: none; stroke: var(--tinta); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.inf-firma span { font-size: 12px; color: var(--gris); border-top: 1px solid var(--tinta); padding-top: 4px; width: 170px; text-align: center; }
.informe-fig figcaption { font-size: 14px; color: var(--gris); margin-top: 14px; }
@media (max-width: 899px) { .lic-grid { grid-template-columns: minmax(0, 1fr); } }

/* SmartGen */
.sg-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.sg-txt { display: grid; gap: 20px; }
.sg-logo { width: auto; height: 62px; background: #fff; padding: 10px 14px; border-radius: var(--r); box-sizing: content-box; }
.sg-txt .trio { margin-top: 12px; }
.sg-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sg-cats a { display: grid; gap: 6px; align-content: start; background: var(--blanco); border-radius: 6px; padding: 22px; text-decoration: none; color: var(--texto); transition: background-color 160ms ease; }
.sg-cats b { color: var(--tinta); font-size: 18px; line-height: 1.25; }
.sg-cats span { font-size: 15px; color: var(--gris); line-height: 1.45; }
@media (hover: hover) and (pointer: fine) { .sg-cats a:hover { background: var(--verde-50); } .sg-cats a:hover b { color: var(--accion); } }
@media (max-width: 899px) { .sg-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 499px) { .sg-cats { grid-template-columns: minmax(0, 1fr); } .sg-cats a { padding: 18px; } }

/* Catálogo */
.cat-filtros { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 40px; }
.cat-filtros[hidden] { display: none; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 42px; padding: 0 14px; border-radius: var(--r); border: 1.5px solid var(--linea-f); background: var(--blanco); color: var(--tinta); font-weight: 500; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease; }
.chip small { font: 500 12px var(--mono); color: var(--gris); }
.chip[aria-pressed="true"] { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.chip[aria-pressed="true"] small { color: var(--verde-300); }
@media (hover: hover) and (pointer: fine) { .chip:hover { border-color: var(--tinta); } }
.cat-buscar { position: relative; flex: 0 1 320px; }
.cat-buscar .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gris); }
.cat-buscar input { width: 100%; min-height: 46px; border: 1.5px solid var(--linea-f); border-radius: var(--r); padding: 0 14px 0 44px; font-size: 16px; background: var(--blanco); }
.cat-buscar input:focus { outline: none; border-color: var(--accion); box-shadow: 0 0 0 3px var(--verde-100); }
.cat-cuenta { font: 500 14px var(--mono); color: var(--gris); margin-top: 20px; min-height: 1.4em; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; margin-top: 16px; }
.cat-grid:empty { display: none; }
.prod { background: var(--tono); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.prod-img { background: var(--blanco); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 16px; margin: 6px 6px 0; border-radius: 5px; }
.prod-img img { width: 100%; height: 100%; object-fit: contain; }
.prod-img .sin-foto { width: 64px; height: 64px; stroke: #B5BDAE; }
.prod-c { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod-mm { font: 500 13px var(--mono); color: var(--accion-h); }
.prod h3 { font-size: 18px; }
.prod-r { font-size: 15px; color: var(--texto); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.prod-acc { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; }
.prod-acc .b { min-height: 44px; padding: 0 14px; font-size: 15px; flex: 1; }
.cat-vacio { margin-top: 32px; background: var(--tono); border-radius: var(--r-panel); padding: clamp(20px, 3vw, 32px); max-width: 760px; }
.cat-vacio[hidden] { display: none; }

/* Clientes por sector */
.sectores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.sector { background: var(--blanco); border-radius: 8px; padding: clamp(24px, 3vw, 40px); display: grid; gap: 14px; align-content: start; }
.sector.s-ancho { grid-column: span 2; }
.sector .pic { width: 48px; height: 48px; }
.sector h3 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.02em; }
.sector p { max-width: 52ch; }
@media (max-width: 899px) { .sectores { grid-template-columns: minmax(0, 1fr); } .sector.s-ancho { grid-column: auto; } }

/* Preguntas */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq details { border-bottom: 1px solid var(--linea); }
.faq details:first-child { border-top: 1px solid var(--linea); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 600; font-size: 19px; color: var(--tinta); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--tinta), var(--tinta)) center / 14px 2px no-repeat, linear-gradient(var(--tinta), var(--tinta)) center / 2px 14px no-repeat; transition: transform 200ms var(--salir); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; max-width: 62ch; }
@media (max-width: 899px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } }

/* Contacto y formulario */
.con-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.con-datos { display: grid; gap: 20px; }
.con-datos .trio { margin-top: 4px; }
.con-lista { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 22px; }
.con-lista li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 16px; }
.con-lista .i { color: var(--marca); margin-top: 2px; }
.con-lista b { display: block; color: var(--tinta); font-size: 16px; }
.con-lista span, .con-lista a { display: block; overflow-wrap: anywhere; }
.con-lista a[data-tel] { font-family: var(--mono); font-weight: 500; }
.con-mapas a { display: inline; font-size: 16px; }
.con-form { background: var(--blanco); border-radius: var(--r-panel); padding: clamp(20px, 3.4vw, 44px); }
.form h3 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.02em; }
.form-nota { font-size: 15px; color: var(--gris); margin-top: 6px; }
.campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; margin-top: 24px; }
.campo { display: grid; gap: 6px; align-content: start; min-width: 0; }
.campo.ancho { grid-column: 1 / -1; }
.campo[hidden] { display: none; }
.campo label { font-size: 15px; font-weight: 600; color: var(--tinta); }
.opc { font-weight: 400; color: var(--gris); }
.campo input, .campo select, .campo textarea { width: 100%; min-height: 50px; border: 1.5px solid var(--linea-f); border-radius: var(--r); padding: 0 14px; font-size: 17px; background: var(--blanco); color: var(--tinta); }
.campo textarea { padding: 12px 14px; min-height: 110px; resize: vertical; line-height: 1.45; }
.campo select { appearance: none; -webkit-appearance: none; padding-right: 40px; background: var(--blanco) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23131313' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; }
.campo input[readonly] { background: var(--tono); }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--accion); box-shadow: 0 0 0 3px var(--verde-100); }
.campo [aria-invalid="true"] { border-color: var(--rojo); }
.campo-err { font-size: 14px; color: #B3250E; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-err { color: #B3250E; font-weight: 500; margin: 16px 0 0; min-height: 0; }
.form-err:empty { display: none; }
.form-priv { font-size: 14px; color: var(--gris); margin: 16px 0; }
.form-ok { display: grid; gap: 16px; }
.form-ok[hidden] { display: none; }
.form-ok h3 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.02em; }
.ok-acc { display: flex; flex-wrap: wrap; gap: 12px; }
.ok-acc .b { flex: 1 1 220px; }
.form-ok .enlace { justify-self: start; min-height: 44px; }
@media (max-width: 899px) { .con-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 599px) { .campos { grid-template-columns: minmax(0, 1fr); } }

/* ---------- pie ---------- */
.pie { background: var(--tinta); color: #CFCFCF; padding: clamp(64px, 8vw, 112px) 0 40px; font-size: 16px; }
.pie a { color: #EDEDED; text-decoration: none; }
.pie-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.pie-t { font-size: 15px; font-weight: 500; color: #9A9A9A; letter-spacing: 0; margin-bottom: 14px; max-width: none; }
.pie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pie :focus-visible { outline-color: var(--verde-300); }
@media (hover: hover) and (pointer: fine) { .pie a:hover { color: var(--verde-300); } }
.pie-nombre { margin: clamp(56px, 8vw, 104px) 0 0; font-weight: 700; font-size: clamp(56px, 16.4vw, 212px); line-height: .8; letter-spacing: -0.055em; color: #fff; white-space: nowrap; }
.pie-nombre span { color: var(--verde-500); }
.pie-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 32px; padding-top: 20px; border-top: 1px solid #2E2E2E; font-size: 14px; color: #9A9A9A; }
@media (max-width: 899px) { .pie-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* ---------- contacto fijo ---------- */
.barra-movil { display: none; }
.wa-flota { position: fixed; right: 24px; bottom: 24px; z-index: 30; width: 62px; height: 62px; border-radius: 50%; background: var(--accion); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .45); transition: transform 160ms ease-out, background-color 160ms ease; }
.wa-flota .i { width: 30px; height: 30px; stroke-width: 1.6; }
.wa-flota:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .wa-flota:hover { background: var(--accion-h); } }
@media (max-width: 899px) {
  .wa-flota { display: none; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .barra-movil {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
    background: var(--blanco); border-top: 1px solid var(--linea); padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  }
  .barra-movil a, .barra-movil button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; border-radius: var(--r);
    font: 600 13px/1.1 var(--sans); text-decoration: none; text-align: center; border: 2px solid transparent; background: none; color: var(--tinta);
    touch-action: manipulation; transition: transform 160ms ease-out;
  }
  .barra-movil a:active, .barra-movil button:active { transform: scale(0.97); }
  .bm-wa { background: var(--accion) !important; color: #fff !important; }
  .bm-cot { border-color: var(--tinta) !important; }
  .bm-sos { border-color: var(--rojo) !important; }
  .bm-sos .i { color: var(--rojo); }
}

/* ---------- diálogos ---------- */
.dlg { border: 0; padding: 0; border-radius: var(--r-panel); width: min(760px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); background: var(--blanco); color: var(--texto); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); overflow: auto; overscroll-behavior: contain; }
.dlg::backdrop { background: rgba(19, 19, 19, .6); }
.dlg[open] { animation: entra 240ms var(--salir); }
@keyframes entra { from { opacity: 0; transform: translateY(8px) scale(0.97); } }
.dlg-x { position: sticky; float: right; top: 10px; margin: 10px 10px 0 0; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--tono); color: var(--tinta); display: grid; place-items: center; }
.dlg-cuerpo { padding: clamp(20px, 4vw, 44px); padding-top: 12px; }
.dlg-cot .con-form, .dlg-cot #form-casa { padding: 0; }
.dlg-ficha { width: min(1040px, calc(100vw - 24px)); }
@media (max-width: 599px) {
  .dlg { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
}

/* Ficha de producto */
.ficha-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.ficha-img { background: var(--tono); border-radius: 8px; aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 24px; }
.ficha-img img { width: 100%; height: 100%; object-fit: contain; }
.ficha-info { display: grid; gap: 14px; }
.ficha-info h2 { font-size: clamp(28px, 3.2vw, 40px); max-width: none; }
.ficha-precio { background: var(--verde-50); border-radius: 6px; padding: 16px 18px; display: grid; gap: 2px; }
.ficha-precio b { color: var(--tinta); font-size: 18px; }
.ficha-precio span { font-size: 15px; color: var(--texto); }
.ficha-info .trio { margin-top: 6px; }
.ficha-mas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; margin-top: 40px; }
.ficha-mas h3 { font-size: 19px; margin-bottom: 12px; }
.ficha-mas .lista-ok { margin-top: 0; gap: 8px; font-size: 16px; }
.spec { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec th { text-align: left; font-weight: 500; color: var(--gris); padding: 9px 16px 9px 0; border-top: 1px solid var(--linea); width: 42%; vertical-align: top; }
.spec td { color: var(--tinta); padding: 9px 0; border-top: 1px solid var(--linea); font-variant-numeric: tabular-nums; }
.ficha-pdf { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; text-decoration: none; }
@media (max-width: 799px) { .ficha-grid, .ficha-mas { grid-template-columns: minmax(0, 1fr); } }
/* Galería de la ficha (campo "imagenes" del catálogo): foto grande + miniaturas */
.ficha-gal { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.ficha-gal .ficha-img { border-radius: 14px; }
.ficha-minis { display: flex; gap: 10px; overflow-x: auto; padding: 3px; scrollbar-width: thin; overscroll-behavior-x: contain; }
.ficha-mini { flex: 0 0 auto; width: 76px; height: 76px; padding: 5px; display: grid; place-items: center; background: var(--blanco); border: 2px solid var(--linea); border-radius: 12px; cursor: pointer; transition: border-color .16s, box-shadow .16s; }
.ficha-mini img { width: 100%; height: 100%; object-fit: contain; border-radius: 7px; }
.ficha-mini[aria-pressed="true"] { border-color: var(--marca); box-shadow: 0 0 0 1px var(--marca); }
.ficha-mini:focus-visible { outline: 3px solid var(--foco); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .ficha-mini:hover { border-color: var(--verde-300); } .ficha-mini[aria-pressed="true"]:hover { border-color: var(--marca); } }
@media (max-width: 420px) { .ficha-minis { gap: 8px; } .ficha-mini { width: 62px; height: 62px; border-radius: 10px; } }
@media (prefers-reduced-motion: reduce) { .ficha-mini { transition: none; } }

/* ---------- página 404 y privacidad ---------- */
.simple { padding: clamp(48px, 9vw, 120px) 0; }
.simple h1 { font-size: clamp(36px, 5.4vw, 64px); max-width: 18ch; }
.simple .lead { margin-top: 20px; }
.legal-txt { max-width: 70ch; }
.legal-txt h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 40px 0 12px; max-width: none; letter-spacing: -0.015em; }
.legal-txt p, .legal-txt li { margin-bottom: 12px; }
.rutas { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 32px; padding: 0; list-style: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .punto { animation: none; }
}


/* ---------- tienda (migración 0322) ---------- */
.ti { padding-top: clamp(28px, 4vw, 56px); padding-bottom: var(--sec); }
.ti-cab h1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 12px; }
.ti-cab .lead { max-width: 62ch; color: var(--texto); margin: 0 0 20px; }
.ti-buscar { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.ti-campo { flex: 1 1 320px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--linea-f); border-radius: var(--r); padding: 0 14px; background: var(--blanco); min-height: 52px; }
.ti-campo:focus-within { border-color: var(--accion); box-shadow: 0 0 0 3px var(--verde-100); }
.ti-campo input { border: 0; outline: 0; flex: 1; font: inherit; font-size: 17px; min-width: 0; background: transparent; }
.ti-solo { display: inline-flex; gap: 8px; align-items: center; font-size: 15px; }
.ti-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.ti-cats button { border: 1px solid var(--linea-f); background: var(--blanco); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 14px; cursor: pointer; transition: background-color .16s, border-color .16s; }
.ti-cats button small { color: var(--gris); font-family: var(--mono); }
.ti-cats button[aria-pressed="true"] { background: var(--accion); border-color: var(--accion); color: #fff; }
.ti-cats button[aria-pressed="true"] small { color: var(--verde-100); }
.ti-aviso { background: #FFF6D6; border-left: 4px solid var(--aviso); padding: 12px 16px; border-radius: var(--r); margin: 12px 0 0; }
.ti-cuenta { color: var(--gris); margin: 18px 0 12px; }
.ti-grilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.ti-prod { display: flex; flex-direction: column; border: 1px solid var(--linea); border-radius: var(--r-panel); background: var(--blanco); overflow: hidden; transition: transform .24s var(--salir), box-shadow .24s; }
@media (hover: hover) and (pointer: fine) { .ti-prod:hover { transform: translateY(-4px); box-shadow: 0 16px 34px -18px rgba(0, 0, 0, .28); } }
.ti-foto { aspect-ratio: 4 / 3; background: var(--tono); display: grid; place-items: center; }
.ti-foto img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
/* Fotos propias de la tienda (assets/tienda-fotos.json): la segunda aparece al pasar el mouse */
.ti-foto { position: relative; }
.ti-foto .ti-foto-alt { position: absolute; inset: 0; background: var(--tono); opacity: 0; transition: opacity .24s var(--salir); }
@media (hover: hover) and (pointer: fine) { .ti-prod:hover .ti-foto-alt { opacity: 1; } }
.ti-nfotos { position: absolute; right: 8px; bottom: 8px; font: 600 12px/1 var(--mono); color: var(--tinta); background: rgba(255, 255, 255, .92); border: 1px solid var(--linea); border-radius: 999px; padding: 5px 8px; pointer-events: none; }
.ti-sinfoto { font-weight: 600; color: var(--gris); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.ti-info { display: flex; flex-direction: column; gap: 6px; padding: 14px; flex: 1; }
.ti-info h3 { font-size: 16px; line-height: 1.3; margin: 0; }
.ti-info > small { color: var(--gris); }
.ti-disp { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--verde-100); color: var(--verde-900); }
.ti-disp.pocas { background: #FFF6D6; color: #6B4E00; }
.ti-disp.a_pedido { background: var(--tono); color: var(--gris); }
.ti-pie { margin-top: auto; display: flex; align-items: baseline; gap: 6px; padding-top: 6px; }
.ti-precio { font-size: 22px; }
.ti-pie small { color: var(--gris); font-size: 12px; }
.ti-info .b { width: 100%; justify-content: center; min-height: 46px; font-size: 15px; }
.ti-cod { display: grid; gap: 4px; font-size: 13px; color: var(--gris); }
.ti-cod input { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid var(--linea); border-radius: 12px; font: inherit; font-size: 15px; color: var(--tinta); background: var(--blanco); }
.ti-cod input:focus { outline: 2px solid var(--verde-500, #4F8B0D); outline-offset: 1px; }
.ti-mas { display: flex; justify-content: center; margin-top: 24px; }
.ti-carro-btn { position: relative; }
.ti-n { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; border-radius: 999px; background: var(--rojo); color: #fff; font-family: var(--mono); font-size: 12px; display: grid; place-items: center; padding: 0 5px; }
.ti-n[hidden] { display: none; }
.ti-carro { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--blanco); z-index: 60; box-shadow: -20px 0 50px -20px rgba(0, 0, 0, .35); overflow-y: auto; }
.ti-carro[hidden], .ti-velo[hidden] { display: none; }
.ti-carro-in { padding: 18px var(--g) 28px; display: flex; flex-direction: column; gap: 14px; }
.ti-carro header { display: flex; align-items: center; justify-content: space-between; }
.ti-carro h2 { margin: 0; font-size: 22px; }
.ti-cerrar { border: 0; background: transparent; cursor: pointer; padding: 8px; }
.ti-velo { position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 55; }
.ti-lineas { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ti-lineas li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; border-bottom: 1px solid var(--linea); padding-bottom: 10px; }
.ti-lineas li span small { display: block; color: var(--gris); font-size: 12px; }
.ti-lineas .ti-vacio { display: block; color: var(--gris); border: 0; }
.ti-resultado .ti-lineas li { grid-template-columns: 1fr auto; }
.ti-cant { display: inline-flex; align-items: center; gap: 8px; }
.ti-cant button { width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--linea-f); background: var(--blanco); cursor: pointer; font-size: 16px; }
.ti-form { display: grid; gap: 12px; }
.ti-form fieldset { border: 1px solid var(--linea); border-radius: var(--r-panel); padding: 12px 14px; margin: 0; display: grid; gap: 8px; }
.ti-form legend { font-weight: 600; padding: 0 6px; }
.ti-form input:not([type="radio"]):not([type="checkbox"]), .ti-form textarea { width: 100%; font: inherit; font-size: 16px; border: 1px solid var(--linea-f); border-radius: var(--r); padding: 10px 12px; }
.ti-form input:focus, .ti-form textarea:focus { outline: 2px solid var(--foco); outline-offset: 1px; }
.ti-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ti-op { display: flex; gap: 8px; align-items: center; font-size: 15px; }
.ti-op b { margin-left: auto; }
.ti-despacho, .ti-factura { display: grid; gap: 8px; }
.ti-despacho[hidden], .ti-factura[hidden], .ti-aviso[hidden], .ti-error[hidden] { display: none; }
.ti-despacho small { color: var(--gris); }
.ti-totales { margin: 0; display: grid; gap: 4px; }
.ti-totales div { display: flex; justify-content: space-between; }
.ti-totales dt { color: var(--gris); }
.ti-totales dd { margin: 0; }
.ti-total { font-weight: 700; font-size: 19px; }
.ti-total dt { color: var(--tinta); }
.ti-error { color: var(--rojo); background: var(--rojo-bg); padding: 10px 12px; border-radius: var(--r); margin: 0; }
.ti-pagar { width: 100%; justify-content: center; min-height: 54px; font-size: 18px; }
.ti-legal { font-size: 13px; color: var(--gris); margin: 0; }
.ti-res h1 { font-size: clamp(30px, 4.4vw, 48px); margin: 0 0 10px; }
@media (max-width: 560px) { .ti-2 { grid-template-columns: 1fr; } .ti-grilla { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .ti-precio { font-size: 18px; } .ti-info { padding: 10px; } .ti-info .b { font-size: 14px; padding: 0 8px; } }
@media (prefers-reduced-motion: reduce) { .ti-prod, .ti-foto .ti-foto-alt { transition: none; } }
