/* PersiCas · Técnico
   Azul noche para la estructura (cabecera, portada, reparación, presupuesto y pie),
   blanco y gris frío para leer, y celeste solo en lo que se puede pulsar. */
:root {
  --night: #111827;
  --night-2: #1B2436;
  --sky: #38BDF8;
  --sky-hover: #7DD3FC;
  --blue: #1A5FB4;       /* enlaces y foco sobre fondos claros */
  --ink: #18202E;
  --text: #465063;
  --mist: #EEF2F7;
  --steel: #D8DFE9;      /* líneas finas sobre claro */
  --rule: #AEB9C9;       /* líneas de más peso sobre claro */
  --on-dark: #C3CEDD;    /* texto de cuerpo sobre azul noche */
  --on-dark-strong: #E4EAF2;
  --muted-ico: #8FA0B8;  /* iconos y etiquetas secundarias sobre azul noche */
  --line-dark: rgba(255, 255, 255, .16);
  --head: "Fira Sans", system-ui, sans-serif;
  --body: "Work Sans", system-ui, sans-serif;
  --gutter: 1.25rem;
  --section: clamp(4rem, 2.6rem + 5.5vw, 7.5rem);
  --focus: var(--blue);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
@media (min-width: 700px) { :root { --gutter: 2.5rem; } }
/* Desde 1100 px el margen lateral deja sitio al botón flotante de WhatsApp sin que pise el contenido */
@media (min-width: 1100px) { :root { --gutter: max(5rem, calc((100vw - 1240px) / 2)); } html { scroll-padding-top: 8rem; } }

body { font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--text); background: #fff; accent-color: var(--blue); caret-color: var(--blue); }
::selection { background: var(--sky); color: var(--night); }
.on-dark { --focus: var(--sky); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; color: var(--ink); line-height: 1.12; letter-spacing: -.015em; }
h2 { font-size: clamp(1.9rem, 1.35rem + 2.1vw, 2.85rem); }
h3 { font-size: 1.375rem; letter-spacing: -.01em; }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.wrap { width: 100%; margin-inline: auto; padding-inline: var(--gutter); }
a { text-underline-offset: .22em; }
main p a, main dd a { color: var(--blue); }
.on-dark p a, .on-dark dd a { color: #fff; }
/* Los botones conservan su color aunque estén dentro de un párrafo sobre fondo oscuro */
.on-dark p a.btn--accent { color: var(--night); }
.on-dark p a.btn--outline:hover { color: var(--night); }

/* Botones: rectos, mayúsculas, sin radio */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.25rem; padding: .85rem 1.6rem; border: 1px solid transparent; border-radius: 0;
  font-family: var(--head); font-weight: 500; font-size: .9375rem; line-height: 1.25; letter-spacing: .09em; text-transform: uppercase; text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s; }
.btn--accent { background: var(--sky); color: var(--night); }
.btn--accent:hover { background: var(--sky-hover); }
.btn--outline { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--outline:hover { border-color: #fff; background: #fff; color: var(--night); }
.btn--dark { background: var(--night); color: #fff; }
.btn--dark:hover { background: var(--night-2); }
.btn--sm { min-height: 2.75rem; padding: .55rem 1.15rem; font-size: .875rem; }

/* Enlace de continuación */
.more { display: inline-flex; align-items: center; gap: .5rem; padding-block: .5rem; font-family: var(--head); font-weight: 600; color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; }
.more .ico { width: 1.1em; height: 1.1em; transition: transform .3s var(--ease); }
.more:hover { color: var(--ink); }
.more:hover .ico { transform: translateX(4px); }

/* Cabecera de sección: una línea de cierre arriba, título a la izquierda y explicación a la derecha */
.head { display: grid; gap: 1rem; padding-top: 1.5rem; margin-bottom: clamp(2.25rem, 1.5rem + 3vw, 4rem); border-top: 2px solid var(--ink); }
.head p { max-width: 54ch; font-size: 1.125rem; }
.on-dark .head { border-top-color: rgba(255, 255, 255, .7); }
@media (min-width: 900px) { .head { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 4rem; align-items: end; } .head h2 { max-width: 20ch; } }

/* Listas de definición compartidas por catálogo y motorización */
.types { display: grid; gap: .9rem; margin-top: 1.5rem; }
.types dt { font-family: var(--head); font-weight: 600; color: var(--ink); }
.types dd, .facts dd { margin: 0; }
.facts { margin-top: 1.5rem; border-top: 1px solid var(--rule); }
.facts > div { display: grid; gap: .2rem 1.25rem; padding-block: .9rem; border-bottom: 1px solid var(--steel); }
.facts dt { font-family: var(--head); font-weight: 500; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text); padding-top: .25rem; }
@media (min-width: 520px) { .facts > div { grid-template-columns: 8.5rem minmax(0, 1fr); } }

/* ---------- Cabecera ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--night); color: #fff; }
.topbar { display: none; border-bottom: 1px solid var(--line-dark); font-size: .875rem; color: var(--on-dark); }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 2.25rem; }
.topbar p, .topbar a { display: inline-flex; align-items: center; gap: .45rem; }
.topbar__right { gap: 1.75rem; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.topbar a:hover { text-decoration: underline; text-decoration-color: var(--sky); }
.topbar .ico { color: var(--muted-ico); width: 1rem; height: 1rem; }
.header__in { position: relative; display: flex; align-items: center; gap: 1rem; min-height: 4rem; }
.header__quick { margin-left: auto; padding: .6rem .25rem; color: #fff; font-family: var(--head); font-weight: 500; text-decoration: underline; text-decoration-color: var(--sky); text-decoration-thickness: 2px; text-underline-offset: .35em; }
.header__cta { display: none; }
/* En pantallas estrechas el lema del logotipo cede su sitio al acceso directo a reparación */
@media (max-width: 419.98px) { .logo__tag { display: none; } .logo__name { font-size: 1.45rem; } }
@media (min-width: 700px) { .header__in { gap: 1.5rem; } .header__cta { display: inline-flex; } .nav .nav__cta { display: none; } }
@media (min-width: 1100px) {
  .topbar { display: block; }
  .header__in { min-height: 4.5rem; gap: 2rem; }
}

/* ---------- Portada ---------- */
.hero { background: var(--night); color: var(--on-dark); }
.hero__in { display: grid; grid-template-areas: "head" "media" "body"; gap: 1.25rem; padding-top: 1.5rem; padding-bottom: 2.5rem; }
.hero__head { grid-area: head; }
.hero__body { grid-area: body; }
.hero h1 { max-width: 20ch; font-size: clamp(2rem, 1.15rem + 3.6vw, 3.75rem); line-height: 1.06; letter-spacing: -.02em; }
.hero__lead { max-width: 52ch; font-size: 1.125rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero__data { display: flex; flex-wrap: wrap; gap: 1rem 3rem; margin: 2rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line-dark); }
.hero__data dt, .contact dt { font-family: var(--head); font-weight: 500; font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-ico); }
.hero__data dd { margin: .1rem 0 0; font-family: var(--head); font-weight: 600; font-size: 1.375rem; font-variant-numeric: tabular-nums; }
.hero__data a, .contact a { display: inline-block; padding-block: .25rem; text-decoration: none; }
.hero__data a:hover, .contact a:hover { text-decoration: underline; text-decoration-color: var(--sky); text-decoration-thickness: 2px; }
/* Dos fotos reales, separadas por una junta fina como dos paños: instalación completa y detalle de lamas */
.hero__media { grid-area: media; display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 6px; height: clamp(10.5rem, 48vw, 26rem); margin-inline: calc(var(--gutter) * -1); }
.hero__media figure { position: relative; overflow: hidden; background: var(--night-2); }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__main img { object-position: 50% 62%; }
.hero__media figcaption { position: absolute; left: 0; bottom: 0; max-width: 100%; padding: .45rem .8rem; background: var(--night); color: var(--on-dark-strong); font-size: .8125rem; line-height: 1.35; }
@media (max-width: 699.98px) {
  .hero__actions .btn { width: 100%; }
  .hero__lead { font-size: 1rem; }
  .hero__actions { margin-top: 1.25rem; }
}
@media (min-width: 1100px) {
  .hero__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); grid-template-rows: auto 1fr; grid-template-areas: "head media" "body media"; gap: 1.75rem 4rem; padding-block: 0; }
  .hero__head { padding-top: 3.75rem; }
  .hero__body { padding-bottom: 3.25rem; }
  .hero__media { height: auto; min-height: 30rem; margin-left: 0; }
}

