/* ============================================================
   TRAULUX — v2 "LED wall"
   Tesis: la web entera se comporta como una pantalla LED en un
   evento. Oscuridad de sala, y la luz turquesa de la marca es
   la protagonista: los titulares se encienden, el héroe es una
   pared de píxeles real que dibuja el texto.
   ============================================================ */

:root {
  /* Marca (verde del logo vectorial oficial) */
  --teal: #00a894;
  --teal-bright: #2fd6bc;
  --teal-dim: #0b5d51;
  --ink: #3e3e3d;            /* Pantone 425 C */

  /* Sala */
  --bg: #101211;
  --bg-raise: #171a19;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4f6f5;
  --text-dim: rgba(244, 246, 245, 0.6);

  /* Poppins, la tipografía oficial de Charmex (decidido el 05/10/2026), en toda la web */
  --font-sans: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Poppins", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1280px;
  --banner-h: 0px;
}

/* Banner promocional (editable desde el panel) */
body:has(> .promo-banner) { --banner-h: 38px; }
body { padding-top: var(--banner-h); }
.promo-banner {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 38px;
  display: flex; justify-content: center; align-items: center; gap: 10px;
  background: var(--teal); color: #0a0c0b;
  font-weight: 700; font-size: 0.9rem; text-decoration: none;
}
.promo-banner:hover { background: var(--teal-bright); }
.promo-banner .arrow { transition: transform 0.2s ease; }
.promo-banner:hover .arrow { transform: translateX(4px); }

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 3px; border-radius: 2px; }

::selection { background: var(--teal); color: var(--bg); }

/* ---------- Tipografía ---------- */
.display {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
}

/* Marcador de sección: el triángulo del logo, no un eyebrow */
.marker {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 0.95rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--teal-bright);
  margin-bottom: 20px;
}
.marker::before {
  content: ""; width: 13px; height: 11px; background: var(--teal);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

h2.display { font-size: clamp(1.9rem, 3.6vw, 3.2rem); }
.lead { font-size: 1.15rem; color: var(--text-dim); max-width: 58ch; }

section { padding: 110px 0; }
[id] { scroll-margin-top: calc(var(--banner-h) + 130px); }
.section-head { margin-bottom: 64px; max-width: 1100px; }
.section-head .lead { margin-top: 18px; max-width: 62ch; }
/* cabecera de sección con acción a la derecha, sin robarle alto a lo de abajo */
.sh-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; max-width: none; }
/* botón dentro de una cabecera de sección (empresa): sin esto se pega al texto */
.section-head .cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---------- Logotipo (SVG oficial) ---------- */
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; line-height: 1; color: var(--text);
}
.logo img { height: 44px; display: block; margin: -8px 0; }
.logo .tag {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 700;
  font-size: 0.8rem; text-transform: uppercase; color: var(--teal-bright);
  letter-spacing: 0.12em; padding-top: 2px;
}

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; inset: var(--banner-h) 0 auto 0; z-index: 40;
  background: linear-gradient(rgba(16, 18, 17, 0.85), rgba(16, 18, 17, 0));
  backdrop-filter: blur(2px);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; height: 76px;
}
.nav { display: flex; align-items: center; gap: 30px; }
/* Contactar: contorno fino, del tamaño de los enlaces del menú; se rellena al pasar */
.nav-contactar {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 9px 18px; border-radius: 99px;
  border: 1px solid rgba(47, 214, 188, 0.65); color: var(--teal-bright); text-decoration: none;
  font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.nav-contactar-txt { display: inline-flex; align-items: center; gap: 8px; }
.nav-contactar-txt span { transition: transform 0.2s ease; }
.nav-contactar-ico { display: none; }
.nav-contactar:hover { background: var(--teal); border-color: var(--teal); color: #0c0e0d; }
.nav-contactar:hover .nav-contactar-txt span { transform: translateX(3px); }
.nav a {
  text-decoration: none; font-weight: 700; font-size: 0.88rem; color: var(--text);
  text-transform: uppercase; letter-spacing: 0.06em;
  position: relative; padding: 4px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 2px; background: var(--teal); transition: right 0.25s ease;
}
.nav a:hover::after { right: 0; }
.nav a.quiet { color: var(--text-dim); font-weight: 500; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 800;
  font-size: 0.98rem; padding: 14px 26px; border-radius: 4px;
  border: 1px solid transparent; cursor: pointer;
}
.btn-teal { background: var(--teal); color: var(--bg); }
.btn-teal:hover { background: var(--teal-bright); box-shadow: 0 0 32px rgba(80, 167, 147, 0.45); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.28); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--teal-bright); color: var(--teal-bright); }

/* ---------- Héroe: la pared LED dibuja el titular ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .content {
  position: relative; padding: 0 0 72px;
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 28px 64px;
  justify-content: space-between;
}
.hero .lead { max-width: 44ch; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .hint {
  position: absolute; top: 96px; right: 28px;
  font-size: 0.8rem; color: var(--text-dim);
}
/* título accesible (el visible lo pinta el canvas) */
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Héroe tipográfico simple (sin canvas) ---------- */
.hero-plain { padding: 170px 0 70px; }
.hero-plain h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: 16ch; }
.hero-plain .lead { margin: 24px 0 34px; }
.hero-plain .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Divisiones: rótulos que se encienden ---------- */
.divisions { padding: 0 0 40px; }
.division-row {
  display: block; text-decoration: none;
  border-top: 1px solid var(--line);
  padding: 44px 0;
  position: relative; overflow: hidden;
}
.division-row:last-child { border-bottom: 1px solid var(--line); }
.division-row .wrap {
  display: grid; grid-template-columns: 1fr minmax(240px, 300px);
  align-items: end; gap: 20px 48px;
}
.division-row .name {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800;
  text-transform: uppercase; line-height: 1;
  font-size: clamp(2.6rem, 8vw, 6.5rem);
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(244, 246, 245, 0.4);
  transition: -webkit-text-stroke-color 0.35s ease;
  position: relative;
}
/* la versión encendida, revelada como un barrido de luz */
.division-row .name::before {
  content: attr(data-name);
  position: absolute; inset: 0; color: var(--teal-bright);
  -webkit-text-stroke: 0;
  text-shadow: 0 0 38px rgba(80, 167, 147, 0.65);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.55s cubic-bezier(0.6, 0, 0.2, 1);
}
.division-row:hover .name::before,
.division-row:focus-visible .name::before { clip-path: inset(0 0 0 0); }
.division-row .meta { text-align: right; max-width: 34ch; }
.division-row .meta p { color: var(--text-dim); font-size: 1rem; }
.division-row .meta .go {
  display: inline-block; margin-top: 10px; font-weight: 800; color: var(--teal-bright);
  opacity: 0; transform: translateX(-8px);
  transition: opacity 0.35s ease 0.1s, transform 0.35s ease 0.1s;
}
.division-row:hover .go, .division-row:focus-visible .go { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .division-row .go { opacity: 1; transform: none; }
}

/* ---------- Barra superior (buscador + corporativo + redes + idioma) ---------- */
.topbar {
  position: fixed; inset: var(--banner-h) 0 auto 0; z-index: 41;
  background: #0a0c0b; border-bottom: 1px solid var(--line); height: 40px;
}
.topbar .wrap { display: flex; align-items: center; gap: 20px; height: 40px; }
.topbar .search { display: flex; align-items: center; gap: 8px; flex: 0 1 260px; }
.topbar .search svg { width: 15px; height: 15px; fill: var(--text-dim); flex-shrink: 0; }
.topbar .search input {
  font: inherit; font-size: 0.82rem; color: var(--text);
  background: transparent; border: none; outline: none; width: 100%;
}
.topbar .search input::placeholder { color: var(--text-dim); }
.topbar .back { font-size: 0.8rem; color: var(--text-dim); text-decoration: none; white-space: nowrap; font-weight: 600; }
.topbar .back:hover { color: var(--teal-bright); }
.topbar .tright { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.topbar .quicklinks { display: flex; gap: 18px; }
.topbar .quicklinks a {
  font-size: 0.72rem; color: var(--text-dim); text-decoration: none; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.07em;
}
.topbar .quicklinks a:hover { color: var(--teal-bright); }
.topbar .social { display: flex; gap: 12px; align-items: center; padding: 0 4px; border-left: 1px solid var(--line); padding-left: 18px; }
.topbar .social svg { width: 14px; height: 14px; fill: var(--text-dim); display: block; }
.topbar .social a:hover svg { fill: var(--teal-bright); }
.topbar .lang {
  font: inherit; font-size: 0.78rem; font-weight: 700; color: var(--text);
  background: transparent; border: 1px solid var(--line); border-radius: 4px; padding: 3px 6px;
  color-scheme: dark; /* en Windows la lista desplegada sale con fondo blanco del sistema y el texto blanco no se ve */
}
.topbar .lang option { color: #fff; background: #121514; }
.topbar .lang option:disabled { color: #8a8f8d; }
.has-topbar { padding-top: calc(var(--banner-h) + 40px); }
.has-topbar .site-header { top: calc(var(--banner-h) + 40px); }
@media (max-width: 860px) {
  .topbar .quicklinks, .topbar .social { display: none; }
  .topbar .search { flex: 1; }
  /* en móvil las dos barras fijas se comen 116 px: la superior se esconde al
     bajar y vuelve al subir (html.tb-oculta, TopBar.astro); la cabecera sube
     con ella. Con el menú abierto la cabecera ocupa toda la pantalla y no se mueve. */
  .topbar, .site-header:not(.menu-movil) { transition: transform 0.25s ease; }
  html.tb-oculta .topbar { transform: translateY(-100%); }
  html.tb-oculta .site-header:not(.menu-movil) { transform: translateY(-40px); } /* también en .led-page (catálogo y fichas) */
}

/* ---------- SAT + formularios ---------- */
.sat { background: var(--bg-raise); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sat-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.sat-points { list-style: none; margin-top: 24px; display: grid; gap: 10px; }
.sat-points li { padding-left: 26px; position: relative; color: var(--text-dim); }
.sat-points li::before {
  content: ""; position: absolute; left: 2px; top: 7px;
  width: 12px; height: 10px; background: var(--teal);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.form-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 32px;
  display: grid; gap: 16px;
}
.form-card h3 { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: 1.2rem; }
.form-card label { display: grid; gap: 6px; font-size: 0.85rem; font-weight: 700; color: var(--text-dim); }
.form-card input:not([type="checkbox"]), .form-card textarea {
  font: inherit; font-size: 0.95rem; color: var(--text);
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px;
  width: 100%; min-width: 0; /* sin esto cada campo impone su ancho intrínseco y las filas de dos columnas desbordan en móvil */
}
/* las filas de dos campos (.two): columnas que pueden encoger, y una sola columna en teléfono */
.form-card .two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
/* (.two.two: más específico que las reglas por página de más abajo, que también son de 3 clases) */
@media (max-width: 540px) { :is(.con-grid, .solicitud, .satp-form, .cfg-lead) .form-card .two.two, .form-card .two.two { grid-template-columns: 1fr; } }
.form-card input:focus, .form-card textarea:focus { outline: none; border-color: var(--teal); }
.field-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-card .gdpr {
  display: flex; gap: 10px; align-items: flex-start;
  font-weight: 400; font-size: 0.8rem; line-height: 1.5;
}
.form-card .gdpr input { margin-top: 3px; accent-color: var(--teal); width: 15px; height: 15px; flex-shrink: 0; }
.form-card .gdpr a { color: var(--teal-bright); }
.form-card button { justify-self: start; }
/* reCAPTCHA v3: la insignia flotante se esconde (tapaba el chat y salía como un recuadro blanco
   en móvil); a cambio, cada formulario lleva el aviso que exige Google (.recaptcha-nota) */
.grecaptcha-badge { visibility: hidden !important; }
.recaptcha-nota { font-size: 0.72rem; line-height: 1.45; color: var(--text-dim); }
.recaptcha-nota a { color: inherit; text-decoration: underline; }
.form-card button:disabled { opacity: 0.6; cursor: wait; }
.form-msg { font-size: 0.9rem; font-weight: 600; min-height: 1.2em; }
.form-msg.ok { color: var(--teal-bright); }
.form-msg.error { color: #ff9b8a; }
@media (max-width: 860px) {
  .sat-grid { grid-template-columns: 1fr; gap: 36px; }
  .field-2col { grid-template-columns: 1fr; }
}

/* ---------- Páginas simples (empresa, privacidad) ---------- */
.simple-page { padding: 140px 0 90px; }
.simple-page .prose {
  max-width: 720px; color: var(--text-dim); line-height: 1.75; display: grid; gap: 18px; margin-top: 24px;
  grid-template-columns: minmax(0, 1fr); /* sin esto una URL larga sin cortes ensanchaba la columna y la página desbordaba en móvil */
}
.simple-page .prose a { overflow-wrap: anywhere; }
.simple-page .prose strong { color: var(--text); }

/* ---------- Páginas legales (privacidad, aviso legal, cookies) ----------
   Texto largo copiado de la web antigua: lo que manda aquí es la legibilidad.
   Los apartados iban en negrita y subrayados; aquí son titulares con su número
   en verde y una línea debajo, que en oscuro se lee mejor que el subrayado. */
.legal-page h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
/* aviso de las versiones traducidas: prevalece el castellano */
.legal-page .legal-nota { margin-top: 18px; max-width: 820px; color: var(--text-dim); font-size: 0.9rem; line-height: 1.6; }
.legal-page .legal-nota a { color: var(--teal-bright); }
.legal-page .prose { max-width: 820px; color: rgba(244, 246, 245, 0.78); gap: 16px; }
.legal-page .prose h2 {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--font-display); font-stretch: 110%; font-weight: 800;
  font-size: 1.1rem; line-height: 1.3; color: var(--text);
  margin-top: 30px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.legal-page .prose h2 .num { color: var(--teal-bright); font-variant-numeric: tabular-nums; }
.legal-page .prose ul, .legal-page .prose ol { display: grid; gap: 9px; padding-left: 24px; }
.legal-page .prose ul { list-style: disc; }
.legal-page .prose ol.alfa { list-style: lower-alpha; }
.legal-page .prose ol.romana { list-style: lower-roman; }
.legal-page .prose ol.num { list-style: decimal; }
.legal-page .prose li { line-height: 1.7; }
.legal-page .prose li::marker { color: var(--teal-bright); }
.legal-page .prose a { color: var(--teal-bright); text-decoration: underline; text-underline-offset: 2px; }
.legal-page .prose u { text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- Cifras ---------- */
.stats .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
}
.stat .num {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem); color: var(--teal-bright); line-height: 1;
}
.stat .what { color: var(--text-dim); margin-top: 8px; font-size: 0.98rem; }

/* ---------- Tarjetas (actualidad, casos) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: 6px;
  overflow: hidden; position: relative;
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.card:hover { transform: translateY(-5px); border-color: rgba(80, 167, 147, 0.5); }
/* línea de luz superior que se enciende */
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal-bright), transparent);
  opacity: 0; transition: opacity 0.4s ease;
}
.card:hover::before { opacity: 1; }
.card .visual {
  height: 190px; position: relative;
  background:
    radial-gradient(120% 100% at 50% 120%, rgba(80, 167, 147, 0.28), transparent 65%),
    #0b0d0c;
}
.card .visual span {
  position: absolute; left: 20px; bottom: 16px;
  font-weight: 800; font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--teal-bright);
}
.card .body { padding: 24px; }
.card h3 { font-size: 1.12rem; font-weight: 700; line-height: 1.3; }
.card p { font-size: 0.95rem; color: var(--text-dim); margin-top: 8px; }
.card .metric { font-weight: 800; font-size: 0.82rem; color: var(--teal-bright); margin-top: 16px; letter-spacing: 0.04em; }

