/* Estufas Bajo Consumo · componentes
   Mismo archivo en el design system (components/bundle.css) y en el tema hijo.
   Uso en Elementor: añade la clase en Avanzado > Clases CSS del widget o contenedor.
   Regla de forma: superficies e imágenes rectas (radius-none); botones, chips y campos en píldora (radius-pill). */

/* ---------- Botones ----------
   Variantes: --primary (acento, compra), --outline (secundaria), --dark (navegación), --on-night (sobre bloque oscuro). Tamaño: --sm.
   HTML: <a class="ebc-btn ebc-btn--primary" href="...">Ver precio en Amazon</a>
   Elementor: widget Botón con clases "ebc-btn ebc-btn--primary". */
.ebc-btn:not(.elementor-widget),
body .ebc-btn .elementor-button {
  --_bg: var(--ink);
  --_fg: var(--surface);
  --_bd: var(--ink);
  --_bg-h: #000000;
  --_fg-h: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  box-sizing: border-box;
  min-height: 52px;
  padding: 0 26px;
  border: var(--border-stroke) solid var(--_bd);
  border-radius: var(--radius-pill);
  background: var(--_bg);
  color: var(--_fg);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--duration-base) var(--ease-standard), color var(--duration-base) var(--ease-standard), border-color var(--duration-base) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);
}
.ebc-btn:not(.elementor-widget):hover,
body .ebc-btn .elementor-button:hover { background: var(--_bg-h); border-color: var(--_bg-h); color: var(--_fg-h); }
.ebc-btn:not(.elementor-widget):active,
body .ebc-btn .elementor-button:active { transform: translateY(1px); }
.ebc-btn:not(.elementor-widget):focus-visible,
body .ebc-btn .elementor-button:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

.ebc-btn--primary:not(.elementor-widget),
body .ebc-btn--primary .elementor-button { --_bg: var(--ember); --_bd: var(--ember); --_fg: var(--on-ember); --_bg-h: var(--ember-hover); --_fg-h: var(--on-ember); }
.ebc-btn--outline:not(.elementor-widget),
body .ebc-btn--outline .elementor-button { --_bg: transparent; --_bd: var(--ink); --_fg: var(--ink); --_bg-h: var(--ink); --_fg-h: var(--surface); }
.ebc-btn--on-night:not(.elementor-widget),
body .ebc-btn--on-night .elementor-button { --_bg: transparent; --_bd: var(--night-control); --_fg: var(--on-night); --_bg-h: var(--on-night); --_fg-h: var(--night); }
.ebc-btn--sm:not(.elementor-widget),
body .ebc-btn--sm .elementor-button { min-height: 40px; padding: 0 18px; font-size: 15px; font-weight: 500; }

/* Enlace de compra secundario (dentro de listas de productos) */
.ebc-cta-link,
body .ebc-cta-link a { font-weight: 600; font-size: var(--fs-small); color: var(--ember); text-decoration: underline; text-underline-offset: 3px; }
.ebc-cta-link:hover,
body .ebc-cta-link a:hover { color: var(--ember-hover); }

/* ---------- Chips (filtros, presets) ---------- */
.ebc-chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border: var(--border-stroke) solid var(--line-strong); border-radius: var(--radius-pill);
  background: transparent; color: var(--ink); font: 500 14px/1 var(--font-sans); cursor: pointer;
  transition: background-color var(--duration-base) var(--ease-standard), color var(--duration-base) var(--ease-standard), border-color var(--duration-base) var(--ease-standard);
}
.ebc-chip:hover { border-color: var(--ink); }
.ebc-chip.is-active, .ebc-chip[aria-pressed="true"] { background: var(--ember); border-color: var(--ember); color: var(--on-ember); }

/* ---------- Medios ----------
   Contenedor de imagen sin bordes redondeados. Proporciones: --4x5, --16x10, --1x1. */
.ebc-media { position: relative; overflow: hidden; background: var(--tint-sage); margin: 0; }
.ebc-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ebc-media--4x5 { aspect-ratio: 4 / 5; }
.ebc-media--16x10 { aspect-ratio: 16 / 10; }
.ebc-media--1x1 { aspect-ratio: 1 / 1; }
.ebc-media--product { background: var(--white); }
.ebc-media--product img { object-fit: contain; padding: 8%; box-sizing: border-box; }

/* ---------- Producto destacado (puesto 1 de una selección) ---------- */
.ebc-pick { display: flex; flex-wrap: wrap; gap: var(--space-10); align-items: stretch; padding-bottom: var(--space-12); border-bottom: var(--border-hairline) solid var(--line); }
.ebc-pick__media { flex: 1 1 380px; min-height: 420px; }
.ebc-pick__body { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.ebc-pick__rank { font-family: var(--font-mono); font-size: var(--fs-small); color: var(--ember); }
.ebc-pick__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-heading-l); line-height: 1.05; letter-spacing: -0.02em; }
.ebc-pick__verdict { margin: 0; font-size: var(--fs-lead); max-width: 46ch; }
.ebc-pick__actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }

/* A favor / En contra */
.ebc-proscons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); max-width: 520px; }
.ebc-proscons strong { display: block; font-size: 14px; margin-bottom: 6px; }
.ebc-proscons ul { margin: 0; padding: 0; list-style: none; }
.ebc-proscons li { font-size: var(--fs-small); color: var(--ink-muted); }

/* ---------- Fila de producto (puestos 2 en adelante) ---------- */
.ebc-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); column-gap: var(--space-12); }
.ebc-row { display: flex; gap: var(--space-5); align-items: center; padding: 28px 0; border-bottom: var(--border-hairline) solid var(--line); }
.ebc-row__rank { flex: 0 0 24px; font-family: var(--font-mono); font-size: var(--fs-small); color: var(--ink-muted); }
.ebc-row__media { flex: 0 0 108px; height: 132px; }
.ebc-row__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ebc-row__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.15; letter-spacing: -0.01em; }
.ebc-row__text { font-size: var(--fs-small); color: var(--ink-muted); }

/* ---------- Selección con widgets de Elementor (plantilla ebc-seleccion.json) ----------
   .ebc-picks (banda) > .ebc-picks__wrap > antetítulo, título, intro, .ebc-pick (destacado), .ebc-rows (filas) */
.elementor .ebc-picks.e-con,
.ebc-picks {
  background: var(--surface);
  border-block: var(--border-hairline) solid var(--line);
  padding: 0;
  --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
}
.elementor .ebc-picks__wrap.e-con,
.ebc-picks__wrap {
  width: 100%; max-width: var(--container); margin-inline: auto; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 0;
  padding: var(--section-y) var(--gutter);
  --flex-direction: column; --gap: 0px; --row-gap: 0px;
  --padding-top: var(--section-y); --padding-bottom: var(--section-y); --padding-left: var(--gutter); --padding-right: var(--gutter);
}
.ebc-picks__wrap > .elementor-element { margin: 0; }
.ebc-picks__wrap > .ebc-overline { margin-bottom: 14px; }
body .ebc-picks__title .elementor-heading-title { margin: 0; max-width: 18ch; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-display-l); line-height: 1.02; letter-spacing: -0.03em; color: var(--ink); }
.ebc-picks__intro { margin-top: 12px !important; margin-bottom: 48px !important; }
.ebc-picks__intro p { margin: 0; max-width: 60ch; color: var(--ink-muted); }

/* Destacado */
.elementor .ebc-pick.e-con {
  flex-direction: row; flex-wrap: wrap; align-items: stretch; gap: var(--space-10);
  padding: 0 0 var(--space-12);
  --flex-direction: row; --flex-wrap: wrap; --align-items: stretch; --gap: var(--space-10); --row-gap: var(--space-10); --column-gap: var(--space-10);
  --padding-top: 0px; --padding-right: 0px; --padding-bottom: var(--space-12); --padding-left: 0px;
}
.elementor .ebc-pick > .ebc-pick__media.elementor-element { flex: 1 1 380px; width: auto; min-height: 480px; margin: 0; }
.ebc-pick__media .elementor-widget-container,
.ebc-pick__media figure,
.ebc-pick__media a { display: block; height: 100%; min-height: 480px; margin: 0; background: var(--white); overflow: hidden; }
.ebc-pick__media img { display: block; width: 100% !important; height: 100% !important; max-width: none; object-fit: contain; padding: 8%; box-sizing: border-box; transition: transform var(--duration-slow) var(--ease-out); }
.ebc-pick__media:hover img { transform: scale(1.03); }
.elementor .ebc-pick > .ebc-pick__body.e-con {
  flex: 1 1 420px; width: auto; --width: auto; min-width: 0;
  flex-direction: column; justify-content: center; gap: 22px; padding: 0;
  --flex-direction: column; --justify-content: center; --gap: 22px; --row-gap: 22px;
  --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
}
.ebc-pick__body > .elementor-element { margin: 0; width: 100%; }
body .ebc-pick__rank .elementor-heading-title { font-family: var(--font-mono); font-size: var(--fs-small); font-weight: 500; line-height: 1.4; letter-spacing: 0; color: var(--ember); }
body .ebc-pick__title .elementor-heading-title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-heading-l); line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); }
.ebc-pick__verdict p { margin: 0; font-size: var(--fs-lead); line-height: 1.5; color: var(--ink); max-width: 46ch; }
.elementor .ebc-proscons.e-con {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); max-width: 520px; padding: 0;
  --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
}
.ebc-proscons > .elementor-element { width: auto; margin: 0; }
.ebc-proscons h4, .ebc-proscons .elementor-heading-title { margin: 0 0 6px; font-family: var(--font-sans) !important; font-size: 14px !important; font-weight: 600 !important; letter-spacing: 0 !important; line-height: 1.4 !important; color: var(--ink); }
.ebc-proscons ul { margin: 0; padding: 0; list-style: none; }
.ebc-proscons li, .ebc-proscons p { margin: 0; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-muted); }
.elementor .ebc-pick__actions.e-con {
  flex-direction: row; flex-wrap: wrap; align-items: center; gap: 18px; padding: 0;
  --flex-direction: row; --flex-wrap: wrap; --align-items: center; --gap: 18px; --column-gap: 18px; --row-gap: 12px;
  --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
}
.ebc-pick__actions > .elementor-element { width: auto; margin: 0; }

/* Enlaces de texto hechos con el widget Botón: ebc-cta-link (brasa, compra) y ebc-text-link (tinta) */
body :is(.ebc-cta-link, .ebc-text-link) .elementor-button {
  min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent !important;
  font-family: var(--font-sans); font-size: var(--fs-small); font-weight: 600; line-height: 1.4;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; box-shadow: none;
}
body .ebc-cta-link .elementor-button { color: var(--ember) !important; }
body .ebc-cta-link .elementor-button:hover { color: var(--ember-hover) !important; }
body .ebc-text-link .elementor-button { color: var(--ink) !important; font-weight: 500; font-size: var(--fs-body); }
body .ebc-text-link .elementor-button:hover { color: var(--ink-muted) !important; }

