/* =====================================================================
   DISEÑO v3 · añadidos de la web real sobre la plantilla /diseño
   main.css y las hojas de página son copia exacta de /diseño (las regenera scripts/dev/v3_import_css.php);
   todo lo que la web real necesita y la plantilla no tiene vive aquí, después de main.css.
   Sin !important ni estilos en línea; colores con las variables de main.css (modo oscuro, fase 9).
   ===================================================================== */

/* ---------- Color de cada sector (en /diseño: style="--sector: var(--c-…)") ---------- */
.s-fontaneria    { --sector: var(--c-fonta); }
.s-bano          { --sector: var(--c-bano); }
.s-electricidad  { --sector: var(--c-elec); }
.s-climatizacion { --sector: var(--c-clima); }
.s-herramientas  { --sector: var(--c-herra); }

/* ---------- Menú grande con datos reales ---------- */
/* Columna que continúa la lista de la anterior (misma familia): conserva la línea del encabezado, sin repetir el texto */
.mega__group--cont h4 { color: transparent; user-select: none; }
.mega__group--cont h4::before { visibility: hidden; }
/* Sin promoción activa en el sector (D2): las 4 columnas ocupan el ancho del recuadro */
.mega__inner--sin-promo { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Barra superior: accesos de gestión (administrador y empleados) ---------- */
.topbar__links .topbar__staff { font-weight: 600; color: var(--c-on-dark); }
.topbar__links .topbar__staff .icon { color: var(--c-brand-300); }
@media (max-width: 960px) { .topbar__links .topbar__staff { display: none; } }   /* sin sitio: están en el menú lateral (hamburguesa) */

/* ---------- Fotos de artículo (AVIF de /images/150|300|600, casi todas con fondo blanco opaco) ----------
   «multiply»: el blanco de la foto toma el color de lo que tiene detrás (degradado de la tarjeta, miniaturas, buscador…),
   como si fuera transparente. En oscuro, oscuro.css las pone sobre una placa clara. */
img[src*="/images/150/"], img[src*="/images/300/"], img[src*="/images/600/"] { mix-blend-mode: multiply; }

/* ---------- Sugerencias del buscador: sin precio (los precios dependen del cliente; fase 6) ---------- */
.suggest--sin-precio { grid-template-columns: 52px 1fr; }
.suggest__img { object-fit: contain; }

/* ---------- Alta profesional (en /diseño, formulario del boletín; D11) ---------- */
.newsletter__form--cta { flex-wrap: wrap; }
.newsletter__form--cta .btn { flex: 1 1 auto; justify-content: center; }

/* ---------- Marca «Dato de plantilla: modificar» (solo la ve el administrador; D7) ---------- */
.v3tpl {
  display: inline-flex; align-items: center; height: 18px; margin-left: 6px; padding: 0 6px;
  border: 1px dashed var(--c-warn-700); border-radius: 4px;
  font-family: var(--f-mono); font-size: 10px; font-weight: 500; line-height: 1; letter-spacing: .02em;
  text-transform: lowercase; vertical-align: middle; white-space: nowrap;
  color: var(--c-warn-800); background: var(--c-warn-50); cursor: help;
}

/* ---------- Barra del menú con 5 sectores (la plantilla tiene 4) ----------
   «Novedades» pasa al pie de cada menú grande; la píldora «Cuenta profesional» se oculta antes (en /diseño, ≤ 1280 px)
   y los enlaces se estrechan un poco en las pantallas justas, para que la barra no se desborde. */
@media (max-width: 1439px) {
  .nav__pro { display: none; }
}
@media (max-width: 1200px) {
  .nav__link { gap: 6px; padding: 0 10px; }
}

/* La marca «plantilla» dentro de la píldora profesional no ocupa sitio (solo admin; no debe desbordar la barra) */
.nav__pro { position: relative; }
.nav__pro .v3tpl { position: absolute; top: -9px; right: -6px; margin: 0; }

/* ---------- Retraso de aparición (en /diseño: style="--d:N") ---------- */
.d-0 { --d: 0; } .d-1 { --d: 1; } .d-2 { --d: 2; } .d-3 { --d: 3; } .d-4 { --d: 4; }
.d-5 { --d: 5; } .d-6 { --d: 6; } .d-7 { --d: 7; } .d-8 { --d: 8; }

/* ---------- Tarjeta de producto con datos reales ---------- */
/* Bajo pedido o descatalogado (StockStatus): gris; en /diseño solo hay «en stock» y «últimas unidades» */
.stock--out { color: var(--c-muted); }

/* ======================= PORTADA (fase 5) ======================= */
/* 5 sectores (la plantilla tiene 4): 5 columnas; entre 1025 y 1200 px, 3 + 2; en tablet, 2 + 2 + 1 */
.sectors__grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sectors__grid--5 .sector-card { padding-inline: 20px; }
.sectors__grid--5 .sector-card__title { font-size: 28px; }
@media (max-width: 1200px) {
  .sectors__grid--5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sectors__grid--5 .sector-card { grid-column: span 2; }
  .sectors__grid--5 .sector-card:nth-child(n+4) { grid-column: span 3; }
}
@media (max-width: 1024px) {
  .sectors__grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sectors__grid--5 .sector-card, .sectors__grid--5 .sector-card:nth-child(n+4) { grid-column: auto; }
  .sectors__grid--5 .sector-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .sectors__grid--5 { grid-template-columns: minmax(0, 1fr); }
}

/* Carrusel: enlace «Ver todas…» entre la barra de progreso y las flechas */
.carousel__foot .link-arrow { white-space: nowrap; }
@media (max-width: 560px) {
  .carousel__foot { flex-wrap: wrap; }
  .carousel__foot .link-arrow { order: 3; width: 100%; }
}

/* Cuenta profesional: barras del gráfico (en /diseño: style="--h:N%") */
.pro-stat__bars i:nth-child(1) { --h: 35%; }
.pro-stat__bars i:nth-child(2) { --h: 52%; }
.pro-stat__bars i:nth-child(3) { --h: 44%; }
.pro-stat__bars i:nth-child(4) { --h: 68%; }
.pro-stat__bars i:nth-child(5) { --h: 60%; }
.pro-stat__bars i:nth-child(6) { --h: 82%; }
.pro-stat__bars i:nth-child(7) { --h: 74%; }
.pro-stat__bars i:nth-child(8) { --h: 96%; }
.pro__list a { color: inherit; text-decoration: underline; text-decoration-color: rgba(var(--rgb-on-dark), .35); text-underline-offset: 3px; }
.pro__list a:hover { text-decoration-color: currentColor; }

/* Marcas: logotipo tipográfico con el color del sector principal de la marca (D14); logo real si lo tiene */
.brand { --bc: var(--sector); }
.brand__logo { display: block; height: 40px; width: auto; max-width: 160px; object-fit: contain; }

/* Guías y eventos con foto o cartel propios (en /diseño, siempre ilustración) */
.guide__cover--foto .guide__foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.guide__cover--foto::before, .guide__cover--foto::after { display: none; }
.guide__cover--foto .guide__code { z-index: 2; }

/* 2 almacenes (la plantilla tiene 4 tiendas) */
.stores--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stores--2 .store__line > span { min-width: 0; }
@media (max-width: 560px) {
  .stores--2 { grid-template-columns: minmax(0, 1fr); }
}

/* Preguntas frecuentes de la portada (acordeón de la página de FAQ de /diseño) */
.faq__items--portada { max-width: 920px; }

/* ======================= CATÁLOGO (fase 6) ======================= */
/* Sector en el filtro (en /diseño: <span style="display:flex;…;--sector:…">) */
.check__sector { display: flex; align-items: center; gap: 8px; }
/* Chips y paginación son enlaces (filtrado en el servidor; en /diseño, botones) */
.afchip a { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(var(--rgb-on-dark), .14); color: inherit; transition: background .2s; }
.afchip a:hover { background: var(--c-brand); }
.pager a { min-width: 42px; height: 42px; padding: 0 10px; display: grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--c-line); background: var(--c-surface); font-weight: 600; font-size: 14px; transition: border-color .2s, background .2s, color .2s; }
.pager a:hover { border-color: var(--c-text); }
.pager a[aria-current="page"] { background: var(--c-ink); border-color: var(--c-text); color: var(--c-on-dark); }
.pager .pager__off { border: 1px solid var(--c-line); background: var(--c-surface); opacity: .4; }
.pager .icon { width: 18px; height: 18px; }
/* Mientras llega el listado nuevo */
.catalog .results { transition: opacity .2s; }
.catalog.is-loading .results { opacity: .5; pointer-events: none; }
.catalog.is-loading .filters__body { cursor: progress; }