/* ---------- Marquesina ---------- */
.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; }
.ticker .track {
  display: flex; gap: 64px; white-space: nowrap; width: max-content;
  animation: ticker 28s linear infinite;
}
.ticker span {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 700;
  text-transform: uppercase; font-size: 1rem; color: var(--text-dim);
  display: inline-flex; align-items: center; gap: 64px;
}
.ticker span::after {
  content: ""; width: 11px; height: 9px; background: var(--teal-dim);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker .track { animation: none; } }

/* ============================================================
   LANDING LED
   ============================================================ */

/* Barra madre */
.mother-bar {
  position: fixed; inset: var(--banner-h) 0 auto 0; z-index: 41;
  background: #0a0c0b; border-bottom: 1px solid var(--line);
}
.led-page { padding-top: calc(var(--banner-h) + 40px); }
.mother-bar .wrap { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.mother-bar a { font-size: 0.82rem; text-decoration: none; color: var(--text-dim); }
.mother-bar a:hover { color: var(--teal-bright); }
.mother-bar .crumbs { font-size: 0.8rem; font-weight: 700; color: var(--text-dim); letter-spacing: 0.06em; text-transform: uppercase; }
/* en la landing la cabecera cuelga bajo la barra madre */
.led-page .site-header { top: calc(var(--banner-h) + 40px); }
.led-page .hero .hint { top: 136px; }

/* ---------- Soluciones por sector ---------- */
.sector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
/* cuando la última fila se queda con una sola tarjeta, se estira a lo ancho */
.sector-grid .sector.ancha { grid-column: 1 / -1; min-height: 240px; }
.sector {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 260px; padding: 26px; text-decoration: none;
  background:
    radial-gradient(130% 110% at 50% 130%, rgba(80, 167, 147, 0.22), transparent 60%),
    var(--bg-raise);
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.sector:hover {
  transform: translateY(-5px); border-color: rgba(80, 167, 147, 0.55);
  box-shadow: 0 30px 60px -30px rgba(80, 167, 147, 0.35);
}
.sector h2, .sector h3 {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800;
  text-transform: uppercase; font-size: 1.5rem; line-height: 1;
}
.sector p { font-size: 0.95rem; color: var(--text-dim); margin-top: 10px; }
.sector .apps { font-weight: 800; font-size: 0.78rem; letter-spacing: 0.06em; color: var(--teal-bright); margin-top: 16px; text-transform: uppercase; }
.sector .idx {
  position: absolute; top: 20px; right: 22px; z-index: 2;
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800;
  font-size: 1rem; color: transparent; -webkit-text-stroke: 1px rgba(244,246,245,0.3);
}

/* tarjetas de sector con foto de fondo */
.sector .bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.sector .shade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(16,18,17,0.12) 0%, rgba(16,18,17,0.55) 55%, rgba(16,18,17,0.92) 100%);
}
.sector h2, .sector h3, .sector p, .sector .apps { position: relative; z-index: 2; }
.sector.has-photo p { color: rgba(244,246,245,0.88); }
/* en la página de soluciones las fotos son el fondo de tarjetas grandes: el
   texto necesita más sombra que en las tarjetas pequeñas */
.soluciones-todas .sector.has-photo .shade {
  background: linear-gradient(180deg, rgba(16,18,17,0.2) 0%, rgba(16,18,17,0.6) 45%, rgba(16,18,17,0.96) 100%);
}
.sector.has-photo:hover .bg { transform: scale(1.06); }

/* selector de soluciones: las tarjetas de sector hacen de pestañas (landing LED).
   La elegida manda; el resto se atenúa. Debajo, sus sub-soluciones como filas
   a todo lo ancho con foto de fondo. */
.sector-grid.selector { grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sector-grid.selector .sector {
  min-height: 320px; padding: 26px; cursor: pointer; text-align: left;
  font: inherit; color: inherit; appearance: none;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease,
              opacity 0.35s ease, filter 0.35s ease;
}
/* la foto manda: solo se oscurece detrás del texto */
.sector-grid.selector .sector .shade {
  background: linear-gradient(180deg, rgba(16,18,17,0.05) 0%, rgba(16,18,17,0.2) 45%, rgba(16,18,17,0.9) 100%);
}
.sector-grid.selector .sector h3 { font-size: 1.5rem; }
.sector-grid.selector .sector p { font-size: 0.92rem; margin-top: 8px; }
/* cuando la última fila queda con una sola, se estira a lo ancho (panorámica) */
.sector-grid.selector .sector.ancha { grid-column: 1 / -1; min-height: 240px; }
/* solo se atenúan las demás cuando hay una elegida; en reposo, todas enteras */
.sector-grid.selector.has-sel .sector:not(.sel) { opacity: 0.42; filter: saturate(0.5); }
.sector-grid.selector.has-sel .sector:not(.sel):hover { opacity: 0.85; filter: none; }
.sector-grid.selector .sector.sel {
  border-color: var(--teal-bright);
  box-shadow: 0 0 0 1px var(--teal-bright), 0 30px 60px -30px rgba(80, 167, 147, 0.5);
}
.sector-grid.selector .sector.sel:hover { transform: none; }
/* la elegida apunta a sus filas */
.sector-grid.selector .sector.sel::after {
  content: ''; position: absolute; left: 50%; bottom: -1px; z-index: 3;
  width: 14px; height: 14px; transform: translate(-50%, 50%) rotate(45deg);
  background: var(--teal-bright); border-radius: 2px;
}
.sector-grid.selector .sector:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 3px; }

.subsol-panel { display: grid; gap: 14px; margin-top: 24px; }
.subsol-panel[hidden] { display: none; } /* el display de arriba pisaría al atributo hidden */
/* dentro de la rejilla (el JS lo mueve tras la fila pulsada) ocupa todo el ancho */
.sector-grid.selector > .subsol-panel { grid-column: 1 / -1; margin: 4px 0 10px; }
.subsol {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 124px; padding: 22px 28px; text-decoration: none;
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  transition: border-color 0.35s ease, transform 0.35s ease;
  animation: subsol-in 0.4s ease both;
}
.subsol:nth-child(2) { animation-delay: 0.06s; }
.subsol:nth-child(3) { animation-delay: 0.12s; }
.subsol:nth-child(4) { animation-delay: 0.18s; }
@keyframes subsol-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.subsol .bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease;
}
.subsol .shade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(16,18,17,0.95) 0%, rgba(16,18,17,0.8) 40%, rgba(16,18,17,0.35) 100%);
}
.subsol .txt, .subsol .go { position: relative; z-index: 2; }
.subsol h4 {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800;
  text-transform: uppercase; font-size: 1.15rem; line-height: 1;
}
.subsol p { margin-top: 8px; font-size: 0.92rem; color: rgba(244,246,245,0.85); max-width: 62ch; }
.subsol .go {
  flex-shrink: 0; padding: 10px 14px; border-radius: 4px;
  font-weight: 800; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal-bright); background: rgba(16,18,17,0.72); border: 1px solid rgba(80,167,147,0.35);
  backdrop-filter: blur(4px); transition: transform 0.35s ease, background 0.35s ease;
}
/* al pasar el cursor se resalta igual que las tarjetas de sector: se levanta,
   borde teal y halo */