/* Accesos directos: cierran la portada y sustituyen a un menú de iconos */
.routes { background: var(--night-2); border-top: 1px solid var(--line-dark); }
.routes__in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.routes a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .15rem 1rem; height: 100%; padding: 1rem 0; text-decoration: none; }
.routes li:nth-child(odd) a { padding-right: 1rem; }
.routes li:nth-child(even) a { padding-left: 1rem; border-left: 1px solid var(--line-dark); }
.routes li:nth-child(n + 3) a { border-top: 1px solid var(--line-dark); }
.routes strong { font-family: var(--head); font-weight: 600; font-size: 1.0625rem; color: #fff; }
.routes span { display: none; grid-column: 1; font-size: .9rem; line-height: 1.4; color: var(--on-dark); }
.routes .ico { grid-column: 2; grid-row: 1; color: var(--muted-ico); transition: transform .3s var(--ease), color .2s; }
.routes a:hover strong, .routes a:focus-visible strong { text-decoration: underline; text-decoration-color: var(--sky); text-decoration-thickness: 2px; text-underline-offset: .3em; }
.routes a:hover .ico, .routes a:focus-visible .ico { color: var(--sky); transform: translateX(4px); }
@media (min-width: 700px) { .routes span { display: block; } .routes a { align-items: start; padding-block: 1.35rem; } }
@media (min-width: 1100px) {
  .routes__in { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .routes li:nth-child(n) a { padding: 1.4rem 1.5rem 1.5rem; border-top: 0; border-left: 1px solid var(--line-dark); }
  .routes li:first-child a { padding-left: 0; border-left: 0; }
  .routes li:last-child a { padding-right: 0; }
}

/* ---------- Catálogo ---------- */
.catalog { padding-block: var(--section); }
.entry__links { display: flex; flex-wrap: wrap; gap: .25rem 2rem; margin-top: 1rem; }
.job figcaption { margin-top: .55rem; font-size: .875rem; line-height: 1.45; color: var(--text); }

/* ---------- Reparación ---------- */
.repair { padding-block: var(--section); background: var(--night); color: var(--on-dark); }
.repair__layout { display: grid; gap: 3rem; }
.faults { border-top: 1px solid var(--line-dark); }
.faults li { border-bottom: 1px solid var(--line-dark); }
.send { padding: 1.75rem; background: var(--night-2); }
.send h3 { font-size: 1.25rem; }
.checks { display: grid; gap: .7rem; margin-top: 1.25rem; color: var(--on-dark-strong); }
.checks li { display: flex; gap: .7rem; }
.checks .ico { margin-top: .2em; color: var(--muted-ico); }
.send__note { margin-block: 1.25rem 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line-dark); font-size: .9375rem; }
.send .btn { width: 100%; }
.send__alt { margin-top: 1rem; text-align: center; }
.send__alt a { font-family: var(--head); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (min-width: 1000px) {
  .repair__layout { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 4.5rem; align-items: start; }
  .send { position: sticky; top: 9rem; padding: 2.25rem; }
}

/* ---------- Motorización ---------- */
.motor__in { display: grid; gap: 2.5rem; }
.motor__video video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--night); }
.motor__lead { margin-top: 1rem; font-size: 1.125rem; color: var(--ink); max-width: 46ch; }
@media (min-width: 1000px) { .motor__in { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 4.5rem; align-items: start; }
  .motor__video { position: sticky; top: 9rem; } }