/* ======================= FICHA DE PRODUCTO (fase 6) ======================= */
/* Color del sector (en /diseño: style="--sector:…"); sin sector (familias 00 y 24), el rojo de la marca */
:where(.pdp, .pdp-sections) { --sector: var(--c-brand); }
.brand-pill { --bc: var(--sector); }
.pinfo__lead { margin-top: -8px; color: var(--c-muted); font-size: 15px; line-height: 1.6; }
.buybox__eco, .buybox__promo { margin-top: 8px; font-size: 13px; color: var(--c-muted); }
.buybox__promo { display: flex; align-items: center; gap: 6px; color: var(--c-brand-700-fg); }
.buybox__promo .icon { color: var(--c-brand-fg); }
p.buybox__pro { cursor: default; }
/* Unidad de venta en la tabla de /diseño (en /diseño: precio por volumen, que no existe) */
.tiers tbody tr { cursor: pointer; }
.tiers__ue { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; }
.tiers__ue input { accent-color: var(--sector); }
.assure a { text-decoration: underline; text-decoration-color: var(--c-line-strong); text-underline-offset: 3px; }
.assure a:hover { color: var(--c-text); }
/* «Guardar en una lista»: desplegable con las listas de compra del cliente */
.v3-pop { position: relative; }
.v3-pop__panel { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); display: grid; gap: 4px; padding: 10px; border-radius: var(--r); background: var(--c-surface); border: 1px solid var(--c-line); box-shadow: var(--shadow-lg); }
.v3-pop__title { padding: 2px 6px 6px; font-size: 12px; font-weight: 600; color: var(--c-muted); }
.v3-pop__hint { padding: 4px 6px 8px; font-size: 13px; color: var(--c-muted); }
.v3-pop__item { width: 100%; padding: 9px 10px; border-radius: var(--r-sm); text-align: left; font-size: 14px; font-weight: 500; transition: background .15s; }
.v3-pop__item:hover, .v3-pop__item:focus-visible { background: var(--c-bg); }
/* Descripción con formato del editor (la v1 la pinta igual) */
.desc__html > * + * { margin-top: .9em; }
.desc__html ul, .desc__html ol { padding-left: 1.3em; }
.desc__html ul { list-style: disc; }
.desc__html ol { list-style: decimal; }
.desc__html h2, .desc__html h3 { font-size: 22px; text-transform: uppercase; color: var(--c-text); }
.desc__html a { color: var(--c-brand-fg); text-decoration: underline; }
/* Búsquedas relacionadas (SEO de la v1) */
.related-searches { margin-top: 32px; }
.related-searches .eyebrow::before { display: none; }
.related-searches__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.related-searches__list a { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--c-line-strong); background: var(--c-surface); font-size: 13px; transition: border-color .2s; }
.related-searches__list a:hover { border-color: var(--c-text); }
.psec .faq__items { margin: 0; }
/* Más de 4 fotos: todas las miniaturas en una fila (en /diseño, siempre 4 vistas) */
.gallery__thumbs--muchas { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }

/* ======================= OFERTAS Y CATEGORÍA (fase 6) ======================= */
/* Ofertas: rejilla a todo el ancho, sin panel de filtros */
.catalog--sin-filtros { grid-template-columns: minmax(0, 1fr); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.toolbar__note { margin-left: auto; font-size: 13.5px; color: var(--c-muted); }
.toolbar__note a { color: var(--c-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1200px) { .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 400px) { .grid--4 { grid-template-columns: minmax(0, 1fr); } }
/* Texto SEO de la categoría (la v1 lo pone en la cabecera) */
.cat-text { max-width: 920px; }
.cat-text .section-title { margin-bottom: 20px; }
.cat-text .desc__html { color: var(--c-text-2); font-size: 15.5px; line-height: 1.7; }

/* ======================= MARCAS, EMPRESA E INFORMACIÓN (fase 7) ======================= */
/* Utilidades: sin relleno arriba (en /diseño: style="padding-top:0"), campo trampa de los formularios, error de la casilla legal */
.section--flush-top { padding-top: 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field__error.is-shown { display: block; }
.badge--info { background: var(--c-fonta-50); color: var(--c-fonta-900); }

/* Marcas: color de la marca = el de su sector principal (D14; en /diseño, style="--bc: …") */
.fbrand, .bhero { --bc: var(--sector, var(--c-ink-600)); }
.fbrand__mark--logo, .bhero__mark--logo { background: var(--c-surface); border: 1px solid var(--c-line); padding: 6px; }
.fbrand__mark--logo img, .bhero__mark--logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bhero__mark { color: var(--c-on-dark); }
.bhero h1 small { display: block; margin-bottom: 4px; font-size: .38em; letter-spacing: .04em; color: var(--c-stone-300); }
.bhero__fams { margin-top: 20px; }
.bhero .bhero__docs small { white-space: nowrap; }

/* Documentos legales con el texto real */
.legal__meta-btns { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.legal__box { display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--r); background: var(--c-bg); border-left: 3px solid var(--c-brand-fg); }
.legal__sec .legal__box p { margin: 0; font-size: 14.5px; }
.legal__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.legal__sec .table .badge { white-space: nowrap; }
.wd-form { margin-top: 0; }
.wd-form__intro { margin: 4px 0 18px; color: var(--c-muted); font-size: 14px; }
.wd-form .btn--lg { margin-top: 16px; }
.wd-form .alert, .contact__form .alert { margin-top: 16px; }
.zone-towns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin: 14px 0; }
.zone-towns h3 { margin-bottom: 8px; font-size: 18px; text-transform: uppercase; }
.legal__sec .zone-towns ul { list-style: none; padding: 0; margin: 0; }

/* Quiénes somos: el compromiso «Formación continua» enlaza a los eventos reales */
a.commit__item { transition: color .2s; }
a.commit__item:hover strong { color: var(--c-brand-fg); }

/* Dónde estamos: mapa ilustrado de Oliva y Cullera (colores en variables para el modo oscuro) */
.map__zone--oliva { transform-origin: 565px 400px; }
.map__zone--cullera { transform-origin: 462px 165px; }
.mp-land { fill: var(--c-surface-alt); }
.mp-grid { stroke: var(--c-text); stroke-opacity: .05; }
.mp-relief { stroke: var(--c-text); stroke-opacity: .08; }
.mp-sea { fill: color-mix(in srgb, var(--c-fonta) 15%, var(--c-surface)); }
.mp-wave { stroke: var(--c-fonta); stroke-opacity: .22; }
.mp-coast { stroke: color-mix(in srgb, var(--c-fonta) 38%, var(--c-surface)); }
.mp-sea-text { fill: color-mix(in srgb, var(--c-fonta) 65%, var(--c-text-2)); }
.mp-zone-stop { stop-color: var(--c-brand); }
.mp-zone-ring { stroke: var(--c-brand-fg); stroke-opacity: .35; }
.mp-zone-text { fill: var(--c-brand-fg); }
.mp-road-casing { stroke: var(--c-surface); }
.mp-road-main { stroke: var(--c-elec); }
.mp-road { stroke: var(--c-line-strong); }
.mp-badge--ap { fill: var(--c-elec); }
.mp-badge--n { fill: var(--c-ok-700); }
.mp-badge-text { fill: var(--c-on-dark); }
.mp-river { stroke: color-mix(in srgb, var(--c-fonta) 72%, var(--c-surface)); }
.mp-river-text { fill: var(--c-fonta-700); }
.mp-town { fill: var(--c-muted); stroke: var(--c-muted); }
.mp-town text { stroke: none; }
.mp-pin { fill: var(--c-brand-fg); stroke: var(--c-surface); }
.mp-pin-dot { fill: var(--c-surface); }
.mp-pin-label { fill: var(--c-text); }
.mp-pin-text { fill: var(--c-on-dark); }
.mp-legend { fill: var(--c-text-2); }
.mp-legend-box { fill: var(--c-surface); stroke: var(--c-line); }
.mp-legend .mp-pin { stroke: none; }

@media (max-width: 768px) {
  .zone-towns { grid-template-columns: minmax(0, 1fr); }
  .legal__meta-btns { width: 100%; }
}

/* =====================================================================
   PÁGINAS PROPIAS DE LA WEB (fase 7, parte B): almacenes, servicios, catálogo PDF, app, blog, eventos e instaladores.
   Sin equivalente en /diseño: se montan con sus piezas (page-hero, store-card, values, steps, guide, cta-split…).
   ===================================================================== */

/* Almacén (Oliva / Cullera) */
.sede-hero__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.sede-hero__status { height: 36px; padding: 0 14px; font-size: 13px; }
.sede-hero__status:not(.is-open) { background: rgba(var(--rgb-on-dark), .08); color: var(--c-stone-250); }
.sede { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.sede__map iframe { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; background: var(--c-surface-alt); }
.sede__card .store-card__head { cursor: default; }
.sede__card .store-card__body p { align-items: flex-start; }
.sede__card .store-card__body p > .icon { margin-top: 3px; flex: none; }
.sede__lbl { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--c-subtle); }
.sede__card .store-card__body a { font-weight: 600; }
.sede__card .store-card__body a:hover { color: var(--c-brand-fg); }
.sede__note { font-size: 13px; }
.store-card__btns { flex-wrap: wrap; }
.sede-zone { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.sede-zone__intro { margin-top: 14px; color: var(--c-muted); max-width: 640px; }
.sede-zone__list { display: grid; gap: 10px; margin: 20px 0; }
.sede-zone__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.sede-zone__list .icon { flex: none; margin-top: 3px; color: var(--c-brand-fg); }
.sede-zone__tip { display: block; font-size: 14.5px; }
.sede-zone__card p { max-width: none; }
.sede-zone__card .link-arrow { justify-self: start; margin-top: 6px; }
.values--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sede-other { color: inherit; transition: border-color .25s, box-shadow .25s; }
.sede-other:hover { border-color: var(--c-text); box-shadow: var(--shadow); }
.sede-other__line { display: flex; align-items: center; gap: 8px; }
.sede-other .link-arrow { justify-self: start; }

/* Servicios */
.numbers__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.svc { display: flex; flex-direction: column; }
.svc .value__num { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.svc__list { display: grid; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--c-line); }
.svc__list li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--c-text-2); }
.svc__list .icon { flex: none; margin-top: 2px; color: var(--c-brand-fg); }
.svc--hot, .svc--hot:hover { background: var(--c-ink); border-color: var(--c-text); color: var(--c-on-dark); }
.svc--hot p, .svc--hot .svc__list li { color: var(--c-stone-250); }
.svc--hot .svc__list { border-top-color: rgba(var(--rgb-on-dark), .16); }
.svc--hot .value__num { color: var(--c-stone-400); }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.svc-cta { margin-top: 36px; }
.svc-legal { font-size: 12.5px; }
.cta-split__card .sede-other__line a:hover { color: var(--c-brand-fg); }

/* Instalar la app */
.app { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.app__card { display: grid; gap: 16px; padding: clamp(24px, 3.4vw, 40px); }
.app__logo { width: 88px; height: 88px; border-radius: 22px; box-shadow: var(--shadow); }
.app__title { font-size: clamp(30px, 3.2vw, 40px); text-transform: uppercase; line-height: 1; }
.app__text { color: var(--c-muted); }
.app__hint { text-align: center; }
.app__steps { display: grid; gap: 4px; margin-top: 6px; padding-left: 18px; list-style: decimal; }
.app__specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 6px; padding-top: 18px; border-top: 1px dashed var(--c-line); }
.app__specs dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--c-subtle); }
.app__specs dd { margin-top: 2px; font-weight: 600; font-size: 14px; }
.app__phone { justify-self: center; width: min(300px, 100%); aspect-ratio: 9 / 18.5; padding: 12px; border-radius: 44px; background: var(--c-ink-950); box-shadow: 0 40px 80px -30px rgba(var(--rgb-black), .6), inset 0 0 0 2px rgba(var(--rgb-on-dark), .08); animation: float 8s ease-in-out infinite; }
.app__screen { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 16px 14px; overflow: hidden; border-radius: 34px; background: var(--c-bg); }
.app__bar { display: flex; align-items: center; height: 44px; margin: -16px -14px 0; padding: 18px 16px 0; background: var(--c-brand); }
.app__bar img { width: 92px; height: auto; }
.app__search { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 10px; background: var(--c-surface); border: 1px solid var(--c-line); color: var(--c-subtle); }
.app__search span { flex: 1; height: 8px; border-radius: 4px; background: var(--c-surface-2); }
.app__chips { display: flex; gap: 6px; }
.app__chips i { width: 54px; height: 22px; border-radius: 999px; background: var(--c-surface-2); }
.app__chips i:first-child { background: var(--c-ink); }
.app__item { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; background: var(--c-surface); border: 1px solid var(--c-line); }
.app__item img { width: 54px; height: 54px; flex: none; }
.app__item span { flex: 1; display: grid; gap: 6px; }
.app__item b { height: 7px; border-radius: 4px; background: var(--c-surface-2); }
.app__item b + b { width: 60%; }
.app__item em { width: 40%; height: 10px; border-radius: 4px; background: var(--c-brand); }
.app__tabs { display: flex; justify-content: space-around; margin: auto -14px -16px; padding: 12px 0 18px; background: var(--c-surface); border-top: 1px solid var(--c-line); color: var(--c-subtle); }
.app__tabs .icon:first-child { color: var(--c-brand-fg); }

/* Catálogo PDF */
.pdf { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.pdf__intro { margin: -8px 0 18px; color: var(--c-muted); font-size: 14.5px; }
.pdf__body { display: grid; gap: 22px; }
.pdf__set { display: grid; gap: 10px; min-width: 0; }
.pdf__set legend { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.pdf__set legend .icon { color: var(--c-brand-fg); }
.pdf__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.pdf__search { flex: 1 1 260px; }
.pdf__links { display: flex; gap: 16px; }
.pdf__links .link-arrow { font-size: 13.5px; }
.pdf__brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0 14px; max-height: 280px; overflow-y: auto; padding: 8px 14px; border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-bg); }
.pdf__brand { min-width: 0; }
.pdf__brand .check__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdf__brand[hidden] { display: none; }
.pdf__lead { padding: 18px; border-radius: var(--r); background: var(--c-bg); }
.pdf__consent { align-items: flex-start; font-size: 13.5px; }
.pdf__consent .check__box { margin-top: 1px; }
.pdf__consent a { text-decoration: underline; }
.pdf__center { margin-top: 8px; text-align: center; }
.pdf__side { display: grid; gap: 16px; position: sticky; top: 150px; }
.pdf__pro { display: grid; gap: 14px; justify-items: start; padding: 26px; border-radius: var(--r-lg); background: var(--c-ink); color: var(--c-on-dark); background-image: radial-gradient(80% 90% at 100% 0%, rgba(var(--rgb-brand), .45), transparent 70%); }
.pdf__pro h2 { font-size: 28px; text-transform: uppercase; line-height: 1; }
.pdf__list { display: grid; gap: 12px; font-size: 14px; color: var(--c-stone-250); }
.pdf__list li { display: flex; gap: 10px; align-items: flex-start; }
.pdf__list li > span { width: 26px; height: 26px; display: grid; place-items: center; flex: none; border-radius: 7px; background: var(--c-brand); color: var(--c-on-dark); }
.pdf__list strong { color: var(--c-on-dark); }
.pdf__sede { font-size: 14px; color: var(--c-text-2); }
.pdf__sede + .pdf__sede { margin-top: 12px; }
.pdf__sede a:hover { color: var(--c-brand-fg); }
.pdf__btns { display: grid; gap: 8px; }