.subsol:hover {
  transform: translateY(-4px); border-color: var(--teal-bright);
  box-shadow: 0 0 0 1px var(--teal-bright), 0 30px 60px -30px rgba(80, 167, 147, 0.5);
}
.subsol:hover .bg { transform: scale(1.04); }
.subsol:hover .go { transform: translateX(4px); background: rgba(16,18,17,0.9); }
.subsol:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 3px; }
/* la regla de 4 columnas es más específica que las genéricas de .sector-grid de
   los media queries de abajo: aquí van sus propios cortes */
@media (max-width: 1000px) { .sector-grid.selector { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {
  .sector-grid.selector { grid-template-columns: 1fr; gap: 12px; }
  .sector-grid.selector .sector { min-height: 220px; padding: 20px; }
  .sector-grid.selector .sector.ancha { min-height: 220px; }
  .subsol { min-height: 0; padding: 18px 20px; }
}
@media (prefers-reduced-motion: reduce) { .subsol { animation: none; } }

/* ---------- Páginas de soluciones (/soluciones/…) ----------
   Tres niveles: todas las soluciones (rejilla de tarjetas), una solución (foto
   grande + sus sub-soluciones como filas) y una sub-solución (sus productos,
   mezclando LED, interactivos y accesorios). */
.solucion-page { padding-top: 96px; padding-bottom: 90px; }
/* los bloques internos son <section> por semántica, no franjas de la página:
   sin esto se comen los 110px de padding de `section` */
.solucion-page .wrap section { padding: 0; }

/* migas de pan: dicen siempre en qué solución estás */
.migas {
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px;
  margin: 30px 0 22px; font-size: 0.82rem; color: var(--text-dim);
}
.migas a { text-decoration: none; }
.migas a:hover { color: var(--teal-bright); }
.migas .sep { opacity: 0.45; }
.migas [aria-current] { color: var(--text); font-weight: 700; }

/* cabecera de una solución: la foto a lo ancho, el texto encima */
.solucion-hero {
  position: relative; display: flex; align-items: flex-end;
  min-height: 340px; padding: 40px; overflow: hidden;
  border: 1px solid var(--line); border-radius: 10px;
}
.solucion-hero .bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.solucion-hero .shade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(16,18,17,0.15) 0%, rgba(16,18,17,0.55) 50%, rgba(16,18,17,0.95) 100%);
}
.solucion-hero .txt { position: relative; z-index: 2; }
.solucion-hero h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.solucion-hero .lead { margin-top: 14px; color: rgba(244,246,245,0.88); }

/* rótulo de bloque dentro de una página (más pequeño que un .display) */
.sub-titulo {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800;
  text-transform: uppercase; font-size: 1.05rem; letter-spacing: 0.02em;
}
.sub-titulo .n {
  display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px;
  font-family: var(--font-sans); font-size: 0.72rem; font-weight: 800;
  color: var(--bg); background: var(--teal-bright); vertical-align: 2px;
}
.solucion-subs { margin-top: 52px; }
.solucion-subs .sub-titulo { margin-bottom: 18px; }

/* atajos al resto de soluciones, al pie de una solución */
.otras-soluciones { margin-top: 64px; }
.otras-soluciones .sub-titulo { margin-bottom: 16px; }
.otras-lista { display: flex; flex-wrap: wrap; gap: 12px; }
.otra {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 7px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg-raise); text-decoration: none; font-size: 0.88rem; font-weight: 600;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.otra img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.otra:hover { border-color: var(--teal-bright); transform: translateY(-2px); }

/* las sub-soluciones: tarjetas con su foto pequeña. La abierta se queda
   marcada y las demás al lado, para cambiar de una a otra sin subir */
.subsol-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.subsol-cards.una { grid-template-columns: 1fr; }
.subsol-card {
  display: grid; grid-template-columns: 116px 1fr; gap: 20px; align-items: center;
  padding: 18px; text-decoration: none;
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: 10px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.subsol-card .foto { width: 116px; height: 96px; object-fit: cover; border-radius: 7px; }
.subsol-card h3 {
  font-family: var(--font-display); font-stretch: 115%; font-weight: 800;
  text-transform: uppercase; font-size: 1.05rem; line-height: 1.1;
}
.subsol-card p { margin-top: 8px; font-size: 0.88rem; color: var(--text-dim); line-height: 1.55; }
.subsol-card .cuenta {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px;
  margin-top: 12px; font-size: 0.82rem; color: var(--text-dim);
}
.subsol-card .cuenta strong { color: var(--teal-bright); }
.subsol-card .cuenta .accion { font-weight: 800; color: var(--teal-bright); letter-spacing: 0.02em; }
a.subsol-card:hover { transform: translateY(-3px); border-color: var(--teal-bright); box-shadow: 0 26px 50px -30px rgba(80,167,147,0.5); }
.subsol-card.activa { border-color: var(--teal-bright); box-shadow: 0 0 0 1px var(--teal-bright); }
.solucion-subs .pista { font-family: var(--font-sans); font-stretch: normal; font-weight: 600; font-size: 0.8rem; text-transform: none; color: var(--text-dim); margin-left: 8px; }

/* los productos de la sub-solución abierta */
.sub-productos { margin-top: 44px; scroll-margin-top: calc(var(--banner-h) + 140px); }
/* pestañas: la abierta hace de rótulo del bloque, las otras esperan al lado */
.tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.tab {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--font-display); font-stretch: 115%; font-weight: 800;
  text-transform: uppercase; font-size: 0.95rem; letter-spacing: 0.02em;
  color: var(--text-dim); background: none; border: 1px solid transparent;
  border-radius: 999px; padding: 7px 14px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.tab:hover { color: var(--text); border-color: var(--line); }
.tab .n {
  font-family: var(--font-sans); font-size: 0.7rem; font-weight: 800;
  padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,0.08); color: var(--text-dim);
}
.tab[aria-selected="true"] { color: var(--text); font-size: 1.05rem; border-color: var(--teal-bright); background: rgba(0,168,148,0.14); }
.tab[aria-selected="true"] .n { background: var(--teal-bright); color: var(--bg); }
.sub-productos .side-filters { top: calc(var(--banner-h) + 152px); }
.sub-productos .filter-count { display: block; font-size: 0.8rem; color: var(--text-dim); }
.sub-productos .ver-mas { font-size: 0.8rem; }
.sin-resultados { grid-column: 1 / -1; color: var(--text-dim); }
/* sin esto, el display:grid de .product-grid pisa al atributo hidden y las tres
   pestañas se ven a la vez */
.product-grid[hidden] { display: none; }

.ver-mas { font-size: 0.82rem; font-weight: 700; color: var(--teal-bright); text-decoration: none; }
.ver-mas:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .subsol-cards { grid-template-columns: 1fr; }
  .solucion-hero { min-height: 260px; padding: 26px; }
}
@media (max-width: 480px) {
  .subsol-card { grid-template-columns: 1fr; }
  .subsol-card .foto { width: 100%; height: 130px; }
}