/* Filas */
.elementor .ebc-rows.e-con {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); column-gap: var(--space-12); row-gap: 0; padding: 0;
  --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
}
.elementor .ebc-rows > .ebc-row.e-con {
  width: auto; --width: auto; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: var(--space-5);
  padding: 28px 0; border-bottom: var(--border-hairline) solid var(--line);
  --flex-direction: row; --flex-wrap: nowrap; --align-items: center; --gap: var(--space-5); --column-gap: var(--space-5);
  --padding-top: 28px; --padding-right: 0px; --padding-bottom: 28px; --padding-left: 0px;
}
.ebc-row > .elementor-element { margin: 0; }
.ebc-row > .ebc-row__rank.elementor-element { flex: 0 0 24px; width: 24px; }
body .ebc-row__rank .elementor-heading-title { font-family: var(--font-mono); font-size: var(--fs-small); font-weight: 500; letter-spacing: 0; color: var(--ink-muted); }
.ebc-row > .ebc-row__media.elementor-element { flex: 0 0 108px; width: 108px; }
.ebc-row__media .elementor-widget-container,
.ebc-row__media figure,
.ebc-row__media a { display: block; height: 132px; margin: 0; background: var(--white); overflow: hidden; }
.ebc-row__media img { display: block; width: 100% !important; height: 100% !important; max-width: none; object-fit: contain; padding: 8px; box-sizing: border-box; transition: transform var(--duration-slow) var(--ease-out); }
.ebc-row:hover .ebc-row__media img { transform: scale(1.04); }
.elementor .ebc-row > .ebc-row__body.e-con {
  flex: 1 1 auto; width: auto; --width: auto; min-width: 0; flex-direction: column; gap: 6px; padding: 0;
  --flex-direction: column; --gap: 6px; --row-gap: 6px;
  --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
}
.ebc-row__body > .elementor-element { margin: 0; width: 100%; }
body .ebc-row__title .elementor-heading-title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); }
.ebc-row__text p { margin: 0; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-muted); }
@media (max-width: 760px) {
  .elementor .ebc-pick > .ebc-pick__media.elementor-element,
  .ebc-pick__media .elementor-widget-container, .ebc-pick__media figure, .ebc-pick__media a { min-height: 340px; }
  .elementor .ebc-proscons.e-con { grid-template-columns: 1fr; }
  .elementor .ebc-rows > .ebc-row.e-con { align-items: flex-start; }
}

/* ---------- Ficha por estancia (carrusel horizontal) ---------- */
.ebc-scroller { display: flex; gap: var(--space-4); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--space-3); scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.ebc-room { flex: 0 0 260px; scroll-snap-align: start; display: flex; flex-direction: column; gap: var(--space-3); color: var(--ink); text-decoration: none; }
.ebc-room__media { height: 320px; }
.ebc-room__name { font-family: var(--font-display); font-size: var(--fs-heading-s); font-weight: 600; letter-spacing: -0.01em; }
.ebc-room__hint { font-size: var(--fs-small); color: var(--ink-muted); }
.ebc-room:hover .ebc-room__name { text-decoration: underline; text-underline-offset: 4px; }

/* Sección "¿Dónde la vas a usar?" montada con widgets de Elementor (plantilla ebc-estancias.json)
   .ebc-rooms > .ebc-rooms__head (título + flechas) + .ebc-scroller > .ebc-room (contenedor enlace: imagen, título, texto) */
.ebc-rooms,
.elementor .ebc-rooms.e-con {
  display: flex; flex-direction: column; gap: 28px;
  max-width: var(--container); margin-inline: auto; box-sizing: border-box;
  padding: 24px var(--gutter) 96px;
  --flex-direction: column; --gap: 28px; --row-gap: 28px;
  --padding-top: 24px; --padding-bottom: 96px; --padding-left: var(--gutter); --padding-right: var(--gutter);
}
.ebc-rooms__head,
.elementor .ebc-rooms__head.e-con {
  display: flex; flex-direction: row; flex-wrap: nowrap; align-items: flex-end; justify-content: space-between; gap: var(--space-6); padding: 0;
  --flex-direction: row; --flex-wrap: nowrap; --align-items: flex-end; --justify-content: space-between; --gap: var(--space-6);
  --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
}
.ebc-rooms__head > .elementor-element { width: auto; margin: 0; }
body .ebc-rooms__title .elementor-heading-title,
.ebc-rooms__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }

.elementor .ebc-scroller.e-con {
  flex-direction: row; flex-wrap: nowrap; gap: var(--space-4); padding: 0 0 var(--space-3);
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  --flex-direction: row; --flex-wrap: nowrap; --gap: var(--space-4); --column-gap: var(--space-4);
  --padding-top: 0px; --padding-right: 0px; --padding-bottom: var(--space-3); --padding-left: 0px;
}
.ebc-scroller::-webkit-scrollbar { height: 6px; }
.ebc-scroller::-webkit-scrollbar-thumb { background: var(--line-strong); }
.elementor .ebc-scroller > .ebc-room.e-con {
  flex: 0 0 260px; width: 260px; --width: 260px; min-width: 0;
  flex-direction: column; gap: var(--space-3); padding: 0;
  --flex-direction: column; --gap: var(--space-3); --row-gap: var(--space-3);
  --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
  scroll-snap-align: start; color: var(--ink); text-decoration: none;
}
.ebc-room > .elementor-element { width: 100%; margin: 0; }
.ebc-room__media .elementor-widget-container,
.ebc-room__media .elementor-image,
.ebc-room__media figure { height: 320px; margin: 0; overflow: hidden; background: var(--tint-clay); }
.ebc-scroller > .ebc-room:nth-child(3n+2) .ebc-room__media .elementor-widget-container { background: var(--tint-mist); }
.ebc-scroller > .ebc-room:nth-child(3n) .ebc-room__media .elementor-widget-container { background: var(--tint-sage); }
.ebc-room__media img { display: block; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; border-radius: 0; transition: transform var(--duration-slow) var(--ease-out); }
.ebc-room:hover .ebc-room__media img { transform: scale(1.03); }
body .ebc-room__name .elementor-heading-title { margin: 0; font-family: var(--font-display); font-size: var(--fs-heading-s); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
.ebc-room:hover .ebc-room__name .elementor-heading-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.ebc-room__hint, .ebc-room__hint p { margin: 0; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-muted); }
.ebc-room:focus-visible { outline: 2px solid var(--ember); outline-offset: 4px; }

/* Flechas del carrusel (solo con ratón; en táctil se desliza) */
.ebc-scroll-nav { display: flex; gap: var(--space-2); }
.ebc-scroll-nav button {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: var(--border-stroke) solid var(--ink); border-radius: var(--radius-pill); background: transparent; color: var(--ink);
  font: 500 18px/1 var(--font-sans); cursor: pointer;
  transition: background-color var(--duration-base) var(--ease-standard), color var(--duration-base) var(--ease-standard), opacity var(--duration-base) var(--ease-standard);
}
.ebc-scroll-nav button:hover:not(:disabled) { background: var(--ink); color: var(--surface); }
.ebc-scroll-nav button:active:not(:disabled) { transform: translateY(1px); }
.ebc-scroll-nav button:disabled { opacity: 0.3; cursor: default; }
@media (hover: none), (max-width: 760px) { .ebc-scroll-nav { display: none; } }
@media (max-width: 760px) {
  .ebc-rooms, .elementor .ebc-rooms.e-con { padding-bottom: 64px; --padding-bottom: 64px; }
  .elementor .ebc-scroller > .ebc-room.e-con { flex-basis: 72vw; width: 72vw; --width: 72vw; }
}

/* ---------- Mosaico de tipos (bento) ----------
   4 columnas en escritorio, 1 en móvil. Celdas: .ebc-tile; tamaños: .ebc-span-2 y .ebc-span-2x2. */
.ebc-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(220px, auto); gap: var(--space-3); }
.ebc-span-2 { grid-column: span 2; }
.ebc-span-2x2 { grid-column: span 2; grid-row: span 2; }
.ebc-tile { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: var(--space-6); background: var(--surface); color: var(--ink); text-decoration: none; box-sizing: border-box; transition: background-color var(--duration-base) var(--ease-standard); }
.ebc-tile:hover { background: #ffffff; }
.ebc-tile__name { font-family: var(--font-display); font-size: var(--fs-heading-s); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
.ebc-tile__text { font-size: var(--fs-small); color: var(--ink-muted); }
.ebc-tile--tint { background: var(--tint-sand); }
.ebc-tile--tint .ebc-tile__text { color: #3f454a; }
.ebc-tile--accent { background: var(--ember); color: var(--on-ember); }
.ebc-tile--accent:hover { background: var(--ember-hover); }
.ebc-tile--accent .ebc-tile__text { color: var(--on-ember); }
.ebc-tile--media { padding: 0; justify-content: stretch; }
.ebc-tile--media .ebc-media { flex: 1 1 auto; min-height: 260px; }
.ebc-tile--media .ebc-tile__inner { padding: var(--space-6); display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 760px) {
  .ebc-bento { grid-template-columns: 1fr; }
  .ebc-span-2, .ebc-span-2x2 { grid-column: auto; grid-row: auto; }
}

/* Sección "Qué tipo de calor te conviene" con widgets de Elementor (plantilla ebc-tipos.json)
   .ebc-types > título + .ebc-bento > 7 celdas .ebc-tile (contenedor enlace) */
.elementor .ebc-types.e-con,
.ebc-types {
  display: flex; flex-direction: column; gap: var(--space-10);
  max-width: var(--container); margin-inline: auto; box-sizing: border-box;
  padding: var(--section-y) var(--gutter);
  --flex-direction: column; --gap: var(--space-10); --row-gap: var(--space-10);
  --padding-top: var(--section-y); --padding-bottom: var(--section-y); --padding-left: var(--gutter); --padding-right: var(--gutter);
}
.ebc-types > .elementor-element { margin: 0; }
body .ebc-types__title .elementor-heading-title { margin: 0; max-width: 16ch; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-display-l); line-height: 1.02; letter-spacing: -0.03em; color: var(--ink); }

.elementor .ebc-bento.e-con {
  display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(220px, auto); gap: var(--space-3); padding: 0;
  --gap: var(--space-3); --row-gap: var(--space-3); --column-gap: var(--space-3);
  --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
}
.elementor .ebc-bento > .ebc-tile.e-con {
  width: auto; --width: auto; min-width: 0; min-height: 220px;
  flex-direction: column; justify-content: flex-end; gap: 6px; padding: var(--space-6);
  --flex-direction: column; --justify-content: flex-end; --gap: 6px; --row-gap: 6px;
  --padding-top: var(--space-6); --padding-right: var(--space-6); --padding-bottom: var(--space-6); --padding-left: var(--space-6);
  background: var(--surface); color: var(--ink); text-decoration: none;
}
.elementor .ebc-bento > .ebc-tile.e-con:hover { background: var(--white); }
.elementor .ebc-bento > .ebc-tile--tint.e-con { background: var(--tint-sand); }
.elementor .ebc-bento > .ebc-tile--tint.e-con:hover { background: #ebe1d8; }
.elementor .ebc-bento > .ebc-tile--accent.e-con { background: var(--ember); }
.elementor .ebc-bento > .ebc-tile--accent.e-con:hover { background: var(--ember-hover); }
.ebc-tile > .elementor-element { margin: 0; width: 100%; }
body .ebc-tile__name .elementor-heading-title { margin: 0; font-family: var(--font-display); font-size: var(--fs-heading-s); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); }
body .ebc-span-2x2 .ebc-tile__name .elementor-heading-title { font-size: var(--fs-heading-m); }
body .ebc-span-2 .ebc-tile__name .elementor-heading-title { font-size: 26px; letter-spacing: -0.02em; }
.ebc-tile__text p { margin: 0; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-muted); }
.ebc-tile--tint .ebc-tile__text p { color: #3f454a; }
body .ebc-tile--accent .ebc-tile__name .elementor-heading-title,
.ebc-tile--accent .ebc-tile__text p { color: var(--on-ember) !important; }
.ebc-tile:hover .ebc-tile__name .elementor-heading-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Celdas con foto: grande (2x2, foto arriba) y ancha (2x1, foto a la izquierda) */
.elementor .ebc-bento > .ebc-tile--media.e-con { padding: 0; --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px; justify-content: stretch; gap: 0; --gap: 0px; overflow: hidden; }
.elementor .ebc-bento > .ebc-tile--side.e-con { flex-direction: row; --flex-direction: row; align-items: stretch; }
.ebc-tile--media > .ebc-tile__media.elementor-element { flex: 1 1 auto; min-height: 280px; }
.ebc-tile--side > .ebc-tile__media.elementor-element { flex: 0 0 46%; width: 46%; min-height: 220px; }
.ebc-tile__media .elementor-widget-container,
.ebc-tile__media figure { height: 100%; margin: 0; overflow: hidden; background: var(--tint-clay); }
.ebc-tile--side .ebc-tile__media .elementor-widget-container { background: var(--tint-mist); }
.ebc-tile__media img { display: block; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; border-radius: 0; transition: transform var(--duration-slow) var(--ease-out); }
.ebc-tile:hover .ebc-tile__media img { transform: scale(1.03); }
.elementor .ebc-tile--media > .ebc-tile__inner.e-con {
  flex: 0 0 auto; width: auto; --width: auto; flex-direction: column; justify-content: flex-end; gap: 6px;
  padding: 24px 26px 28px; --flex-direction: column; --justify-content: flex-end; --gap: 6px; --row-gap: 6px;
  --padding-top: 24px; --padding-right: 26px; --padding-bottom: 28px; --padding-left: 26px;
}
.elementor .ebc-tile--side > .ebc-tile__inner.e-con { flex: 1 1 auto; }
.ebc-tile__inner > .elementor-element { margin: 0; width: 100%; }
@media (max-width: 760px) {
  .elementor .ebc-bento.e-con { grid-template-columns: 1fr; }
  .elementor .ebc-bento > .ebc-tile.e-con { grid-column: auto; grid-row: auto; min-height: 0; }
  .elementor .ebc-bento > .ebc-tile--side.e-con { flex-direction: column; --flex-direction: column; }
  .ebc-tile--side > .ebc-tile__media.elementor-element { width: 100%; flex-basis: auto; min-height: 200px; }
}

/* ---------- Calculadora de gasto (bloque noche, una vez por página) ----------
   Shortcode: [ebc_calculadora potencia="1500" horas="5" precio="0.15"] */
.ebc-calc { background: var(--night); color: var(--on-night); }
.ebc-calc__inner { max-width: var(--container); margin-inline: auto; padding: var(--section-y) var(--gutter); box-sizing: border-box; display: flex; flex-wrap: wrap; gap: var(--space-16); align-items: flex-start; }
.ebc-calc__controls { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-8); }
.ebc-calc__title { margin: 0; color: var(--on-night); font-family: var(--font-display); font-size: var(--fs-display-l); font-weight: 700; line-height: 1.02; letter-spacing: -0.03em; }
.ebc-calc__intro { margin: 0; color: var(--on-night-muted); max-width: 46ch; }
.ebc-calc__presets { display: flex; flex-wrap: wrap; gap: 10px; }
.ebc-calc .ebc-chip { border-color: var(--night-control); color: var(--on-night); }
.ebc-calc .ebc-chip:hover { border-color: var(--on-night); }
.ebc-calc .ebc-chip.is-active, .ebc-calc .ebc-chip[aria-pressed="true"] { background: var(--ember); border-color: var(--ember); color: var(--on-ember); }
.ebc-calc__fields { display: flex; flex-direction: column; gap: 26px; max-width: 520px; }
.ebc-calc__field { display: flex; flex-direction: column; gap: var(--space-2); }
.ebc-calc__label { display: flex; justify-content: space-between; gap: var(--space-4); font-size: var(--fs-small); }
.ebc-calc__value { font-family: var(--font-mono); }
.ebc-calc input[type="range"] { width: 100%; accent-color: var(--ember); }
.ebc-calc input[type="number"] { width: 170px; box-sizing: border-box; min-height: 48px; padding: 0 18px; border: var(--border-stroke) solid var(--night-control); border-radius: var(--radius-pill); background: var(--night-raised); color: var(--on-night); font: 500 18px var(--font-mono); }
.ebc-calc input[type="number"]:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.ebc-calc__results { flex: 1 1 380px; min-width: 0; border-top: var(--border-rule) solid var(--ember); }
.ebc-calc__row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); padding: 26px 0; border-bottom: var(--border-hairline) solid var(--night-line); }
.ebc-calc__row:last-of-type { border-bottom: 0; }
.ebc-calc__row span:first-child { color: var(--on-night-muted); }
.ebc-calc__num { font-family: var(--font-mono); font-size: var(--fs-num-l); font-variant-numeric: tabular-nums; }
.ebc-calc__total { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-total); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ebc-calc__note { margin: var(--space-2) 0 0; font-size: 14px; color: var(--on-night-muted); max-width: 46ch; }