/* Tarjetas «guía» de blog y eventos (views/v3/_contenido.php) */
.guide__excerpt { color: var(--c-muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.guide h2 { font-size: 25px; line-height: 1.1; text-transform: uppercase; }
.guide h2 a:hover { color: var(--c-brand-fg); }
.guide__day { position: relative; z-index: 1; display: grid; justify-items: center; font-family: var(--f-mono); font-size: 13px; letter-spacing: .14em; }
.guide__day strong { font-family: var(--f-display); font-size: 78px; line-height: .9; letter-spacing: 0; }
.empty__title { font-size: 30px; text-transform: uppercase; }

/* Blog: listado */
.blog-search { display: flex; gap: 10px; width: min(420px, 100%); align-self: center; }
.blog-search .input-wrap { flex: 1; }
.blog-search .input { border-color: transparent; }
.blog-count { margin-bottom: 20px; color: var(--c-muted); }

/* Blog: entrada (maqueta de los legales) */
.post-hero__title { max-width: 980px; }
.post-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 22px; }
.post-author { display: inline-flex; align-items: center; gap: 10px; margin-right: 6px; }
.post-author__avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--sector); color: var(--c-on-dark); font-family: var(--f-display); font-size: 20px; font-weight: 700; }
.post-author strong { display: block; font-size: 14px; color: var(--c-on-dark); }
.post-author small { display: block; font-size: 12px; color: var(--c-stone-400); }
.post-wrap--solo { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.post-wrap--solo .legal { width: 100%; }
.post-share { display: flex; flex-wrap: wrap; gap: 8px; }
.post__cover { margin: 0 0 28px; border-radius: var(--r-lg); overflow: hidden; background: var(--c-surface-alt); }
.post__cover img { display: block; width: 100%; height: auto; }
.post__body { color: var(--c-text-2); font-size: 16px; line-height: 1.75; }
.post__body > :first-child { margin-top: 0; }
.post__body > :is(p, ul, ol, table, blockquote) { margin: 0 0 16px; }
.post__body > h2 { margin: 40px 0 14px; scroll-margin-top: 150px; color: var(--c-text); font-size: 30px; line-height: 1.05; text-transform: uppercase; }
.post__body > h3 { margin: 28px 0 10px; color: var(--c-text); font-size: 22px; text-transform: uppercase; }
.post__body > h4 { margin: 22px 0 8px; color: var(--c-text); font-family: var(--f-body); font-size: 17px; }
.post__body > :is(ul, ol) { display: grid; gap: 6px; padding-left: 22px; }
.post__body > ul { list-style: disc; }
.post__body > ol { list-style: decimal; }
.post__body > :is(ul, ol) > li::marker { color: var(--c-brand-fg); }
.post__body strong { color: var(--c-text); }
.post__body :is(p, li, td, blockquote) a:not(.btn, .bl-cta) { color: var(--c-brand-fg); text-decoration: underline; text-underline-offset: 3px; }
.post__body .blog-products a:not(.btn) { color: inherit; text-decoration: none; }
.post__body img { max-width: 100%; height: auto; }
.post__body > p img, .bl-fig img, .bl-gal img { border-radius: var(--r); }
.post__body table:not(.table) { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 14.5px; }
.post__body table:not(.table) th, .post__body table:not(.table) td { padding: 9px 12px; border: 1px solid var(--c-line); text-align: left; }
.post__body table:not(.table) th { background: var(--c-bg); color: var(--c-text); }
.post__body blockquote { padding: 6px 20px; border-left: 4px solid var(--c-brand-fg); border-radius: 0 var(--r) var(--r) 0; background: var(--c-bg); font-size: 17px; }
.post__body blockquote footer { margin-top: 6px; font-size: 14px; color: var(--c-muted); }
.post__body blockquote footer::before { content: "— "; }
.bl-fig { margin: 28px 0; }
.bl-fig img { display: block; width: 100%; background: var(--c-surface-alt); }
.bl-fig figcaption, .bl-gal figcaption { margin-top: 8px; font-size: 13.5px; line-height: 1.45; color: var(--c-muted); }
.bl-zoom { display: block; cursor: zoom-in; }
.bl-gal { display: grid; gap: 12px; margin: 28px 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bl-gal__item { margin: 0; }
.bl-gal--rejilla .bl-gal__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.bl-gal--mosaico { display: block; column-count: 2; column-gap: 12px; }
.bl-gal--mosaico .bl-gal__item { break-inside: avoid; margin-bottom: 12px; }
.bl-gal--mosaico .bl-gal__item img { width: 100%; height: auto; display: block; }
.bl-callout { margin: 24px 0; padding: 16px 18px; border-radius: var(--r); border-left: 4px solid var(--c-fonta); background: var(--c-fonta-50); color: var(--c-fonta-900); }
.bl-callout--warn { border-left-color: var(--c-warn-fg); background: var(--c-warn-50); color: var(--c-warn-800); }
.bl-callout--norm { border-left-color: var(--c-brand-fg); background: var(--c-brand-50); color: var(--c-brand-700-fg); }
.bl-callout p { margin: 6px 0 0; }
.bl-callout__t { display: block; font-weight: 700; }
.bl-video { position: relative; margin: 28px 0; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--c-ink-950); }
.bl-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bl-cta { display: inline-flex; align-items: center; height: 46px; padding: 0 22px; border-radius: var(--r-sm); background: var(--c-brand); color: var(--c-on-dark); font-weight: 600; transition: background .2s; }
.bl-cta:hover { background: var(--c-brand-700); }
.bl-lb { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; background: rgba(var(--rgb-black), .92); }
.bl-lb[hidden] { display: none; }
.bl-lb img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: 6px; }
.bl-lb__cap { max-width: 800px; margin-top: 12px; color: var(--c-stone-100); text-align: center; font-size: 15px; line-height: 1.45; }
.bl-lb__n { margin-top: 4px; color: var(--c-stone-400); font-size: 13px; }
.bl-lb button { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(var(--rgb-on-dark), .12); color: var(--c-on-dark); font-size: 26px; }
.bl-lb button:hover, .bl-lb button:focus-visible { background: rgba(var(--rgb-on-dark), .28); outline: 2px solid var(--c-on-dark); }
.bl-lb__x { top: 12px; right: 12px; }
.bl-lb__p { left: 10px; top: 50%; transform: translateY(-50%); }
.bl-lb__nx { right: 10px; top: 50%; transform: translateY(-50%); }
/* Bloques vivos (BlogBlocks) y preguntas frecuentes, con las clases de v3_blog_clases() */
.post-block { margin: 28px 0; }
.blog-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin: 28px 0; font-size: 14px; line-height: 1.4; }
.post-cmp { font-size: 14px; }
.post-cmp th[scope="row"] { font-family: var(--f-body); font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--c-muted); }
.post-hint { display: block; margin-top: 8px; font-size: 13px; color: var(--c-muted); }
.post-cmp .post-hint { display: inline; margin: 0; }
.post-cmp .stock[data-stock="low"] { color: var(--c-warn-700); }
.post-cmp .stock[data-stock="out"] { color: var(--c-muted); }
.post-ev { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--c-line); background: var(--c-bg); }
.post-ev__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); }
.post-ev__body { display: grid; gap: 8px; align-content: start; justify-items: start; }
.post__body .post-ev__title { margin: 0; font-family: var(--f-display); font-size: 24px; font-weight: 700; line-height: 1.05; text-transform: uppercase; color: var(--c-text); }
.post__body .post-ev a:not(.btn) { color: inherit; text-decoration: none; }
.post__body .post-ev__meta { margin: 0; font-size: 14px; color: var(--c-muted); }
.post__body .post-cluster { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.post-fam { margin: 24px 0; }
.post-faq { margin-top: 40px; padding-top: 8px; }
.post-faq > h2 { margin: 0 0 8px; color: var(--c-text); font-size: 30px; line-height: 1.05; text-transform: uppercase; }
.post-faq__item { border-bottom: 1px solid var(--c-line); }
.post-faq__item summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; cursor: pointer; color: var(--c-text); font-weight: 600; list-style: none; }
.post-faq__item summary::-webkit-details-marker { display: none; }
.post-faq__item summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--c-brand-fg); transition: transform .25s var(--ease); }
.post-faq__item[open] summary::after { transform: rotate(45deg); }
.post-faq__item p { margin: 0 0 16px; }
.post__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.post__sharebar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 28px; padding: 18px 20px; border-radius: var(--r); background: var(--c-bg); }