/* ---------- Configurador LED (/led/configurador/) ---------- */
.cfg { padding: calc(var(--banner-h) + 104px) 0 80px; }
.cfg [hidden] { display: none !important; } /* los display de abajo no deben pisar a hidden */
.cfg-paso { padding: 0; } /* sin el padding global de section */
.cfg-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: 56px; margin-bottom: 36px; flex-wrap: wrap; }
.cfg-head .lead { max-width: 60ch; }
.cfg-pasos { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.cfg-pasos li {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--text-dim); font-weight: 700; font-size: 0.9rem;
}
.cfg-pasos li .n {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-raise); border: 1px solid var(--line); font-size: 0.8rem;
}
.cfg-pasos li.on { color: var(--text); border-color: var(--teal-bright); }
.cfg-pasos li.on .n { background: var(--teal); border-color: var(--teal); color: #fff; }

.cfg-layout { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.cfg-layout-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.cfg-filtros {
  display: grid; gap: 22px; align-content: start;
  position: sticky; top: calc(var(--banner-h) + 132px);
  /* los filtros pasan de la altura de la pantalla: sin scroll propio, el final
     (gama, limpiar) no se alcanzaba hasta llegar al fondo de la lista */
  max-height: calc(100vh - var(--banner-h) - 150px); overflow-y: auto;
  padding-bottom: 20px; padding-right: 4px; overscroll-behavior: contain;
}
.cfg-filtros .fgroup h4 { margin-bottom: 10px; }
.cfg-distancia .field-row { display: flex; align-items: center; gap: 14px; }
.cfg-distancia input[type="range"] { flex: 1; accent-color: var(--teal); }
.cfg-distancia output { font-weight: 800; color: var(--teal-bright); min-width: 56px; text-align: right; font-variant-numeric: tabular-nums; }
.cfg-reco {
  margin-top: 14px; padding: 14px 16px; border-radius: 6px; display: grid; gap: 4px;
  background: radial-gradient(120% 130% at 85% 50%, rgba(80, 167, 147, 0.25), transparent 60%), #0b0d0c;
  border: 1px solid var(--line);
}
.cfg-reco .k { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.cfg-reco .v { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 2rem; line-height: 1; color: var(--teal-bright); }
.cfg-reco .nota, .cfg .nota { font-size: 0.8rem; color: var(--text-dim); line-height: 1.5; margin-top: 6px; }

.cfg-lista { min-width: 0; }
.cfg-lista-cab {
  display: grid; grid-template-columns: auto 1fr auto; gap: 8px 18px; align-items: center;
  padding: 14px 18px; margin-bottom: 14px; border-radius: 6px;
  background: var(--bg-raise); border: 1px solid var(--line);
}
.cfg-sel-label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.cfg-sel-nombre { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: 1rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfg-tabla-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-raise); }
.cfg-tabla { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.cfg-tabla th, .cfg-tabla td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cfg-tabla thead th { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.cfg-tabla .num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cfg-tabla td b { display: block; font-weight: 700; }
.cfg-tabla .prod { display: flex; align-items: center; gap: 12px; }
.cfg-tabla .prod .ph { position: relative; width: 46px; height: 46px; flex-shrink: 0; background: #fff; border-radius: 4px; overflow: hidden; }
.cfg-tabla .prod .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cfg-tabla .prod .txt { min-width: 0; }
.cfg-tabla .code, .cfg .code { display: block; font-size: 0.78rem; color: var(--text-dim); font-weight: 600; letter-spacing: 0.02em; }
.cfg-tabla tr[data-slug] { cursor: pointer; transition: background 0.2s ease, opacity 0.3s ease; }
.cfg-tabla tr[data-slug]:hover { background: rgba(47, 214, 188, 0.06); }
.cfg-tabla tr[data-slug]:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: -2px; }
.cfg-tabla tr.fuera { opacity: 0.5; }
.cfg-tabla tr.fuera:hover { opacity: 0.85; }
.cfg-tabla tr.sel { background: rgba(0, 168, 148, 0.16); box-shadow: inset 3px 0 0 var(--teal-bright); }
.cfg-tabla tr.cfg-bloque th { background: #0b0d0c; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.cfg-tabla tr.cfg-bloque.ok th { color: var(--teal-bright); }
.cfg-tabla .tag { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-bright); border: 1px solid rgba(47, 214, 188, 0.5); }
.cfg-vacio { padding: 28px; text-align: center; color: var(--text-dim); }

.cfg-col { display: grid; gap: 22px; min-width: 0; }
.cfg-producto { display: grid; grid-template-columns: 132px 1fr; gap: 18px; padding: 16px; background: var(--bg-raise); border: 1px solid var(--line); border-radius: 6px; }
.cfg-producto .ph { position: relative; aspect-ratio: 1; background: #fff; border-radius: 4px; overflow: hidden; }
.cfg-producto .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cfg-producto h3 { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: 1.05rem; line-height: 1.15; margin: 4px 0 10px; }
.cfg-producto .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cfg-producto .chips span { font-size: 0.78rem; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-dim); }
.cfg-producto .chips b { color: var(--text); font-weight: 700; margin-right: 4px; }
.cfg-producto .links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: 0.85rem; font-weight: 700; }
.cfg-producto .links a { color: var(--teal-bright); text-decoration: none; }
.cfg-producto .links a:hover { text-decoration: underline; }

.cfg-setup { display: grid; gap: 18px; padding: 20px; background: var(--bg-raise); border: 1px solid var(--line); border-radius: 6px; }
.cfg-setup .fgroup h4, .cfg-campos h4 { margin-bottom: 10px; }
.cfg-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.cfg-campos h4 { grid-column: 1 / -1; margin-bottom: 0; }
.cfg-campos h4 .opcional { font-weight: 600; color: var(--text-dim); text-transform: none; letter-spacing: 0; font-size: 0.8rem; }
.cfg-campos label { display: grid; gap: 6px; font-size: 0.8rem; font-weight: 700; color: var(--text-dim); }
.cfg-campos input { font: inherit; font-size: 1rem; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 9px 11px; width: 100%; font-variant-numeric: tabular-nums; }
.cfg-campos input:focus { outline: none; border-color: var(--teal); }
.cfg-campos .nota { grid-column: 1 / -1; margin: 0; }
.cfg-atajos { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.cfg-atajos .chip { font: inherit; font-size: 0.78rem; font-weight: 800; padding: 6px 10px; border-radius: 999px; background: transparent; color: var(--text-dim); border: 1px solid var(--line); cursor: pointer; }
.cfg-atajos .chip:hover { color: var(--teal-bright); border-color: var(--teal-bright); }

.cfg-resumen { padding: 20px; background: radial-gradient(120% 130% at 85% 0%, rgba(80, 167, 147, 0.18), transparent 60%), #0b0d0c; border: 1px solid var(--line); border-radius: 6px; }
.cfg-resumen dl { margin: 14px 0 0; display: grid; }
.cfg-resumen dl > div { display: grid; grid-template-columns: 200px 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cfg-resumen dl > div:last-child { border-bottom: 0; }
.cfg-resumen dt { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); padding-top: 3px; }
.cfg-resumen dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.cfg-resumen dd .code { display: inline; margin-left: 8px; font-weight: 600; }
.cfg-acciones { display: flex; gap: 12px; flex-wrap: wrap; }

.cfg-plano-col { position: sticky; top: 140px; }
.cfg-plano { background: #0b0d0c; border: 1px solid var(--line); border-radius: 6px; padding: 12px; aspect-ratio: 800 / 560; display: grid; place-items: center; }
.cfg-plano svg { width: 100%; height: 100%; display: block; }
.cfg-plano .pared { fill: rgba(244, 246, 245, 0.04); stroke: rgba(244, 246, 245, 0.35); stroke-width: 1.5; stroke-dasharray: 6 5; }
.cfg-plano .pantalla { fill: url(#cfg-led); stroke: var(--teal-bright); stroke-width: 1.5; }
.cfg-plano .junta { stroke: rgba(11, 13, 12, 0.55); stroke-width: 1; }
.cfg-plano .cota line { stroke: var(--teal-bright); stroke-width: 1; }
.cfg-plano .cota text { fill: var(--teal-bright); font: 700 13px var(--font-sans); }
.cfg-plano .cota.pared line { stroke: rgba(244, 246, 245, 0.55); }
.cfg-plano .cota.pared text { fill: rgba(244, 246, 245, 0.75); }
.cfg-plano .margen { fill: rgba(244, 246, 245, 0.55); font: 600 12px var(--font-sans); }
.cfg-plano .figura { fill: rgba(244, 246, 245, 0.45); }
.cfg-plano-vacio { color: var(--text-dim); text-align: center; padding: 40px; }
.cfg-plano-pie { margin-top: 10px; font-size: 0.8rem; color: var(--text-dim); }

.cfg-lead { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: start; padding-top: 48px; border-top: 1px solid var(--line); }
.cfg-lead .form-card .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
/* titular a tamaño de sección: el de portada se salía de la columna y el formulario lo tapaba */
.cfg-lead .display { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 12px 0 14px; overflow-wrap: anywhere; }
.cfg-lead .lead { font-size: 1.05rem; }

@media (max-width: 1000px) {
  .cfg-layout, .cfg-layout-2, .cfg-lead { grid-template-columns: 1fr; }
  .cfg-filtros, .cfg-plano-col { position: static; }
  .cfg-filtros { max-height: none; overflow: visible; }
}
@media (max-width: 640px) {
  .cfg-campos, .cfg-lead .form-card .two { grid-template-columns: 1fr; }
  .cfg-resumen dl > div { grid-template-columns: 1fr; gap: 4px; }
  .cfg-lista-cab { grid-template-columns: 1fr; }
}
/* impresión: solo la hoja de especificaciones y el plano */
@media print {
  .topbar, .site-header, footer, .banner, .cfg-head .cfg-pasos, .cfg-setup, .cfg-acciones, .cfg-lead, .cfg-producto .links { display: none !important; }
  body { background: #fff; color: #000; }
  .cfg-layout-2 { grid-template-columns: 1fr; }
  .cfg-resumen, .cfg-producto, .cfg-plano { background: #fff; border-color: #ccc; color: #000; }
  .cfg-resumen dt, .cfg-resumen dd, .cfg .code, .cfg-plano-pie { color: #000; }
}

/* ---------- Galería circular de soluciones (PRUEBA, landing LED) ----------
   Anillo 3D: cada tarjeta se coloca con rotateY(su ángulo) translateZ(radio)
   dentro de una escena con perspective. El JS gira el anillo y ajusta opacidad
   según lo lejos que quede cada tarjeta del frente. */
.galeria {
  position: relative; user-select: none;
  /* a todo el ancho de la ventana, saliéndose del .wrap: así las tarjetas
     laterales se ven mucho más antes de llegar al borde */
  width: 100vw; margin-left: calc(50% - 50vw);
  /* se recortan sin crear scroll horizontal (clip, no hidden: hidden haría de
     esto un contenedor de scroll) y se desvanecen en los bordes, para que el
     corte no sea una línea dura */
  overflow-x: clip;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
/* los controles y la pista vuelven al ancho de lectura */
.galeria .g-controles, .galeria .g-pista { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.galeria .escena {
  position: relative; height: calc(clamp(290px, 44vh, 500px) + 46px);
  perspective: 2200px; perspective-origin: 50% 45%;
  cursor: grab;
}
.galeria.arrastrando .escena { cursor: grabbing; }
.galeria .anillo {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}
.g-card {
  position: absolute; left: 50%; top: 50%;
  /* Manda la ALTURA disponible y el ancho sale de la proporción, para que la
     tarjeta no se estire en pantallas bajas. El ancho queda además acotado por
     el viewport, para portátiles anchos y bajos. */
  --h: clamp(290px, 44vh, 500px);
  --w: min(calc(var(--h) * 1.72), 62vw);
  width: var(--w); height: var(--h);
  margin: calc(var(--h) / -2) 0 0 calc(var(--w) / -2);
  padding: 0; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg-raise); overflow: hidden; cursor: pointer;
  font: inherit; color: inherit; text-align: left;
  /* la trasera se ve espejada a propósito: da sensación de anillo completo */
  transition: opacity 0.25s linear, filter 0.25s linear, box-shadow 0.3s ease, border-color 0.3s ease;
}
.g-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-card .shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,18,17,0.05) 0%, rgba(16,18,17,0.25) 45%, rgba(16,18,17,0.94) 100%);
}
.g-card .txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; display: block; }
.g-card .n {
  display: block; font-family: var(--font-display); font-stretch: 125%; font-weight: 800;
  font-size: 0.78rem; letter-spacing: 0.1em; color: var(--teal-bright); margin-bottom: 6px;
}
.g-card h3 {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800;
  text-transform: uppercase; font-size: clamp(1.4rem, 2.4vw, 2.1rem); line-height: 1.02;
}
.g-card p { margin-top: 10px; font-size: 0.98rem; color: rgba(244,246,245,0.88); max-width: 46ch; }
.g-card .txt { padding: 30px 34px; }
.g-card.al-frente { border-color: rgba(47, 214, 188, 0.5); }
.g-card.sel {
  border-color: var(--teal-bright);
  box-shadow: 0 0 0 1px var(--teal-bright), 0 40px 80px -30px rgba(47, 214, 188, 0.55);
}
.g-controles { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 10px; }
.g-nav {
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  background: var(--bg-raise); border: 1px solid var(--line); color: var(--text);
  font-size: 1.1rem; line-height: 1; transition: border-color 0.2s ease, color 0.2s ease;
}
.g-nav:hover { border-color: var(--teal-bright); color: var(--teal-bright); }
/* leyenda de controles: dos indicadores discretos, sin frase explicativa */
.g-pista {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  margin-top: 16px; transition: opacity 0.4s ease;
}
.g-pista span {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(244, 246, 245, 0.42);
}
.g-pista svg { width: 15px; height: 15px; opacity: 0.8; }
.g-pista b { color: var(--teal-bright); font-weight: 800; }

.galeria.con-eleccion .g-pista { opacity: 0; pointer-events: none; }
.g-nombre {
  min-width: 280px; text-align: center;
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800;
  text-transform: uppercase; font-size: 1rem; color: var(--text-dim);
}
.galeria.con-eleccion .g-nombre { color: var(--teal-bright); }
/* pantallas de poca altura: menos aire alrededor (la tarjeta ya se adapta) */
@media (max-height: 900px) {
  #soluciones { padding-top: 64px; padding-bottom: 64px; }
  #soluciones .section-head { margin-bottom: 30px; }
  .g-card .txt { padding: 22px 26px; }
  .g-pista { margin-top: 12px; }
}
@media (max-width: 760px) {
  .galeria .escena { height: 380px; perspective: 1200px; }
  .g-card { --h: 330px; --w: 86vw; }
  .g-card .txt { padding: 20px 22px; }
  .g-card p { font-size: 0.88rem; }
  .g-nombre { min-width: 0; font-size: 0.85rem; }
}

/* ---------- Filtros, rediseño 03/09 (pisa a las reglas antiguas de .fbtn) ----------
   Interruptores con testigo: el puntito hace de casilla (vacío en reposo,
   encendido al activar) y el recuento de productos va a la derecha. */
.fbtn {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-dim); padding: 7px 13px;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.fbtn::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid rgba(244, 246, 245, 0.35);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.fbtn:hover { border-color: var(--teal); color: var(--text); transform: translateY(-1px); }
.fbtn:hover::before { border-color: var(--teal-bright); }
.fbtn[aria-pressed="true"] {
  background: rgba(0, 168, 148, 0.16); border-color: var(--teal-bright);
  color: var(--text); font-weight: 700;
}
.fbtn[aria-pressed="true"]::before {
  background: var(--teal-bright); border-color: var(--teal-bright);
  box-shadow: 0 0 8px rgba(47, 214, 188, 0.8);
}
.fbtn .n {
  font-size: 0.7rem; font-weight: 700; color: var(--text-dim);
  font-variant-numeric: tabular-nums; letter-spacing: 0.02em;
}
.fbtn[aria-pressed="true"] .n { color: var(--teal-bright); }
/* "¿Le dará el sol?": opciones apiladas, cada una con su equivalente en nits.
   Es de elección única, así que se leen como una escala, no como etiquetas. */
.fsol { display: grid; gap: 8px; }
.fsol .fbtn { width: 100%; border-radius: 6px; padding: 9px 12px; text-align: left; align-items: center; }
.fsol .et { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.fsol .et small { font-size: 0.72rem; font-weight: 600; color: var(--text-dim); }
.fsol .fbtn[aria-pressed="true"] .et small { color: var(--teal-bright); }
.fnota { margin-top: 10px; font-size: 0.75rem; line-height: 1.45; color: var(--text-dim); }
/* grupos separados y "limpiar" como botón de verdad */
.side-filters .fgroup, .cfg-filtros .fgroup { padding-top: 16px; border-top: 1px solid var(--line); }
.side-filters .fgroup:first-of-type, .cfg-filtros .fgroup:first-of-type { padding-top: 0; border-top: 0; }
.flimpiar {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  border: 1px dashed rgba(47, 214, 188, 0.5); border-radius: 999px; padding: 7px 14px; text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease; text-decoration: none;
}
.flimpiar:hover { border-style: solid; background: rgba(0, 168, 148, 0.12); text-decoration: none; }

/* filtro por rango: deslizador doble (dos ranges superpuestos) + entrada manual */
.frange { display: grid; gap: 10px; }
.frange .pista-zona { position: relative; height: 22px; }
.frange .pista {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  height: 4px; border-radius: 2px; background: rgba(244, 246, 245, 0.14);
}
.frange .relleno {
  position: absolute; top: 0; bottom: 0; left: 0; width: 100%;
  border-radius: 2px; background: linear-gradient(90deg, var(--teal), var(--teal-bright));
  box-shadow: 0 0 10px rgba(47, 214, 188, 0.4);
}
.frange input[type="range"] {
  position: absolute; inset: 0; width: 100%; margin: 0;
  -webkit-appearance: none; appearance: none; background: none; pointer-events: none;
}
.frange input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto; cursor: grab;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--teal-bright); border: 2px solid #0b0d0c;
  box-shadow: 0 0 0 1px var(--teal-bright), 0 0 10px rgba(47, 214, 188, 0.5);
}
.frange input[type="range"]::-webkit-slider-thumb:active { cursor: grabbing; }
.frange input[type="range"]::-moz-range-thumb {
  pointer-events: auto; cursor: grab;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--teal-bright); border: 2px solid #0b0d0c;
  box-shadow: 0 0 0 1px var(--teal-bright), 0 0 10px rgba(47, 214, 188, 0.5);
}
.frange input[type="range"]::-moz-range-track { background: none; }
.frange .nums { display: flex; align-items: center; gap: 8px; }
.frange .nums input {
  font: inherit; font-size: 0.85rem; font-weight: 700; color: var(--text);
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: 4px;
  padding: 6px 8px; width: 50%; min-width: 0; font-variant-numeric: tabular-nums;
}
.frange .nums input:focus { outline: none; border-color: var(--teal); }
.frange .nums .sep { color: var(--text-dim); }

/* menú único: la sección activa en verde y, al pasar el ratón, el desplegable
   con todas las secciones (Cabecera.astro) */
.site-header .nav a.on { color: var(--teal-bright); }
/* el menú ocupa todo el alto de la barra: así el ratón baja al panel sin
   pasar por ninguna zona que lo cierre */
.site-header .nav { align-self: stretch; align-items: stretch; }
.site-header .nav a { display: flex; align-items: center; padding: 0; }
.site-header .nav a::after { bottom: 22px; }
.site-header .nav a.ilum::after { right: 0; }
.site-header { transition: background-color 0.2s ease; }
/* en cuanto la página baja (o se abre el panel) la cabecera se vuelve opaca:
   arriba del todo sigue transparente sobre los héroes */
.site-header.con-fondo, .site-header.menu-abierto {
  background: rgba(12, 14, 13, 0.94); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.menu-abierto { background: #0c0e0d; }

.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #0c0e0d; border-top: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.75);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}
.menu-abierto .mega {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
}
.mega-grid {
  display: grid; justify-content: space-between; gap: 26px;
  grid-template-columns: max-content repeat(4, minmax(0, max-content)) minmax(220px, 258px);
  padding-top: 34px; padding-bottom: 40px;
}
.mega-col ul { list-style: none; display: grid; gap: 2px; }
.mega-h {
  display: inline-block; margin-bottom: 16px; text-decoration: none;
  font-family: var(--font-display); font-stretch: 125%; font-weight: 700;
  font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal-bright); padding-bottom: 3px;
  background: linear-gradient(var(--teal-bright), var(--teal-bright)) no-repeat 0 100% / 0 1px;
  transition: background-size 0.25s ease;
}
.mega-h:hover, .mega-col.ilum .mega-h { background-size: 100% 1px; }
.mega-col a:not(.mega-h) {
  display: flex; align-items: center; gap: 12px; padding: 5px 0;
  font-size: 0.9rem; color: var(--text-dim); text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}
.mega-col a:not(.mega-h):hover { color: var(--text); transform: translateX(3px); }
.mega-sol { padding-right: 34px; border-right: 1px solid var(--line); }
.mega-sol svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--teal-bright); opacity: 0.85; }
.mega-sol a:hover svg { opacity: 1; }

.mega-cta {
  align-self: start; display: grid; justify-items: center; text-align: center;
  padding: 26px 24px; border: 1px solid rgba(47, 214, 188, 0.28); border-radius: 10px;
  background: radial-gradient(120% 90% at 50% 0%, rgba(0, 168, 148, 0.16), rgba(0, 168, 148, 0.03) 70%);
}
.mega-cta-ico {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px;
  border: 1px solid rgba(47, 214, 188, 0.4); border-radius: 10px; color: var(--teal-bright);
}
.mega-cta-ico svg { width: 22px; height: 22px; }
.mega-cta-t { font-weight: 800; font-size: 1.05rem; line-height: 1.3; }
.mega-cta-p { font-size: 0.85rem; color: var(--text-dim); line-height: 1.5; margin: 8px 0 18px; }
.mega-cta .btn { font-size: 0.9rem; padding: 10px 20px; border-color: var(--teal); color: var(--teal-bright); }
.mega-cta .btn:hover { background: rgba(0, 168, 148, 0.12); }
@media (max-width: 1180px) {
  .mega-grid { grid-template-columns: max-content repeat(4, minmax(0, max-content)); }
  .mega-cta { display: none; }
}

/* Titulares al estilo de las plantillas de marketing (09/2026): minúscula y
   palabra clave en verde (<em>). Los marcadores siguen con el triángulo del
   logo. Se activa por página con data-titulares="plantilla" en <main>; quitar
   el atributo devuelve el estilo de siempre. */
[data-titulares="plantilla"] .display {
  font-family: var(--font-sans); font-stretch: 100%; text-transform: none;
  letter-spacing: -0.025em; line-height: 1.05; font-weight: 800;
}
[data-titulares="plantilla"] .display em { font-style: normal; color: var(--teal-bright); }

/* formulario de producto al pie de cada ficha */
.solicitud {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px;
  align-items: start; margin-top: 48px; padding-top: 44px; border-top: 1px solid var(--line);
}
.solicitud .display { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 12px 0 14px; }
.solicitud .form-card .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.solicitud:target .form-card { animation: solicitud-brilla 1.6s ease; }
@keyframes solicitud-brilla {
  0% { box-shadow: 0 0 0 2px var(--teal-bright), 0 0 40px -8px rgba(47, 214, 188, 0.7); }
  100% { box-shadow: none; }
}
.fp-producto {
  display: grid; gap: 3px; padding: 12px 14px; border-radius: 4px;
  background: rgba(0, 168, 148, 0.1); border: 1px solid rgba(47, 214, 188, 0.35);
}
.fp-producto .k { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.fp-producto b { font-size: 0.95rem; line-height: 1.3; }
.fp-producto .code { font-size: 0.78rem; color: var(--text-dim); font-weight: 600; }
@media (max-width: 900px) { .solicitud { grid-template-columns: 1fr; } }

/* logo "traulux by charmex" (png 721x128) en pie y contacto */
footer .logo img.grupo { height: 44px; width: auto; }
.con-grupo { display: block; height: 62px; width: auto; margin-bottom: 22px; opacity: 0.95; justify-self: start; }

/* "para qué sirve": soluciones a las que pertenece el producto (ficha LED) */
.product-usos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.product-usos .uso {
  display: inline-flex; align-items: baseline; gap: 7px; padding: 7px 13px;
  border-radius: 999px; text-decoration: none; font-size: 0.82rem; font-weight: 700;
  color: var(--text); background: var(--bg-raise); border: 1px solid var(--line);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.product-usos .uso:hover { border-color: var(--teal-bright); color: var(--teal-bright); transform: translateY(-1px); }
.product-usos .uso .cat { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
.product-usos .uso:hover .cat { color: var(--teal-bright); }

/* ---------- Página de contacto (/contactar/) ---------- */
.contacto { padding: calc(var(--banner-h) + 160px) 0 80px; }
/* tantas columnas como teléfonos haya: con tres llenaba la fila, con dos dejaba
   un hueco a la derecha */
.con-tels { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 36px; }
.con-tel {
  display: grid; gap: 4px; padding: 18px 20px; text-decoration: none;
  background: radial-gradient(120% 130% at 85% 0%, rgba(80, 167, 147, 0.16), transparent 60%), var(--bg-raise);
  border: 1px solid var(--line); border-radius: 6px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.con-tel:hover { border-color: var(--teal-bright); transform: translateY(-3px); }
.con-tel .ciudad { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.con-tel .num { font-family: var(--font-display); font-stretch: 118%; font-weight: 800; font-size: 1.3rem; color: var(--teal-bright); font-variant-numeric: tabular-nums; }
.con-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.con-grid .form-card .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.con-sedes { display: grid; gap: 14px; padding: 0; } /* es <section>: sin el padding global */
.con-sede { padding: 18px 20px; background: var(--bg-raise); border: 1px solid var(--line); border-radius: 6px; }
.con-sede h3 { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: 0.92rem; }
.con-sede .dir { display: block; margin-top: 8px; color: var(--text); text-decoration: none; font-size: 0.92rem; line-height: 1.5; }
.con-sede .dir:hover { color: var(--teal-bright); }
.con-sede .datos { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; font-size: 0.88rem; font-weight: 700; }
.con-sede .datos a { color: var(--teal-bright); text-decoration: none; }
.con-sede .datos a:hover { text-decoration: underline; }
.con-sede .sat-link { display: inline-block; margin-top: 10px; font-size: 0.82rem; font-weight: 800; color: var(--teal-bright); text-decoration: none; }
.contacto .nota, .satp .nota { font-size: 0.85rem; color: var(--text-dim); line-height: 1.6; }
@media (max-width: 900px) { .con-grid { grid-template-columns: 1fr; } .con-tels { grid-template-columns: 1fr; } }

/* ---------- Página del SAT (/sat/) ---------- */
.satp { padding: calc(var(--banner-h) + 160px) 0 80px; }
.satp-seccion { padding: 36px 0 0; }
.satp-seccion .marker { margin-bottom: 14px; }
.satp-pilares { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.satp-pilar {
  padding: 18px 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-raise);
  font-size: 0.92rem; color: var(--text-dim); line-height: 1.55;
}
.satp-pilar b { display: block; color: var(--text); font-weight: 800; margin-bottom: 6px; }
.satp-eco { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 22px 0 14px; }
.satp-eco .nodo {
  padding: 12px 20px; border: 1px solid var(--line); border-radius: 999px;
  font-weight: 800; font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; background: var(--bg-raise);
}
.satp-eco .nodo.on { border-color: var(--teal-bright); color: var(--teal-bright); box-shadow: 0 0 24px -6px rgba(47, 214, 188, 0.5); }
.satp-eco .flecha { color: var(--teal-bright); font-weight: 800; }
.satp-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: start; margin-top: 48px; padding-top: 44px; border-top: 1px solid var(--line); }
.satp-form .display { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 12px 0 14px; }
.satp-form .form-card .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 900px) {
  .satp-pilares, .satp-form { grid-template-columns: 1fr; }
}
/* el Dónde estamos compacto, junto al formulario de solicitud */
.satp-donde { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.satp-donde .dir { margin-top: 10px; font-weight: 700; }
.satp-donde .datos { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; font-size: 0.9rem; font-weight: 700; }
.satp-donde .datos a { color: var(--teal-bright); text-decoration: none; }
.satp-donde .datos a:hover { text-decoration: underline; }

/* ---------- Página Empresa ---------- */
.video-embed {
  position: relative; aspect-ratio: 16 / 9; max-width: 860px; margin: 0 auto;
  background: #000; border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Familias de producto ---------- */
.family-row {
  display: grid; grid-template-columns: 2.2fr 3fr 2fr auto; gap: 28px; align-items: center;
  border-top: 1px solid var(--line);
  padding: 30px 6px; text-decoration: none;
  transition: background 0.3s ease;
}
.family-row:last-of-type { border-bottom: 1px solid var(--line); }
.family-row:hover { background: rgba(80, 167, 147, 0.07); }
.family-row h3 {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800;
  text-transform: uppercase; font-size: 1.25rem; line-height: 1.05;
}
.family-row .use { font-size: 0.95rem; color: var(--text-dim); }
.family-row .spec { font-weight: 700; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.family-row .spec b { color: var(--teal-bright); font-weight: 800; }
.family-row .go { font-weight: 800; color: var(--teal-bright); font-size: 0.95rem; opacity: 0; transition: opacity 0.3s ease; }
.family-row:hover .go { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .family-row .go { opacity: 1; } }

/* ---------- Calculadora ---------- */
.tool-panel {
  display: grid; grid-template-columns: 1.1fr 1fr;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  background: var(--bg-raise);
}
.tool-form { padding: 44px; }
.tool-form label { display: block; font-weight: 700; font-size: 1rem; margin-bottom: 14px; }
.tool-form .field-row { display: flex; align-items: center; gap: 18px; }
.tool-form input[type="range"] { flex: 1; accent-color: var(--teal); }
.tool-form output { font-weight: 800; font-size: 1.15rem; min-width: 90px; color: var(--teal-bright); font-variant-numeric: tabular-nums; }
.tool-form .env { display: flex; gap: 10px; margin-top: 30px; }
.tool-form .env button {
  font: inherit; font-weight: 700; font-size: 0.9rem; padding: 10px 18px;
  border-radius: 4px; border: 1px solid var(--line);
  background: transparent; color: var(--text); cursor: pointer;
}
.tool-form .env button[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--bg); }
.tool-form .note { font-size: 0.82rem; color: var(--text-dim); margin-top: 30px; max-width: 44ch; }

.tool-result {
  position: relative; padding: 44px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  background:
    radial-gradient(120% 130% at 85% 50%, rgba(80, 167, 147, 0.3), transparent 60%),
    #0b0d0c;
  border-left: 1px solid var(--line);
}
.tool-result .label { font-weight: 800; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.tool-result .pitch {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800;
  font-size: clamp(3.4rem, 6vw, 5rem); color: var(--teal-bright); line-height: 1;
  text-shadow: 0 0 44px rgba(80, 167, 147, 0.5);
}
.tool-result .range { color: var(--text-dim); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.tool-result hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.tool-result .families-hint { font-size: 0.95rem; }

.coming { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; }
.coming span {
  font-size: 0.82rem; font-weight: 600; color: var(--text-dim);
  padding: 9px 16px; border: 1px dashed var(--line); border-radius: 999px;
}

/* ---------- Catálogo de productos ---------- */
/* ---------- Cabecera compacta (components/CabeceraCompacta.astro): comparador y catálogos ---------- */
.cc { position: relative; overflow: hidden; padding: 128px 0 24px; margin-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
/* la foto empieza bajo el menú (76px: lo que la cabecera fija tapa de la sección)
   para no quedar detrás de los enlaces ni del botón Contactar; se funde por la
   izquierda, por arriba y por abajo */
.cc-foto {
  position: absolute; top: 76px; right: 0; width: 50%; height: calc(100% - 76px); object-fit: cover; object-position: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%), linear-gradient(transparent 0%, #000 22%, #000 50%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%), linear-gradient(transparent 0%, #000 22%, #000 50%, transparent 100%);
  mask-composite: intersect;
  opacity: 0.9;
}
.cc-in { position: relative; z-index: 1; display: grid; gap: 18px; }
.cc svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cc .marker { font-size: 0.7rem; margin-bottom: 8px; }
.cc h1 { font-size: clamp(1.6rem, 2.2vw, 2rem); line-height: 1.1; }
.cc-txt p { margin-top: 6px; max-width: 62ch; font-size: 0.88rem; line-height: 1.6; color: rgba(244, 246, 245, 0.78); }
.cc-ventajas { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cc-ventajas li {
  display: flex; align-items: center; gap: 10px; padding: 0 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.78rem; line-height: 1.35; color: rgba(244, 246, 245, 0.82);
}
.cc-ventajas li:first-child { border-left: 0; padding-left: 0; }
.cc-ico {
  display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(47, 214, 188, 0.45); background: rgba(0, 168, 148, 0.08); color: var(--teal-bright);
  box-shadow: 0 0 22px -6px rgba(47, 214, 188, 0.55);
}
.cc-ico svg { width: 16px; height: 16px; }
@media (max-width: 860px) {
  .cc-foto { width: 100%; opacity: 0.25; }
  .cc-ventajas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 0; }
  .cc-ventajas li:nth-child(odd) { border-left: 0; padding-left: 0; }
}

.catalog-page { padding-top: 96px; }
.catalog-page .section-head { max-width: 900px; }

.filter-bar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  padding: 18px 0; margin-bottom: 28px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  position: sticky; top: calc(var(--banner-h) + 40px); z-index: 30;
  background: rgba(16, 18, 17, 0.94); backdrop-filter: blur(6px);
}
.filter-bar input, .filter-bar select {
  font: inherit; font-size: 0.92rem; color: var(--text);
  background: var(--bg-raise); border: 1px solid var(--line);
  border-radius: 4px; padding: 10px 14px;
}
.filter-bar input { flex: 1 1 220px; }
.filter-bar input::placeholder { color: var(--text-dim); }
.filter-bar select:focus, .filter-bar input:focus { outline: none; border-color: var(--teal); }
.filter-count { color: var(--teal-bright); font-weight: 700; font-size: 0.9rem; margin-left: auto; }

.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  padding-bottom: 90px;
}
.product-grid.cols3 { grid-template-columns: repeat(3, 1fr); }

/* catálogo con filtros laterales (al estilo de la web original) */
.catalog-layout { display: grid; grid-template-columns: 232px 1fr; gap: 36px; align-items: start; }
.side-filters {
  position: sticky; top: calc(var(--banner-h) + 132px);
  display: grid; gap: 22px; padding-bottom: 40px;
  max-height: calc(100vh - var(--banner-h) - 150px); overflow-y: auto;
}
/* Barras de desplazamiento internas: filtros (que llevan scroll propio para que
   su final se alcance en pantallas bajas), pestañas de la ficha y tablas anchas.
   En Windows, y en Mac con ratón, el sistema pinta siempre la barra gris clásica
   (en Mac con trackpad solo aparece al moverse y nadie la ve): aquí es fina y
   oscura, y en los filtros solo se ve al pasar el ratón por encima. */
.side-filters, .cfg-filtros, .cp-filtros, .fp-tabs, .cp-tabla-caja, .cfg-tabla-wrap, .compare-scroll {
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}
.side-filters, .cfg-filtros, .cp-filtros { scrollbar-color: transparent transparent; }
.side-filters:hover, .cfg-filtros:hover, .cp-filtros:hover { scrollbar-color: rgba(255, 255, 255, 0.18) transparent; }
/* Safari no entiende scrollbar-color: lo mismo con sus pseudoelementos */
:is(.side-filters, .cfg-filtros, .cp-filtros, .fp-tabs, .cp-tabla-caja, .cfg-tabla-wrap, .compare-scroll)::-webkit-scrollbar { width: 6px; height: 6px; }
:is(.side-filters, .cfg-filtros, .cp-filtros, .fp-tabs, .cp-tabla-caja, .cfg-tabla-wrap, .compare-scroll)::-webkit-scrollbar-track { background: transparent; }
:is(.side-filters, .cfg-filtros, .cp-filtros, .fp-tabs, .cp-tabla-caja, .cfg-tabla-wrap, .compare-scroll)::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.16); border-radius: 99px; }
:is(.side-filters, .cfg-filtros, .cp-filtros)::-webkit-scrollbar-thumb { background: transparent; }
:is(.side-filters, .cfg-filtros, .cp-filtros):hover::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); }
.side-filters input[type="search"] {
  font: inherit; font-size: 0.9rem; color: var(--text); width: 100%;
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px;
}
.side-filters input[type="search"]:focus { outline: none; border-color: var(--teal); }
.fgroup h4 {
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 10px;
}
.fbtns { display: flex; flex-wrap: wrap; gap: 7px; }
.fbtn {
  font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer;
  color: var(--text); background: var(--bg-raise);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.fbtn:hover { border-color: var(--teal); }
.fbtn[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--bg); font-weight: 700; }
.flimpiar {
  font: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer;
  color: var(--teal-bright); background: none; border: none; text-align: left; padding: 0;
}
.flimpiar:hover { text-decoration: underline; }
.side-filters .filter-count { margin-left: 0; }
/* botón «Filtros» de móvil: en escritorio no existe, el panel va siempre a la vista */
.filtros-toggle { display: none; }
@media (max-width: 960px) {
  .catalog-layout { grid-template-columns: 1fr; gap: 24px; }
  .side-filters { position: static; max-height: none; }
  /* una fila discreta a todo el ancho, como un desplegable: icono, «Filtros» y una flecha que gira al abrir */
  .filtros-toggle {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; text-align: left;
    border: 1px solid var(--line); border-radius: 8px; background: var(--bg-raise); color: var(--text-dim);
    font: inherit; font-size: 0.86rem; font-weight: 600; cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
  }
  .filtros-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .filtros-toggle::after {
    content: ''; margin-left: auto; width: 8px; height: 8px; margin-top: -4px;
    border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg);
    transition: transform 0.2s ease;
  }
  .filtros-toggle[aria-expanded="true"] { color: var(--text); border-color: rgba(47, 214, 188, 0.45); }
  .filtros-toggle[aria-expanded="true"]::after { transform: rotate(225deg); margin-top: 4px; }
  .catalog-layout .side-filters { display: none; }
  .catalog-layout.filtros-abiertos .side-filters { display: grid; }
  .product-grid.cols3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) { .product-grid.cols3 { grid-template-columns: 1fr; } }
.product-card {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: 6px;
  overflow: hidden; transition: transform 0.3s ease, border-color 0.3s ease;
}
.product-card:hover { transform: translateY(-4px); border-color: rgba(0, 168, 148, 0.55); }
.product-card .ph {
  aspect-ratio: 4 / 3; background: #fff;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-card .ph img { width: 100%; height: 100%; object-fit: contain; }
.noimg { width: 100%; height: 100%; background:
  radial-gradient(80% 80% at 50% 50%, rgba(0, 168, 148, 0.18), transparent 70%), var(--bg-raise); }
.product-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.product-card .code { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; color: var(--teal-bright); text-transform: uppercase; }
.product-card h3 { font-size: 0.92rem; font-weight: 700; line-height: 1.35; color: var(--text); }
.product-card .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.product-card .chips span {
  font-size: 0.7rem; font-weight: 600; color: var(--text-dim);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px;
}

/* ---------- Comparador de cabinets ---------- */
.compare-pickers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 32px; }
.compare-pickers select {
  font: inherit; font-size: 0.9rem; color: var(--text); width: 100%;
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px;
}
.compare-pickers select:focus { outline: none; border-color: var(--teal); }
.compare-zone { padding-bottom: 90px; }
.compare-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
#compare-table { width: 100%; border-collapse: collapse; min-width: 640px; }
#compare-table th, #compare-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: 0.92rem; vertical-align: top; }
#compare-table .rowname { color: var(--text-dim); font-weight: 600; width: 220px; background: var(--bg-raise); position: sticky; left: 0; }
#compare-table th.prod { background: var(--bg-raise); }
#compare-table th.prod img { width: 120px; aspect-ratio: 4/3; object-fit: contain; background: #fff; border-radius: 4px; display: block; margin-bottom: 8px; }
#compare-table th.prod a { color: var(--teal-bright); font-weight: 800; text-decoration: none; font-size: 0.8rem; letter-spacing: 0.06em; }
#compare-table th.prod span { display: block; font-weight: 700; font-size: 0.85rem; margin-top: 2px; }
#compare-table td.diff { color: var(--teal-bright); font-weight: 700; }
#compare-table td a { color: var(--teal-bright); font-weight: 700; text-decoration: none; }
.gama-link { color: var(--teal-bright); font-weight: 800; text-decoration: none; }
.gama-link:hover { text-decoration: underline; }
@media (max-width: 860px) { .compare-pickers { grid-template-columns: 1fr; } }

/* ---------- Iconos de guardados (barra superior) ---------- */
.topbar .saved { display: flex; gap: 14px; align-items: center; }
.topbar .saved a { display: flex; align-items: center; gap: 4px; text-decoration: none; }
.topbar .saved a[hidden] { display: none; }
.topbar .saved svg { width: 15px; height: 15px; fill: var(--teal-bright); }
.topbar .saved b { font-size: 0.7rem; color: var(--bg); background: var(--teal-bright); border-radius: 999px; min-width: 15px; height: 15px; display: grid; place-items: center; padding: 0 3px; }

/* ---------- Guardar desde tarjetas y ficha ---------- */
.product-card .ph { position: relative; }
.view-hint {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.95);
  display: flex; align-items: center; gap: 7px;
  background: rgba(16, 18, 17, 0.88); color: #fff; font-weight: 700; font-size: 0.82rem;
  padding: 8px 14px; border-radius: 999px; pointer-events: none;
  opacity: 0; transition: opacity 0.25s ease, transform 0.25s ease;
}
.view-hint svg { width: 15px; height: 15px; fill: var(--teal-bright); }
.product-card:hover .view-hint { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.card-actions { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; }
.mini {
  width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--line);
  background: rgba(16, 18, 17, 0.85); color: #fff; font-size: 0.95rem; cursor: pointer;
  display: grid; place-items: center; line-height: 1;
  opacity: 0; transition: opacity 0.25s ease, background 0.2s ease;
}
.mini svg { width: 15px; height: 15px; }
.mini.fav.is-on svg path { fill: currentColor; }
.product-card:hover .mini, .mini.is-on { opacity: 1; }
.mini:hover { border-color: var(--teal); }
.mini.is-on { background: var(--teal); color: var(--bg); border-color: var(--teal); }

/* acciones secundarias de la ficha: guardar y comparar */
.save-row { display: flex; gap: 28px; margin-top: 22px; }
.save-link {
  display: inline-flex; align-items: center; gap: 9px;
  background: none; border: none; padding: 4px 0; cursor: pointer;
  font: inherit; font-size: 0.92rem; font-weight: 600; color: var(--text-dim);
  transition: color 0.2s ease;
}
.save-link svg { width: 17px; height: 17px; flex-shrink: 0; }
.save-link:hover { color: var(--teal-bright); }
.save-link.is-on { color: var(--teal-bright); }
.save-link.is-on#btn-fav svg path { fill: currentColor; }

/* ---------- Herramientas de la landing LED ----------
   El configurador y el comparador van cada uno en su caja: antes compartían
   fondo con la sección y se leían como un solo bloque larguísimo. */
.herramientas { display: grid; gap: 22px; }
.herramienta {
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: 10px;
  padding: 34px 36px;
}
.herramienta .h-cab {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
}
.herramienta .h-txt { flex: 1 1 420px; }
.herramienta .h-eyebrow {
  display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal-bright); margin-bottom: 10px;
}
.herramienta h3 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); text-wrap: balance; }
.herramienta .h-txt p { margin-top: 12px; color: var(--text-dim); max-width: 56ch; }
.herramienta .h-cab .btn { flex: 0 0 auto; }
/* el comparador cuelga de su cabecera, separado por una línea */
.herramienta .h-cuerpo { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--line); }
.herramienta .compare-zone { padding-bottom: 0; }
.herramienta #compare-empty { padding: 0; font-size: 1rem; }
@media (max-width: 700px) { .herramienta { padding: 26px 22px; } }

/* ---------- Comparador embebido en la landing ---------- */
.comparador-embed { border-top: 1px solid var(--line); }
.inline-ico { width: 15px; height: 15px; display: inline-block; vertical-align: -2px; color: var(--teal-bright); }
.comparador-embed .compare-zone { padding-bottom: 0; }
.comparador-embed #compare-empty { padding: 8px 0 0; }

/* ---------- Ficha de producto ---------- */
.product-page { padding-top: 40px; }
.product-hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px;
  align-items: start; padding: 48px 0 24px;
}
/* galería tipo marketplace: miniaturas + principal con zoom al cursor */
.gallery { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: start; }
.gallery .thumbs { display: grid; gap: 10px; }
.gallery .thumbs button {
  border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 0;
  cursor: pointer; overflow: hidden; aspect-ratio: 1;
}
.gallery .thumbs button img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gallery .thumbs button.sel { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.gallery .mainimg {
  position: relative; background: #fff; border-radius: 6px; overflow: hidden; cursor: zoom-in;
  aspect-ratio: 1;
}
/* anclada al contenedor: como rejilla, la fila crecía hasta la altura natural de
   la imagen y las verticales (posters, tótems) salían recortadas */
.gallery .mainimg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  transition: transform 0.12s ease-out;
}
.gallery:not(:has(.thumbs)) { grid-template-columns: 1fr; }
.noimg.big { aspect-ratio: 4/3; border: 1px solid var(--line); border-radius: 6px; }
.product-hero .info { position: sticky; top: 140px; }
.product-hero .code { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; color: var(--teal-bright); text-transform: uppercase; }
.product-hero h1 { font-size: clamp(1.5rem, 2.8vw, 2.3rem); margin: 10px 0 20px; line-height: 1.05; }
.specs-top { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.spec-chip {
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: 6px;
  padding: 10px 14px; display: flex; flex-direction: column; gap: 2px;
}
.spec-chip .k { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
.spec-chip .v { font-weight: 800; color: var(--teal-bright); font-variant-numeric: tabular-nums; }
.product-page .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.product-desc, .product-attrs, .product-faqs { padding: 40px 0 0; max-width: 860px; }
.rich { color: var(--text-dim); line-height: 1.7; }
.rich strong { color: var(--text); }
.rich br + br { display: block; content: ""; margin-top: 8px; }
.product-attrs table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.product-attrs th, .product-attrs td { padding: 10px 6px; border-bottom: 1px solid var(--line); font-size: 0.95rem; text-align: left; vertical-align: top; }
.product-attrs th { color: var(--text-dim); font-weight: 600; width: 42%; }
.product-faqs details { border-bottom: 1px solid var(--line); padding: 14px 4px; }
.product-faqs summary { font-weight: 700; cursor: pointer; }
.product-faqs .rich { padding: 10px 0 4px; }
.product-page .cta-final { margin-top: 60px; }

@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-hero { grid-template-columns: 1fr; }
  .product-hero .info { position: static; }
}
@media (max-width: 540px) {
  .product-grid { grid-template-columns: 1fr; padding-bottom: 24px; } /* «Ver más productos» cerca del último producto */
  .cat-barra .cat-vista { display: none; } /* rejilla o lista da igual a una columna (más específico que la regla base, que va después) */
}

/* ---------- CTA final ---------- */
.cta-final { position: relative; overflow: hidden; }
.cta-final .wrap { position: relative; }
.cta-final h2 { max-width: 16ch; }
.cta-final .glow {
  position: absolute; inset: auto -10% -60% -10%; height: 90%;
  background: radial-gradient(60% 100% at 50% 100%, rgba(80, 167, 147, 0.35), transparent 70%);
  pointer-events: none;
}
.cta-final .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
/* los dos botones del cierre: con hueco entre ellos también cuando se apilan en móvil */
.cta-final .cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 48px 0 44px; font-size: 0.92rem; color: var(--text-dim); }
/* tres columnas: secciones · logo y firma · contacto y legal */
footer .wrap { display: grid; grid-template-columns: 1fr auto 1fr; gap: 32px 48px; align-items: start; }
footer a { text-decoration: none; color: var(--text-dim); }
footer a:hover { color: var(--teal-bright); }
footer .pie-col { display: grid; gap: 11px; align-content: start; }
/* las secciones, en dos columnas pegadas (4 + 3) para que el pie no se alargue */
footer .secciones {
  justify-items: start; justify-content: start;   /* sin esto las dos columnas se
     reparten todo el ancho de su tercio y quedan separadísimas */
  grid-auto-flow: column; grid-template-rows: repeat(4, auto);
  column-gap: 40px;
}
footer .legal { justify-items: end; text-align: right; }
/* el logo manda en el medio: se centra también en vertical, que la columna de
   secciones es mucho más alta */