/* Blindaje frente a los estilos globales de Elementor (títulos, botones y campos del kit).
   El kit usa selectores como ".elementor-kit-7 button" o ".elementor-kit-7 input:not(...)",
   así que aquí se sube la especificidad para que la calculadora se vea como en la propuesta. */
body .ebc-calc .ebc-calc__title { color: var(--on-night) !important; font-family: var(--font-display); font-size: var(--fs-display-l); font-weight: 700; line-height: 1.02; letter-spacing: -0.03em; margin: 0; }
body .ebc-calc .ebc-calc__intro, body .ebc-calc .ebc-calc__note { color: var(--on-night-muted) !important; }
body .ebc-calc .ebc-calc__label, body .ebc-calc .ebc-calc__value, body .ebc-calc .ebc-calc__num, body .ebc-calc .ebc-calc__total { color: var(--on-night) !important; }
body .ebc-calc .ebc-calc__row span:first-child { color: var(--on-night-muted) !important; }
body .ebc-chip,
body .ebc-calc .ebc-calc__presets button.ebc-chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; margin: 0;
  border: var(--border-stroke) solid var(--line-strong); border-radius: var(--radius-pill);
  background: transparent; color: var(--ink); box-shadow: none; text-transform: none; letter-spacing: 0;
  font: 500 14px/1 var(--font-sans);
}
body .ebc-chip:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
body .ebc-calc .ebc-calc__presets button.ebc-chip { border-color: var(--night-control); color: var(--on-night); }
body .ebc-calc .ebc-calc__presets button.ebc-chip:hover { border-color: var(--on-night); background: transparent; color: var(--on-night); }
body .ebc-chip.is-active, body .ebc-chip[aria-pressed="true"],
body .ebc-calc .ebc-calc__presets button.ebc-chip[aria-pressed="true"],
body .ebc-calc .ebc-calc__presets button.ebc-chip[aria-pressed="true"]:hover { background: var(--ember); border-color: var(--ember); color: var(--on-ember); }
body .ebc-calc .ebc-calc__field input[type="range"] {
  width: 100%; height: auto; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0;
  background: transparent; box-shadow: none; accent-color: var(--ember);
}
body .ebc-calc .ebc-calc__field input[type="number"] {
  width: 170px; min-height: 48px; margin: 0; padding: 0 18px; box-sizing: border-box;
  border: var(--border-stroke) solid var(--night-control); border-radius: var(--radius-pill);
  background: var(--night-raised) !important; color: var(--on-night) !important; box-shadow: none;
  font: 500 18px var(--font-mono);
}
body .ebc-calc .ebc-calc__field input[type="number"]:focus { background: var(--night-raised) !important; color: var(--on-night) !important; border-color: var(--on-night-muted); outline: 2px solid var(--ember); outline-offset: 3px; }