/* ---------- Trabajos ---------- */
.works { padding-block: var(--section); }
.ph { position: relative; flex: none; overflow: hidden; aspect-ratio: 4 / 3; background: var(--mist); }
.ph img, .ph video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Presupuesto ---------- */
.quote { padding-block: var(--section); background: var(--night); color: var(--on-dark); }
.quote__layout { display: grid; gap: 3rem; }
.steps { counter-reset: paso; }
.steps li { position: relative; counter-increment: paso; padding: 0 0 2rem 4rem; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(paso); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 1px solid rgba(255, 255, 255, .5); font-family: var(--head); font-weight: 600; font-size: 1.125rem; color: #fff; }
.steps li::after { content: ""; position: absolute; left: 1.25rem; top: 2.5rem; bottom: 0; width: 1px; background: var(--line-dark); }
.steps li:last-child::after { display: none; }
.steps h3 { padding-top: .35rem; font-size: 1.2rem; }
.steps p { margin-top: .4rem; max-width: 46ch; }
.contact { display: grid; grid-template-columns: minmax(0, 1fr); margin: clamp(3rem, 6vw, 4.5rem) 0 0; border-top: 1px solid rgba(255, 255, 255, .7); }
.contact > div { padding-block: 1.1rem; border-bottom: 1px solid var(--line-dark); }
.contact dd { margin: .15rem 0 0; font-family: var(--head); font-weight: 600; font-size: 1.375rem; line-height: 1.3; color: #fff; font-variant-numeric: tabular-nums; }
@media (min-width: 700px) {
  .contact { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; }
}
@media (min-width: 1000px) {
  .quote__layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 4.5rem; align-items: start; }
  .contact { grid-template-columns: repeat(4, minmax(0, auto)); justify-content: space-between; }
  .contact > div { padding-block: 1.5rem 0; border-bottom: 0; }
}

/* ---------- Dudas ---------- */
.faq { padding-block: var(--section); }
.faq__in { display: grid; gap: 2rem; }
.faq__head { padding-top: 1.5rem; border-top: 2px solid var(--ink); }
.faq__head p { margin-top: 1rem; max-width: 38ch; font-size: 1.125rem; }
.faq__list { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--steel); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: 1.25rem; list-style: none; cursor: pointer; font-family: var(--head); font-weight: 500; font-size: 1.2rem; line-height: 1.3; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
/* Signo más dibujado con dos trazos; al abrir queda solo el horizontal */
.faq summary::after { content: ""; flex: none; width: 1rem; height: 1rem;
  background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { background-size: 100% 2px, 2px 0; transform: rotate(180deg); }
.faq summary:hover { color: var(--blue); }
.faq details p { max-width: 62ch; padding: 0 2.5rem 1.5rem 0; }
/* Dudas dentro de una ficha: mantiene el ritmo de .product-section */
.faq--ficha { padding-block: 3rem 0; }
.faq--ficha .faq__list { max-width: 52rem; }
@media (min-width: 1000px) { .faq__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 4.5rem; align-items: start; } .faq__list { border-top: 2px solid var(--ink); } }

/* ---------- Pie ---------- */
.footer { background: var(--night); color: var(--on-dark); border-top: 1px solid var(--line-dark); }
.footer__in { display: grid; gap: 2.5rem; padding-block: 3.5rem 2.5rem; }
.footer__brand p { margin-top: 1.25rem; max-width: 34ch; font-size: .9375rem; }
.footer__col h2 { margin-bottom: 1rem; font-family: var(--head); font-weight: 500; font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-ico); }
.footer__col ul { display: grid; }
.footer__col a { display: inline-flex; align-items: center; gap: .6rem; padding-block: .55rem; color: var(--on-dark-strong); text-decoration: none; }
.footer__col a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--sky); text-decoration-thickness: 2px; }
.footer__contact li { display: flex; align-items: center; gap: .6rem; padding-block: .55rem; color: var(--on-dark-strong); font-variant-numeric: tabular-nums; }
.footer__contact li a { padding: 0; }
.footer__contact .ico { color: var(--muted-ico); }
.footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; padding-block: 1.25rem 1.5rem; border-top: 1px solid var(--line-dark); font-size: .875rem; }
@media (min-width: 700px) { .footer__in { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .footer__in { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 3.5rem; padding-block: 4.5rem 3.5rem; } }

/* ---------- Páginas de producto ---------- */
.product-page { padding-block: 2rem 5rem; }
.product-intro, .product-details, .product-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.product-intro h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 1.25rem; }
.product-intro p { font-size: 1.15rem; max-width: 60ch; }
.product-intro img { width: 100%; height: 19rem; object-fit: cover; }
.product-intro figure { position: relative; }
.product-intro figcaption { font-size: .85rem; margin-top: .4rem; }
.product-details { margin-top: 3rem; }
.product-details h2 { font-size: 1.6rem; margin-bottom: 1rem; }
.product-details ul { padding-left: 1.25rem; }
.product-details li + li { margin-top: .8rem; }
.product-details table { width: 100%; border-collapse: collapse; text-align: left; }
.product-details caption { text-align: left; font-weight: 600; color: var(--ink); margin-bottom: .75rem; }
.product-details th, .product-details td { padding: .9rem; border: 1px solid var(--steel); vertical-align: top; }
.product-details thead { background: var(--mist); }
.product-section { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--rule); }
.product-section h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 1rem; }
.product-filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-block: 1.5rem; }
.product-filters button { min-height: 2.75rem; padding: .7rem 1rem; border: 1px solid var(--rule); background: #fff; color: var(--ink); font: inherit; cursor: pointer; }
.product-filters button[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: #fff; }
.product-models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.product-models article { padding: 1.5rem; background: var(--mist); }
.product-models article[hidden] { display: none; }
.product-models h3 { margin-bottom: .7rem; }
.compare-label { position: absolute; bottom: 1rem; padding: .25rem .6rem; background: #fff; color: var(--ink); font-size: .8rem; pointer-events: none; }
.compare-label--left { left: 1rem; }
.compare-label--right { right: 1rem; }
.product-quote .btn { margin-top: 1.3rem; }
@media (max-width: 760px) {
  .product-intro, .product-details, .product-demo { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .product-models { grid-template-columns: minmax(0, 1fr); }
  .product-details th, .product-details td { padding: .65rem; }
}

/* ========== Fase B (05-interfaz-y-accesibilidad.md) ========== */
/* 05-interfaz · bloque 3 */
.header__in { flex-wrap: wrap; }
.menu-btn { display: none; align-items: center; justify-content: center; flex: none; width: 2.75rem; height: 2.75rem; background: none; border: 1px solid rgba(255, 255, 255, .35); color: #fff; cursor: pointer; }
.js .menu-btn { display: inline-flex; }
.menu-btn .ico { width: 1.5rem; height: 1.5rem; }
.menu-btn[aria-expanded="true"] { background: #fff; color: var(--night); }

/* Sin JavaScript: lista visible bajo la fila principal */
.nav { order: 10; flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 0 1.5rem; padding-bottom: .5rem; border-top: 1px solid var(--line-dark); font-family: var(--head); font-weight: 500; }
.nav a { padding-block: .7rem; color: var(--on-dark-strong); text-decoration: none; }
.nav a:hover { color: #fff; }
.nav .nav__cta { color: var(--sky); }
.nav a[aria-current="page"], .nav a.is-section { color: #fff; text-decoration: underline; text-decoration-color: var(--sky); text-decoration-thickness: 2px; text-underline-offset: .45em; }
.header__cta[aria-current="page"] { background: #fff; }

/* Con JavaScript: panel desplegable en móvil y tableta */
.js .nav { position: absolute; top: 100%; left: 0; right: 0; order: 0; display: grid; gap: 0; padding: .25rem var(--gutter) 1.25rem; background: var(--night-2);
  visibility: hidden; opacity: 0; transform: translateY(-.5rem); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s; }
.js .nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.js .nav a { padding-block: .95rem; border-bottom: 1px solid var(--line-dark); font-size: 1.1rem; }
.js .nav .nav__cta { border-bottom: 0; }

@media (min-width: 1100px) {
  .header__in { flex-wrap: nowrap; }
  .header__quick, .menu-btn, .js .menu-btn { display: none; }
  .nav, .js .nav { position: static; order: 0; flex-basis: auto; display: flex; flex-wrap: nowrap; gap: 1.75rem; margin-left: auto; padding: 0; background: none; border: 0; visibility: visible; opacity: 1; transform: none; transition: none; }
  .nav a, .js .nav a { padding-block: .4rem; border: 0; font-size: 1rem; }
  .nav a:hover { text-decoration: underline; text-decoration-color: var(--sky); text-decoration-thickness: 2px; text-underline-offset: .45em; }
}

/* 05-interfaz · bloque 6 */
.page-head { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) clamp(2rem, 1rem + 3vw, 3rem); }
.page-head.on-dark { background: var(--night); color: var(--on-dark); }
.page-head h1 { max-width: 22ch; font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); line-height: 1.08; letter-spacing: -.02em; }
.page-head p { margin-top: 1rem; max-width: 56ch; font-size: 1.125rem; }
.page-head__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: 1.75rem; }
.page-head.on-dark + .on-dark { padding-top: 0; }

/* 05-interfaz · bloque 7 */
/* Solo por debajo de 1100 px: desde ahí rige la rejilla de dos columnas del bloque «Portada». */
@media (max-width: 1099.98px) { .hero__in { grid-template-areas: "head" "body" "media"; } }
.hero h1 { max-width: 24ch; font-size: clamp(1.85rem, 1.1rem + 3vw, 3.25rem); }
.hero__media { grid-template-columns: minmax(0, 1fr); height: clamp(11rem, 52vw, 24rem); }
.hero__detail { display: none; }
@media (min-width: 1100px) {
  .hero__media { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); height: auto; }
  .hero__detail { display: block; }
}

/* 05-interfaz · bloque 9 */
.anchor { display: block; height: 0; }
.home-catalog, .home-works, .home-faq { padding-block: var(--section); }
.home-services, .home-quote { padding-block: var(--section); background: var(--night); color: var(--on-dark); }
.home-rows { border-top: 1px solid var(--rule); }
.home-row { display: grid; gap: .4rem 2rem; padding-block: 1.4rem; border-bottom: 1px solid var(--steel); }
.home-row h3 { font-size: 1.375rem; }
.home-row__links { display: flex; flex-wrap: wrap; gap: 0 1.75rem; }
.home-more { margin-top: 2rem; }
@media (min-width: 900px) { .home-row { grid-template-columns: 14rem minmax(0, 1fr) auto; align-items: baseline; } }

.home-services__in { display: grid; gap: 3rem; }
.home-services article { padding-top: 1.5rem; border-top: 2px solid rgba(255, 255, 255, .7); }
.home-services h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); }
.home-services p { margin-top: .9rem; max-width: 48ch; }
.home-services .btn { margin-top: 1.5rem; }
.home-services__alt { font-family: var(--head); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .home-services__in { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4.5rem; } }

.home-works__list { display: grid; gap: 2rem 1.5rem; }
.home-work .ph { aspect-ratio: 4 / 3; }
.home-work h3 { margin-top: .9rem; font-size: 1.25rem; }
@media (min-width: 700px) { .home-works__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.home-quote .steps li { padding-bottom: 1.25rem; }
.home-quote__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
@media (max-width: 699.98px) { .home-quote__actions .btn { width: 100%; } }
.on-dark .more { color: var(--sky); }
.on-dark .more:hover { color: #fff; }

/* 05-interfaz · bloque 11 */
.needs { padding-bottom: var(--section); }
.needs__list { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.needs__list a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 3rem; padding-block: .8rem; border-bottom: 1px solid var(--steel); color: var(--ink); font-family: var(--head); font-weight: 500; text-decoration: none; }
.needs__list a:hover { color: var(--blue); border-bottom-color: var(--blue); }
@media (min-width: 800px) { .needs__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3.5rem; } }

.family { display: grid; gap: 2rem; padding-block: 2.75rem; border-top: 1px solid var(--rule); }
.family h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); }
.family .btn { margin-top: 1.25rem; }
.family__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--mist); }
.family__media figcaption { margin-top: .55rem; font-size: .875rem; color: var(--text); }
@media (min-width: 900px) { .family:has(.family__media) { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 3.5rem; } .family:not(:has(.family__media)) .family__text { max-width: 46rem; } }