/* Evento: ficha e inscripción */
.ev { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.ev__main { display: grid; gap: 24px; min-width: 0; }
.ev__poster { width: 100%; height: auto; border-radius: var(--r-lg); border: 1px solid var(--c-line); background: var(--c-surface-alt); }
.ev__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.ev__facts li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--r); background: var(--c-surface); border: 1px solid var(--c-line); }
.ev__ico { width: 40px; height: 40px; display: grid; place-items: center; flex: none; border-radius: 11px; background: var(--c-brand-50); color: var(--c-brand-fg); }
.ev__facts small { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--c-subtle); }
.ev__facts strong { display: block; margin-top: 2px; font-size: 14.5px; }
.ev__facts span:not(.ev__ico) { display: block; margin-top: 2px; font-size: 13px; color: var(--c-muted); }
.ev__desc { padding: clamp(20px, 3vw, 32px); border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-line); }
.ev__book { position: sticky; top: 150px; }
.ev__msg { margin-bottom: 14px; }
.ev__form { display: grid; gap: 20px; }
.ev__set { display: grid; gap: 12px; min-width: 0; }
.ev__step { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 700; font-size: 15px; }
.ev__step span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--c-ink); color: var(--c-on-dark); font-size: 13px; }
.ev__days { display: flex; flex-wrap: wrap; gap: 6px; }
.ev__days button { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--c-line-strong); background: var(--c-surface); font-size: 13px; font-weight: 600; transition: border-color .2s, background .2s, color .2s; }
.ev__days button:hover { border-color: var(--c-text); }
.ev__days button[aria-selected="true"] { background: var(--c-ink); border-color: var(--c-text); color: var(--c-on-dark); }
.ev__day[hidden], .ev__daytitle[hidden] { display: none; }
.ev__daytitle { margin-bottom: 8px; font-size: 13.5px; font-weight: 600; color: var(--c-muted); }
.ev__slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.ev__slot { position: relative; display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--r-sm); border: 1.5px solid var(--c-line-strong); background: var(--c-surface); cursor: pointer; transition: border-color .2s, box-shadow .2s, background .2s; }
.ev__slot input { position: absolute; opacity: 0; pointer-events: none; }
.ev__slot strong { font-size: 14px; }
.ev__slot small { font-size: 12px; color: var(--c-ok-700); font-weight: 600; }
.ev__slot:hover { border-color: var(--c-text-2); }
.ev__slot:has(input:checked) { border-color: var(--c-text); background: var(--c-ink); color: var(--c-on-dark); }
.ev__slot:has(input:checked) small { color: var(--c-stone-250); }
.ev__slot:has(input:focus-visible) { outline: 2px solid var(--c-brand-fg); outline-offset: 2px; }
.ev__slot.is-off { cursor: not-allowed; opacity: .5; background: var(--c-bg); }
.ev__slot.is-off small { color: var(--c-muted); }
.ev__consents { display: grid; gap: 4px; }
.ev-consent { align-items: flex-start; font-size: 13.5px; }
.ev-consent .check__box { margin-top: 1px; }
.ev-consent a { text-decoration: underline; }