/* ---------- Formulario de alertas ---------- */
.ebc-alert { background: var(--surface); border: var(--border-hairline) solid var(--line); padding: clamp(32px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: var(--space-10); align-items: flex-end; justify-content: space-between; }
.ebc-alert__copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.ebc-alert__form { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.ebc-alert__line { display: flex; flex-wrap: wrap; gap: 10px; }
.ebc-label { font-size: var(--fs-small); font-weight: 500; }
.ebc-input { flex: 1 1 220px; min-width: 0; box-sizing: border-box; min-height: 52px; padding: 0 20px; border: var(--border-stroke) solid var(--ink-subtle); border-radius: var(--radius-pill); background: var(--white); color: var(--ink); font: 400 var(--fs-body) var(--font-sans); }
.ebc-input::placeholder { color: var(--ink-muted); }
.ebc-input:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-color: var(--ink); }
.ebc-input[aria-invalid="true"] { border-color: var(--ember); }
.ebc-help { font-size: var(--fs-caption); color: var(--ink-muted); }
.ebc-error { font-size: var(--fs-caption); color: var(--ember-hover); font-weight: 500; }

/* ---------- Guías (portada editorial) ---------- */
.ebc-guides { display: flex; flex-wrap: wrap; gap: var(--space-12); }
.ebc-guide-lead { flex: 1.4 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; color: var(--ink); text-decoration: none; }
.ebc-guide-lead__title { font-family: var(--font-display); font-size: var(--fs-heading-l); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.ebc-guide-list { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; }
.ebc-guide-item { display: flex; flex-direction: column; gap: 6px; padding: var(--space-6) 0; border-top: var(--border-hairline) solid var(--line); color: var(--ink); text-decoration: none; }
.ebc-guide-item:first-child { border-top: 0; padding-top: 0; }
.ebc-guide-item__title { font-family: var(--font-display); font-size: 23px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
:is(.ebc-guide-lead, .ebc-guide-item):hover :is(.ebc-guide-lead__title, .ebc-guide-item__title) { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ---------- Cinta de marcas (una por página como máximo) ---------- */
.ebc-marquee { overflow: hidden; border-block: var(--border-hairline) solid var(--line); padding-block: 36px; }
.ebc-marquee__track { display: flex; width: max-content; gap: var(--space-16); padding-right: var(--space-16); font-family: var(--font-display); font-weight: 600; font-size: clamp(36px, 4.6vw, 64px); letter-spacing: -0.03em; white-space: nowrap; animation: ebc-marquee var(--marquee-duration) linear infinite; }
.ebc-marquee__track a { color: var(--ink); text-decoration: none; }
.ebc-marquee__track > :nth-child(even) { color: var(--ink-subtle); }
.ebc-marquee:hover .ebc-marquee__track { animation-play-state: paused; }
@keyframes ebc-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Aviso de afiliado ---------- */
.ebc-disclosure { display: block; font-size: var(--fs-caption); line-height: 1.5; color: var(--ink-muted); max-width: 90ch; }

/* ---------- Tabla comparativa (páginas de categoría) ---------- */
.ebc-compare { overflow-x: auto; }
.ebc-compare table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: var(--fs-small); }
.ebc-compare th { text-align: left; font-weight: 600; padding: 14px 16px 14px 0; border-bottom: var(--border-rule) solid var(--ink); vertical-align: bottom; }
.ebc-compare td { padding: 16px 16px 16px 0; vertical-align: top; }
.ebc-compare tbody tr + tr td { border-top: var(--border-hairline) solid var(--line); }
.ebc-compare td:first-child { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.ebc-compare .is-best td { background: var(--surface); }

/* ---------- Animación de entrada al hacer scroll ----------
   .ebc-reveal en un elemento; .ebc-reveal-stagger en un contenedor para escalonar sus hijos.
   Solo se activa con JS (html.ebc-motion) y si el usuario no pide menos movimiento. */
html.ebc-motion .ebc-reveal,
html.ebc-motion .ebc-reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
  transition-delay: calc(var(--i, 0) * var(--stagger));
}
html.ebc-motion .ebc-reveal.is-in,
html.ebc-motion .ebc-reveal-stagger.is-in > * { opacity: 1; transform: none; }
/* Variante para fotos: se descubren de abajo arriba, escalonadas (.ebc-reveal-clip en el contenedor) */
html.ebc-motion .ebc-reveal-clip > * {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 900ms var(--ease-out);
  transition-delay: calc(120ms + var(--i, 0) * 110ms);
}
html.ebc-motion .ebc-reveal-clip.is-in > * { clip-path: inset(0 0 0 0); }

html.elementor-html .ebc-reveal,
html.elementor-html .ebc-reveal-stagger > *,
body.elementor-editor-active .ebc-reveal,
body.elementor-editor-active .ebc-reveal-stagger > * { opacity: 1 !important; transform: none !important; }
html.elementor-html .ebc-reveal-clip > *,
body.elementor-editor-active .ebc-reveal-clip > * { clip-path: none !important; }

/* ---------- Portada (hero) ----------
   .ebc-hero > .ebc-hero__copy (titular, entradilla, .ebc-hero__actions) + .ebc-hero__grid (3 fotos)
   Plantilla: ebc-portada.json */
.ebc-hero,
.elementor .ebc-hero.e-con {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: var(--space-12);
  max-width: var(--container);
  margin-inline: auto;
  padding: 56px var(--gutter) 72px;
  box-sizing: border-box;
  --flex-direction: row;
  --flex-wrap: wrap;
  --gap: var(--space-12);
  --row-gap: var(--space-12);
  --column-gap: var(--space-12);
  --padding-top: 56px;
  --padding-bottom: 72px;
  --padding-left: var(--gutter);
  --padding-right: var(--gutter);
}
.ebc-hero > .ebc-hero__copy,
.elementor .ebc-hero > .ebc-hero__copy.e-con {
  flex: 1 1 460px;
  width: auto;
  --width: auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: 0;
  --flex-direction: column;
  --justify-content: center;
  --gap: 28px;
  --row-gap: 28px;
  --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
}
.ebc-hero__copy > .elementor-element { margin: 0; width: 100%; }
body .ebc-hero__title .elementor-heading-title,
.ebc-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-display-xl);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
  padding-bottom: 4px;
}
.ebc-hero__lead p, p.ebc-hero__lead { margin: 0; max-width: 44ch; font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-muted); }
.ebc-hero__actions,
.elementor .ebc-hero__actions.e-con {
  display: flex; flex-direction: row; flex-wrap: wrap; gap: var(--space-3); padding: 0;
  --flex-direction: row; --flex-wrap: wrap; --gap: var(--space-3); --row-gap: var(--space-3); --column-gap: var(--space-3);
  --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
}
.ebc-hero__actions > .elementor-element { width: auto; margin: 0; }
.ebc-hero > .ebc-hero__grid,
.elementor .ebc-hero > .ebc-hero__grid.e-con {
  flex: 1 1 420px;
  width: auto;
  --width: auto;
  min-width: 0;
  min-height: 560px;
  display: grid !important;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: var(--space-3);
  padding: 0;
  --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
}
.ebc-hero__grid > * { margin: 0 !important; width: auto !important; min-height: 0; overflow: hidden; background: var(--tint-sage); }
.ebc-hero__grid > .ebc-hero__main { grid-row: 1 / span 2; background: var(--tint-clay); }
.ebc-hero__grid > :nth-child(2) { background: var(--tint-mist); }
.ebc-hero__grid .elementor-widget-container,
.ebc-hero__grid .elementor-image,
.ebc-hero__grid figure { height: 100%; margin: 0; }
.ebc-hero__grid img { display: block; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; border-radius: 0; }
.ebc-hero__grid .ebc-hero__product { background: var(--white); }
.ebc-hero__grid .ebc-hero__product img { object-fit: contain; padding: 10%; box-sizing: border-box; }
@media (max-width: 760px) {
  .ebc-hero, .elementor .ebc-hero.e-con { padding-top: 32px; padding-bottom: 48px; --padding-top: 32px; --padding-bottom: 48px; gap: var(--space-8); --gap: var(--space-8); --row-gap: var(--space-8); }
  .ebc-hero > .ebc-hero__grid, .elementor .ebc-hero > .ebc-hero__grid.e-con { min-height: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  .ebc-marquee__track { animation: none; }
  .ebc-btn, .ebc-chip, .ebc-tile { transition: none; }
  html.ebc-motion .ebc-reveal, html.ebc-motion .ebc-reveal-stagger > * { opacity: 1; transform: none; transition: none; }
  html.ebc-motion .ebc-reveal-clip > * { clip-path: none; transition: none; }
}

/* ---------- Páginas legales (plantilla ebc-legal.json) ----------
   .ebc-legal > .ebc-legal__head + .ebc-legal__summary + .ebc-legal__body [ .ebc-legal__toc-wrap | .ebc-legal__content ]
   El índice se genera solo a partir de los H2 de .ebc-legal__text (ebc.js). Los números de sección los pone el CSS. */
.ebc-legal,
.elementor .ebc-legal.e-con {
  display: flex; flex-direction: column; gap: 0;
  max-width: var(--container); margin-inline: auto; box-sizing: border-box;
  padding: 64px var(--gutter) var(--section-y);
  --flex-direction: column; --gap: 0px; --row-gap: 0px;
  --padding-top: 64px; --padding-bottom: var(--section-y); --padding-left: var(--gutter); --padding-right: var(--gutter);
}
.ebc-legal .elementor-element { margin: 0; }
.elementor .ebc-legal__head.e-con {
  flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-12); padding: 0 0 48px;
  --flex-direction: row; --flex-wrap: wrap; --align-items: flex-end; --justify-content: space-between; --gap: var(--space-12); --row-gap: var(--space-6);
  --padding-top: 0px; --padding-right: 0px; --padding-bottom: 48px; --padding-left: 0px;
}
.elementor .ebc-legal__intro.e-con {
  flex: 1 1 520px; width: auto; --width: auto; min-width: 0; flex-direction: column; gap: 18px; padding: 0;
  --flex-direction: column; --gap: 18px; --row-gap: 18px; --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
}
.ebc-legal__crumbs p { margin: 0; font-size: 14px; color: var(--ink-muted); }
.ebc-legal__crumbs a { color: var(--ink-muted); }
body .ebc-legal__title .elementor-heading-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 5.4vw, 72px); line-height: 1; letter-spacing: -0.035em; color: var(--ink); }
.ebc-legal__lead p { margin: 0; max-width: 52ch; font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-muted); }
.ebc-legal__head > .ebc-legal__date.elementor-element { flex: 0 0 auto; width: auto; }
body .ebc-legal__date .elementor-heading-title { font-family: var(--font-mono); font-size: 14px; font-weight: 500; letter-spacing: 0; line-height: 1.4; color: var(--ink-muted); }

/* Resumen */
.elementor .ebc-legal__summary.e-con {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--space-6) var(--space-10);
  background: var(--surface); border: var(--border-hairline) solid var(--line); padding: clamp(24px, 3vw, 36px); margin-bottom: 56px;
  --padding-top: clamp(24px, 3vw, 36px); --padding-right: clamp(24px, 3vw, 36px); --padding-bottom: clamp(24px, 3vw, 36px); --padding-left: clamp(24px, 3vw, 36px);
}
.ebc-legal__summary > .ebc-legal__summary-title { grid-column: 1 / -1; }
body .ebc-legal__summary-title .elementor-heading-title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-heading-s); letter-spacing: -0.01em; color: var(--ink); }
.ebc-legal__point { padding-top: 14px !important; border-top: var(--border-rule) solid var(--ink); }
.ebc-legal__point p { margin: 0; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-muted); }
.ebc-legal__point strong { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 600; }

/* Cuerpo: índice + texto */
.elementor .ebc-legal__body.e-con {
  display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; padding: 0;
  --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
}
.ebc-legal__body > .ebc-legal__toc-wrap { position: sticky; top: 96px; }
.ebc-legal__toc-box > summary { list-style: none; cursor: pointer; margin: 0 0 12px; font-size: var(--fs-caption); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.ebc-legal__toc-box > summary::-webkit-details-marker { display: none; }
.ebc-legal__toc a {
  display: block; padding: 8px 0 8px 14px; border-left: var(--border-rule) solid var(--line);
  font-size: var(--fs-small); line-height: 1.35; color: var(--ink-muted); text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard), border-color var(--duration-base) var(--ease-standard);
}
.ebc-legal__toc a:hover { color: var(--ink); border-left-color: var(--ink-subtle); }
.ebc-legal__toc a.is-active,
.ebc-legal__toc a[aria-current="true"] { color: var(--ink); font-weight: 500; border-left-color: var(--ember); }
.elementor .ebc-legal__content.e-con {
  width: auto; --width: auto; min-width: 0; max-width: 760px; flex-direction: column; gap: var(--space-4); padding: 0;
  --flex-direction: column; --gap: var(--space-4); --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
}

/* Texto legal: pega aquí el texto; cada H2 es una sección */
.ebc-legal__text { counter-reset: ebc-sec; font-size: var(--fs-body); line-height: 1.6; }
.ebc-legal__text h2 {
  counter-increment: ebc-sec;
  display: flex; gap: 14px; align-items: baseline;
  margin: 0 0 16px; padding-top: 40px; border-top: var(--border-hairline) solid var(--line);
  font-family: var(--font-display) !important; font-weight: 600 !important; font-size: var(--fs-heading-m) !important;
  line-height: 1.15 !important; letter-spacing: -0.02em !important; color: var(--ink) !important;
  scroll-margin-top: 96px;
}
.ebc-legal__text h2::before { content: counter(ebc-sec, decimal-leading-zero); font-family: var(--font-mono); font-weight: 500; font-size: 15px; letter-spacing: 0; color: var(--ember); }
.ebc-legal__text h2:first-child { padding-top: 0; border-top: 0; }
.ebc-legal__text h3 { margin: 24px 0 10px; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-heading-s); letter-spacing: -0.01em; color: var(--ink); }
.ebc-legal__text p, .ebc-legal__text ul, .ebc-legal__text ol { margin: 0 0 14px; max-width: 66ch; }
.ebc-legal__text ul, .ebc-legal__text ol { padding-left: 20px; }
.ebc-legal__text li { margin: 0 0 6px; }
.ebc-legal__text p + h2, .ebc-legal__text ul + h2, .ebc-legal__text ol + h2, .ebc-legal__text table + h2, .ebc-legal__text dl + h2 { margin-top: 26px; }
.ebc-legal__text a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ebc-legal__text a:hover { color: var(--ember); }
.ebc-legal__text table { width: 100%; border-collapse: collapse; margin: 8px 0 14px; font-size: var(--fs-small); border-top: var(--border-hairline) solid var(--line); }
.ebc-legal__text th, .ebc-legal__text td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: var(--border-hairline) solid var(--line); }
.ebc-legal__text th { width: 160px; font-weight: 400; color: var(--ink-muted); }

/* Caja de ayuda final */
.elementor .ebc-legal__help.e-con {
  margin-top: var(--space-4); background: var(--surface); border: var(--border-hairline) solid var(--line);
  flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(24px, 3vw, 36px);
  --flex-direction: row; --flex-wrap: wrap; --align-items: center; --justify-content: space-between; --gap: 20px;
  --padding-top: clamp(24px, 3vw, 36px); --padding-right: clamp(24px, 3vw, 36px); --padding-bottom: clamp(24px, 3vw, 36px); --padding-left: clamp(24px, 3vw, 36px);
}
.elementor .ebc-legal__help > .ebc-legal__help-copy.e-con { flex: 1 1 300px; width: auto; --width: auto; flex-direction: column; gap: 6px; padding: 0; --gap: 6px; --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px; }
.ebc-legal__help > .elementor-widget-button { width: auto; }
body .ebc-legal__help .elementor-heading-title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-heading-s); letter-spacing: -0.01em; color: var(--ink); }
.ebc-legal__help p { margin: 0; font-size: var(--fs-small); color: var(--ink-muted); }