.related, .page-cta.on-dark { padding-block: var(--section); background: var(--night); color: var(--on-dark); }
.related__in { display: grid; gap: 2.5rem; }
@media (min-width: 800px) { .related__in { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4.5rem; } }
.page-cta { padding-block: var(--section); }
.page-cta p { margin-top: .9rem; max-width: 52ch; }
.page-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: 1.5rem; }

/* 05-interfaz · bloque 13 */
.faults__item { display: grid; gap: .75rem 2.5rem; padding-block: 1.4rem; }
.faults__q { font-family: var(--head); font-weight: 600; font-size: 1.2rem; line-height: 1.25; color: #fff; }
.faults__hint { margin-top: .35rem; font-size: .9375rem; line-height: 1.5; color: var(--on-dark); }
.faults__hint strong { font-weight: 500; color: var(--on-dark-strong); }
.faults__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; }
@media (min-width: 800px) { .faults__item { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } .faults__actions { flex-direction: column; align-items: flex-start; } }
.notice { padding: 1rem 1.25rem; border-left: 3px solid var(--sky); background: var(--night-2); color: var(--on-dark-strong); }

/* 05-interfaz · bloque 14 */
.motor-check, .motor-controls, .motor-others, .motor-send { padding-block: 0 clamp(2.5rem, 2rem + 2vw, 4rem); }
.motor-desc { margin-top: .75rem; max-width: 60ch; font-size: .9375rem; }