/* Evento: gestión de la inscripción (pase). El QR va siempre sobre blanco para que se lea (también en modo oscuro). */
.ticket-wrap { display: grid; gap: 20px; max-width: 920px; }
.ticket { --qr-bg: #fff; display: grid; grid-template-columns: minmax(0, 1fr) auto; border-radius: var(--r-xl); background: var(--c-surface); border: 1px solid var(--c-line); box-shadow: var(--shadow); overflow: hidden; }
.ticket__main { display: grid; gap: 16px; padding: clamp(22px, 3vw, 34px); }
.ticket__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ticket__title { font-size: clamp(28px, 3vw, 38px); text-transform: uppercase; line-height: 1; }
.ticket__data { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ticket__data dt { display: flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--c-subtle); }
.ticket__data dd { margin-top: 4px; font-weight: 600; font-size: 14.5px; }
.ticket__stub { position: relative; display: grid; justify-items: center; align-content: center; gap: 12px; width: 250px; padding: 24px; border-left: 2px dashed var(--c-line-strong); background: var(--c-bg); text-align: center; font-size: 12.5px; color: var(--c-muted); }
.ticket__qr { width: 180px; height: 180px; padding: 6px; border-radius: var(--r-sm); background: var(--qr-bg); image-rendering: pixelated; }
.ticket--off { box-shadow: none; }
.ticket--off .ticket__title { color: var(--c-muted); }
.ticket-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.ticket-form { display: grid; gap: 14px; justify-items: start; }
.ticket-form .field { width: 100%; }
.ticket-form__danger { color: var(--c-brand-fg); }
.ticket-form__danger:hover { border-color: var(--c-brand-fg); }
.ticket-help a { color: var(--c-brand-fg); font-weight: 600; }

/* Estrellas de /diseño con la nota en clases (sin style="--v:…"): .stars--N = N medios puntos */
.stars--0 { --v: 0; } .stars--1 { --v: .5; } .stars--2 { --v: 1; } .stars--3 { --v: 1.5; } .stars--4 { --v: 2; } .stars--5 { --v: 2.5; }
.stars--6 { --v: 3; } .stars--7 { --v: 3.5; } .stars--8 { --v: 4; } .stars--9 { --v: 4.5; } .stars--10 { --v: 5; }

/* Instaladores: directorio */
.inst-filter { display: grid; gap: 16px; margin-bottom: 20px; }
.inst-filter__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 14px; align-items: end; }
.inst-filter__btns { display: flex; gap: 8px; }
.inst-filter__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.inst-filter__chips .label { margin-right: 4px; }
.chip.is-active { background: var(--c-ink); border-color: var(--c-text); color: var(--c-on-dark); }
.inst-count { margin-bottom: 18px; font-size: 14px; color: var(--c-muted); }
.inst-count .badge { margin-left: 4px; vertical-align: 1px; }
.inst-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.inst-card { position: relative; display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 22px; border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-line); transition: border-color .25s, box-shadow .25s, transform .3s var(--ease); }
.inst-card:hover { border-color: var(--c-line-strong); box-shadow: var(--shadow); transform: translateY(-3px); }
.inst-card--vip { border-color: var(--c-elec-400); }
.inst-card__vip { position: absolute; top: 14px; right: 14px; }
.inst-card__head { display: flex; gap: 14px; align-items: flex-start; }
.inst-card__name { font-size: 24px; line-height: 1.05; text-transform: uppercase; }
.inst-card--vip .inst-card__name { padding-right: 120px; }
.inst-card__name a:hover { color: var(--c-brand-fg); }
.inst-card__loc { display: flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 13px; color: var(--c-muted); }
.inst-card__rating { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.inst-card__rating small { font-size: 12.5px; color: var(--c-muted); }
.inst-card__desc { flex: 1; font-size: 14px; color: var(--c-text-2); }
.inst-card__foot { display: flex; gap: 8px; }
.inst-logo { position: relative; width: 56px; height: 56px; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 14px; background: var(--c-bg); border: 1px solid var(--c-line); }
.inst-logo img { width: 100%; height: 100%; object-fit: contain; }
.inst-logo__ini { font-family: var(--f-display); font-size: 24px; font-weight: 700; color: var(--c-brand-fg); }
.inst-logo__ini[hidden], .inst-logo img[hidden] { display: none; }
.inst-logo--lg { width: 104px; height: 104px; border-radius: 24px; background: var(--c-surface); }
.inst-logo--lg .inst-logo__ini { font-size: 44px; }

/* Instaladores: ficha */
.iprof__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: end; margin-top: 22px; }
.iprof__pills { margin-top: 0; }
.iprof h1 { margin-top: 14px; }
.iprof__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; font-size: 14px; color: var(--c-stone-250); }
.iprof__meta > span { display: inline-flex; align-items: center; gap: 8px; }
.iprof__meta strong { color: var(--c-on-dark); }
.iprof__actions { display: grid; gap: 8px; }
.icols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.icols__main, .icols__side { display: grid; gap: 16px; min-width: 0; }
.icols__side { position: sticky; top: 150px; }
.iprof__text { white-space: pre-line; color: var(--c-text-2); line-height: 1.75; }
.igal { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.igal a { position: relative; display: block; overflow: hidden; border-radius: var(--r); background: var(--c-surface-alt); }
.igal img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s var(--ease); }
.igal a:hover img { transform: scale(1.05); }
.igal span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; background: linear-gradient(transparent, rgba(var(--rgb-black), .7)); color: var(--c-on-dark); font-size: 12.5px; }
.iposts { display: grid; gap: 16px; }
.ipost { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--c-line); }
.ipost:last-child { padding-bottom: 0; border-bottom: 0; }
.ipost:not(:has(.ipost__img)) { grid-template-columns: minmax(0, 1fr); }
.ipost__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.ipost__date { font-size: 11.5px; color: var(--c-subtle); }
.ipost h3 { margin: 4px 0 6px; font-size: 22px; text-transform: uppercase; }
.ipost h3 a:hover { color: var(--c-brand-fg); }
.ipost__text { margin-bottom: 10px; color: var(--c-muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.iprof__revhead { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.iprof__revhead .panel__title { margin-bottom: 4px; }
.iprof__revbox { margin-bottom: 18px; padding: 20px; border-radius: var(--r); background: var(--c-bg); }
.iprof__revbox[hidden] { display: none; }
.iprof__revtitle { margin-bottom: 14px; font-size: 20px; text-transform: uppercase; }
.iprof__revform { display: grid; gap: 16px; }
.iprof__revbtns { display: flex; gap: 8px; }
.starpick { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.starpick input { position: absolute; opacity: 0; pointer-events: none; }
.starpick label { cursor: pointer; font-size: 28px; line-height: 1; color: var(--c-line-strong); transition: color .15s, transform .15s; }
.starpick label:hover, .starpick label:hover ~ label, .starpick input:checked ~ label { color: var(--c-elec-400); }
.starpick input:focus-visible + label { outline: 2px solid var(--c-brand-fg); outline-offset: 2px; border-radius: 4px; }
.iprof__norev { text-align: center; padding: 12px 0; }
.iprof__reviews { display: grid; gap: 12px; }
.iprof__reviews .review { background: var(--c-bg); }
.iprof__reply { margin-top: 4px; font-size: 14px; }
.iprof__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.iprof__dl { display: grid; gap: 12px; font-size: 14px; }
.iprof__dl dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--c-subtle); }
.iprof__dl dd { margin-top: 2px; font-weight: 500; overflow-wrap: anywhere; }
.iprof__dl a { color: var(--c-brand-fg); }
.iprof__protext { color: var(--c-stone-250); font-size: 14px; }

/* (bloques de las demás páginas de la parte B) */

@media (max-width: 1024px) {
  .sede, .sede-zone { grid-template-columns: minmax(0, 1fr); }
  .sede__map { position: static; }
  .values--3, .steps--3 { grid-template-columns: minmax(0, 1fr); }
  .steps--3::before { display: none; }
  .numbers__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app, .pdf { grid-template-columns: minmax(0, 1fr); }
  .pdf__side { position: static; }
  .blog-search { width: 100%; }
  .ev { grid-template-columns: minmax(0, 1fr); }
  .ev__book { position: static; }
  .inst-filter__row { grid-template-columns: minmax(0, 1fr); }
  .icols { grid-template-columns: minmax(0, 1fr); }
  .icols__side { position: static; }
  .iprof__head { grid-template-columns: auto minmax(0, 1fr); }
  .iprof__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .app__specs { grid-template-columns: minmax(0, 1fr); }
  .post-ev { grid-template-columns: minmax(0, 1fr); }
  .bl-gal--mosaico { column-count: 1; }
  .post__body > h2 { font-size: 25px; }
  .bl-lb__p, .bl-lb__nx { top: auto; bottom: 14px; transform: none; }
  .ev__facts, .ticket__data { grid-template-columns: minmax(0, 1fr); }
  .ticket { grid-template-columns: minmax(0, 1fr); }
  .ticket__stub { width: auto; border-left: 0; border-top: 2px dashed var(--c-line-strong); }
  .iprof__head { grid-template-columns: minmax(0, 1fr); }
  .inst-logo--lg { width: 80px; height: 80px; }
  .ipost { grid-template-columns: minmax(0, 1fr); }
  .inst-grid { grid-template-columns: minmax(0, 1fr); }
  .inst-card--vip .inst-card__name { padding-right: 0; }
  .inst-card__vip { position: static; align-self: flex-start; }
}

/* =====================================================================
   COMPRA (fase 8): carrito y pedido reales (docs/diseno_v3/fase8.md)
   ===================================================================== */
.clist__loading { padding: 24px 20px; font-size: 14px; color: var(--c-muted); }
.summary__note { margin-top: -8px; font-size: 12.5px; color: var(--c-muted); }
.toast__icon--muted { background: var(--c-ink-600); }
.field__error.is-shown { display: block; }
.cstep__block .rv--account { background: var(--c-surface); border: 1px solid var(--c-line); }
.cstep__block .check.span-2 { grid-column: 1 / -1; }
.done__transfer { display: grid; gap: 12px; width: 100%; max-width: 520px; margin-top: 8px; padding: 20px; border-radius: var(--r); background: var(--c-bg); border: 1px solid var(--c-line); text-align: left; }
.done__transfer h3 { display: flex; align-items: center; gap: 8px; font-size: 19px; text-transform: uppercase; }
.done__transfer h3 .icon { width: 18px; height: 18px; color: var(--c-brand-fg); }
.done__transfer dl { display: grid; gap: 8px; font-size: 14px; }
.done__transfer dl > div { display: flex; justify-content: space-between; gap: 12px; }
.done__transfer dt { color: var(--c-muted); }
.done__transfer dd { font-weight: 600; color: var(--c-text); text-align: right; word-break: break-all; }
.done__transfer p { font-size: 13.5px; }
.done__transfer a { color: var(--c-brand-fg); text-decoration: underline; }
.shop--single { grid-template-columns: minmax(0, 860px); justify-content: center; }
.spinner--lg { width: 56px; height: 56px; border-width: 4px; border-color: var(--c-line); border-top-color: var(--c-brand-fg); }
.done__ko { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: var(--c-brand-50); color: var(--c-brand-fg); }
.done__ko .icon { width: 32px; height: 32px; }

/* =====================================================================
   ACCESO Y REGISTRO (fase 8)
   ===================================================================== */
.reg__honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.reg__hint { margin-bottom: 12px; font-size: 14px; color: var(--c-muted); }
.reg__sectors { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 18px; margin-bottom: 16px; padding: 4px; border-radius: var(--r-sm); }
.reg__sectors.is-invalid { outline: 2px solid var(--c-brand-fg); outline-offset: 4px; }
.reg__form .panel > .check { margin-top: 14px; }
.reg__form [data-envio] { margin-top: 16px; }
.auth__fields + .auth__divider { margin-top: 28px; }
.auth__view > .alert { margin-bottom: 18px; }
.auth__view--center form { display: grid; justify-items: center; }
a.auth__back { display: inline-flex; align-items: center; gap: 6px; }

/* =====================================================================
   MI CUENTA (fase 8, parte B): sin style= → porcentajes por clase
   ===================================================================== */
.track__steps--p1 { --p: 0; }
.track__steps--p2 { --p: 33.33; }
.track__steps--p3 { --p: 66.67; }
.track__steps--p4 { --p: 100; }
.kpi__bar--0 i { --w: 0%; }
.kpi__bar--5 i { --w: 5%; }
.kpi__bar--10 i { --w: 10%; }
.kpi__bar--15 i { --w: 15%; }
.kpi__bar--20 i { --w: 20%; }
.kpi__bar--25 i { --w: 25%; }
.kpi__bar--30 i { --w: 30%; }
.kpi__bar--35 i { --w: 35%; }
.kpi__bar--40 i { --w: 40%; }
.kpi__bar--45 i { --w: 45%; }
.kpi__bar--50 i { --w: 50%; }
.kpi__bar--55 i { --w: 55%; }
.kpi__bar--60 i { --w: 60%; }
.kpi__bar--65 i { --w: 65%; }
.kpi__bar--70 i { --w: 70%; }
.kpi__bar--75 i { --w: 75%; }
.kpi__bar--80 i { --w: 80%; }
.kpi__bar--85 i { --w: 85%; }
.kpi__bar--90 i { --w: 90%; }
.kpi__bar--95 i { --w: 95%; }
.kpi__bar--100 i { --w: 100%; }
.rep__avatar .icon { width: 22px; height: 22px; }
.kpi em a { color: inherit; text-decoration: underline; }
.doc-filters { display: grid; grid-template-columns: minmax(0, 2fr) repeat(auto-fit, minmax(150px, 1fr)); align-items: end; gap: 12px; }
.doc-filters__btns { display: flex; gap: 8px; }
.doc-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px 20px; }
.doc-meta dt { font-size: 12px; font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--c-subtle); }
.doc-meta dd { margin-top: 2px; font-weight: 600; }
.doc-meta a, .doc-group a { color: var(--c-brand-fg); }
.doc-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.doc-group { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 20px; text-transform: uppercase; }
.doc-group small { font-family: var(--f-body); font-size: 13px; text-transform: none; color: var(--c-muted); }
.doc-lines__tasa { display: block; font-size: 11.5px; color: var(--c-muted); }
.doc-lines__text td { font-style: italic; color: var(--c-muted); }
.doc-totals-box { display: grid; gap: 14px; justify-self: end; width: min(100%, 440px); }
@media (max-width: 640px) { .doc-filters { grid-template-columns: minmax(0, 1fr); } }
.address__note { font-size: 13px; color: var(--c-muted); }
.addr-form .form-grid { margin-bottom: 12px; }
.addr-form__btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.addr-form .alert { margin-top: 10px; }
.list-new { display: flex; gap: 8px; width: min(100%, 420px); }
.list-new .input { height: 42px; }
.list-add { display: grid; gap: 12px; }
.list-add__results { display: grid; gap: 6px; }
.list-add__results li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--c-bg); font-size: 14px; }
.list-add__results small, .list-items__prod small { display: block; font-size: 12px; color: var(--c-muted); }
.list-items__prod { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.list-items__prod img { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; background: var(--c-bg); }
.list-items__prod a:hover { color: var(--c-brand-fg); }
@media (max-width: 640px) { .list-new { width: 100%; } }
.profile__sub { margin-top: 26px; }
.profile__news { margin-top: 18px; }
.profile__privacy { display: grid; gap: 10px; justify-items: start; margin-top: 10px; }
[data-profile-form] .reg__sectors { margin-top: 6px; }
.user-row__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.user-row__role .status { margin-left: 6px; }
.user-row:has(.user-row__btns) { grid-template-columns: 42px minmax(0, 1fr) auto auto auto; }
@media (max-width: 860px) { .user-row:has(.user-row__btns) { grid-template-columns: 42px minmax(0, 1fr); } .user-row:has(.user-row__btns) > :nth-child(n+3) { grid-column: 2; } }
.acc-puente .ui { font-family: var(--f-body); }
.acc-puente > .ui, .acc-puente > #presupuestos-app { min-width: 0; }
/* Herramientas de siempre dentro de «Mi cuenta» v3: su cabecera no sale a todo el ancho (ui-cliente la extiende con 50vw) */
.acc-puente .ui-chead, .acc-puente .ui-pbanner { margin-inline: 0; padding-inline: var(--ui-s-5, 20px); border-radius: var(--r-lg); }
/* Presupuestos = herramienta de trabajo del instalador (docs/diseno_v3/presupuestos_plan.md, P2/P3). body.page-presupuestos lo pone la vista.
   Listado y editor: sin «¿Necesitas algo más?» ni columnas del pie (queda la línea legal) y un solo título (el de la herramienta). */
body.page-presupuestos .newsletter,
body.page-presupuestos .footer__main,
body.page-presupuestos .acc-puente > .acc-panel__head { display: none; }
/* Editor abierto (el JS alterna #section-editor[hidden]): sin saludo de cuenta, menú lateral ni barra de categorías, y más ancho
   para que las líneas quepan en una fila. Al volver al listado reaparece todo. */
body.page-presupuestos:has(#section-editor:not([hidden])) .acc-hero,
body.page-presupuestos:has(#section-editor:not([hidden])) .nav,
.account:has(#section-editor:not([hidden])) > .acc-nav { display: none; }
.account:has(#section-editor:not([hidden])) { grid-template-columns: minmax(0, 1fr); max-width: 1640px; padding-block-start: 16px; }
/* P4 · textos que repetían lo evidente (solo v3; la vista es compartida con la v1): la entradilla del listado, «Los cambios se
   guardan automáticamente» (ya lo dice la insignia «Guardado») y la ayuda de columnas de escritorio (las líneas llevan cabecera). */
body.page-presupuestos .acc-puente #section-list .ui-pbanner .ui-pr-section__lead,
body.page-presupuestos .acc-puente .ui-pr-editor__lead,
body.page-presupuestos .acc-puente #editor-lines-title + .ui-pr-panel__body > .ui-pr-hide-mobile { display: none; }
/* P5 · editor a pantalla completa, como el TPV (docs/diseno_v3/presupuestos_plan.md §5). Solo con el editor abierto; el listado
   conserva la cabecera de «Mi cuenta». Sin barra superior, cabecera ni pie; el banner pasa a una barra de trabajo de una fila. */
body.page-presupuestos:has(#section-editor:not([hidden])) :is(.topbar, .header, .footer, .to-top) { display: none; }
.account:has(#section-editor:not([hidden])) { padding: 0; max-width: none; }
#section-editor .ui-pbanner { flex-wrap: nowrap; gap: 12px; margin: 0; padding: 8px 16px; border-radius: 0; }
#section-editor .ui-pbanner > .ui-pr-toolbar__grow { display: flex; align-items: center; gap: 8px; min-width: 0; }
#section-editor .ui-pbanner .ui-pr-title { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0; font-size: 1.125rem; white-space: nowrap; }
#section-editor .ui-pbanner .ui-pr-editor__headacts { flex-wrap: nowrap; gap: 8px; margin-inline-start: auto; }
#section-editor .ui-pbanner .ui-pr-editor__headacts :is(.ui-btn, .ui-select) { min-height: 36px; padding-block: 6px; white-space: nowrap; }
#section-editor .ui-pbanner [data-pa="loadList"] { white-space: nowrap; }
#section-editor .ui-pbanner > .ui-pr-toolbar__grow { flex: 1 1 auto; overflow: hidden; }
#section-editor .ui-pbanner .ui-pr-editor__headacts { flex: 0 0 auto; }
@media (max-width: 1279px) {
    /* Pedir material y Guardar plantilla quedan en icono (con su title) para que la barra quepa en una fila */
    #section-editor .ui-pbanner :is(.ui-pr-editor__order, #btn-toggle-plantilla) { width: 40px; padding-inline: 0; justify-content: center; font-size: 0; gap: 0; }
    #section-editor .ui-pbanner :is(.ui-pr-editor__order, #btn-toggle-plantilla) .ui-icon { width: 18px; height: 18px; }
    /* El JS de la herramienta reescribe el texto de «Guardar plantilla» y se lleva el icono: la estrella se pinta aquí */
    #section-editor .ui-pbanner #btn-toggle-plantilla::before { content: "\2606"; font-size: 20px; line-height: 1; }
    #section-editor .ui-pbanner #btn-toggle-plantilla[aria-pressed="true"]::before { content: "\2605"; }
}
#section-editor .pr-tienda { display: inline-grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 8px; color: var(--ui-chrome-text, #fff); }
#section-editor .pr-tienda:hover { background: rgb(255 255 255 / 0.12); }
/* Unidad de la línea (PZ, CJ, M…): el desplegable mide 72 px y la flecha nativa se sumaba al hueco reservado para ella, así que
   el texto salía cortado. Flecha propia dibujada con currentColor (vale en claro y en oscuro) dentro de ese hueco. */
.ui-pr-line__field .ui-select {
    appearance: none; padding-inline: 6px 20px; text-align: center; text-align-last: center;
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: calc(100% - 12px) 50%, calc(100% - 7px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
#section-editor .pr-tienda svg { width: 20px; height: 20px; }
/* Buscador sin etiqueta visible (el placeholder lo dice) y más bajo */
#section-editor .ui-pr-editor__search { padding: 8px; }
#section-editor .ui-pr-editor__search .ui-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#section-editor .ui-pr-editor__search .ui-field { margin: 0; }
@media (max-width: 999px) {
    #section-editor { min-height: 100dvh; padding-block-start: 0; background: var(--ui-bg); }
    #section-editor .ui-pbanner { position: sticky; top: 0; z-index: 5; padding: 6px 8px; }
    /* Dos filas: código y estado arriba; las acciones debajo, en una fila que se desliza (Enviar también está en la barra inferior) */
    #section-editor .ui-pbanner { flex-wrap: wrap; row-gap: 6px; }
    #section-editor .ui-pbanner .ui-pr-editor__headacts { flex: 1 1 100%; overflow-x: auto; scrollbar-width: none; margin: 0; }
    #section-editor .ui-pbanner .ui-pr-editor__headacts .ui-btn { min-height: 36px; font-size: 0.8125rem; }
    #section-editor .ui-pbanner [data-pa="loadList"] { padding-inline: 8px; }
    #section-editor > .ui-pr-editor { padding: 12px 12px 96px; }
    /* Hoja «Resumen y datos»: en ui-presupuestos.css su fondo es «var(--ui-bg))» (paréntesis de más, regla inválida) y queda
       transparente: se veía la página detrás y «✕ Cerrar» encima del buscador. Fondo opaco, cabecera fija a todo el ancho. */
    #section-editor .ui-pr-editor__side { padding-inline: 12px; background: var(--ui-bg); }
    #section-editor .ui-pr-editor__sheethead { margin: 0 -12px 4px; padding: 10px 12px; border-bottom: 1px solid var(--ui-border); border-radius: var(--ui-r-md) var(--ui-r-md) 0 0; background: var(--ui-surface); }
    #section-editor .ui-pr-editor__sheethead h2 { display: flex; align-items: center; gap: 8px; font-size: 1.125rem; }
    #section-editor .ui-pr-editor__sheethead .ui-btn { flex: 0 0 auto; min-height: 40px; border: 1px solid var(--ui-border-strong); background: var(--ui-surface-2, var(--ui-bg)); color: var(--ui-text); white-space: nowrap; }
    body.page-presupuestos:has(.ui-pr-editor__side.is-open) .v3flag { display: none; }
}
@media (min-width: 1000px) {
    body.page-presupuestos:has(#section-editor:not([hidden])) { overflow: hidden; }
    #section-editor { position: fixed; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); padding: 0; background: var(--ui-bg); }
    #section-editor > .ui-pr-editor { min-height: 0; height: 100%; gap: 16px; padding: 12px 16px; align-items: stretch; }
    /* Izquierda: buscador y botonera en una fila; debajo las líneas con su propio scroll y su cabecera fija */
    #section-editor .ui-pr-editor__main { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto minmax(0, 1fr); gap: 10px 12px; min-height: 0; container: prmain / inline-size; }
    #section-editor .ui-pr-editor__search { grid-column: 1; grid-row: 1; }
    #section-editor .ui-pr-editor__toolbar { grid-column: 2; grid-row: 1; display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; }
    #section-editor .ui-pr-related { grid-column: 1 / -1; grid-row: 2; }
    #section-editor .ui-pr-editor__main > .ui-pr-panel { grid-column: 1 / -1; grid-row: 3; display: flex; flex-direction: column; min-height: 0; }
    #section-editor .ui-pr-editor__main > .ui-pr-panel > .ui-pr-panel__title { padding-block: 8px; font-size: 1rem; }
    #section-editor .ui-pr-editor__main > .ui-pr-panel > .ui-pr-panel__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-block-start: 0; }
    #section-editor .ui-pr-lines__head { position: sticky; top: 0; z-index: 2; padding-block-start: 10px; background: var(--ui-surface); }
    /* Botonera: solo iconos (con tooltip) salvo en pantallas muy anchas */
    #section-editor .ui-pr-editor__toolbar :is(.ui-btn, summary.ui-btn) { min-height: 44px; }
    @container prmain (max-width: 1199px) {
        #section-editor .ui-pr-editor__toolbar > .ui-pr-editor__tools > .ui-btn { width: 44px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
        #section-editor .ui-pr-editor__toolbar .ui-btn .ui-icon { font-size: 1rem; width: 18px; height: 18px; }
    }
    /* Derecha: el resumen arriba (total y margen a la vista); cliente, obra y condiciones hacen scroll debajo */
    #section-editor .ui-pr-editor__side { position: static; max-height: none; height: 100%; min-height: 0; overflow-y: auto; overscroll-behavior: contain; gap: 12px; }
}
.kpis > .kpi { min-width: 0; }
.kpi strong, .kpi small, .kpi em { overflow-wrap: anywhere; }
.acc-panel { grid-template-columns: minmax(0, 1fr); }
.acc-filters { flex-wrap: wrap; }
@media (max-width: 640px) { .acc-search { width: 100%; } }

/* Fase 10 · saludo de «Mi cuenta» como <p> cuando la página lleva una vista de la v1 con su propio h1 (presupuestos, ficha de instalador) */
p.acc-hero__saludo { font-family: var(--f-display); font-weight: 700; margin: 16px 0 0; font-size: clamp(38px, 5vw, 60px); text-transform: uppercase; line-height: .95; overflow-wrap: break-word; }

/* Fase 10 · indicador de pasos: con flex 1 (base 0) la raya se quedaba con lo que sobraba tras la etiqueta y desaparecía en
   «Entrega» (también en /diseño). Base «auto»: el espacio libre se reparte por igual y todas las rayas miden lo mismo. */
.stepper li { flex: 1 1 auto; }
.stepper li:last-child { flex: none; }

/* Fase 10 · desbordes a 390 px */
/* Catálogo PDF: la columna automática de la rejilla tomaba el ancho mínimo del contenido (369 px) y se salía del panel */
.pdf__body { grid-template-columns: minmax(0, 1fr); }
/* Botones de envío con texto largo («Enviar comunicación de desistimiento»): en main.css solo parten línea por debajo de 380 px */
@media (max-width: 640px) {
  .btn[data-api-submit] { white-space: normal; height: auto; min-height: var(--h); padding-block: 8px; line-height: 1.25; text-align: center; max-width: 100%; }
}

/* Fase 10 · carrito sin saltos (CLS 0,29 → ~0): carrito.php deja visible la lista con --lineas y aquí se reserva su alto
   mientras cart.js la carga (alto mínimo medido de una línea: 125 px en escritorio, ~200 px en móvil). */
.clist [data-cart-items]:has(> .clist__loading) { min-height: calc(var(--lineas, 1) * 125px); }
@media (max-width: 860px) { .clist [data-cart-items]:has(> .clist__loading) { min-height: calc(var(--lineas, 1) * 200px); } }