@media (max-width: 900px) {
  .elementor .ebc-legal__body.e-con { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
  .ebc-legal__body > .ebc-legal__toc-wrap { position: static; background: var(--surface); border: var(--border-hairline) solid var(--line); padding: 16px 20px !important; }
  .ebc-legal__toc-box > summary { margin: 0; display: flex; justify-content: space-between; }
  .ebc-legal__toc-box > summary::after { content: "+"; font: 500 18px/1 var(--font-sans); letter-spacing: 0; }
  .ebc-legal__toc-box[open] > summary { margin-bottom: 12px; }
  .ebc-legal__toc-box[open] > summary::after { content: "\2212"; }
}

/* ---------- Blog (template-parts/ebc-blog.php) ---------- */
.ebc-blog__head { display: flex; flex-direction: column; gap: 28px; padding-top: 64px; padding-bottom: 40px; }
.ebc-blog__title { margin: 0; max-width: 14ch; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-display-xl); line-height: 0.98; letter-spacing: -0.035em; color: var(--ink); padding-bottom: 4px; }
.ebc-blog__lead { margin: 0; max-width: 52ch; font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-muted); }
.ebc-blog__cats { display: flex; gap: var(--space-2); overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.ebc-blog__cats::-webkit-scrollbar { display: none; }
body .ebc-blog__cats .ebc-chip { text-decoration: none; white-space: nowrap; }
body .ebc-blog__cats .ebc-chip.is-current { background: var(--ink); border-color: var(--ink); color: var(--surface); }

.ebc-blog__featured-wrap { padding-bottom: 72px; }
.ebc-blog__featured { display: flex; flex-wrap: wrap; gap: var(--space-10); align-items: stretch; padding-top: var(--space-8); border-top: var(--border-rule) solid var(--ink); color: var(--ink); text-decoration: none; }
.ebc-blog__featured-media { flex: 1.3 1 480px; min-height: 440px; background: var(--tint-clay); }
.ebc-blog__featured-media img { transition: transform var(--duration-slow) var(--ease-out); }
.ebc-blog__featured:hover .ebc-blog__featured-media img { transform: scale(1.02); }
.ebc-blog__featured-body { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.ebc-blog__kicker { font-family: var(--font-mono); font-size: var(--fs-small); color: var(--ember); }
.ebc-blog__featured-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.02; letter-spacing: -0.03em; color: var(--ink); }
.ebc-blog__featured-text { margin: 0; max-width: 46ch; font-size: var(--fs-lead); color: var(--ink-muted); }
.ebc-blog__more { display: flex; align-items: baseline; gap: var(--space-3); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ebc-blog__more .ebc-blog__mins { text-decoration: none; font-weight: 500; }
.ebc-blog__featured:hover .ebc-blog__featured-title,
.ebc-blog__row:hover .ebc-blog__row-title { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

.ebc-blog__list-wrap { padding-bottom: 72px; }
.ebc-blog__list-title { margin: 0 0 8px; font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
.ebc-blog__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 540px), 1fr)); column-gap: var(--space-12); }
.ebc-blog__row { display: flex; gap: var(--space-5); align-items: flex-start; padding: 28px 0; border-bottom: var(--border-hairline) solid var(--line); color: var(--ink); text-decoration: none; }
.ebc-blog__thumb { flex: 0 0 152px; height: 114px; }
.ebc-blog__thumb--clay { background: var(--tint-clay); }
.ebc-blog__thumb--mist { background: var(--tint-mist); }
.ebc-blog__thumb--sage { background: var(--tint-sage); }
.ebc-blog__thumb img { transition: transform var(--duration-slow) var(--ease-out); }
.ebc-blog__row:hover .ebc-blog__thumb img { transform: scale(1.04); }
.ebc-blog__row-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ebc-blog__cat { font-size: var(--fs-caption); font-weight: 600; color: var(--ink-muted); }
.ebc-blog__row-title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
.ebc-blog__row-text { margin: 0; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-muted); }
.ebc-blog__mins { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--ink-muted); }

.ebc-blog__pages { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; margin-top: var(--space-10); }
.ebc-blog__pages .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; box-sizing: border-box;
  border: var(--border-stroke) solid var(--line-strong); border-radius: var(--radius-pill);
  font: 500 15px var(--font-mono); color: var(--ink); text-decoration: none;
  transition: border-color var(--duration-base) var(--ease-standard), background-color var(--duration-base) var(--ease-standard);
}
.ebc-blog__pages a.page-numbers:hover { border-color: var(--ink); }
.ebc-blog__pages .page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.ebc-blog__pages .prev, .ebc-blog__pages .next { font-family: var(--font-sans); font-weight: 600; }
.ebc-blog__pages .dots { border-color: transparent; }

.ebc-blog__empty { padding-bottom: 96px; }

.ebc-blog__cta { background: var(--night); color: var(--on-night); }
.ebc-blog__cta-inner { display: flex; flex-wrap: wrap; gap: var(--space-6) var(--space-12); align-items: center; justify-content: space-between; padding-top: 56px; padding-bottom: 56px; }
.ebc-blog__cta-copy { flex: 1 1 420px; display: flex; flex-direction: column; gap: var(--space-2); }
body .ebc-blog__cta h2 { margin: 0; color: var(--on-night); font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -0.03em; }
.ebc-blog__cta p { margin: 0; max-width: 46ch; color: var(--on-night-muted); }

@media (max-width: 760px) {
  .ebc-blog__head { padding-top: 40px; }
  .ebc-blog__featured-media { min-height: 260px; flex-basis: 100%; }
  .ebc-blog__thumb { flex-basis: 104px; height: 88px; }
}

/* ---------- Página "Las mejores" (/productos/, plantilla ebc-mejores.json) ----------
   .ebc-best (bloque de ancho de contenido) se usa para cabecera, criterios, top y catálogo.
   La calculadora va entre medias a todo el ancho ([ebc_calculadora]). */
.elementor .ebc-best.e-con,
.ebc-best {
  display: flex; flex-direction: column; gap: 0;
  width: 100%; max-width: var(--container); margin-inline: auto; box-sizing: border-box;
  padding: 0 var(--gutter) var(--section-y);
  --flex-direction: column; --gap: 0px; --row-gap: 0px;
  --padding-top: 0px; --padding-bottom: var(--section-y); --padding-left: var(--gutter); --padding-right: var(--gutter);
}
.elementor .ebc-best--head.e-con { padding-top: 64px; padding-bottom: 0; --padding-top: 64px; --padding-bottom: 0px; }
.elementor .ebc-best--after-calc.e-con { padding-top: var(--section-y); --padding-top: var(--section-y); }
.ebc-best .elementor-element { margin: 0; }
.ebc-best .elementor-widget-shortcode { width: 100%; }

/* Cabecera de la página (reutiliza la estructura de las páginas legales) */
.elementor .ebc-best__head.e-con {
  flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-12); padding: 0 0 48px;
  --flex-direction: row; --flex-wrap: wrap; --align-items: flex-end; --justify-content: space-between; --gap: var(--space-12); --row-gap: var(--space-6);
  --padding-top: 0px; --padding-right: 0px; --padding-bottom: 48px; --padding-left: 0px;
}
.elementor .ebc-best__intro.e-con {
  flex: 1 1 560px; width: auto; --width: auto; min-width: 0; flex-direction: column; gap: 18px; padding: 0;
  --flex-direction: column; --gap: 18px; --row-gap: 18px; --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
}
body .ebc-best__title .elementor-heading-title { margin: 0; max-width: 16ch; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-display-xl); line-height: 0.98; letter-spacing: -0.035em; color: var(--ink); padding-bottom: 4px; }
.ebc-best__head > .ebc-legal__date.elementor-element { flex: 0 0 auto; width: auto; }

/* Encabezados de bloque: H2 con regla negra encima, como las secciones editoriales */
.elementor .ebc-best__block-head.e-con {
  flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4) var(--space-10);
  padding: var(--space-8) 0 0; border-top: var(--border-rule) solid var(--ink); margin-bottom: 8px;
  --flex-direction: row; --flex-wrap: wrap; --align-items: flex-end; --justify-content: space-between; --gap: var(--space-4);
  --padding-top: var(--space-8); --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
}
.ebc-best__block-head > .elementor-element { width: auto; }
body .ebc-best__h2 .elementor-heading-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-display-l); line-height: 1.02; letter-spacing: -0.03em; color: var(--ink); }
.ebc-best__note p { margin: 0; max-width: 44ch; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-muted); }
.ebc-best__note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* El top: sin el título interno del plugin (ya está el H2) */
.ebc-best .eb-top { margin-top: 24px; }

/* Bloque "Cómo las elegimos" usa .ebc-legal__summary y .ebc-legal__point */
.ebc-best .ebc-legal__summary { margin-bottom: 72px; }

@media (max-width: 760px) {
  .elementor .ebc-best--head.e-con { padding-top: 40px; --padding-top: 40px; }
  .ebc-best .ebc-legal__summary { margin-bottom: 48px; }
}
.elementor .ebc-best-calc.e-con { padding: 0; --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px; }
.ebc-best-calc .elementor-widget-shortcode, .ebc-best-calc .elementor-element { width: 100%; margin: 0; }

/* ---------- Página "Por tipo" (/tipos-de-estufas/, plantilla ebc-tipos-pagina.json) ----------
   Reutiliza .ebc-best (cabecera, bloques) y .ebc-compare (tabla). Añade: test, bloques de tipo,
   "La verdad sobre el bajo consumo" y preguntas frecuentes. */

/* Test [ebc_test_tipos] */
.ebc-quiz {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 0;
  border: var(--border-hairline) solid var(--line-strong); background: var(--surface);
  margin-top: 24px;
}
.ebc-quiz__form { display: flex; flex-direction: column; padding: var(--space-8) var(--space-10); }
.ebc-quiz__q { margin: 0; padding: 22px 0; border: 0; min-width: 0; }
.ebc-quiz__q + .ebc-quiz__q { border-top: var(--border-hairline) solid var(--line); }
.ebc-quiz__q:first-child { padding-top: 0; }
.ebc-quiz__q:last-child { padding-bottom: 0; }
.ebc-quiz__legend { float: left; width: 100%; display: flex; align-items: baseline; gap: 12px; padding: 0; margin: 0 0 14px; font: 600 var(--fs-heading-s)/1.2 var(--font-display); letter-spacing: -0.01em; color: var(--ink); }
.ebc-quiz__n { font: 500 13px/1 var(--font-mono); color: var(--ink-subtle); }
.ebc-quiz__ops { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.ebc-quiz__op { position: relative; display: inline-flex; cursor: pointer; }
.ebc-quiz__op input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ebc-quiz__op span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border: var(--border-stroke) solid var(--line-strong); border-radius: var(--radius-pill);
  background: var(--white); color: var(--ink); font: 500 14px/1 var(--font-sans);
  transition: background-color var(--duration-base) var(--ease-standard), color var(--duration-base) var(--ease-standard), border-color var(--duration-base) var(--ease-standard);
}
.ebc-quiz__op:hover span { border-color: var(--ink); }
.ebc-quiz__op input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.ebc-quiz__op input:focus-visible + span { outline: 2px solid var(--ember); outline-offset: 2px; }