footer .centro { justify-items: center; text-align: center; gap: 16px; align-self: center; }
footer .centro .copy { font-size: 0.85rem; }

/* ---------- Menú móvil (hamburguesa, Cabecera.astro) ---------- */
.nav-burger { display: none; }
.mega-rapidos { display: none; }
html.sin-scroll, html.sin-scroll body { overflow: hidden; }
@media (max-width: 960px) {
  .nav-burger {
    display: grid; gap: 5px; width: 44px; height: 44px; padding: 0; place-content: center;
    background: transparent; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; flex-shrink: 0;
  }
  .nav-burger span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
  .menu-movil .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-movil .nav-burger span:nth-child(2) { opacity: 0; }
  .menu-movil .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  /* barra más baja y limpia: logo, y a la derecha dos botones iguales (contactar, con un sobre, y menú) */
  .site-header .bar { gap: 10px; height: 64px; }
  .site-header .logo img { height: 36px; }
  .nav-contactar {
    margin-left: auto; width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 8px;
    border: 1px solid var(--line); color: var(--text);
  }
  .nav-contactar-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nav-contactar-ico { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .nav-contactar:hover { background: transparent; border-color: var(--teal-bright); color: var(--teal-bright); }
  /* el panel pasa a ocupar toda la pantalla bajo la barra y se desplaza él solo */
  .site-header.menu-movil { background: #0c0e0d; }
  /* con el menú abierto la propia cabecera ocupa toda la pantalla (es fija) y
     se desplaza ella: así el panel llega hasta abajo y tapa también la barra
     superior; los accesos rápidos quedan centrados al pie del panel */
  .site-header.menu-movil {
    top: 0; bottom: 0; height: 100dvh; z-index: 60; overflow-y: auto; -webkit-overflow-scrolling: touch;
    background: #0c0e0d; backdrop-filter: none; display: flex; flex-direction: column;
  }
  /* la X siempre a mano; width: 100% porque .wrap (margen auto) se encogería dentro de la columna flexible */
  .menu-movil .bar { flex-shrink: 0; width: 100%; position: sticky; top: 0; z-index: 1; background: #0c0e0d; }
  .menu-movil .mega {
    position: static; flex: 1; display: flex; flex-direction: column;
    opacity: 1; visibility: visible; transform: none; transition: none; box-shadow: none;
  }
  .menu-movil .mega-grid {
    flex: 1; display: flex; flex-direction: column; gap: 0; padding: 4px 28px 28px;
  }
  .menu-movil .mega-col { padding: 18px 0; border-bottom: 1px solid var(--line); }
  .menu-movil .mega-sol { padding-right: 0; border-right: 0; }
  .menu-movil .mega-h { margin-bottom: 10px; font-size: 0.82rem; }
  .menu-movil .mega-col ul { grid-template-columns: 1fr 1fr; gap: 2px 18px; }
  .menu-movil .mega-sol ul { grid-template-columns: 1fr; }
  .menu-movil .mega-col a:not(.mega-h) { padding: 8px 0; font-size: 0.95rem; color: var(--text); }
  .menu-movil .mega-rapidos {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px;
    margin-top: auto; padding: 28px 0 0;
  }
  .menu-movil .mega-rapidos a { font-size: 0.95rem; color: var(--text-dim); text-decoration: none; padding: 6px 0; }
  .menu-movil .mega-rapidos-contactar {
    flex-basis: 100%; order: -1; margin-bottom: 10px; padding: 14px 20px; text-align: center; border-radius: 4px;
    background: var(--teal); color: #0c0e0d; font-weight: 800; font-size: 0.98rem;
  }
  .menu-movil .mega-cta { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  section { padding: 72px 0; }
  .nav { display: none; }
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .card-grid, .sector-grid { grid-template-columns: 1fr 1fr; }
  .family-row { grid-template-columns: 1fr; gap: 10px; }
  .tool-panel { grid-template-columns: 1fr; }
  .tool-result { border-left: 0; border-top: 1px solid var(--line); }
  .division-row .wrap { grid-template-columns: 1fr; }
  .division-row .meta { text-align: left; }
}
@media (max-width: 860px) {
  /* pie en móvil: la marca arriba y, debajo, las secciones en dos columnas
     alineadas y los enlaces legales en una fila; cada bloque con su línea */
  footer .wrap { grid-template-columns: 1fr; gap: 0; }
  footer .pie-col { justify-items: center; text-align: center; }
  footer .centro { order: -1; padding-bottom: 28px; }
  footer .secciones {
    grid-auto-flow: row; grid-template-rows: none; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 12px; padding: 24px 0; border-top: 1px solid var(--line); justify-items: stretch;
  }
  footer .secciones a:nth-child(7) { grid-column: 2; } /* el último, solo en su fila, al centro */
  footer .secciones a { padding: 4px 0; text-align: center; font-size: 0.88rem; }
  footer .legal {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px;
    padding: 20px 0 0; border-top: 1px solid var(--line); text-align: center; font-size: 0.88rem;
  }
}
@media (max-width: 600px) {
  .card-grid, .sector-grid, .stats .wrap { grid-template-columns: 1fr; }
  .subsol { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero .hint { display: none; }
}

/* ---------- Catálogo LED (CatalogoLedCuerpo): barra, tarjetas y lista ---------- */
.cat-resultados { min-width: 0; }
.cat-barra { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.cat-total { margin-right: auto; font-size: 0.88rem; color: var(--text-dim); }
.cat-orden { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: var(--text-dim); min-width: 0; max-width: 100%; }
.cat-orden select {
  min-width: 0; max-width: 100%; /* en móvil el desplegable se encogía mal y desbordaba la página por la derecha */
  font: inherit; font-size: 0.85rem; color: var(--text); background: var(--bg-raise);
  border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; cursor: pointer;
}
.cat-vista { display: flex; gap: 4px; }
.cat-vista button {
  display: grid; place-items: center; width: 36px; height: 36px; cursor: pointer;
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: 6px; color: var(--text-dim);
}
.cat-vista button[aria-pressed="true"] { color: var(--teal-bright); border-color: rgba(47, 214, 188, 0.5); }
.cat-vista svg, .cat-chips svg, .cat-detalle svg {
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.cat-vista svg { width: 17px; height: 17px; }
.cat-led .product-card .body { gap: 8px; flex: 1; }
.cat-etiqueta {
  align-self: flex-start; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal-bright); border: 1px solid rgba(47, 214, 188, 0.5); border-radius: 99px; padding: 2px 9px;
}
.cat-led .product-card h3 {
  font-size: 0.88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cat-spec { font-size: 0.8rem; color: var(--text-dim); }
.cat-spec b { color: var(--teal-bright); font-weight: 700; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.78rem; color: var(--text-dim); }
.cat-chips span { display: inline-flex; align-items: center; gap: 6px; }
.cat-chips svg { width: 15px; height: 15px; color: var(--teal-bright); }
.cat-detalle {
  align-self: flex-start; margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; color: var(--teal-bright);
  border: 1px solid rgba(47, 214, 188, 0.45); border-radius: 6px; padding: 6px 12px;
  transition: background 0.2s ease;
}
.cat-detalle svg { width: 15px; height: 15px; }
.product-card:hover .cat-detalle { background: rgba(0, 168, 148, 0.14); }
.cat-led .sin-resultados { grid-column: 1 / -1; color: var(--text-dim); }
/* vista en lista: foto a la izquierda, datos a la derecha */
.product-grid.en-lista { grid-template-columns: 1fr; }
.product-grid.en-lista .product-card { flex-direction: row; }
.product-grid.en-lista .product-card .ph { width: 240px; flex-shrink: 0; aspect-ratio: 4 / 3; }
.product-grid.en-lista .product-card .body { justify-content: center; }
@media (max-width: 640px) {
  .product-grid.en-lista .product-card { flex-direction: column; }
  .product-grid.en-lista .product-card .ph { width: 100%; }
}

/* paginación "Ver más" de los catálogos (paginar.js) */
.product-card.pag-oculta { display: none !important; }
.cat-mas { display: flex; justify-content: center; margin-top: 28px; }
.cat-mas[hidden] { display: none; }
.cat-mas .btn { display: inline-flex; align-items: center; gap: 10px; }
.cat-mas small { font-weight: 600; opacity: 0.75; }

/* ---------- Catálogos …/productos/: destacados, insignias y ayuda ---------- */
.catalog-page.con-cabecera { padding-top: 0; }
/* modo destacados (destacados.js): solo los elegidos, en su orden, sin barra */
.cat-dest-cab { display: none; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.modo-destacados .cat-dest-cab { display: flex; }
.cat-dest-cab h2 { font-size: 1.25rem; font-weight: 800; }
.cat-dest-cab a { display: inline-flex; align-items: center; gap: 6px; color: var(--teal-bright); font-weight: 700; font-size: 0.88rem; text-decoration: none; }
.cat-dest-cab a:hover { text-decoration: underline; }
.cat-dest-cab svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.modo-destacados .cat-barra, .modo-destacados .cat-mas, .modo-destacados .sin-resultados { display: none !important; }
.modo-destacados .product-card:not([data-destacado]) { display: none !important; }
.modo-destacados .product-card { order: var(--dest); }
.modo-destacados .product-grid { padding-bottom: 28px; }
/* insignia del CRM sobre la foto: Recomendado (con estrella), Novedad, Promoción.
   La misma píldora que en las páginas de solución (.se-reco en espacio.css) */
.cat-insignia {
  position: absolute; top: 10px; left: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px 4px 8px; border-radius: 99px; background: #00866f; color: #fff;
  font-size: 0.64rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  box-shadow: 0 4px 12px -4px rgba(0, 134, 111, 0.6);
}
.cat-insignia svg { width: 12px; height: 12px; fill: currentColor; stroke: none; }
/* banda "¿Necesitas ayuda?" (AyudaEspecialista) */
.ayuda-esp {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 28px; margin-bottom: 90px;
  padding: 26px 30px; border: 1px solid rgba(47, 214, 188, 0.35); border-radius: 12px; background: var(--bg-raise);
}
.ayuda-esp > img {
  position: absolute; top: 0; right: 0; width: 55%; height: 100%; object-fit: cover; opacity: 0.45;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%);
}
.ayuda-esp-txt { position: relative; flex: 1; }
.ayuda-esp small { display: block; font-size: 0.78rem; color: var(--text-dim); margin-bottom: 4px; }
.ayuda-esp h2 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); margin-bottom: 6px; }
.ayuda-esp p { font-size: 0.86rem; color: var(--text-dim); max-width: 52ch; }
.ayuda-esp-btn { position: relative; flex-shrink: 0; display: inline-flex; align-items: center; gap: 10px; border-color: var(--teal); background: rgba(12, 14, 13, 0.6); }
.ayuda-esp-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) {
  /* en móvil la foto deja de ir detrás del texto (lo tapaba) y pasa a ser una banda arriba */
  .ayuda-esp { flex-direction: column; align-items: flex-start; padding-top: 0; }
  .ayuda-esp > img {
    position: static; order: -1; width: calc(100% + 60px); max-width: none; margin: 0 -30px 6px; height: 150px; opacity: 0.85;
    -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent);
  }
}

/* ---------- Volver a actualidad, encima del título de cada noticia ---------- */
.noticia-migas { display: block; margin: calc(var(--banner-h) + 104px) 0 0; padding: 16px 0; background: #0c0e0d; border-bottom: 1px solid var(--line); font-size: 0.86rem; }
nav.noticia-migas { margin-bottom: 0; }
.migas-volver { color: var(--teal-bright); font-weight: 700; text-decoration: none; }
.migas-volver:hover { text-decoration: underline; }

/* filtros dependientes (filtros.js): opciones y grupos sin productos se ocultan */
.fbtn[hidden], .fgroup[hidden] { display: none !important; }
