/* Novatérmica: piezas propias de la página (logo, termostato, corte de la casa, vista previa de WhatsApp) */
:root { --ida: #d9541a; --ret: #6b8794; --gas: #d6a21e; --linea: color-mix(in oklab, var(--ink) 14%, transparent); }

/* logo */
.nova-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.nova-logo__mark { width: 40px; height: 40px; flex: none; }
.nova-logo__word { font: 500 25px/1 "Ubuntu", var(--font-text); letter-spacing: -0.01em; white-space: nowrap; }
.nova-logo__word .g { color: #2f9935; }
.nova-logo__word .o { color: #d9621a; }
.nova-logo--claro { --logo-hueco: var(--p-inv-bg); }
.nova-logo--claro .nova-logo__word .g { color: #55c35a; }
.nova-logo--claro .nova-logo__word .o { color: #f08a3c; }
@media (max-width: 639px) { .nova-logo__mark { width: 32px; height: 32px; } .nova-logo__word { font-size: 21px; } }

/* termostato junto al título de Sistema (28-11, pedido del cliente) */
.termo { width: 300px; flex: none; background: #fbfaf7; border: 1px solid var(--linea); border-radius: var(--r-md, 14px); padding: var(--s-4) var(--s-5); }
.termo__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); font-size: var(--t-small); color: var(--muted); }
.sistema-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-6); max-width: none; }
.sistema-head h2 { max-width: 25ch; margin: 0; hyphens: manual; -webkit-hyphens: manual; }
.termo { width: 320px; }
.termo__row > span { white-space: nowrap; }
@media (max-width: 1023px) { .sistema-head { flex-direction: column; align-items: stretch; gap: var(--s-4); } .termo { width: 100%; max-width: 360px; } }
.termo__estado { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.termo__estado i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.termo[data-apagado] .termo__estado i { background: var(--muted); }
.termo__fila { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; margin-top: var(--s-3); }
.termo__temp { text-align: center; font: var(--display-weight) 40px/1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.termo__btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--linea); background: var(--bg); color: var(--ink); font: 400 22px/1 var(--font-text); cursor: pointer; transition: transform .12s ease, background-color .15s ease; }
.termo__btn:hover { background: var(--surface); }
.termo__btn:active { transform: scale(.94); }

/* el corte de la casa */
#sistema .section-head { margin-bottom: var(--s-6); }
.corte__dibujo { margin: 0; background: var(--surface); border-radius: var(--r-lg); padding: var(--s-5); align-self: start; }
.corte__dibujo svg { display: block; width: 100%; height: auto; overflow: visible; color: var(--ink); }
.corte .muro { fill: var(--ink); }
.corte .ln { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.corte .tierra { color: var(--ink); }
.corte .vidrio { fill: none; stroke: color-mix(in oklab, var(--ink) 45%, transparent); stroke-width: 1.5; }
.corte .lluvia path { stroke: color-mix(in oklab, var(--ink) 30%, transparent); stroke-width: 1.4; stroke-linecap: round; }
.corte .lluvia { animation: lluvia 1.1s linear infinite; }
@keyframes lluvia { from { transform: translate(0, -24px); } to { transform: translate(-8px, 0); } }
.corte .rotulos text { font: 500 13px var(--font-text); fill: var(--muted); }
.corte .grados text { font: 500 16px var(--font-text); fill: var(--ink); text-anchor: end; font-variant-numeric: tabular-nums; }
.corte .ida, .corte .ret, .corte .gas { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.corte .ida { stroke: var(--ida); }
.corte .ret { stroke: var(--ret); }
.corte .gas { stroke: var(--gas); stroke-width: 4; }
.corte .medidor { fill: var(--bg); stroke: var(--ink); stroke-width: 1.5; }
.corte .rad rect { fill: #fbfaf7; stroke: var(--ink); stroke-width: 1.5; }
.corte .rad path { stroke: color-mix(in oklab, var(--ink) 35%, transparent); stroke-width: 1.2; }
.corte [data-parte="valvula"] circle { fill: var(--bg); stroke: var(--ink); stroke-width: 1.5; }
.corte .colector { fill: #fbfaf7; stroke: var(--ink); stroke-width: 1.5; }
.corte .colector__ln { stroke: var(--ida); stroke-width: 2; }
.corte .tubos circle { stroke-width: 2.2; fill: var(--surface); }
.corte .tubos .i { stroke: var(--ida); }
.corte .tubos .r { stroke: var(--ret); }
.corte .caldera { fill: #fbfaf7; stroke: var(--ink); stroke-width: 1.5; }
.corte .caldera__vent { fill: color-mix(in oklab, var(--ink) 12%, transparent); }
.corte .llama { fill: #e66f1e; opacity: 0; transform-origin: 210px 412px; transform: scale(.4); transition: opacity .4s ease, transform .5s cubic-bezier(.2,.8,.2,1); }
.corte .termostato { fill: #fbfaf7; stroke: var(--ink); stroke-width: 1.5; }
.corte .termostato__luz { fill: var(--muted); transition: fill .3s ease; }
.corte .pieza { opacity: 0; transition: opacity 2.2s ease; }
.corte .nums circle { fill: var(--bg); stroke: var(--ink); stroke-width: 1.5; transition: fill .2s ease, stroke .2s ease; }
.corte .nums text { font: 500 14px var(--font-text); fill: var(--ink); text-anchor: middle; pointer-events: none; transition: fill .2s ease; }
.corte .nums g, .corte .parte { cursor: pointer; transition: opacity .25s ease; }

.corte[data-modo="radiadores"] .solo-losa, .corte[data-modo="radiadores"] .losa { display: none; }
.corte[data-modo="losa"] .solo-rad, .corte[data-modo="losa"] .pieza:not(.losa) { display: none; }

.corte[data-on] .llama { opacity: 1; transform: scale(1); animation: llama 1.4s ease-in-out infinite alternate; }
@keyframes llama { from { transform: scale(1) skewX(0); } to { transform: scale(1.06, .94) skewX(-3deg); } }
.corte[data-on] .termostato__luz { fill: var(--ida); }
.corte[data-on] .pieza { opacity: 1; }
.corte[data-on] .pieza[data-p="1"] { transition-delay: .2s; }
.corte[data-on] .pieza[data-p="2"] { transition-delay: .7s; }
.corte[data-on] .pieza[data-p="3"] { transition-delay: 1.1s; }
.corte[data-on] .pieza[data-p="4"] { transition-delay: 1.4s; }
.corte[data-on] .pieza[data-p="5"] { transition-delay: 1.7s; }
.corte[data-on] .flujo { stroke-dasharray: 10 9; animation: flujo .9s linear infinite; }
@keyframes flujo { to { stroke-dashoffset: -19; } }

/* una pieza señalada atenúa el resto */
.corte[data-activa] svg .parte, .corte[data-activa] svg .nums g { opacity: .22; }
.corte[data-activa="caldera"] [data-parte="caldera"], .corte[data-activa="caldera"] [data-num="caldera"],
.corte[data-activa="gas"] [data-parte="gas"], .corte[data-activa="gas"] [data-num="gas"],
.corte[data-activa="canerias"] [data-parte="canerias"], .corte[data-activa="canerias"] [data-num="canerias"],
.corte[data-activa="emisor"] [data-parte="emisor"], .corte[data-activa="emisor"] [data-num="emisor"],
.corte[data-activa="valvula"] [data-parte="valvula"], .corte[data-activa="valvula"] [data-num="valvula"],
.corte[data-activa="termostato"] [data-parte="termostato"], .corte[data-activa="termostato"] [data-num="termostato"] { opacity: 1 !important; }
.corte[data-activa] svg [data-num].es-activa circle { fill: var(--ink); }
.corte[data-activa] svg [data-num].es-activa text { fill: var(--bg); }

.corte__panel { display: grid; gap: var(--s-5); align-content: start; }
.corte__controles { display: grid; gap: var(--s-3); }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: calc(var(--r-btn) + 4px); background: var(--surface); }
.seg button { height: 40px; border: 0; border-radius: var(--r-btn); background: transparent; color: var(--muted); font: 500 15px var(--font-text); cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.seg button[aria-checked="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 0 0 1px var(--linea); }
.corte__encender { width: 100%; }
.corte__encender[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.partes { list-style: none; margin: 0; padding: 0; }
.partes li { display: grid; grid-template-columns: 28px 1fr; gap: var(--s-3); padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.45; cursor: default; outline-offset: 4px; }
.partes li:last-child { border-bottom: 0; }
.partes b { display: block; font-weight: 500; }
.partes li > span:last-child { color: var(--muted); }
.partes li > span:last-child b { color: var(--ink); }
.partes__n { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font: 500 14px var(--font-text); transition: background-color .2s ease, color .2s ease; }
.partes li.es-activa .partes__n { background: var(--ink); color: var(--bg); }

@media (min-width: 1024px) and (max-height: 960px) { .partes li { padding: 8px 0; } }
@media (max-width: 1023px) { .corte__panel { margin-top: var(--s-5); } .partes { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s-5); } .partes li:nth-last-child(2) { border-bottom: 0; } }
@media (max-width: 639px) {
  .corte__dibujo { padding: var(--s-2); }
  .corte .rotulos, .corte .grados text:not([data-t="2"]) { display: none; }
  .corte .grados text { font-size: 34px; }
  .corte .nums circle { r: 26px; }
  .corte .nums text { font-size: 28px; transform: translateY(9px); }
  .partes { grid-template-columns: 1fr; }
  .partes li { padding: 8px 0; }
  .partes li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}

/* cotizador y vista previa de WhatsApp */
.cotizador__campos { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); margin-bottom: var(--s-6); }
.cotizador .field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%231b201d' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 40px; }
@media (max-width: 639px) { .cotizador__campos { grid-template-columns: 1fr; gap: var(--s-4); } }
.wa { border-radius: var(--r-lg); overflow: hidden; background: #e9e2d6; display: flex; flex-direction: column; min-height: 420px; align-self: stretch; }
.wa__cab { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-5); background: #1f2c27; color: #f5f2ec; }
.wa__cab b { display: block; font-weight: 500; }
.wa__cab small { font-size: 13px; color: #b9c4bd; }
.wa__avatar { width: 40px; height: 40px; border-radius: 50%; background: #f5f2ec; display: grid; place-items: center; --logo-hueco: #f5f2ec; }
.wa__avatar svg { width: 28px; height: 28px; }
.wa__chat { flex: 1; display: flex; align-items: flex-end; justify-content: flex-end; padding: var(--s-6) var(--s-5);
  background-image: radial-gradient(color-mix(in oklab, #1f2c27 8%, transparent) 1px, transparent 1.4px); background-size: 18px 18px; }
.wa__burbuja { position: relative; max-width: 86%; margin: 0; padding: 12px 16px 26px; border-radius: 12px 0 12px 12px; background: #d7f2c4; color: #14201a; font-size: 16px; line-height: 1.5; box-shadow: 0 1px 0 rgb(0 0 0 / .08); white-space: pre-line; }
.wa__burbuja::after { content: attr(data-hora) "  ✓✓"; position: absolute; right: 12px; bottom: 6px; font-size: 13px; color: #4f6b5c; }
.wa__burbuja .vacio { color: #6d7d73; }
@media (max-width: 639px) { .wa { min-height: 300px; margin-top: var(--s-6); } }

@media (prefers-reduced-motion: reduce) {
  .corte .lluvia, .corte[data-on] .flujo, .corte[data-on] .llama { animation: none; }
  .corte .pieza { transition: none; }
}

/* ajustes tras la primera revisión */
.nav__logo.nova-logo svg.nova-logo__mark { width: 40px; height: 40px; }
@media (max-width: 639px) { .nav__logo.nova-logo svg.nova-logo__mark { width: 32px; height: 32px; } }
.encender { height: 48px; width: 100%; border-radius: var(--r-btn); border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 500 16px var(--font-text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: background-color .2s ease, color .2s ease, transform .12s ease; }
.encender::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); transition: background-color .2s ease, box-shadow .2s ease; }
.encender:hover { background: var(--surface); }
.encender:active { transform: scale(.98); }
.encender[aria-pressed="true"]::before { background: var(--ida); box-shadow: 0 0 0 4px rgb(217 84 26 / .18); }
.cotizador .field :is(input, select) { width: 100%; }
@media (min-width: 1024px) { .hero--split .hero__text { display: flex; flex-direction: column; } .hero--split .hero__text .hero-facts { margin-top: auto; padding-top: var(--s-6); } }
@media (max-width: 1023px) { .hero--split .hero-facts { display: none; } }
.hero-facts dd { margin: 0; font-size: 16px; line-height: 1.4; }
@media (min-width: 1024px) { .hero--split .hero__grid > .hero__text { align-self: stretch; } }
.corte__dibujo svg { overflow: hidden; border-radius: calc(var(--r-lg) - 8px); }
/* ronda 2 */
.partes li > span:last-child { color: var(--ink); }


.preguntas__izq { display: grid; gap: var(--s-6); align-content: start; }
.preguntas__foto { aspect-ratio: 4 / 3; }
@media (max-width: 639px) {
  .termo__temp { font-size: 28px; }
  #servicios .frame--fill { height: auto; aspect-ratio: 4 / 3; }
  .preguntas__foto { order: 2; }
}
@media (max-width: 400px) { .closing .btn--xl { font-size: 18px; padding-inline: var(--s-5); } }
/* ronda 3: leyenda y dibujo en un solo panel */
.corte { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: var(--s-6); background: var(--surface); border-radius: var(--r-lg); padding: var(--s-6); align-items: center; }
.corte .corte__dibujo { background: transparent; padding: 0; border-radius: 0; }
.corte .seg { background: color-mix(in oklab, var(--ink) 7%, transparent); }
.corte__detalle { display: none; margin: 0; }
@media (max-width: 1023px) { .corte { grid-template-columns: 1fr; } .corte__panel { margin-top: 0; } }
@media (max-width: 639px) {
  .corte { padding: var(--s-4); gap: var(--s-4); }
  .partes { grid-template-columns: 1fr 1fr; column-gap: var(--s-3); }
  .partes li { padding: 6px 0; grid-template-columns: 24px 1fr; gap: var(--s-2); align-items: center; border-bottom: 0; }
  .partes li > span:last-child { font-size: 15px; line-height: 1.3; }
  .partes li > span:last-child > :not(b), .partes li > span:last-child { color: transparent; font-size: 0; }
  .partes li > span:last-child b { font-size: 15px; color: var(--ink); }
  .partes__n { width: 24px; height: 24px; font-size: 13px; }
  .corte__detalle { display: block; font-size: 16px; line-height: 1.45; min-height: 3em; }
  #servicios .frame.frame--fill { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
}
/* ronda 4 */
#sistema .section-head { margin-bottom: var(--s-5); }
.corte { grid-template-columns: 400px minmax(0, 1fr); padding: var(--s-5) var(--s-6); }
@media (min-width: 1024px) { .partes li { padding: 7px 0; } .corte__panel { gap: var(--s-4); } }
@media (max-width: 1023px) { .corte { grid-template-columns: 1fr; } }
@media (max-width: 639px) {
  .corte { padding: var(--s-3); }
  .corte__detalle { min-height: 0; }
  #servicios .grid.fill > .frame--fill { flex: none; aspect-ratio: 4 / 3; height: auto; min-height: 0; }
}
@media (max-width: 639px) { .partes li, .partes li:nth-last-child(2) { border-bottom: 0; } }
/* 28-11: la empresa con Bestec y el sello SEC */
.empresa__pie { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5) var(--s-6); margin-top: var(--s-7, 48px); padding-top: var(--s-6); border-top: 1px solid rgb(245 242 236 / .14); }
.empresa__cta { margin: 0; max-width: 46ch; font-size: 18px; line-height: 1.5; color: var(--p-inv-ink); }
.empresa__cta a { color: #f08a3c; text-underline-offset: 3px; white-space: nowrap; }
.empresa__sellos { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: stretch; }
.sello { display: flex; align-items: center; gap: var(--s-3); background: #fbfaf7; color: var(--p-ink); border-radius: 12px; padding: 10px 16px; text-decoration: none; font-size: 14px; line-height: 1.3; }
.sello--bestec { flex-direction: column; align-items: flex-start; gap: 4px; transition: transform .15s ease; }
.sello--bestec:hover { transform: translateY(-1px); }
.sello--bestec span { color: var(--p-muted); font-size: 13px; }
.sello--bestec img { width: 150px; height: auto; }
.sello--sec img { width: 64px; height: 64px; }
.sello--sec span { max-width: 13ch; font-weight: 500; }
@media (max-width: 639px) { .empresa__cta { font-size: 16px; } .empresa__sellos { width: 100%; } .sello { flex: 1 1 auto; } }
/* 28-11 revisión en PC */
/* desde 1280 px el sistema fija cada sección a una pantalla: Sistema (lista de 6 piezas + casa) no cabe
   en 768 px de alto y se montaba sobre Servicios. Acá las secciones crecen si su contenido lo pide. */
@media (min-width: 1280px) {
  main > :is(section, .section):not(.hero, .section--hero), footer.closing { height: auto; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
  main > :is(section, .section):not(.hero, .section--hero) > :is(.wrap, .container), footer.closing > .wrap { flex: 1 0 auto; height: auto; min-height: 0; }
}
/* el cotizador ocupa todo el ancho de su columna (antes los campos quedaban en la mitad) */
.cotizador > .cotizador__campos { grid-column: 1 / -1; }
.cotizador__nombre { grid-column: 1 / -1; }
/* el título de Sistema en tres líneas, no cuatro */
@media (min-width: 1024px) { .sistema-head h2 { max-width: 30ch; } }
/* y el bloque que llena la pantalla (lista + foto de Servicios) no se encoge bajo su contenido */
@media (min-width: 1024px) { main > :is(section, .section) > .wrap > .fill { flex: 1 0 auto; } }
/* en pantallas de 1024 a 1199 la casa iba muy chica al lado de la lista: va arriba y la lista en dos columnas */
@media (min-width: 1024px) and (max-width: 1199px) {
  .corte { grid-template-columns: 1fr; }
  .corte__panel { order: 2; }
  .partes { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s-6); }
}
h1, h2, h3 { hyphens: manual; -webkit-hyphens: manual; }
/* 28-11: con «Aire acondicionado» la lista creció; en tablet la sección crece con su contenido en vez de cortarse */
@media (min-width: 640px) and (max-width: 1023px) {
  #servicios { height: auto; min-height: 100lvh; }
  #servicios .grid.fill > .frame--fill { flex: none; height: auto; min-height: 0; aspect-ratio: 4 / 3; }
}
@media (min-width: 640px) and (max-width: 1023px) { #servicios > .wrap > .grid.fill { flex: none; } }
/* 28-11 observaciones del cliente: «en vista celular se producen espacios vacíos».
   En el celular cada sección mide lo que tiene (sin alto mínimo de pantalla); la portada sigue llenando la primera pantalla. */
@media (max-width: 639px) {
  main > :is(section, .section):not(.hero), footer.closing { min-height: 0 !important; height: auto !important; }
  main > :is(section, .section) > .wrap > .fill, #servicios .grid.fill { flex: none !important; }
}
@media (max-width: 639px) {
  main > :is(section, .section):not(.hero) { padding-top: 64px !important; padding-bottom: 40px !important; }
}

/* 28-11 · termostato digital programable (imagen tipo del cliente): carcasa blanca, pantalla azul retroiluminada y 5 teclas */
.termo { width: 340px; padding: 14px 14px 12px; background: linear-gradient(180deg, #ffffff 0%, #eef0f2 100%); border: 1px solid #d9dde1; border-radius: 18px;
  box-shadow: 0 1px 0 #fff inset, 0 2px 4px rgb(24 28 32 / .08), 0 18px 40px -18px rgb(24 28 32 / .35); }
.termo__lcd { position: relative; border-radius: 8px; padding: 10px 14px 12px; color: #071a5c; overflow: hidden;
  background: radial-gradient(120% 90% at 30% 20%, #5fa0ff 0%, #2f6df2 45%, #1f4fd6 100%);
  box-shadow: 0 0 0 3px #f6f7f8, 0 0 0 4px #c9ced3, inset 0 2px 6px rgb(0 0 40 / .35); transition: background .5s ease, color .5s ease; }
.termo__lcd::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgb(255 255 255 / .22), transparent 40%); pointer-events: none; }
.termo[data-apagado] .termo__lcd { background: radial-gradient(120% 90% at 30% 20%, #a9b7c6 0%, #8f9fb0 60%, #7f8fa1 100%); color: #26303b; }
.lcd__top { display: flex; align-items: center; gap: 10px; font: 600 13px/1 var(--font-text); letter-spacing: .04em; }
.lcd__prog { opacity: .12; font-size: 11px; transition: opacity .2s; }
.lcd__prog.is-on { opacity: 1; }
.lcd__hora { height: 18px; width: auto; margin-left: auto; }
.lcd__mid { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; column-gap: 8px; margin-top: 8px; }
.lcd__amb, .lcd__set { display: grid; justify-items: center; gap: 4px; }
.lcd__casa { width: 22px; height: 22px; }
.lcd__label { font: 700 10px/1 var(--font-text); letter-spacing: .06em; }
.lcd__grande { height: 56px; width: auto; justify-self: end; }
.lcd__c { align-self: start; margin-top: 6px; font: 600 15px/1 var(--font-text); }
.lcd__llama svg { width: 16px; height: 16px; display: block; }
.termo[data-apagado] .lcd__llama { opacity: .15; }
.lcd__chica { height: 26px; width: auto; }
.lcdseg .on { fill: currentColor; }
.lcdseg .off { fill: currentColor; opacity: .07; }
.termo__teclas { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 12px; }
.termo__tecla { height: 44px; border: 1px solid #cfd4d9; border-radius: 6px; color: #3a4148; cursor: pointer; display: grid; place-items: center;
  background: linear-gradient(180deg, #ffffff, #e9ecef); box-shadow: 0 1px 0 #fff inset, 0 2px 0 #c3c9cf; font: 600 16px/1 var(--font-text);
  transition: transform .09s ease, box-shadow .09s ease, background-color .15s ease; }
.termo__tecla svg { width: 18px; height: 18px; }
.termo__tecla:hover { background: linear-gradient(180deg, #ffffff, #f2f4f6); }
.termo__tecla:active { transform: translateY(2px); box-shadow: 0 1px 0 #fff inset, 0 0 0 #c3c9cf; }
.termo__tecla:focus-visible { outline: 2px solid var(--action, #c75a1d); outline-offset: 2px; }
@media (max-width: 1023px) { .termo { width: 100%; max-width: 380px; } }
@media (max-width: 639px) { .termo { max-width: none; } .lcd__grande { height: 52px; } }
@media (prefers-reduced-motion: reduce) { .termo__lcd, .termo__tecla { transition: none; } }

/* 28-11 · el cliente: «por celular no salen las fotos de Servicios».
   En el celular cada servicio lleva su propia foto bajo su texto (alto fijo, sin aspect-ratio, que iPhone antiguos no entienden);
   el cuadro grande de la derecha queda solo desde tablet. */
.rows__foto { display: none; }
@media (max-width: 639px) {
  #servicios .rows__foto { display: block; width: 100%; height: 210px; object-fit: cover; border-radius: var(--r-md, 12px); margin-top: var(--s-3); }
  #servicios .grid.fill > .frame--fill { display: none !important; }
  #servicios [data-peek-to] { cursor: default; }
}
/* respaldo para navegadores sin aspect-ratio (iOS 14 o anterior): alto fijo en los marcos que lo usan */
@supports not (aspect-ratio: 1 / 1) {
  #servicios .grid.fill > .frame--fill { height: 420px !important; }
  .preguntas__foto { height: 260px; }
}
@media (max-width: 639px) { #servicios .rows > li { display: block; } #servicios .rows__foto { grid-column: 1 / -1; max-width: none; } }

/* 28-11 · «por celular no salen las fotos de Servicios»: el menú del celular y del iPad vertical ocultaba la foto de cada servicio.
   Ahora cada servicio del menú lleva su foto en miniatura a la izquierda. Se agregó Aire acondicionado (5 servicios). */
@media (min-width: 1024px) { .nav__menu > .wrap.grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } .nav__menu .menu-card { grid-column: auto; } }
@media (max-width: 1023px) {
  .nav.is-open .menu-card { grid-template-columns: 76px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; row-gap: 2px; align-items: center; align-content: center; min-height: 76px; }
  .nav.is-open .menu-card .panel { --p-h: 76px; display: block; grid-row: 1 / span 2; position: relative; width: 76px !important; height: 76px !important; min-height: 0 !important; max-height: 76px; padding: 0; border-radius: 10px; overflow: hidden; }
  .nav.is-open .menu-card .panel::before { display: none; }
  .nav.is-open .menu-card .panel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .nav.is-open .menu-card .t-card { align-self: end; }
  .nav.is-open .menu-card .t-small { align-self: start; }
}

/* 28-11 · iPad horizontal / pantallas táctiles anchas: el menú se abría con el toque y quedaba pegado encima del contenido.
   En pantallas táctiles el panel se abre solo con .is-touch-open (lo maneja nova.js) y se cierra al elegir o tocar fuera. */
@media (min-width: 1024px) and (hover: none) {
  .nav__item:hover > .nav__menu, .nav__item:focus-within > .nav__menu { opacity: 0; visibility: hidden; transform: translateY(-6px); transition-delay: 0s; }
  .nav__item:hover > .nav__link .chev, .nav__item:focus-within > .nav__link .chev { transform: none; }
  .nav__item.is-touch-open > .nav__menu { opacity: 1; visibility: visible; transform: none; transition-duration: 160ms, 160ms, 0s; transition-delay: 0s; }
  .nav__item.is-touch-open > .nav__link .chev { transform: rotate(180deg); }
}
/* iPad vertical (640–1023): igual que el celular, cada servicio con su foto, en dos columnas */
@media (min-width: 640px) and (max-width: 1023px) {
  #servicios .grid.fill > .frame--fill { display: none !important; }
  #servicios .rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-6, 24px); grid-column: 1 / -1; width: 100%; }
  #servicios .rows > li { display: block; }
  #servicios .rows__foto { display: block; width: 100%; height: 220px; object-fit: cover; border-radius: var(--r-md, 12px); margin-top: var(--s-3); }
  #servicios [data-peek-to] .rows__name::after { display: none; }
}