.ebc-quiz__res { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: var(--space-8) var(--space-10); background: var(--white); border-left: var(--border-hairline) solid var(--line-strong); min-height: 420px; }
.ebc-quiz__vacio-tit { margin: 0 0 6px; font: 600 var(--fs-heading-s)/1.2 var(--font-display); color: var(--ink-subtle); }
.ebc-quiz__vacio-sub { margin: 0; font-size: var(--fs-small); color: var(--ink-subtle); }
.ebc-quiz__vacio-sub span { font-family: var(--font-mono); }
.ebc-quiz__out[hidden], .ebc-quiz__vacio[hidden], .ebc-quiz__out [hidden] { display: none !important; }
.ebc-quiz__kicker { margin: 0 0 10px; font: 500 13px/1 var(--font-mono); color: var(--ember); text-transform: uppercase; letter-spacing: 0.06em; }
.ebc-quiz__tipo { margin: 0 0 16px; font: 700 var(--fs-heading-l)/1 var(--font-display); letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }
.ebc-quiz__porque { margin: 0 0 14px; font-size: var(--fs-body); line-height: 1.55; color: var(--ink); max-width: 42ch; }
.ebc-quiz__nota { margin: 0 0 14px; padding-left: 14px; border-left: var(--border-rule) solid var(--ember); font-size: var(--fs-small); line-height: 1.5; color: var(--ink-muted); max-width: 44ch; }
.ebc-quiz__alt { margin: 0 0 24px; font-size: var(--fs-small); color: var(--ink-muted); }
.ebc-quiz__alt a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ebc-quiz__acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
body .ebc-quiz__reset { padding: 0; margin: 0; border: 0; background: none; box-shadow: none; color: var(--ink-muted); font: 500 14px/1.4 var(--font-sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-transform: none; letter-spacing: 0; }
body .ebc-quiz__reset:hover, body .ebc-quiz__reset:focus { background: none; color: var(--ink); }
.ebc-quiz__out.is-in { animation: ebc-quiz-in var(--duration-slow) var(--ease-out) both; }
@keyframes ebc-quiz-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ebc-quiz__out.is-in { animation: none; } }
@media (max-width: 960px) {
  .ebc-quiz { grid-template-columns: 1fr; }
  .ebc-quiz__res { border-left: 0; border-top: var(--border-hairline) solid var(--line-strong); min-height: 0; }
}
@media (max-width: 760px) {
  .ebc-quiz__form, .ebc-quiz__res { padding: var(--space-6) 20px; }
}

/* Bloques de tipo: cabecera en dos columnas + productos debajo */
.elementor .ebc-tipo.e-con {
  flex-direction: column; gap: 32px; padding: var(--space-8) 0 88px; border-top: var(--border-rule) solid var(--ink);
  scroll-margin-top: 96px;
  --flex-direction: column; --gap: 32px; --row-gap: 32px; --padding-top: var(--space-8); --padding-right: 0px; --padding-bottom: 88px; --padding-left: 0px;
}
.elementor .ebc-tipo__head.e-con {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px var(--space-12); padding: 0;
  --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
}
.ebc-tipo__head > .elementor-element, .ebc-tipo__head > .e-con { width: auto; min-width: 0; }
.elementor .ebc-tipo__title-col.e-con { flex-direction: column; gap: 14px; padding: 0; --flex-direction: column; --gap: 14px; --row-gap: 14px; --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px; }
body .ebc-tipo__n .elementor-heading-title { margin: 0; font: 500 14px/1 var(--font-mono); color: var(--ink-subtle); letter-spacing: 0; }
body .ebc-tipo__h2 .elementor-heading-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-heading-l); line-height: 1; letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }
.ebc-tipo__guide a { display: inline-flex; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ebc-tipo__guide p { margin: 0; }
.ebc-tipo__body p { margin: 0 0 18px; font-size: var(--fs-lead); line-height: 1.55; color: var(--ink); max-width: 58ch; }
.ebc-tipo__body dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 0; }
.ebc-tipo__body dl > div { padding-top: 12px; border-top: var(--border-hairline) solid var(--line-strong); }
.ebc-tipo__body dt { margin: 0 0 6px; font: 600 14px/1.3 var(--font-sans); color: var(--ink); }
.ebc-tipo__body dt::before { content: "+ "; color: var(--ember); font-family: var(--font-mono); }
.ebc-tipo__body dl > div + div dt::before { content: "− "; color: var(--ink-subtle); }
.ebc-tipo__body dd { margin: 0; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-muted); }
.ebc-tipo .elementor-widget-shortcode { width: 100%; }
@media (max-width: 960px) {
  .elementor .ebc-tipo__head.e-con { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .elementor .ebc-tipo.e-con { padding-bottom: 64px; --padding-bottom: 64px; }
  .ebc-tipo__body dl { grid-template-columns: 1fr; gap: 16px; }
}

/* Tabla comparativa dentro de la página */
.ebc-best .ebc-compare { margin-top: 24px; }
.ebc-compare td:first-child a { color: inherit; text-decoration: none; }
.ebc-compare td:first-child a:hover { color: var(--ember); }

/* La verdad sobre el bajo consumo */
.elementor .ebc-truth.e-con {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px var(--space-12);
  padding: var(--space-10) var(--space-10); background: var(--tint-sand); margin-bottom: 104px;
  --padding-top: var(--space-10); --padding-right: var(--space-10); --padding-bottom: var(--space-10); --padding-left: var(--space-10);
}
.ebc-truth > .elementor-element { width: auto; min-width: 0; }
body .ebc-truth__title .elementor-heading-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-heading-l); line-height: 1.02; letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }
.ebc-truth__text p { margin: 0 0 16px; font-size: var(--fs-body); line-height: 1.6; color: var(--ink); max-width: 60ch; }
.ebc-truth__text p:last-child { margin-bottom: 0; }
.ebc-truth__text .ebc-truth__big { font: 600 var(--fs-heading-m)/1.25 var(--font-display); letter-spacing: -0.015em; }
.ebc-truth__text strong { font-weight: 600; }
@media (max-width: 960px) {
  .elementor .ebc-truth.e-con { grid-template-columns: 1fr; padding: var(--space-8) 20px; --padding-top: var(--space-8); --padding-right: 20px; --padding-bottom: var(--space-8); --padding-left: 20px; margin-bottom: 64px; }
}

/* Preguntas frecuentes (widget Acordeón de Elementor con la clase ebc-faq) */
.ebc-faq { width: 100%; margin-top: 16px; }
body .ebc-faq .elementor-accordion .elementor-accordion-item { border: 0; border-bottom: var(--border-hairline) solid var(--line-strong); }
body .ebc-faq .elementor-accordion .elementor-tab-title {
  display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; border: 0; background: none; color: var(--ink);
  font: 600 var(--fs-heading-s)/1.3 var(--font-display); letter-spacing: -0.01em;
}
body .ebc-faq .elementor-accordion .elementor-tab-title a { color: inherit; }
body .ebc-faq .elementor-accordion .elementor-tab-title .elementor-accordion-icon { flex: 0 0 auto; width: auto; color: var(--ink-muted); font-size: 16px; }
body .ebc-faq .elementor-accordion .elementor-tab-title.elementor-active { color: var(--ink); }
body .ebc-faq .elementor-accordion .elementor-tab-title.elementor-active .elementor-accordion-icon { color: var(--ember); }
body .ebc-faq .elementor-accordion .elementor-tab-content { padding: 0 48px 24px 0; border: 0; color: var(--ink-muted); font-size: var(--fs-body); line-height: 1.6; }
body .ebc-faq .elementor-accordion .elementor-tab-content p { margin: 0 0 12px; max-width: 64ch; }
body .ebc-faq .elementor-accordion .elementor-tab-content p:last-child { margin-bottom: 0; }
.elementor .ebc-best--head.ebc-best--tipos.e-con { padding-bottom: var(--section-y); --padding-bottom: var(--section-y); }

/* ---------- Página "Por estancia" (plantilla ebc-estancias-pagina.json) ----------
   Reutiliza la página "Por tipo"; añade los accesos a cada estancia y la ficha 2 x 2. */
.ebc-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
body .ebc-jump a.ebc-chip { text-decoration: none; color: var(--ink); background: var(--white); }
body .ebc-jump a.ebc-chip:hover { border-color: var(--ink); background: var(--white); color: var(--ink); }
.ebc-tipo--estancia .ebc-tipo__body dl { row-gap: 20px; }
.ebc-tipo--estancia .ebc-tipo__body dt::before,
.ebc-tipo--estancia .ebc-tipo__body dl > div + div dt::before { content: none; }
.ebc-tipo--estancia .ebc-tipo__body dl > div:last-child dt { color: var(--ember); }
.ebc-tipo__body dd a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ebc-tipo__body dd a:hover { color: var(--ember); }
.ebc-tipo__foto { width: 100%; max-width: 360px; margin-top: 10px !important; }
.ebc-tipo__foto img { display: block; width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; background: var(--tint-sage); }
@media (max-width: 960px) { .ebc-tipo__foto { max-width: none; } .ebc-tipo__foto img { aspect-ratio: 16 / 9; } }

/* ---------- Entrada del blog (single.php) ----------
   .ebc-post > __head + __cover + __body [ __toc-wrap | __content > .ebc-post__text ] + __foot + __related + .ebc-blog__cta
   El índice reutiliza .ebc-legal__toc (se genera solo con los H2 del texto). */
.ebc-post { --post-toc: 240px; --post-gap: clamp(32px, 6vw, 96px); --post-measure: 720px; }
.ebc-post__head { display: flex; flex-direction: column; gap: 20px; padding-top: 56px; padding-bottom: 40px; }
.ebc-post__crumbs { font-size: 14px; color: var(--ink-muted); }
.ebc-post__crumbs a { color: var(--ink-muted); }
.ebc-post__crumbs a:hover { color: var(--ink); }
body .ebc-post__title { margin: 0; max-width: 22ch; font-family: var(--font-display); font-weight: 700; font-size: clamp(38px, 5vw, 68px); line-height: 1.02; letter-spacing: -0.035em; color: var(--ink); text-wrap: balance; padding-bottom: 2px; }
.ebc-post__lead { margin: 0; max-width: 60ch; font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-muted); }
.ebc-post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; margin-top: 8px; font-size: var(--fs-small); color: var(--ink-muted); }
.ebc-post__author { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-muted); text-decoration: none; }
.ebc-post__author strong { color: var(--ink); font-weight: 600; }
.ebc-post__author:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.ebc-post__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--tint-sage); }
.ebc-post__mins { font-family: var(--font-mono); font-size: 13px; font-weight: 500; }

.ebc-post__cover { margin: 0 auto 64px; }
.ebc-post__cover-media { background: var(--tint-sage); aspect-ratio: 16 / 8; overflow: hidden; }
.ebc-post__cover-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ebc-post__cover figcaption { margin-top: 10px; font-size: var(--fs-caption); color: var(--ink-muted); }

/* Índice + texto */
.ebc-post__body { display: grid; grid-template-columns: minmax(0, var(--post-toc)) minmax(0, var(--post-measure)); gap: var(--post-gap); align-items: start; padding-bottom: 72px; }
.ebc-post__toc-wrap { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; scrollbar-width: thin; }
.ebc-post--no-toc .ebc-post__toc-wrap { display: none; }
.ebc-post--no-toc .ebc-post__body,
.ebc-post--no-toc .ebc-post__foot { grid-template-columns: minmax(0, var(--post-measure)); justify-content: center; }
.ebc-post__content { min-width: 0; }
.ebc-post__content > .eb-aviso, .ebc-post__content > .ebc-disclosure { margin: 0 0 32px; padding: 0 0 16px; border-bottom: var(--border-hairline) solid var(--line); font-size: var(--fs-caption); line-height: 1.5; color: var(--ink-muted); }