/* 05-interfaz · bloque 16 */
.jobs-index ul { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; list-style: none; padding: 0; }
.jobs-index a { display: block; padding: .55rem .9rem; border: 1px solid var(--rule); color: var(--ink); font-family: var(--head); font-weight: 500; text-decoration: none; }
.jobs-index a:hover { border-color: var(--ink); background: var(--mist); }
.job { display: grid; gap: 1.5rem; padding-block: 2.75rem; border-top: 1px solid var(--rule); }
.job:first-of-type { padding-top: 0; border-top: 0; }
.job h2 { font-size: 1.5rem; }
.job__text p { margin-block: .75rem; max-width: 52ch; }
.job figure { min-width: 0; }
.job figcaption { margin-top: .55rem; font-size: .875rem; line-height: 1.45; color: var(--text); }
.job__more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem .75rem; }
.job__more .ph--video { aspect-ratio: 9 / 16; }
@media (min-width: 1000px) {
  .job { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.5rem 3.5rem; align-items: start; padding-block: 3.5rem; }
  .job__main { grid-row: 1 / span 2; }
}

/* 05-interfaz · bloque 18 */
.crumbs { margin-bottom: 2rem; font-family: var(--head); font-size: .9375rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .6rem; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "›"; margin-right: .6rem; color: var(--text); }
.crumbs a { display: inline-block; padding-block: .35rem; color: var(--blue); }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }

/* 05-interfaz · bloque 19 */
.product-fit, .product-send, .product-photos { margin-top: 3rem; }
.product-fit h2, .product-send h2, .product-photos h2 { font-size: 1.6rem; margin-bottom: 1rem; }
.product-fit p { max-width: 62ch; font-size: 1.0625rem; }
.product-send ol { display: grid; gap: .5rem; max-width: 60ch; padding-left: 1.25rem; }
.product-photos__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.product-photos__list--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--mist); }
.product-photos figcaption { margin-top: .4rem; font-size: .85rem; }
.product-quote__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.3rem; }
.product-related { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.product-related ul { display: flex; flex-wrap: wrap; gap: .25rem 2rem; margin: 0; padding: 0; list-style: none; }
@media (max-width: 760px) { .product-photos__list, .product-photos__list--3 { grid-template-columns: minmax(0, 1fr); } .product-quote__actions .btn { width: 100%; } }

/* 05-interfaz · bloque 21 */
.model__spaces { margin-top: .8rem; font-family: var(--head); font-weight: 500; font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.product-filters[hidden] { display: none; }

/* 05-interfaz · bloque 26 */
.footer__legal a { color: var(--on-dark-strong); }
.footer__legal a:hover { color: #fff; }
.footer__legal ul { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.footer__legal li a { display: inline-block; padding-block: .35rem; }

/* 05-interfaz · bloque 27 */
.legal { max-width: 68ch; padding-bottom: var(--section); }
.legal h2 { margin-top: 2.5rem; font-size: 1.5rem; }
.legal p, .legal ul { margin-top: 1rem; }
.legal ul { padding-left: 1.25rem; }
.error-links { display: grid; gap: 0; max-width: 32rem; margin-block: 2rem; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.error-links a { display: block; padding-block: .8rem; border-bottom: 1px solid var(--steel); color: var(--blue); font-family: var(--head); font-weight: 500; }

/* 05-interfaz · bloque 29 */
.product-details div:has(> table) { overflow-x: auto; }

/* 05-interfaz · bloque 30 */
.consent { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; display: grid; gap: .9rem 2rem; padding: 1rem var(--gutter); background: #fff; color: var(--ink); border-top: 2px solid var(--ink); box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, .35); --focus: var(--blue); }
.consent[hidden] { display: none; }
.consent p { max-width: 68ch; font-size: .9375rem; line-height: 1.5; }
.consent a { color: var(--blue); }
.consent__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.consent__actions .btn { flex: 1 1 8rem; }
.consent__title { font-size: 1.05rem; margin-bottom: .35rem; }
.consent__prefs { display: grid; gap: .6rem; margin: 0; padding: .75rem 0 0; border: 0; border-top: 1px solid var(--rule); grid-column: 1 / -1; }
.consent__prefs[hidden], .consent__actions [hidden] { display: none; }
.consent__opt { display: flex; gap: .7rem; align-items: flex-start; font-size: .9375rem; line-height: 1.45; cursor: pointer; }
.consent__opt input { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .15rem; accent-color: var(--blue); }
.consent__opt input:disabled { cursor: not-allowed; }
.consent__opt strong { display: block; }
.btn--outline-ink { border-color: var(--ink); color: var(--ink); background: #fff; }
.btn--outline-ink:hover { background: var(--ink); color: #fff; }
@media (max-width: 1099.98px) { .consent { bottom: calc(3.5rem + env(safe-area-inset-bottom)); } }
@media (min-width: 800px) { .consent { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } .consent__actions .btn { flex: 0 0 auto; min-width: 9rem; } }
.linklike { padding: .35rem 0; border: 0; background: none; color: var(--on-dark-strong); font: inherit; text-decoration: underline; cursor: pointer; }
.linklike:hover { color: #fff; }
.linklike[hidden] { display: none; }
.legal .linklike { color: var(--blue); }
.legal .linklike:hover { color: var(--ink); }

/* 05-interfaz · bloque 31 */
html:has(.consent:not([hidden])) { scroll-padding-bottom: 12rem; }


/* 05-interfaz · bloque 25 (Presupuesto: canales) */
.channels { display: grid; gap: 0; margin-bottom: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid rgba(255, 255, 255, .7); }
.channel { display: grid; gap: .6rem; align-content: start; padding-block: 1.75rem; border-bottom: 1px solid var(--line-dark); }
.channel h3 { font-size: 1.375rem; }
.channel p { max-width: 38ch; }
.channel .btn { margin-top: .6rem; justify-self: start; }
.channel__value { display: inline-flex; align-items: center; gap: .6rem; min-height: 3.25rem; margin-top: .6rem; color: #fff; font-family: var(--head); font-weight: 600; font-size: 1.375rem; font-variant-numeric: tabular-nums; text-decoration: none; }
.channel__value:hover { text-decoration: underline; text-decoration-color: var(--sky); text-decoration-thickness: 2px; text-underline-offset: .3em; }
.channel__value .ico { color: var(--muted-ico); }
.quote__more { margin-top: 2rem; }
@media (max-width: 699.98px) { .channel .btn { justify-self: stretch; } }
@media (min-width: 900px) {
  .channels { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 3.5rem; border-bottom: 1px solid var(--line-dark); }
  .channel { border-bottom: 0; }
}

/* Con JavaScript el menú es un panel absoluto: la fila principal no salta de línea */
@media (max-width: 1099.98px) { .js .header__in { flex-wrap: nowrap; } }

/* ---------- Fase B: piezas auxiliares de las vistas ---------- */
/* Textos que dependen de JavaScript (ficha de Toldos) */
.only-js { display: none; }
.js .only-js { display: block; }
.js .no-js { display: none; }
.needs__title { margin-bottom: 1.25rem; font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); }
.notice--light { margin-top: 1.5rem; max-width: 60ch; background: var(--mist); color: var(--ink); border-left-color: var(--blue); }
.notice + h2 { margin-top: 2.5rem; }
.repair h2#t-sintomas { margin-bottom: 1.5rem; }
.faults__item + * { margin: 0; }
/* Motorización */
.motor-check { padding-top: clamp(1rem, .5rem + 2vw, 2rem); }
.motor-check h2, .motor-controls h2, .motor-others h2, .motor-send h2, .motor__video h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
.motor-body { margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.motor__video figure { margin-top: 1rem; }
.motor__video video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--night); }
.motor__video figcaption { margin-top: .55rem; font-size: .875rem; line-height: 1.45; color: var(--text); }
.motor-others .more { padding-block: .25rem; }
.motor-send ol { display: grid; gap: .5rem; max-width: 60ch; margin-top: 1rem; padding-left: 1.25rem; }
/* Fichas */
.product-details__note { margin-top: 1rem; max-width: 60ch; }
/* Legales */
.legal__table { margin-top: 1rem; overflow-x: auto; }
.legal table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.45; }
.legal caption { padding-bottom: .6rem; text-align: left; font-family: var(--head); font-weight: 600; color: var(--ink); }
.legal th, .legal td { padding: .6rem .75rem; border: 1px solid var(--steel); text-align: left; vertical-align: top; }
.legal thead { background: var(--mist); }
.legal code { font-size: .875em; }