/* Tipografía del artículo */
.ebc-post__text { font-size: 18px; line-height: 1.7; color: var(--ink); }
.ebc-post__text > *:first-child { margin-top: 0; }
.ebc-post__text p { margin: 0 0 22px; }
.ebc-post__text h2 { margin: 64px 0 18px; font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3vw, 38px); line-height: 1.1; letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; scroll-margin-top: 96px; }
.ebc-post__text h3 { margin: 40px 0 12px; font-family: var(--font-display); font-weight: 600; font-size: 23px; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); scroll-margin-top: 96px; }
.ebc-post__text h4 { margin: 28px 0 8px; font-family: var(--font-sans); font-weight: 600; font-size: 18px; color: var(--ink); }
.ebc-post__text a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--ember); }
.ebc-post__text a:hover { color: var(--ember); }
.ebc-post__text strong { font-weight: 600; }
.ebc-post__text ul, .ebc-post__text ol { margin: 0 0 24px; padding-left: 0; list-style: none; }
.ebc-post__text li { position: relative; margin: 0 0 10px; padding-left: 28px; }
.ebc-post__text ul > li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 7px; height: 7px; background: var(--ember); }
.ebc-post__text ol { counter-reset: ebc-ol; }
.ebc-post__text ol > li { counter-increment: ebc-ol; }
.ebc-post__text ol > li::before { content: counter(ebc-ol, decimal-leading-zero); position: absolute; left: 0; top: 0.28em; font: 500 13px/1.4 var(--font-mono); color: var(--ember); }
.ebc-post__text li > ul, .ebc-post__text li > ol { margin: 10px 0 0; }
.ebc-post__text blockquote { margin: 40px 0; padding: 0 0 0 24px; border-left: var(--border-rule) solid var(--ember); font-family: var(--font-display); font-size: 24px; line-height: 1.35; letter-spacing: -0.01em; color: var(--ink); }
.ebc-post__text blockquote p { margin: 0 0 10px; }
.ebc-post__text blockquote cite { display: block; font: 400 var(--fs-small)/1.4 var(--font-sans); font-style: normal; color: var(--ink-muted); }
.ebc-post__text hr { margin: 56px 0; border: 0; border-top: var(--border-hairline) solid var(--line-strong); }
.ebc-post__text code { padding: 2px 6px; background: var(--surface-sunk); font: 500 0.88em var(--font-mono); }
.ebc-post__text img { max-width: 100%; height: auto; }
.ebc-post__text figure, .ebc-post__text .wp-caption { max-width: 100%; margin: 40px 0; }
.ebc-post__text figcaption, .ebc-post__text .wp-caption-text { margin-top: 10px; font-size: var(--fs-caption); line-height: 1.5; color: var(--ink-muted); }
.ebc-post__text .alignleft { float: left; margin: 6px 28px 16px 0; max-width: 50%; }
.ebc-post__text .alignright { float: right; margin: 6px 0 16px 28px; max-width: 50%; }
.ebc-post__text .aligncenter { display: block; margin-inline: auto; }
.ebc-post__text h2, .ebc-post__text h3, .ebc-post__text hr { clear: both; }

/* Tablas (clásicas y bloque Tabla) */
.ebc-post__text .wp-block-table { overflow-x: auto; }
.ebc-post__text table { width: 100%; margin: 32px 0; border-collapse: collapse; font-size: var(--fs-small); line-height: 1.5; }
.ebc-post__text .wp-block-table table { margin: 0; }
.ebc-post__text th { text-align: left; font-weight: 600; padding: 12px 16px 12px 0; border-bottom: var(--border-rule) solid var(--ink); vertical-align: bottom; }
.ebc-post__text td { padding: 14px 16px 14px 0; border-bottom: var(--border-hairline) solid var(--line); vertical-align: top; }
.ebc-post__text thead + tbody tr:first-child td { border-top: 0; }
.ebc-post__text .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: var(--surface); }

/* Botones del editor de bloques */
.ebc-post__text .wp-block-buttons { margin: 32px 0; }
.ebc-post__text .wp-block-button__link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: var(--radius-pill); background: var(--ember); color: var(--on-ember); font: 600 15px/1 var(--font-sans); text-decoration: none; }
.ebc-post__text .wp-block-button__link:hover { background: var(--ember-hover); color: var(--on-ember); }

/* Piezas que van dentro del texto: productos, tablas comparativas, calculadora */
.ebc-post__text .eb-producto, .ebc-post__text .eb-top, .ebc-post__text .eb-lista, .ebc-post__text .eb-escaparate,
.ebc-post__text .ebc-compare, .ebc-post__text .ebc-calc { margin-top: 40px; margin-bottom: 40px; font-size: initial; line-height: normal; }
.ebc-post__text .eb-producto li, .ebc-post__text .eb-top li, .ebc-post__text .eb-lista li, .ebc-post__text .ebc-calc li { padding-left: 0; margin: 0; }
.ebc-post__text .eb-producto li::before, .ebc-post__text .eb-top li::before, .ebc-post__text .eb-lista li::before, .ebc-post__text .ebc-calc li::before { content: none; }
.ebc-post__text .eb-producto a, .ebc-post__text .eb-top a, .ebc-post__text .eb-lista a, .ebc-post__text .ebc-calc a { text-decoration-color: currentColor; }
.ebc-post__text .eb-producto h2, .ebc-post__text .eb-producto h3, .ebc-post__text .eb-lista h3, .ebc-post__text .eb-top h3 { margin: 0; }

/* Pie: etiquetas y autor (alineados con la columna de texto) */
.ebc-post__foot { display: grid; grid-template-columns: minmax(0, var(--post-toc)) minmax(0, var(--post-measure)); column-gap: var(--post-gap); row-gap: 40px; padding-bottom: 96px; }
.ebc-post__foot > * { grid-column: 2; }
.ebc-post--no-toc .ebc-post__foot > * { grid-column: 1; }
.ebc-post--elementor .ebc-post__foot { padding-top: 64px; }
.ebc-post__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ebc-post__tags .ebc-chip { text-decoration: none; }
.ebc-post__bio { display: flex; gap: 24px; align-items: flex-start; padding: 28px 0 0; border-top: var(--border-rule) solid var(--ink); }
.ebc-post__bio-avatar { flex: 0 0 auto; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--tint-sage); }
.ebc-post__bio-body { display: flex; flex-direction: column; gap: 6px; }
.ebc-post__bio-kicker { margin: 0; font: 500 13px/1 var(--font-mono); color: var(--ink-subtle); }
.ebc-post__bio-name { margin: 0; font: 600 var(--fs-heading-s)/1.2 var(--font-display); letter-spacing: -0.01em; color: var(--ink); }
.ebc-post__bio-text { margin: 0; max-width: 60ch; font-size: var(--fs-small); line-height: 1.6; color: var(--ink-muted); }
.ebc-post__bio-link { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Relacionadas */
.ebc-post__related { padding-top: 0; padding-bottom: 96px; }
body .ebc-post__related-title { margin: 0 0 32px; padding-top: 32px; border-top: var(--border-rule) solid var(--ink); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-heading-l); line-height: 1.05; letter-spacing: -0.03em; color: var(--ink); }
.ebc-post__related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.ebc-post__card { display: flex; flex-direction: column; gap: 8px; color: var(--ink); text-decoration: none; }
.ebc-post__card-media { aspect-ratio: 16 / 10; margin: 0 0 10px; background: var(--tint-mist); }
.ebc-post__card:nth-child(2) .ebc-post__card-media { background: var(--tint-clay); }
.ebc-post__card:nth-child(3) .ebc-post__card-media { background: var(--tint-sage); }
.ebc-post__card-media img { transition: transform var(--duration-slow) var(--ease-out); }
.ebc-post__card:hover .ebc-post__card-media img { transform: scale(1.04); }
body .ebc-post__card-title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
.ebc-post__card:hover .ebc-post__card-title { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* Comentarios (si están abiertos) */
.ebc-post__comments { padding-bottom: 96px; max-width: calc(var(--post-measure) + 2 * var(--gutter)); }
.ebc-post__comments h2, .ebc-post__comments h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }

@media (max-width: 900px) {
  .ebc-post__body, .ebc-post__foot { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ebc-post__foot > * { grid-column: 1; }
  .ebc-post__toc-wrap { position: static; max-height: none; background: var(--surface); border: var(--border-hairline) solid var(--line); padding: 16px 20px; }
  .ebc-post__toc-wrap .ebc-legal__toc-box > summary { margin: 0; display: flex; justify-content: space-between; }
  .ebc-post__toc-wrap .ebc-legal__toc-box > summary::after { content: "+"; font: 500 18px/1 var(--font-sans); letter-spacing: 0; }
  .ebc-post__toc-wrap .ebc-legal__toc-box[open] > summary { margin-bottom: 12px; }
  .ebc-post__toc-wrap .ebc-legal__toc-box[open] > summary::after { content: "\2212"; }
  .ebc-post__cover { margin-bottom: 40px; }
  .ebc-post__cover-media { aspect-ratio: 4 / 3; }
  .ebc-post__related-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ebc-post__card { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-content: start; gap: 4px 16px; padding: 20px 0; border-bottom: var(--border-hairline) solid var(--line); }
  .ebc-post__card-media { grid-row: 1 / span 3; aspect-ratio: 4 / 3; margin: 0; }
  .ebc-post__card > :not(.ebc-post__card-media) { grid-column: 2; }
  body .ebc-post__card-title { font-size: 18px; }
}
@media (max-width: 760px) {
  .ebc-post__head { padding-top: 32px; }
  .ebc-post__text { font-size: 17px; }
  .ebc-post__text h2 { margin-top: 48px; }
  .ebc-post__text .alignleft, .ebc-post__text .alignright { float: none; margin: 32px 0; max-width: 100%; }
  .ebc-post__bio { flex-direction: column; gap: 16px; }
}

/* Caja de producto y calculadora a la medida de la columna de texto */
.ebc-post__text .eb-producto:not(.eb-producto--compacto) { gap: 28px; }
.ebc-post__text .eb-producto:not(.eb-producto--compacto) .eb-producto__media { flex: 0 0 240px; max-width: 240px; min-height: 240px; padding: 16px; align-self: flex-start; }
.ebc-post__text .eb-producto:not(.eb-producto--compacto) .eb-producto__body { flex: 1 1 300px; }
.ebc-post__text .ebc-calc__inner { padding: 40px 36px; gap: 40px; }
.ebc-post__text .ebc-calc__inner > * { flex-basis: 100% !important; }
body .ebc-post__text .ebc-calc .ebc-calc__title { font-size: clamp(28px, 3vw, 38px); }
@media (max-width: 760px) {
  .ebc-post__text .eb-producto:not(.eb-producto--compacto) .eb-producto__media { flex-basis: 100%; max-width: none; }
  .ebc-post__text .ebc-calc { margin-inline: calc(-1 * var(--gutter)); }
  .ebc-post__text .ebc-calc__inner { padding: 40px var(--gutter); }
}

/* ---------- Guía de compra (template-guia.php + inc/guia.php) ----------
   Artículo + "Si tienes prisa" + "Cómo lo hemos elegido" + índice con productos + tabla final + barra móvil. */
.ebc-post__kicker { margin: 0; font: 500 13px/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ember); }
.ebc-post--guia .ebc-post__title { max-width: 20ch; font-size: clamp(38px, 4.6vw, 64px); }
.ebc-post--guia .ebc-post__head { padding-top: 40px; padding-bottom: 36px; gap: 16px; }

/* Si tienes prisa */
.ebc-guide-picks { margin-bottom: 0; }
.ebc-guide-picks__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; padding-top: 20px; border-top: var(--border-rule) solid var(--ink); }
body .ebc-guide-picks__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-heading-m); line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
.ebc-guide-picks__note { margin: 0; font-size: var(--fs-small); color: var(--ink-muted); }
.ebc-guide-picks__grid { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 0; margin-top: 18px; border: var(--border-hairline) solid var(--line-strong); background: var(--surface); }
.ebc-guide-pick { display: flex; flex-direction: column; gap: 10px; padding: 24px; min-width: 0; }
.ebc-guide-pick + .ebc-guide-pick { border-left: var(--border-hairline) solid var(--line-strong); }
.ebc-guide-pick.is-first { background: var(--white); }
.ebc-guide-pick__label { display: flex; align-items: baseline; gap: 10px; margin: 0; font: 600 15px/1.2 var(--font-sans); color: var(--ink); }
.ebc-guide-pick__label span { font: 500 13px/1 var(--font-mono); color: var(--ember); }
.ebc-guide-pick__media { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; min-height: 0; overflow: hidden; padding: 12px; background: var(--white); box-sizing: border-box; }
.ebc-guide-pick.is-first .ebc-guide-pick__media { border: var(--border-hairline) solid var(--line); }
.ebc-guide-pick__media img { display: block; width: 100% !important; height: 100% !important; min-height: 0; max-width: 100%; object-fit: contain !important; }
body .ebc-guide-pick__name { margin: 4px 0 0; font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
.ebc-guide-pick__name a { color: inherit; text-decoration: none; }
.ebc-guide-pick__name a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.ebc-guide-pick__text { margin: 0; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-muted); }
.ebc-guide-pick__cta { margin-top: auto; padding-top: 6px; }
.ebc-guide-pick__cta .eb-boton { width: 100%; justify-content: center; box-sizing: border-box; }

/* Cómo lo hemos elegido */
.ebc-guide-how { margin-top: 16px; margin-bottom: 64px; }
.ebc-guide-how__inner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 28px; padding: 16px 0; border-bottom: var(--border-hairline) solid var(--line-strong); font-size: var(--fs-small); color: var(--ink-muted); }
.ebc-guide-how__inner p { margin: 0; }
.ebc-guide-how__title { font-weight: 600; color: var(--ink); }
.ebc-guide-how__stat strong { font-family: var(--font-mono); font-weight: 500; color: var(--ink); }
.ebc-guide-how__link { margin-left: auto; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Índice: productos como subapartado */
.ebc-legal__toc a.is-sub { padding-left: 28px; font-size: 14px; }
.ebc-legal__toc a.is-sub::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 8px 2px -14px; background: var(--line-strong); vertical-align: middle; }
.ebc-legal__toc a.is-sub.is-active::before { background: var(--ember); }
.ebc-post__text .eb-producto { scroll-margin-top: 96px; }

/* Tabla final */
.ebc-post__text .ebc-guide-table { margin: 56px 0 0; }
.ebc-post__text .ebc-guide-table .ebc-compare { margin-top: 0; }
.ebc-post__text .ebc-guide-table table { min-width: 560px; }
.ebc-guide-table td:first-child a { color: var(--ink); text-decoration: none; }
.ebc-guide-table td:first-child a:hover { text-decoration: underline; }
.ebc-guide-table__label { display: block; margin-bottom: 4px; font: 500 12px/1.2 var(--font-mono); color: var(--ember); }
.ebc-guide-table__cta { text-align: right; white-space: nowrap; }
body .ebc-guide-table .eb-boton { min-height: 40px; padding: 0 16px; font-size: 14px; }
.ebc-post__text .ebc-guide-table td { vertical-align: middle; }

/* Barra fija del móvil */
.ebc-guide-bar { display: none; }
@media (max-width: 900px) {
  .ebc-guide-bar {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90;
    display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 8px;
    background: var(--night); color: var(--on-night); box-shadow: var(--shadow-pop);
    transform: translateY(calc(100% + 24px)); opacity: 0; pointer-events: none;
    transition: transform var(--duration-base) var(--ease-out), opacity var(--duration-base) var(--ease-standard);
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }
  .ebc-guide-bar.is-visible { transform: none; opacity: 1; pointer-events: auto; }
  .ebc-guide-bar__media { flex: 0 0 48px; height: 48px; padding: 4px; background: var(--white); box-sizing: border-box; }
  .ebc-guide-bar__media img { display: block; width: 100% !important; height: 100% !important; object-fit: contain !important; }
  .ebc-guide-bar__copy { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .ebc-guide-bar__label { font: 500 11px/1 var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--on-night-muted); }
  .ebc-guide-bar__name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 600 14px/1.3 var(--font-sans); color: var(--on-night); }
  body .ebc-guide-bar__btn { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--radius-pill); background: var(--ember); color: var(--on-ember); font: 600 14px/1 var(--font-sans); text-decoration: none; }
  .ebc-post--guia .ebc-blog__cta { padding-bottom: 72px; }

  .ebc-guide-picks__grid { grid-template-columns: minmax(0, 1fr); }
  .ebc-guide-pick + .ebc-guide-pick { border-left: 0; border-top: var(--border-hairline) solid var(--line-strong); }
  .ebc-guide-pick { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 6px 16px; padding: 20px; }
  .ebc-guide-pick__label { grid-column: 1 / -1; }
  .ebc-guide-pick__media { grid-row: span 3; aspect-ratio: 1; padding: 8px; align-self: start; }
  .ebc-guide-pick__name, .ebc-guide-pick__text, .ebc-guide-pick__cta { grid-column: 2; }
  body .ebc-guide-pick__name { font-size: 18px; margin: 0; }
  .ebc-guide-pick__cta .eb-boton { width: auto; }
  .ebc-guide-how__link { margin-left: 0; }
  .ebc-guide-how { margin-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) { .ebc-guide-bar { transition: none; } }

/* ---------- Sobre nosotros (ebc-sobre-nosotros.json) ---------- */
.elementor .ebc-about__person.e-con {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px var(--space-16); align-items: end;
  padding: var(--space-8) 0 0; border-top: var(--border-rule) solid var(--ink);
  --padding-top: var(--space-8); --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
}
.ebc-about__person > .elementor-element, .ebc-about__person > .e-con { width: auto; min-width: 0; }
.ebc-about__photo img { display: block; width: 100% !important; height: auto !important; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 0; background: var(--tint-clay); }
.elementor .ebc-about__bio.e-con { flex-direction: column; gap: 14px; padding: 0 0 8px; --gap: 14px; --row-gap: 14px; --padding-top: 0px; --padding-right: 0px; --padding-bottom: 8px; --padding-left: 0px; }
body .ebc-about__kicker .elementor-heading-title { margin: 0; font: 500 13px/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ember); }
body .ebc-about__name .elementor-heading-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-display-l); line-height: 1; letter-spacing: -0.035em; color: var(--ink); }
body .ebc-about__role .elementor-heading-title { margin: 0; font-family: var(--font-sans); font-weight: 500; font-size: var(--fs-body); line-height: 1.4; color: var(--ink-muted); }
.ebc-about__text p { margin: 0 0 14px; max-width: 58ch; font-size: var(--fs-lead); line-height: 1.6; color: var(--ink); }
.ebc-about__text p:last-child { margin-bottom: 0; }
.ebc-about__links p { margin: 0; }
.ebc-about__links a, .ebc-about__money a { font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ebc-about__links a:hover, .ebc-about__money a:hover { color: var(--ember); }
.ebc-best .ebc-about__commit.elementor-element { margin-top: 24px; }
.ebc-best .ebc-about__money.elementor-element { margin: 24px 0 72px; }
.ebc-about__money p { margin: 0 0 16px; max-width: 64ch; font-size: var(--fs-lead); line-height: 1.6; color: var(--ink); }
.ebc-best .ebc-legal__help.e-con { margin-top: 0; }
@media (max-width: 900px) {
  .elementor .ebc-about__person.e-con { grid-template-columns: minmax(0, 1fr); }
  .ebc-about__photo { max-width: 360px; }
}

/* ---------- Cómo analizamos: listas del texto metodológico ---------- */
.ebc-method ol, .ebc-method ul { list-style: none; padding-left: 0 !important; }
.ebc-method li { position: relative; padding-left: 30px; margin-bottom: 12px !important; }
.ebc-method ol { counter-reset: ebc-m; }
.ebc-method ol > li { counter-increment: ebc-m; }
.ebc-method ol > li::before { content: counter(ebc-m, decimal-leading-zero); position: absolute; left: 0; top: 0.3em; font: 500 13px/1.4 var(--font-mono); color: var(--ember); }
.ebc-method ul > li::before { content: ""; position: absolute; left: 4px; top: 0.68em; width: 7px; height: 7px; background: var(--ember); }

/* ---------- Preguntas frecuentes en el texto (details/summary) ----------
   Vale para el bloque Detalles del editor, un bloque HTML con <details> o lo que dejó Elementor
   al pasar a WordPress. Numeradas, con +/− y apertura suave donde el navegador lo permite. */
.ebc-post__text { counter-reset: ebc-faq; }
.ebc-post__text details { counter-increment: ebc-faq; margin: 0; border-top: var(--border-hairline) solid var(--line-strong); interpolate-size: allow-keywords; }
.ebc-post__text details:last-of-type { border-bottom: var(--border-hairline) solid var(--line-strong); }
.ebc-post__text details + :not(details) { margin-top: 40px; }
.ebc-post__text :not(details) + details { margin-top: 24px; }
.ebc-post__text details > summary {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) 36px; align-items: center; gap: 12px;
  padding: 20px 0; list-style: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink);
  transition: color var(--duration-fast) var(--ease-standard);
}
.ebc-post__text details > summary::-webkit-details-marker { display: none; }
.ebc-post__text details > summary::marker { content: ""; }
.ebc-post__text details > summary::before { content: counter(ebc-faq, decimal-leading-zero); align-self: start; padding-top: 5px; font: 500 13px/1.4 var(--font-mono); letter-spacing: 0; color: var(--ember); }
.ebc-post__text details > summary::after {
  content: ""; justify-self: end; width: 36px; height: 36px; border: var(--border-stroke) solid var(--line-strong); border-radius: var(--radius-pill);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat;
  transition: transform var(--duration-base) var(--ease-out), background-color var(--duration-base) var(--ease-standard), border-color var(--duration-base) var(--ease-standard);
}
.ebc-post__text details > summary:hover::after { border-color: var(--ink); }
.ebc-post__text details > summary:focus-visible { outline: 2px solid var(--ember); outline-offset: 4px; }
.ebc-post__text details[open] > summary::after {
  transform: rotate(180deg); border-color: var(--ink); background-color: var(--ink);
  background-image: linear-gradient(var(--paper), var(--paper)), linear-gradient(transparent, transparent);
}
.ebc-post__text details > summary > * { margin: 0; font: inherit; color: inherit; }
.ebc-post__text details > :not(summary) { margin-left: 46px; margin-right: 48px; color: var(--ink-muted); font-size: 17px; line-height: 1.65; }
.ebc-post__text details > :not(summary):last-child { padding-bottom: 24px; margin-bottom: 0; }
.ebc-post__text details > p { margin-top: 0; margin-bottom: 14px; }
.ebc-post__text details ul, .ebc-post__text details ol { margin-bottom: 14px; }
.ebc-post__text details strong { color: var(--ink); }
.ebc-post__text details::details-content { block-size: 0; overflow: hidden; transition: block-size var(--duration-base) var(--ease-out), content-visibility var(--duration-base) allow-discrete; }
.ebc-post__text details[open]::details-content { block-size: auto; }
@media (prefers-reduced-motion: reduce) {
  .ebc-post__text details::details-content { transition: none; }
  .ebc-post__text details > summary::after { transition: none; }
}
@media (max-width: 760px) {
  .ebc-post__text details > summary { grid-template-columns: 28px minmax(0, 1fr) 32px; gap: 10px; font-size: 18px; }
  .ebc-post__text details > summary::after { width: 32px; height: 32px; }
  .ebc-post__text details > :not(summary) { margin-left: 38px; margin-right: 0; font-size: 16px; }
}
