
/* ============================================================
   ELEKTRO3 — interior.css · SOLO PAGINAS INTERIORES
   ------------------------------------------------------------
   Lo cargan SOLO las paginas interiores (head.php con $interior;
   la home NO lo carga). Aqui van los estilos EXCLUSIVOS de las
   interiores. Lo comun/global y lo de la home vive en elektro3.css.
   Media queries: co-localizadas bajo su componente.

   INDICE (Ctrl-F el nombre de la seccion):
   NAV pagina activa · PAGE HERO · INTRO · VALORES/FILOSOFIA ·
   NUESTROS VALORES · TIMELINE · EQUIPO/CULTURA · TESTIMONIOS ·
   UBICACION/MAPA · TECNOLOGIA (construimos / como trabajamos / stack) ·
   MARCAS (destacado / marca propia / distribuidas) ·
   SHOWROOM (salas / video / formulario) · SERVICIOS · NOTICIAS ·
   B2B PLATFORM PAGE · ARTICULO/FICHA · CONTACTO · EMPLEO/CARRERAS ·
   404 · LEGAL · VACANTE · SHOWROOM Tienda Demo
   ============================================================ */

/* ---------- NAV: página activa ---------- */
.nav-links a.is-active {
  color: var(--ink);
  position: relative;
}
.nav-links a.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--orange); border-radius: 2px;
}

/* ---------- PAGE HERO (cabecera baja con foto) ---------- */
.page-hero {
  position: relative;
  min-height: 420px;
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
/* Parallax opt-in: solo en heroes con [data-parallax]. Se agranda la foto para tener
   recorrido y el JS la desplaza con el scroll; el tint y el contenido no se mueven.
   El JS solo actua en puntero fino y sin reduced-motion (en tactil queda estatico). */
.page-hero[data-parallax] .page-hero-bg {
  top: -20%; bottom: auto; height: 140%;
  will-change: transform;
}
/* photo-less dark hero (Tecnología) */
.page-hero.is-tech { background: var(--grad-hero-radial); }
/* hero COMPACTO (noticias): solo eyebrow + titulo, sin parrafo, la menor altura posible */
.page-hero.hero-compact { min-height: 0; align-items: center; }
.hero-compact .page-hero-inner { padding-block: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); }
/* .page-hero.hero-compact para ganar en especificidad a `.page-hero h1 { max-width:16ch }` (que forzaba 2 lineas) */
.page-hero.hero-compact h1 { font-size: clamp(1.625rem, 3vw, 2.5rem); line-height: 1.05; margin: 0; max-width: none; }
.page-hero.is-tech.has-bg .page-hero-grid { opacity: 0.5; }
.page-hero.is-tech .page-hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 75% 30%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 75% 30%, #000 0%, transparent 72%);
}
.page-hero-tint {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(14,17,22,0.35) 0%, rgba(14,17,22,0.55) 55%, rgba(14,17,22,0.92) 100%);
}
.page-hero-inner {
  position: relative; z-index: 2;
  width: 100%;
  padding-block: var(--hero-y);
}
.breadcrumb {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.8125rem; font-weight: 600; color: rgba(255,255,255,0.7);
  margin-bottom: 22px; letter-spacing: 0.01em;
  text-shadow: var(--hero-text-shadow);
}
.breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.breadcrumb a:hover { color: var(--yellow); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: #fff; }
.page-hero h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.5rem, 5.4vw, 4.75rem); letter-spacing: -0.03em; line-height: 0.98;
  color: #fff; margin: 0 0 20px; max-width: 16ch;
  text-shadow: var(--hero-title-shadow);
}
.page-hero h1 em { font-style: normal; color: var(--yellow); }
.page-hero-lead {
  font-size: clamp(1rem, 1.4vw, 1.1875rem); line-height: 1.55; color: rgba(255,255,255,0.82);
  max-width: 62ch; margin: 0;
  text-shadow: var(--hero-text-shadow);
}
.page-hero-lead strong { color: #fff; font-weight: 700; }
.page-hero-chips {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px;
}
.page-hero-chips span {
  display: inline-flex; align-items: baseline; gap: 7px;
  font-size: 0.84375rem; font-weight: 600; color: #fff;
  padding: 9px 15px; border-radius: 999px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(4px);
}
.page-hero-chips strong { font-family: var(--display); font-weight: 800; color: var(--yellow); font-size: 0.9375rem; }

/* Cabecera MINI del dossier: lo mas baja posible para dar protagonismo al visor */
.page-hero.dossier-hero { min-height: 0; }
.dossier-hero .page-hero-inner { padding-block: clamp(1.25rem, 0.9rem + 1.2vw, 2rem); }
.dossier-hero .breadcrumb { margin-bottom: var(--sp-3); }
.dossier-hero-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-5); flex-wrap: wrap;
}
.dossier-hero h1 { font-size: clamp(1.5rem, 1.5rem + 0.9vw, 2.125rem); line-height: 1.05; margin: 0; max-width: none; }
.dossier-hero .page-hero-lead { font-size: 0.875rem; line-height: 1.5; margin: var(--sp-3) 0 0; max-width: 78ch; }
.dossier-hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); flex: 0 0 auto; }
/* Movil: los dos botones no caben en una fila -> apilados (dos lineas) y mas pequenos */
@media (max-width: 560px) {
  .dossier-hero-top { gap: var(--sp-3); }
  .dossier-hero-actions { flex-direction: column; align-items: stretch; gap: 8px; width: 100%; }
  .dossier-hero-actions .btn { width: 100%; justify-content: center; padding: 11px 16px; font-size: 0.8125rem; }
}
/* responsive */
@media (max-width: 720px) { .page-hero-chips { gap: 8px; } }

/* ---------- INTRO / NARRATIVA ---------- */
.intro { background: var(--paper); padding-block: var(--section-y); }
.intro-grid { display: grid; grid-template-columns: minmax(280px, 0.82fr) 1.18fr; gap: var(--gap-2col); align-items: start; }
.intro-aside { position: relative; align-self: stretch; display: flex; flex-direction: column; }
.intro h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.125rem, 3.8vw, 3.25rem); letter-spacing: -0.025em; line-height: 1.05;
  margin: 0; color: var(--heading); max-width: 17ch;
}
.intro-body p {
  font-size: 1.03125rem; line-height: 1.65; color: var(--ink-3); margin: 0 0 18px;
}
.intro-body p:last-child { margin-bottom: 0; }
.intro-body strong { color: var(--ink); font-weight: 700; }
.intro-body .lead { font-size: 1.1875rem; line-height: 1.55; color: var(--ink); font-weight: 500; }
/* responsive */
@media (max-width: 1100px) { .intro-grid { grid-template-columns: 1fr; gap: 32px; } .intro h2 { max-width: none; } }

/* ---------- VALORES / FILOSOFÍA ---------- */
.values { background: var(--paper-2); padding-block: var(--section-y); }
/* Cabecera (izq) + lista de principios (der) en 2 columnas para ganar altura */
.values-cols { display: grid; grid-template-columns: minmax(280px, 0.82fr) 1.18fr; gap: var(--gap-2col); align-items: start; }
.values-cols .sec-head.v1 { max-width: none; }
.values-cols .sec-head.v1 p.sub { font-size: 1.1875rem; line-height: 1.55; max-width: 38ch; }

/* 4 principios como filas numeradas: numero + icono + titulo + texto + separador */
.values-list { list-style: none; margin: 0; padding: 0; }
.value-row {
  display: grid; grid-template-columns: auto auto 1fr;
  align-items: start; gap: 24px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.value-row:first-child { padding-top: 0; }
.value-row:last-child { padding-bottom: 0; border-bottom: 0; }
.vr-num {
  font-family: var(--display); font-weight: 800; font-size: 1.5rem;
  color: var(--muted); line-height: 1; padding-top: 9px;
  font-variant-numeric: tabular-nums;
}
.vr-ic {
  width: 44px; height: 44px; flex: 0 0 auto; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--yellow); color: #161616;
  box-shadow: var(--shadow-neu-yellow);
}
.vr-ic svg { width: 22px; height: 22px; }
.vr-body { padding-top: 4px; }
.vr-body h3 { font-family: var(--display); font-weight: 700; font-size: 1.3125rem; letter-spacing: -0.015em; margin: 0 0 7px; line-height: 1.15; color: var(--heading); }
.vr-body p { font-size: 0.9375rem; line-height: 1.6; color: var(--muted); margin: 0; max-width: 72ch; }

@media (max-width: 900px) {
  .values-cols { grid-template-columns: 1fr; gap: 28px; }
  .values-cols .sec-head.v1 p.sub { max-width: 52ch; }
}
@media (max-width: 700px) {
  .value-row { gap: 12px 16px; }
  .vr-num { padding-top: 8px; font-size: 1.25rem; }
}

/* ---------- NUESTROS VALORES (lista editorial) ---------- */
/* Banda claim full-width: rompe el ritmo entre "Como trabajamos" y "Nuestros valores" */
.claim-band { background: radial-gradient(90% 150% at 50% 50%, #243549 0%, var(--ink) 65%); color: #fff; padding-block: clamp(40px, 4.5vw, 68px); text-align: center; }
.claim-lead {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.125rem, 5vw, 3.875rem); letter-spacing: -0.03em; line-height: 1.05;
  margin: 0 auto; max-width: 18ch; color: #fff; text-wrap: balance;
}
.claim-lead em { font-style: normal; color: var(--yellow); }
.claim-sub {
  font-family: var(--body); font-size: clamp(0.9375rem, 1.6vw, 1.1875rem);
  color: rgba(255,255,255,0.66); margin: 18px auto 0; max-width: 44ch; line-height: 1.5;
}

.vals { background: var(--paper); padding-block: var(--section-y); }
.vals-grid {
  display: grid; grid-template-columns: minmax(280px, 0.82fr) 1.18fr;
  gap: var(--gap-2col); align-items: stretch;
}

/* Columna izquierda: bloque negro + foto que rellena hasta igualar la lista */
.vals-aside { display: flex; flex-direction: column; gap: 20px; }
.vals-card {
  background: var(--ink); color: #fff;
  border-radius: var(--r-lg); padding: 40px 36px;
}
.vals-card .e3-eyebrow { margin-bottom: 18px; }
.vals-card h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.75rem, 2.6vw, 2.375rem); letter-spacing: -0.025em;
  line-height: 1.05; margin: 0 0 14px; color: #fff;
}
.vals-card p { font-size: 0.9375rem; line-height: 1.6; color: rgba(255,255,255,0.72); margin: 0; }
.vals-photo {
  position: relative; margin: 6px 0 0; flex: 1 1 auto; min-height: 220px;
  transform: rotate(-2deg);
}
.vals-photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-lg); }
/* Marco amarillo tipo pincelada (irregular, no uniforme) */
.vals-frame { position: absolute; inset: -7px; width: calc(100% + 14px); height: calc(100% + 14px); overflow: visible; pointer-events: none; }

/* Columna derecha: lista de valores sin numeros */
.vals-list { list-style: none; margin: 0; padding: 0; }
.val-row {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.val-row:first-child { padding-top: 0; }
.val-row:last-child { padding-bottom: 0; border-bottom: 0; }
.val-ico {
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--yellow); color: #161616;
  box-shadow: var(--shadow-neu-yellow);
}
.val-ico svg { width: 21px; height: 21px; display: block; }
.val-body h3 {
  font-family: var(--display); font-weight: 700; font-size: 1.1875rem;
  letter-spacing: -0.015em; margin: 0 0 6px; line-height: 1.15; color: var(--heading);
}
.val-body p { font-size: 0.90625rem; line-height: 1.6; color: var(--muted); margin: 0; }

@media (max-width: 900px) {
  .vals-grid { grid-template-columns: 1fr; gap: 32px; align-items: start; }
  /* la foto manda su propia altura (height:auto); antes min-height la dejaba mas baja que el contenedor y el marco amarillo sobresalia */
  .vals-photo { min-height: 0; flex: 0 0 auto; }
  .vals-photo img { height: auto; }
}

/* ---------- TIMELINE / HITOS ---------- */
.timeline { padding-block: var(--section-y); }
/* Cabecera centrada (case con el timeline centrado) */
.tl-head.sec-head.v1 { align-items: center; text-align: center; max-width: none; }
.tl-head .e3-eyebrow { width: auto; justify-content: center; }
.tl-head.sec-head.v1 h2 { max-width: none; }
.tl-head.sec-head.v1 p.sub { max-width: none; margin-inline: auto; }

/* Timeline vertical: linea central (se funde arriba/abajo) y hitos en glass cards */
.tl-track { position: relative; margin-top: 56px; }
.tl-track::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; transform: translateX(-50%);
  background: linear-gradient(180deg, transparent 0%, rgba(20,17,16,0.14) 8%, rgba(20,17,16,0.14) 86%, transparent 100%);
}
.tl-item { position: relative; width: 50%; padding-bottom: 30px; box-sizing: border-box; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item:nth-child(odd)  { left: 0;   padding-right: 40px; text-align: right; }
.tl-item:nth-child(even) { left: 50%; padding-left: 40px;  text-align: left; }
/* punto sobre la linea */
.tl-item::before {
  content: ""; position: absolute; top: 24px; z-index: 2;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--yellow); box-shadow: 0 0 0 4px rgba(255,255,255,0.6), 0 2px 7px rgba(20,17,16,0.18);
}
.tl-item:nth-child(odd)::before  { right: 0; transform: translateX(50%); }
.tl-item:nth-child(even)::before { left: 0; transform: translateX(-50%); }
.tl-item.is-now::before { background: var(--orange); }
/* conector linea -> card */
.tl-item::after { content: ""; position: absolute; top: 31px; height: 2px; width: 40px; background: rgba(20,17,16,0.12); z-index: 0; }
.tl-item:nth-child(odd)::after  { right: 0; }
.tl-item:nth-child(even)::after { left: 0; }
/* glass card */
.tl-card {
  display: inline-block; text-align: left; max-width: 330px;
  padding: 16px 18px 17px; border-radius: 16px;
  background: rgba(255,255,255,0.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 16px 36px -24px rgba(20,17,16,0.45);
}
.tl-year { font-family: var(--display); font-weight: 800; font-size: 1.75rem; color: var(--ink); letter-spacing: -0.02em; line-height: 1; }
.tl-item.is-now .tl-year { color: var(--orange); }
.tl-title { font-family: var(--display); font-weight: 700; font-size: 1rem; margin: 9px 0 5px; letter-spacing: -0.01em; color: var(--heading); }
.tl-desc { font-size: 0.84375rem; line-height: 1.5; color: var(--muted); margin: 0; }

@media (max-width: 700px) {
  .tl-track::before { left: 7px; }
  .tl-item,
  .tl-item:nth-child(odd),
  .tl-item:nth-child(even) {
    width: 100%; left: 0; text-align: left;
    padding: 0 0 22px 30px;
  }
  .tl-item:last-child { padding-bottom: 0; }
  .tl-item:nth-child(odd)::before,
  .tl-item:nth-child(even)::before { left: 7px; right: auto; transform: translateX(-50%); }
  .tl-item::after { display: none; }
  .tl-card { max-width: none; }
}

/* ---------- EQUIPO / CULTURA ---------- */
.team { background: var(--ink); color: #fff; padding-block: var(--section-y); }
/* Cabecera a 2 columnas: titulo (izq) + intro (der) */
.team-head { margin-bottom: 40px; }
.team-head .e3-eyebrow { margin-bottom: 20px; }
.team-head-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.team-head h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.875rem, 3.2vw, 2.75rem); letter-spacing: -0.025em; line-height: 1.06; margin: 0; color: #fff; }
.team-head h2 em { font-style: italic; color: var(--yellow); }
.team .split-lead, .stack .split-lead { color: rgba(255,255,255,0.82); }
.team .split-lead strong, .stack .split-lead strong { color: #fff; }

/* Dos columnas: el equipo (negocio) y tecnologia / I+D */
.team-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 0; }
.team-col { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--r-lg); padding: 32px 30px; }
.team-col-ic {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--yellow); color: #161616;
}
.team-col-ic svg { width: 24px; height: 24px; }
.team-col h3 { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.015em; margin: 0 0 10px; color: #fff; }
.team-col p { font-size: 0.9375rem; line-height: 1.6; color: rgba(255,255,255,0.72); margin: 0; }
.team-col p strong { color: #fff; }

/* CTA de talento compartida */
.team-cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; }
.team-cta p { font-size: 1rem; line-height: 1.5; color: rgba(255,255,255,0.82); margin: 0; max-width: 46ch; }
.team-cta p strong { color: var(--yellow); font-weight: 700; }
.team-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
/* responsive */
@media (max-width: 1100px) { .team-head-cols { grid-template-columns: 1fr; gap: 12px; } .team-cols { grid-template-columns: 1fr; gap: 16px; } .team-cta { align-items: flex-start; } }

/* ---------- TESTIMONIOS ---------- */
.testi { background: var(--paper-2); padding-block: var(--section-y); }
/* Cabecera a 2 columnas: titulo (izq) + subtitulo (der) */
.testi-head .e3-eyebrow { margin-bottom: 20px; }
.testi-head-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 48px; align-items: start; }
.testi-head h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.875rem, 3.4vw, 2.875rem); letter-spacing: -0.025em; line-height: 1.05; margin: 0; color: var(--heading); }
/* Parrafo "lead" lateral en cabeceras a 2 columnas (titulo izq + texto der) */
.split-lead {
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.55; margin: 0;
  padding-left: 22px; border-left: 3px solid var(--yellow);
  color: var(--ink-3);
}
.split-lead strong { color: var(--ink); font-weight: 700; }
@media (max-width: 900px) { .testi-head-cols { grid-template-columns: 1fr; gap: 16px; } }
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: var(--gap-cards); margin-top: 48px; }
.testi-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: var(--pad-card); display: flex; flex-direction: column;
  box-shadow: 0 14px 30px -24px rgba(14,17,22,0.22);
}
.testi-text { font-size: 1rem; line-height: 1.55; color: var(--ink-2); margin: 12px 0 22px; flex: 1; text-wrap: pretty; }
.testi-who { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.testi-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--yellow); display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 1rem; flex: 0 0 auto; }
.testi-name { font-family: var(--display); font-weight: 700; font-size: 0.9375rem; color: var(--ink); }
.testi-role { font-size: 0.8125rem; color: var(--muted); margin-top: 2px; }
/* Nota global de Google (real) sobre la rejilla de resenas */
.testi-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 30px; }
.testi-rating .tr-stars { color: var(--yellow); font-size: 1.1875rem; line-height: 1; letter-spacing: 2px; }
.testi-rating .tr-text { font-size: 0.9375rem; line-height: 1; color: var(--ink-3); }
.testi-rating .tr-text strong { font-family: var(--display); font-weight: 800; font-size: 1.1875rem; color: var(--ink); }
.testi-rating + .testi-grid { margin-top: 24px; }
/* Estrellas por tarjeta (resenas reales = 5 estrellas) */
.testi-stars { color: var(--yellow); font-size: 1.125rem; letter-spacing: 2px; line-height: 1; margin-bottom: 6px; }

/* ---------- UBICACIÓN / MAPA ---------- */
.location { background: var(--paper); padding-block: var(--section-y); }
.loc-card { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 24px 50px -34px rgba(14,17,22,0.3); }
.loc-info { padding: 48px 44px; background: var(--paper); display: flex; flex-direction: column; }
.loc-info h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.625rem, 2.8vw, 2.375rem); letter-spacing: -0.02em; line-height: 1.05; margin: 0 0 16px; }
.loc-info p { font-size: 0.96875rem; line-height: 1.6; color: var(--ink-3); margin: 0 0 24px; }
.loc-list { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 16px; }
.loc-list li { display: flex; gap: 14px; align-items: flex-start; }
.loc-list .li-ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; background: var(--paper-2); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.loc-list .li-ic svg { width: 20px; height: 20px; }
.loc-list .li-txt strong { display: block; font-family: var(--display); font-weight: 700; font-size: 0.9375rem; color: var(--ink); margin-bottom: 2px; }
.loc-list .li-txt span { font-size: 0.84375rem; color: var(--muted); line-height: 1.45; }
.loc-map { position: relative; min-height: 380px; background: var(--paper-3); }
.loc-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* responsive */
@media (max-width: 1100px) { .loc-card { grid-template-columns: 1fr; } .loc-map { min-height: 320px; } }

/* ---------- TECNOLOGÍA: QUÉ CONSTRUIMOS ---------- */
.build { background: var(--paper); padding-block: var(--section-y); }
.build-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: var(--gap-cards); margin-top: 48px; }
.build-card { display: flex; flex-direction: column; }
.build-ic {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--ink); color: var(--yellow);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.build-ic svg { width: 24px; height: 24px; }
.build-card .tag-row { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.build-tag { font-size: 0.65625rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: var(--paper-3); color: var(--ink-3); }
.build-tag.live { background: var(--state-live-bg); color: var(--state-live-fg); }
.build-tag.soon { background: var(--state-soon-bg); color: var(--state-soon-fg); }
.build-card h3 { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.015em; margin: 0 0 8px; }
.build-card p { font-size: 0.875rem; line-height: 1.55; color: var(--muted); margin: 0; flex: 1; }
.build-card .go { margin-top: 16px; font-family: var(--display); font-weight: 700; font-size: 0.875rem; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.build-card .go::after { content: "→"; transition: transform .18s ease; }
/* Subgrupos dentro de "Lo que construimos para tu ferreteria" (En tu tienda / Plataformas) */
.build-group + .build-group { margin-top: 48px; }
.build-group-title { font-family: var(--display); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 20px; display: flex; align-items: center; gap: 14px; }
.build-group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.build-group .build-grid { margin-top: 0; }
/* Sub-lista dentro de una build-card (p. ej. Contenido y ficha de producto) */
.build-sublist { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.build-sublist li { font-size: 0.75rem; font-weight: 600; color: var(--ink-3); background: var(--paper-3); border-radius: 999px; padding: 4px 11px; }
/* Card destacada de EIC en la zona fabricante: ocupa 2 columnas, fondo oscuro */
.build-card--eic {
  grid-column: span 2;
  background: var(--ink); border-color: rgba(255,255,255,0.1); color: #fff;
  display: flex; flex-direction: row; align-items: center; gap: 34px;
}
.build-card--eic:hover { transform: none; border-color: rgba(255,255,255,0.1); box-shadow: none; }
.build-card--eic .eic-logo { flex: 0 0 auto; width: auto; height: 150px; display: block; }
.build-card--eic .eic-body { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.eic-pillars { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 28px; }
.eic-pillars li { font-family: var(--display); font-weight: 800; font-size: clamp(1.375rem, 2.2vw, 1.875rem); letter-spacing: -0.02em; line-height: 1.05; }
.eic-pillars li:nth-child(1) { color: var(--yellow); }
.eic-pillars li:nth-child(2) { color: #c9cdd2; }
.eic-pillars li:nth-child(3) { color: #fff; }
.eic-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) {
  /* movil: 1 columna y el EIC deja de ocupar span 2 (forzaba 2 columnas -> scroll lateral) */
  .build-grid { grid-template-columns: 1fr; }
  /* contenido del EIC centrado en movil */
  .build-card--eic { grid-column: auto; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
  .build-card--eic .eic-logo { height: 120px; max-width: 100%; }
  .build-card--eic .eic-body { align-items: center; }
  .eic-pillars { justify-content: center; }
  .eic-actions { justify-content: center; }
}

/* ---------- TECNOLOGÍA: CÓMO TRABAJAMOS (process) ---------- */
.howwork { background: var(--paper); padding-block: var(--section-y); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: var(--gap-cards); margin-top: 48px; }
/* .step-card: shell unificado en .card */
/* Tarjetas de proceso (Como trabajamos): icono + titulo + texto, sin numeros */
.flow-ic { width: 48px; height: 48px; border-radius: 12px; background: var(--ink); color: var(--yellow); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.flow-ic svg { width: 24px; height: 24px; }
.flow-card h3 { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.015em; margin: 0 0 8px; }
.flow-card p { font-size: 0.90625rem; line-height: 1.55; color: var(--muted); margin: 0; }

/* ---------- TECNOLOGÍA: STACK ---------- */
.stack { background: var(--ink); color: #fff; padding-block: var(--section-y); }
.stack .lead-head h2 { color: #fff; }
/* Muro de logos del stack tecnologico, sobre tarjetas claras para que cada marca destaque */
.stack-logos {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px;
}
.stack-logo {
  background: #fff; border-radius: 12px; min-height: 104px;
  display: flex; align-items: center; justify-content: center; padding: 18px 22px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.stack-logo img { max-width: 78%; max-height: 52px; width: auto; height: auto; object-fit: contain; display: block; }
.stack-logo:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -20px rgba(0,0,0,0.6); }
@media (max-width: 520px) { .stack-logos { grid-template-columns: repeat(2, 1fr); } }

/* ---------- MARCAS: bloque destacado por marca ---------- */
.brands-lead { background: var(--paper); padding: 24px 0 0; }
/* Cabecera unificada: eyebrow arriba + titulo (izq) + lead (der). El lead alinea con el titulo. */
.lead-head { margin-bottom: 36px; }
.lead-head .e3-eyebrow { margin-bottom: 18px; }
.lead-head-cols { display: grid; grid-template-columns: minmax(280px, 0.82fr) 1.18fr; gap: 14px 56px; align-items: start; }
.lead-head h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.875rem, 3.4vw, 2.875rem); letter-spacing: -0.025em; line-height: 1.05; margin: 0; color: var(--heading); max-width: 18ch; }
.bl-index { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; padding-bottom: 8px; }
.bl-row {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 18px; align-items: center;
  padding: 20px 4px; border-top: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
  transition: padding .18s ease;
}
.bl-row:nth-child(1), .bl-row:nth-child(2) { border-top: 0; }
.bl-row:hover { padding-left: 12px; }
.bl-n { font-family: var(--display); font-weight: 800; font-size: 0.9375rem; color: var(--orange); font-variant-numeric: tabular-nums; }
.bl-nm { font-family: var(--display); font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.015em; }
.bl-cat { font-size: 0.8125rem; color: var(--muted); text-align: right; }
.bl-ar { width: 30px; height: 30px; border-radius: 50%; background: var(--paper-3); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; transition: background .18s ease, transform .18s ease; }
.bl-row:hover .bl-ar { background: var(--yellow); transform: translateX(3px); }
@media (max-width: 560px) {
  /* nombre y categoria apilados (antes competian en una fila y se partian) */
  .bl-row { grid-template-columns: auto 1fr auto; gap: 4px 14px; padding: 18px 4px; }
  .bl-n { grid-row: span 2; align-self: start; padding-top: 2px; }
  .bl-nm { grid-column: 2; align-self: end; }
  .bl-cat { grid-column: 2; grid-row: 2; text-align: left; }
  .bl-ar { grid-column: 3; grid-row: span 2; align-self: center; }
}

.brand-feature { padding-block: var(--section-y-sm); border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.brand-feature:first-of-type { margin-top: 8px; }
.brand-feature:last-of-type { border-bottom: 0; }
.bf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-flow); align-items: center; }
.brand-feature:nth-of-type(odd) .bf-media { order: 2; }
.bf-media {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  aspect-ratio: 4/3; width: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 48px; box-shadow: 0 24px 50px -34px rgba(14,17,22,0.3);
}
.bf-media img { max-width: 76%; max-height: 60%; object-fit: contain; }
.bf-index { font-family: var(--display); font-weight: 800; font-size: 0.875rem; color: var(--muted); letter-spacing: 0.08em; }
.brand-feature h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.875rem, 3.4vw, 2.875rem); letter-spacing: -0.025em; line-height: 1; margin: 12px 0 6px; }
.bf-cat { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange); margin-bottom: 18px; }
.brand-feature p { font-size: 1rem; line-height: 1.6; color: var(--ink-3); margin: 0 0 22px; max-width: 52ch; }
.bf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.bf-chips span { font-size: 0.78125rem; font-weight: 600; color: var(--ink-2); padding: 7px 13px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); }
.bf-meta { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.bf-stat strong { display: block; font-family: var(--display); font-weight: 800; font-size: 1.625rem; color: var(--ink); letter-spacing: -0.02em; line-height: 1; }
.bf-stat span { font-size: 0.78125rem; color: var(--muted); margin-top: 4px; }

/* ---------- MARCAS: por qué marca propia ---------- */
.whyown { background: var(--paper-2); padding-block: var(--section-y); }
.whyown-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--gap-cards); margin-top: 48px; }
/* .whyown-card: shell unificado en .card */
.whyown-ic { width: 46px; height: 46px; border-radius: 11px; background: var(--yellow); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.whyown-ic svg { width: 22px; height: 22px; }
.whyown-card h3 { font-family: var(--display); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; margin: 0 0 8px; }
.whyown-card p { font-size: 0.875rem; line-height: 1.5; color: var(--muted); margin: 0; }

/* ---------- MARCAS: distribuidas ---------- */
.dist { background: var(--paper); padding-block: var(--section-y); }

@media (max-width: 1100px) {
  .lead-head { margin-bottom: 28px; }
  .lead-head-cols { grid-template-columns: 1fr; gap: 12px; }
  .bl-index { grid-template-columns: 1fr; gap: 0; }
  .bl-row:nth-child(2) { border-top: 1px solid var(--line); }
  .bf-grid { grid-template-columns: 1fr; gap: 28px; }
  .brand-feature:nth-of-type(odd) .bf-media { order: 0; }
  .bf-media { aspect-ratio: 16/7; padding: 36px; }
}

/* ---------- SHOWROOM: salas especializadas ---------- */
.rooms { background: var(--paper); padding-block: var(--section-y); }
.rooms-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 240px; gap: 14px; margin-top: 48px; }
.room { position: relative; border-radius: 18px; overflow: hidden; display: flex; align-items: flex-end; padding: 26px; text-decoration: none; }
.room img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.room::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,17,22,0) 35%, rgba(14,17,22,0.82) 100%); }
.room:hover img { transform: scale(1.05); }
.room-label { position: relative; z-index: 1; color: #fff; }
.room-label .k { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--yellow); }
.room-label h3 { font-family: var(--display); font-weight: 800; font-size: 1.625rem; letter-spacing: -0.02em; line-height: 1; margin: 6px 0 0; }
.room.big { grid-column: span 6; grid-row: span 2; }
.room.tall { grid-column: span 6; grid-row: span 2; }
.room.half { grid-column: span 6; }

/* ---------- SHOWROOM: vídeo ---------- */
.sr-video { background: var(--ink); padding-block: var(--section-y); }
.sr-video .eyebrow { color: var(--yellow); }
.sr-video .e3-eyebrow { margin-bottom: 28px; }
.sr-video h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.75rem, 3.2vw, 2.75rem); color: #fff; letter-spacing: -0.025em; margin: 12px 0 36px; max-width: 20ch; }
.video-frame { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 16/9; border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 40px 80px -40px rgba(0,0,0,0.6); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- SHOWROOM: formulario de visita ---------- */
.visit { background: var(--paper-2); padding-block: var(--section-y); }
.visit-card { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 0; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(14,17,22,0.4); }
.visit-aside { background: var(--grad-ink); color: #fff; padding: 48px 44px; display: flex; flex-direction: column; }
.visit-aside .eyebrow { color: var(--yellow); }
.visit-aside h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.025em; line-height: 1.04; margin: 12px 0 16px; }
.visit-aside p { font-size: 0.9375rem; line-height: 1.6; color: rgba(255,255,255,0.75); margin: 0 0 28px; }
.visit-aside .v-list { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-direction: column; gap: 16px; }
.visit-aside .v-list li { display: flex; gap: 13px; align-items: flex-start; font-size: 0.875rem; color: rgba(255,255,255,0.85); line-height: 1.45; }
.visit-aside .v-list svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--yellow); margin-top: 1px; }
.visit-form { background: var(--paper); padding: 48px 44px; }
.vf-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; margin-bottom: 16px; }
.vf-row.cols-1 { grid-template-columns: minmax(0, 1fr); }
.vf-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.vf-field.full { grid-column: 1 / -1; }
.vf-field label { font-size: 0.8125rem; font-weight: 700; color: var(--ink); }
.vf-field input, .vf-field select, .vf-field textarea {
  font-family: var(--body); font-size: 0.9375rem; color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%; min-width: 0; box-sizing: border-box;
}
.vf-field input:focus, .vf-field select:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,106,26,0.15); }
.vf-check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: 0.78125rem; color: var(--muted); line-height: 1.45; }
.vf-check input { margin-top: 2px; flex: 0 0 auto; width: 16px; height: 16px; accent-color: var(--orange); }
.visit-form .btn { width: 100%; justify-content: center; margin-top: 8px; padding: 16px; }

@media (max-width: 1100px) {
  .rooms-grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 200px; }
  .room.big, .room.tall { grid-column: span 6; grid-row: span 1; }
  .room.wide, .room.half { grid-column: span 3; }
  .visit-card { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .room.wide, .room.half { grid-column: span 6; }
  .vf-row { grid-template-columns: minmax(0, 1fr); }
  /* formulario de visita: padding lateral menor en movil (48/44 dejaba el contenido muy estrecho) */
  .visit-aside { padding: 28px 20px; }
  .visit-form { padding: 28px 20px; }
  /* collage Tienda Demo: 1 columna (las 2 inferiores quedaban muy apaisadas y cortadas) */
  .demo-collage { aspect-ratio: auto; grid-template-columns: 1fr; grid-template-rows: none; gap: 10px; }
  .demo-collage img { aspect-ratio: 16 / 10; height: auto; }
}

/* ---------- SERVICIOS: grupos temáticos ---------- */
.svc-section { padding-block: var(--section-y); }
.svc-group { display: grid; grid-template-columns: 0.8fr 2.2fr; gap: var(--gap-flow); align-items: start; }
.svc-group + .svc-group { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--line); }
.svc-group-head { position: sticky; top: var(--sticky-top); }
/* eyebrow naranja .k: cuerpo identico en .svc-group-head, .b2bp-feat-copy y .b2bp-pwa (fusionado) */
.svc-group-head .k,
.b2bp-feat-copy .k,
.b2bp-pwa .k { display: inline-flex; align-items: center; gap: 10px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.svc-group-head .k .n { font-family: var(--display); font-weight: 800; color: var(--ink); font-size: 0.875rem; background: var(--paper-3); border-radius: 6px; padding: 2px 8px; }
.svc-group-head h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.02em; line-height: 1.08; margin: 0 0 12px; }
.svc-group-head p { font-size: 0.90625rem; line-height: 1.55; color: var(--muted); margin: 0; max-width: 30ch; }
.svc-group-head .svc-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-family: var(--body); font-weight: 700; font-size: 0.875rem; color: var(--orange); text-decoration: none; }
/* el subrayado en hover lo aporta ahora el ::after animado (Tier1-04); sin subrayado nativo */
.svc-group-head .svc-link:hover { text-decoration: none; }
.svc-group-head .svc-links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 14px; }
.svc-group-head .svc-links .svc-link { margin-top: 0; }
.svc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.svc-item { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-card); }
.svc-item .ic { width: 44px; height: 44px; border-radius: 11px; background: var(--ink); color: var(--yellow); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.svc-item.key .ic { background: var(--yellow); color: var(--ink); }
.svc-item .ic svg { width: 22px; height: 22px; }
.svc-item h3 { font-family: var(--display); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; margin: 0 0 7px; }
.svc-item p { font-size: 0.84375rem; line-height: 1.5; color: var(--muted); margin: 0; }
.svc-item .pill { display: inline-block; margin-top: 12px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--state-live-fg); background: var(--state-live-bg); padding: 4px 10px; border-radius: 999px; }

/* SERVICIOS: B2B highlight band */
.svc-b2b { background: var(--ink); color: #fff; padding-block: var(--section-y); }
.svc-b2b-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--gap-flow); align-items: center; }
.svc-b2b .eyebrow { color: var(--yellow); }
.svc-b2b h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.75rem, 3.2vw, 2.75rem); letter-spacing: -0.025em; line-height: 1.05; margin: 12px 0 16px; }
.svc-b2b h2 em { font-style: italic; color: var(--yellow); }
.svc-b2b p { font-size: 1rem; line-height: 1.6; color: rgba(255,255,255,0.74); margin: 0 0 26px; }
.svc-b2b p strong { color: #fff; }
.svc-b2b-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.svc-b2b-feat { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 20px; }
.svc-b2b-feat strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.svc-b2b-feat span { font-size: 0.8125rem; color: rgba(255,255,255,0.62); line-height: 1.45; }

@media (max-width: 900px) {
  .svc-group { grid-template-columns: 1fr; gap: 24px; }
  .svc-group-head { position: static; }
  .svc-b2b-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .svc-cards { grid-template-columns: 1fr; }
  .svc-b2b-feats { grid-template-columns: 1fr; }
}

/* ---------- NOTICIAS: destacado + filtros + newsletter ---------- */
/* el bento va en banda de fondo alternativo (paper-2, patron de la web); padding simetrico compacto (sp-6) */
.press { background: var(--paper-2); padding-block: var(--sp-6) var(--sp-6); }

/* Bento de portada de noticias (pagina 1): 1 feature grande (izquierda, 2 filas) + 2 apiladas (derecha),
   foto de fondo + titular ENCIMA (blanco contrastado) + categoria + fecha. Sin entradilla. */
/* util: oculto visualmente pero accesible (para conservar el H1 aunque no haya hero con texto) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* bento autonomo: feature grande (1.7fr) + columna de 2 apiladas (1fr) */
.news-bento { display: grid; grid-template-columns: 1.7fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.feat { position: relative; border-radius: 22px; overflow: hidden; text-decoration: none; color: #fff; display: flex; align-items: flex-end; transition: transform .2s ease, box-shadow .2s ease; box-shadow: 0 30px 60px -42px rgba(14,17,22,0.4); }
.feat:hover { transform: translateY(-3px); box-shadow: 0 40px 72px -40px rgba(14,17,22,0.5); }
.feat--big { grid-row: 1 / 3; min-height: 440px; }
.feat--sm { min-height: 212px; }
.feat .feat-media { position: absolute; inset: 0; z-index: 0; background: linear-gradient(135deg, #1857B8 0%, #0E2E66 100%); }
.feat .feat-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* overlay de abajo a arriba (negro -> transparente) para que el titular sobre la foto se lea siempre */
.feat .feat-tint { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(14,17,22,0.90) 0%, rgba(14,17,22,0.55) 24%, rgba(14,17,22,0.10) 55%, rgba(14,17,22,0) 78%); }
.feat .feat-body { position: relative; z-index: 2; width: 100%; padding: 22px 24px 32px; display: flex; flex-direction: column; gap: 10px; }
.feat--big .feat-body { padding: 32px 34px; }
.feat .feat-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.feat .feat-chip { font-size: 0.625rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink); background: var(--yellow); padding: 4px 10px; border-radius: 999px; }
.feat .feat-date { font-size: 0.71875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255,255,255,0.82); text-shadow: var(--hero-text-shadow); }
.feat .feat-title { font-family: var(--display); font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; margin: 0; text-wrap: balance; text-shadow: var(--hero-title-shadow); display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.feat--big .feat-title { font-size: clamp(1.625rem, 2.8vw, 2.375rem); line-height: 1.15; -webkit-line-clamp: 3; line-clamp: 3; }
.feat--sm .feat-title { font-size: 1.25rem; -webkit-line-clamp: 2; line-clamp: 2; }
@media (max-width: 720px) {
  .news-bento { grid-template-columns: 1fr; }
  .feat--big { grid-row: auto; min-height: 340px; }
}
/* banda de banners (fondo paper): 32 arriba; abajo 0 -> el hueco banners->lista lo da press-layout (32) */
.news-band { background: var(--paper); padding-block: var(--sp-6) 0; }
/* evita el doble padding banners->lista (el top de press-grid) cuando la lista va tras la banda */
.news-band + .press-grid { padding-top: 0; }
/* Sin banda: el bento (paper-2) enlaza directo con la lista; el hueco lo da press-layout (32). */
.press + .press-grid { padding-top: 0; }
.news-banners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .news-banners { grid-template-columns: 1fr; } }
.news-featured { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -42px rgba(14,17,22,0.4); margin-bottom: 40px; }
/* la noticia destacada es un enlace que ocupa toda la card */
a.news-featured { text-decoration: none; color: inherit; transition: transform 0.2s ease, box-shadow 0.2s ease; }
a.news-featured:hover { transform: translateY(-3px); box-shadow: 0 40px 72px -40px rgba(14,17,22,0.5); }
.nf-media { position: relative; min-height: 340px; color: #fff; display: flex; align-items: flex-end; padding: 32px; background: linear-gradient(135deg, #1857B8 0%, #0E2E66 100%); }
.nf-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.nf-media::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(14,17,22,0.05), rgba(14,17,22,0.45)); }
.nf-body { padding: 40px 38px; display: flex; flex-direction: column; justify-content: center; background: var(--paper); }
.nf-badge { align-self: flex-start; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); background: var(--yellow); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.nf-body .meta { font-size: 0.78125rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.nf-body h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.125rem); letter-spacing: -0.02em; line-height: 1.1; margin: 10px 0 14px; }
.nf-body p { font-size: 0.9375rem; line-height: 1.6; color: var(--ink-3); margin: 0 0 22px; }

.news-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 0; }
/* botones de filtro: cuerpo compartido por .news-filter y .jobs-filter (los contenedores difieren solo en margin-bottom) */
.news-filter button,
.jobs-filter button { font-family: var(--body); font-weight: 600; font-size: 0.875rem; color: var(--ink-2); padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; transition: all .15s ease; }
.news-filter button:hover,
.jobs-filter button:hover { border-color: var(--ink); }
.news-filter button.is-active,
.jobs-filter button.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* widget de categorias del sidebar de noticias (estilo WordPress: lista vertical, persistente en listado y ficha) */
/* especificidad .widget.widget-cats para ganar a `.widget { background/padding }` (definido mas abajo) */
.widget.widget-cats { background: var(--paper-3); padding: 16px 18px; }
/* titulo "Categorias": variante minima (D) -> etiqueta pequena en mayusculas, sin barra, poco margen */
.widget-cats .widget-title { font-family: var(--body); font-size: 0.6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 8px; }
.widget-cats .widget-title .bar { display: none; }
.widget-cats .cat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.widget-cats .cat-list a { display: block; padding: 8px 12px; border-radius: 10px; font-size: 0.875rem; font-weight: 600; color: var(--ink-2); text-decoration: none; transition: background .15s ease, color .15s ease; }
.widget-cats .cat-list a:hover { background: var(--paper-2); color: var(--ink); }
.widget-cats .cat-list a.is-active { background: var(--ink); color: #fff; }

.press-grid { background: var(--paper); padding-block: var(--sp-6) 0; }

@media (max-width: 900px) {
  .news-featured { grid-template-columns: 1fr; }
  .nf-media { min-height: 240px; }
}
@media (max-width: 480px) {
  /* CTAs del 404: apilados full-width (antes el 3er boton quedaba huerfano centrado) */
  .nf-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  .nf-actions .btn { width: 100%; justify-content: center; }
}

/* ===== B2B PLATFORM PAGE ===== */
/* screenshot placeholder (para que el usuario pegue capturas) */
.shot {
  position: relative; background: var(--paper-3);
  border: 1px dashed var(--muted-2); border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--muted); text-align: center; padding: 24px; overflow: hidden;
}
.shot::before { content: ""; width: 34px; height: 34px; border-radius: 8px; background: var(--muted-2); opacity: 0.4;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'><rect x='3' y='3' width='18' height='18' rx='2'/><circle cx='8.5' cy='8.5' r='1.5'/><path d='m21 15-5-5L5 21'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'><rect x='3' y='3' width='18' height='18' rx='2'/><circle cx='8.5' cy='8.5' r='1.5'/><path d='m21 15-5-5L5 21'/></svg>") center/contain no-repeat; }
.shot span { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; max-width: 28ch; }
.shot.on-dark { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.25); color: rgba(255,255,255,0.6); }
.shot.on-dark::before { background: rgba(255,255,255,0.5); }

/* browser frame */
.browser { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: 0 40px 80px -44px rgba(14,17,22,0.5); }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.browser-dots { display: flex; gap: 6px; }
.browser-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.browser-dots i:nth-child(1){ background:var(--mac-red); } .browser-dots i:nth-child(2){ background:var(--mac-yellow); } .browser-dots i:nth-child(3){ background:var(--mac-green); }
.browser-url { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 7px; font-size: 0.78125rem; color: var(--muted); padding: 6px 12px; font-family: var(--body); }
.browser-url b { color: var(--ink); font-weight: 700; }
.browser-screen { aspect-ratio: 16/9.4; }
.browser-screen .shot { height: 100%; border: 0; border-radius: 0; }

/* B2B hero carousel (fade) */
.b2b-carousel { position: relative; width: 100%; height: 100%; }
.b2b-carousel img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  opacity: 0; transition: opacity .9s ease;
}
.b2b-carousel img.is-active { opacity: 1; }

/* B2B hero */
.b2bp-hero { background: radial-gradient(circle at 80% 15%, #16365E 0%, var(--ink) 55%); color: #fff; position: relative; overflow: hidden; }
.b2bp-hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: var(--gap-flow); align-items: center; }
.b2bp-hero-copy { padding-bottom: 0; }
.b2bp-hero-shot { position: relative; }
.b2bp-hero .browser { box-shadow: 0 40px 80px -44px rgba(0,0,0,0.55); }
.b2bp-hero .browser-screen { aspect-ratio: 16/10.5; }
.b2bp-hero-ctas { margin-top: 22px; margin-bottom: 0; justify-content: center; }
/* Sello "lo dicen los ferreteros" en una esquina del slider (hermano del .browser,
   que tiene overflow:hidden; por eso va fuera y solapa la esquina superior derecha) */
.b2bp-hero-badge {
  position: absolute; top: -16px; right: -14px; z-index: 5;
  display: inline-flex; align-items: center; gap: 10px;
  max-width: 230px;
  background: var(--yellow); color: var(--ink);
  padding: 10px 14px; border-radius: 14px;
  box-shadow: 0 16px 34px -16px rgba(0,0,0,0.55);
}
.b2bp-hero-badge .bhb-star { width: 26px; height: 26px; flex: 0 0 auto; }
.b2bp-hero-badge .bhb-txt { display: flex; flex-direction: column; line-height: 1.12; }
.b2bp-hero-badge .bhb-txt small {
  font-size: 0.625rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; opacity: 0.72;
}
.b2bp-hero-badge .bhb-txt strong {
  font-family: var(--display); font-weight: 800; font-size: 0.9375rem; letter-spacing: -0.01em;
}
@media (max-width: 560px) {
  /* En movil sale del corner: linea completa bajo la imagen, antes de los botones */
  .b2bp-hero-badge {
    position: static; top: auto; right: auto;
    width: 100%; max-width: none;
    margin: 16px 0 0;
    justify-content: center;
    padding: 12px 16px; border-radius: 12px;
  }
  .b2bp-hero-badge .bhb-star { width: 22px; height: 22px; }
  .b2bp-hero-badge .bhb-txt strong { font-size: 0.875rem; }
}

/* feature rows */
.b2bp-feature { padding-block: var(--section-y-sm); }
.b2bp-feature:nth-child(even) { background: var(--paper-2); }
.b2bp-feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-flow); align-items: center; }
.b2bp-feature:nth-child(even) .b2bp-feat-media { order: 2; }
/* .b2bp-feat-copy .k fusionado con .svc-group-head .k (ver regla compartida arriba) */
.b2bp-feat-copy h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.625rem, 3vw, 2.5rem); letter-spacing: -0.025em; line-height: 1.06; margin: 0 0 16px; }
.b2bp-feat-copy p { font-size: 1rem; line-height: 1.6; color: var(--ink-3); margin: 0 0 22px; max-width: 48ch; }
.b2bp-feat-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.b2bp-feat-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9375rem; color: var(--ink-2); line-height: 1.45; }
.b2bp-feat-list svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--green); margin-top: 1px; }
.b2bp-feat-media .browser-screen { aspect-ratio: 16/10; }

/* navegación: secciones grid */
.b2bp-nav { padding-block: var(--section-y); background: var(--ink); color: #fff; }
.b2bp-nav .eyebrow { color: var(--yellow); }
.b2bp-nav h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.75rem,3.2vw,2.75rem); letter-spacing: -0.025em; margin: 12px 0 8px; color: #fff; }
.b2bp-nav .sub { color: rgba(255,255,255,0.65); font-size: 1rem; margin: 0 0 48px; max-width: 52ch; }
.b2bp-nav-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
/* .b2bp-nav-card: shell unificado en .card + .card--dark */
.b2bp-nav-card:hover { border-color: var(--yellow); transform: translateY(-3px); background: rgba(255,255,255,0.07); }
.b2bp-nav-card .ic { width: 44px; height: 44px; border-radius: 11px; background: rgba(255,204,0,0.14); color: var(--yellow); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.b2bp-nav-card .ic svg { width: 22px; height: 22px; }
.b2bp-nav-card h3 { font-family: var(--display); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; margin: 0 0 6px; }
.b2bp-nav-card p { font-size: 0.8125rem; line-height: 1.5; color: rgba(255,255,255,0.62); margin: 0; }
.b2bp-nav-card .tag { display: inline-block; margin-top: 12px; font-size: 0.625rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); background: var(--yellow); padding: 3px 9px; border-radius: 999px; }

/* PWA móvil */
.b2bp-pwa { padding-block: var(--section-y); background: var(--paper); }
.b2bp-pwa-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--gap-flow); align-items: center; }
/* .b2bp-pwa .k fusionado con .svc-group-head .k (ver regla compartida arriba) */
.b2bp-pwa h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.625rem,3vw,2.5rem); letter-spacing: -0.025em; line-height: 1.06; margin: 0 0 16px; }
.b2bp-pwa h2 em { font-style: italic; color: var(--orange); }
.b2bp-pwa p { font-size: 1rem; line-height: 1.6; color: var(--ink-3); margin: 0 0 24px; max-width: 46ch; }
.b2bp-pwa-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
/* los badges de store son enlaces -> hover de boton */
.b2bp-pwa-badges a.app-badge { text-decoration: none; transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease; }
.b2bp-pwa-badges a.app-badge:hover { transform: translateY(-2px); }
.b2bp-pwa-badges a.app-badge.is-dark:hover { background: var(--ink-2); }
.b2bp-pwa-badges a.app-badge.is-line:hover { border-color: var(--ink); }
.b2bp-phones { display: flex; gap: 18px; justify-content: center; }
.phone { width: 200px; flex: 0 0 auto; border-radius: 30px; border: 8px solid var(--ink); background: var(--ink); box-shadow: 0 30px 60px -30px rgba(14,17,22,0.5); overflow: hidden; }
.phone:nth-child(2) { margin-top: 32px; }
.phone-screen { aspect-ratio: 9/19; border-radius: 22px; overflow: hidden; }
.phone-screen .shot { height: 100%; border: 0; border-radius: 0; }

/* cómo empezar */
.b2bp-start { padding-block: var(--section-y); background: var(--paper-2); }
.b2bp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.b2bp-step { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: var(--pad-card); box-shadow: var(--shadow-card); }
.b2bp-step .n { font-family: var(--display); font-weight: 800; font-size: 1rem; color: #fff; background: var(--orange); width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.b2bp-step h3 { font-family: var(--display); font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.015em; margin: 0 0 8px; }
.b2bp-step p { font-size: 0.875rem; line-height: 1.55; color: var(--muted); margin: 0; }
/* Variante oscura "via rapida" (alta.php): debe ganar al fondo claro de .b2bp-step */
.b2bp-step.fast-card { background: var(--grad-ink); border: 0; }
.alta-fast { margin-top: 16px; }
.alta-fast-ic { width: 56px; height: 56px; border-radius: 14px; background: var(--yellow); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.alta-fast-tag { display: inline-block; font-family: var(--display); font-weight: 800; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--yellow); margin-bottom: 6px; }
/* el parrafo debe ganar a .b2bp-step p { color: var(--muted) } */
.alta-fast p { color: rgba(255,255,255,0.92); }

/* cierre alta.php: cifras sobre foto de la Tienda Demo (el CTA usa el bloque quierounaferreteria) */
.alta-impact .why-img { margin-bottom: 0; }
.alta-stat-n { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1; color: var(--yellow); letter-spacing: -0.02em; }
.alta-stats .why-pillar p { font-size: 0.9375rem; line-height: 1.4; color: rgba(255,255,255,0.9); margin: 8px 0 0; }

@media (max-width: 1100px) {
  .b2bp-hero-grid { grid-template-columns: 1fr; gap: 0; }
  .b2bp-hero-copy { padding-bottom: 40px; }
  .b2bp-feat-grid { grid-template-columns: 1fr; gap: 32px; }
  .b2bp-feature:nth-child(even) .b2bp-feat-media { order: 0; }
  .b2bp-nav-grid { grid-template-columns: repeat(2, 1fr); }
  .b2bp-pwa-grid { grid-template-columns: 1fr; gap: 36px; }
  .b2bp-steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .b2bp-nav-grid { grid-template-columns: 1fr; }
  .phone { width: 150px; }
}

/* ---------- NOTICIAS ALT: layout con columna lateral ---------- */
.press-layout { display: grid; grid-template-columns: 1fr 320px; gap: 30px; align-items: start; padding-block: var(--sp-6) var(--section-y) ; }
/* Listado: TODAS las noticias como cards horizontales (imagen izquierda + cuerpo), una por linea. */
.press-main .news-grid { grid-template-columns: 1fr; gap: 25px; }
@media (min-width: 640px) {
  .press-main .news-grid .news-card { flex-direction: row; min-height: 190px; }
  .press-main .news-grid .news-card { padding: 0px; }
  .press-main .news-grid .news-card .news-thumb img {  border-radius: 14px 0 0 14px; }
  .press-main .news-grid .news-card .news-thumb { flex: 0 0 40%; aspect-ratio: auto; }  
  .press-main .news-grid .news-card .news-body { justify-content: center; }
}
/* Titulo (2 lineas) y extracto (3 lineas) acotados -> misma altura entre tarjetas (evita unas mas grandes que otras) */
.press-main .news-grid .news-body h3,
.press-main .news-grid .news-body p {
  display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
}
.press-main .news-grid .news-body h3 { -webkit-line-clamp: 2; line-clamp: 2; }
.press-main .news-grid .news-body p { -webkit-line-clamp: 3; line-clamp: 3; }
.press-side { position: sticky; top: var(--sticky-top); display: flex; flex-direction: column; gap: 18px; }

/* widget genérico */
.widget { border: 1px solid var(--line); border-radius: 18px; padding: 24px; background: var(--paper); box-shadow: var(--shadow-card); }
.widget-title { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; margin: 0 0 16px; }
.widget-title .bar { width: 20px; height: 2px; background: var(--orange); display: inline-block; }

/* lista de más leídas */
.wl-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.wl-item { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; }
.wl-item:first-child { border-top: 0; padding-top: 0; }
.wl-num { font-family: var(--display); font-weight: 800; font-size: 1.25rem; color: var(--paper-3); flex: 0 0 auto; width: 24px; line-height: 1.1; -webkit-text-stroke: 1px var(--muted-2); }
.wl-item:hover .wl-num { color: var(--yellow); -webkit-text-stroke: 1px var(--yellow-deep); }
.wl-txt { font-size: 0.84375rem; font-weight: 600; color: var(--ink-2); line-height: 1.35; }
.wl-item:hover .wl-txt { color: var(--ink); }
.wl-cat { display: block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange); margin-top: 4px; }

/* banner sidebar (enlace a sección Elektro3) */
.side-banner { position: relative; border-radius: 18px; overflow: hidden; padding: 14px 24px; color: #fff; text-decoration: none; display: flex; flex-direction: column; min-height: 92px; justify-content: flex-end; transition: transform .18s ease; }
.side-banner:hover { transform: translateY(-3px); }
.side-banner .sb-k { position: relative; z-index: 1; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; margin-bottom: 3px; }
.side-banner h4 { position: relative; z-index: 1; font-family: var(--display); font-weight: 800; font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1.02; margin: 0 0 6px; }
.side-banner .sb-go { position: relative; z-index: 1; font-weight: 700; font-size: 0.84375rem; display: inline-flex; align-items: center; gap: 7px; }
.side-banner .sb-glyph { position: absolute; right: -14px; top: -18px; font-family: var(--display); font-weight: 800; font-size: 7.5rem; line-height: 0.8; opacity: 0.14; letter-spacing: -0.05em; z-index: 0; }
.side-b2b { background: var(--edm-blue); }
.side-show { background: linear-gradient(135deg, #1F8A5B 0%, #135F3D 100%); }
.side-show h4 em { color: var(--yellow); font-style: normal; }
.side-alta { background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%); }
.side-empleo { background: var(--grad-ink); }
.side-empleo h4 em { color: var(--yellow); font-style: normal; }

@media (max-width: 900px) {
  .press-layout { grid-template-columns: 1fr; gap: var(--gap-flow); }
  .press-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .press-side .widget, .press-side .side-banner { flex: 1 1 240px; }
}

/* ---------- ARTÍCULO / FICHA DE NOTICIA ---------- */
/* mismo ancho/gutter que .wrap (resto del sitio): NO hardcodear un max-width propio aqui */
.article-wrap { max-width: var(--container-max); margin-inline: auto; padding-inline: var(--container-px); }
/* cabecera con foto y título dentro */
.article-photo-hero { min-height: 0; }
.article-photo-hero .page-hero-bg .shot { height: 100%; border: 0; border-radius: 0; }
.article-photo-hero .page-hero-tint { background: linear-gradient(180deg, rgba(14,17,22,0.35) 0%, rgba(14,17,22,0.45) 45%, rgba(14,17,22,0.85) 100%); }
.article-photo-inner { position: relative; z-index: 2; width: 100%; padding-block: var(--hero-y); }
.article-photo-inner .article-cat { margin-bottom: 16px; }
/* .page-hero .article-photo-title: sube la especificidad para ganar a ".page-hero h1"
   (clase+tipo), que si no impone su tamano de hero grande (hasta 76px) y max-width:16ch,
   apilando los titulares largos de noticia. */
.page-hero .article-photo-title { font-family: var(--display); font-weight: 800; font-size: clamp(1.875rem, 3.2vw, 3rem); letter-spacing: -0.025em; line-height: 1.1; color: #fff; margin: 0 0 20px; max-width: 30ch; text-wrap: balance; text-shadow: var(--hero-title-shadow); }
.article-meta.on-dark { color: rgba(255,255,255,0.82); }
.article-meta.on-dark .author { color: #fff; }
.article-meta.on-dark .dot-sep { background: rgba(255,255,255,0.5); }
.article-cat { display: inline-flex; align-items: center; gap: 8px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); background: var(--yellow); padding: 6px 12px; border-radius: 999px; text-decoration: none; transition: background .15s ease; }
a.article-cat:hover { background: var(--yellow-deep); }
.article-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 0.875rem; color: var(--muted); }
.article-meta .author { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink-2); }
.article-meta .av { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--yellow); display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 0.8125rem; }
.article-meta .dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--muted-2); }
/* categorias (principal + adicionales) como chips pequenos a la derecha de la fila meta; enlazan al archivo */
.article-meta .article-meta-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.article-meta .article-meta-cats a { font-size: 0.6875rem; font-weight: 700; letter-spacing: .03em; line-height: 1; padding: 6px 11px; border-radius: 999px; text-decoration: none; white-space: nowrap; transition: background .15s ease, border-color .15s ease; }
.article-meta.on-dark .article-meta-cats a { background: rgba(255,255,255,0.14); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.article-meta.on-dark .article-meta-cats a:hover { background: rgba(255,255,255,0.26); border-color: rgba(255,255,255,0.55); }

/* el grid de 2 columnas lo da .press-layout (mismo layout que el listado de noticias); columna de texto sin cap propio, igual que .press-main */
.article-body { max-width: none; }
.article-body .lead-p { font-size: 1.375rem; line-height: 1.5; color: var(--ink); font-weight: 500; padding-left: 22px; border-left: 3px solid var(--yellow); margin: 0 0 28px; }
.article-body h2 { font-family: var(--display); font-weight: 700; font-size: 1.625rem; letter-spacing: -0.02em; margin: 40px 0 14px; }
.article-body h3 { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.015em; margin: 32px 0 12px; }
.article-body p { font-size: 1.0625rem; line-height: 1.7; color: var(--ink-3); margin: 0 0 20px; }
.article-body p:empty,
.article-body h1:empty, .article-body h2:empty, .article-body h3:empty,
.article-body h4:empty, .article-body h5:empty, .article-body h6:empty { display: none; }
.article-body p strong { color: var(--ink); font-weight: 700; }
.article-body ul { margin: 0 0 20px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.article-body ul li { position: relative; padding-left: 28px; font-size: 1.0625rem; line-height: 1.6; color: var(--ink-3); }
.article-body ul li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); }
/* Listas con check propio (.list-plain / .li-check): sin la vineta cuadrada de prosa ni su sangria. */
.article-body .list-plain li::before { content: none; }
.article-body .list-plain li { padding-left: 0; }
/* blockquote (contenido insertado desde el editor de noticias) */
.article-body blockquote {
  position: relative;
  background: var(--paper-2);
  border-radius: 16px;
  margin: 32px 0;
  padding: 32px 30px 26px 66px;
}
.article-body blockquote::before {
  content: "\201C";
  position: absolute;
  left: 24px;
  top: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--orange);
  opacity: 0.85;
}
.article-body blockquote p {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1875rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 10px;
}
.article-body blockquote p:last-of-type { margin-bottom: 0; }
.article-body blockquote cite,
.article-body blockquote footer {
  display: block;
  margin-top: 14px;
  font-family: var(--body);
  font-style: normal;
  font-weight: 700;
  font-size: 0.78125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.article-body blockquote cite::before,
.article-body blockquote footer::before { content: "\2014\00A0"; }

.article-body figure { margin: 32px 0; }
.article-body figure .shot { aspect-ratio: 16/9; border-radius: 14px; }
.article-body figure img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 14px; }
/* imagen principal limpia, al inicio del cuerpo */
.article-lead-fig { margin: 0 0 28px !important; }
.article-lead-fig .shot { aspect-ratio: 16/9; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 24px 50px -36px rgba(14,17,22,0.35); }
.article-lead-fig img { border-radius: 16px; position: relative; z-index: 1; box-shadow: 0 10px 32px -14px rgba(14,17,22,0.38); }
.article-lead-fig.has-caption figcaption {
  background: var(--paper-3);
  border-radius: 0 0 16px 16px;
  margin-top: -16px;
  padding: 5px 18px 6px;
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
  position: relative;
  z-index: 0;
  margin: 0 10px;
}
.article-body figcaption { font-size: 0.8125rem; color: var(--muted); margin-top: 10px; text-align: center; }
/* --- slider de imagenes adicionales --- */
.article-gallery { margin: 36px 0; }
/* track: envuelve SOLO la foto (el pie de foto va fuera, como sibling). overflow:hidden recorta las fotos que
   no tocan mostrarse; el box-shadow es del propio track, así que no se recorta a si mismo. Misma sombra que .article-lead-fig img */
.article-gallery-track { overflow: hidden; border-radius: 14px; box-shadow: 0 10px 32px -14px rgba(14,17,22,0.38); }
.article-gallery-slides { display: flex; transition: transform .35s ease; will-change: transform; }
.article-gallery-item {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.article-gallery-item img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
/* pie de foto: mismo estilo que la foto principal (.article-lead-fig figcaption); JS activa la fila del slide visible */
.gallery-caps {
  background: var(--paper-3);
  border-radius: 0 0 14px 14px;
  margin-top: -14px;
  padding: 5px 16px 6px;
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
  position: relative;
  z-index: 0;
  margin: 0 10px;
}
.gallery-cap { display: none; }
.gallery-cap.is-active { display: block; }
/* dots de navegacion: debajo del pie de foto, en naranja */
.gallery-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
}
.gallery-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,106,26,0.3);
  padding: 0;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.gallery-dot.is-active { background: var(--orange); transform: scale(1.3); }
.article-pullquote { border-left: 4px solid var(--yellow); padding: 6px 0 6px 24px; margin: 32px 0; font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.25; letter-spacing: -0.015em; color: var(--ink); }

.article-share { display: flex; align-items: center; gap: 12px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.article-share span { font-size: 0.8125rem; font-weight: 700; color: var(--muted); }
.article-share .share-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink);
  background: none; cursor: pointer; font: inherit; position: relative;
  transition: all .15s ease;
}
.article-share .share-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 560px) { .article-share .share-btn { width: 44px; height: 44px; } }
.article-share .share-btn svg { width: 17px; height: 17px; }
/* feedback "enlace copiado": burbuja encima del boton */
.share-copy::after {
  content: "Enlace copiado";
  position: absolute; bottom: 100%; left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--ink); color: #fff; white-space: nowrap;
  font-size: 0.71875rem; font-weight: 700; padding: 6px 10px; border-radius: 6px;
  opacity: 0; pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.share-copy.is-copied::after { opacity: 1; transform: translateX(-50%) translateY(-10px); }

.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.article-tags a { font-size: 0.78125rem; font-weight: 600; color: var(--ink-2); padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper-2); text-decoration: none; }
.article-tags a:hover { border-color: var(--ink); }

/* relacionadas */
.related { background: var(--paper-2); padding-block: var(--section-y); }

@media (max-width: 900px) {
  /* el grid y el aside ya colapsan via .press-layout / .press-side; solo el propio texto necesita min-width:0 */
  .article-body { min-width: 0; }
}
@media (max-width: 720px) {
  /* .article-wrap ya no necesita override: --container-px hace clamp a 18px en movil */
  /* cabecera con foto: dejar de forzar 500px y dar aire (breadcrumb pegado al nav y meta pegada abajo) */
  .article-photo-hero { min-height: 0; }
  .article-photo-inner { padding-block: 40px 34px; }
}
/* Alto por defecto del hero global a <=1100px. Va DESPUES de las excepciones por
   pagina (.article-photo-hero, etc.): comparten especificidad y manda el orden de fuente. */
@media (max-width: 1100px) { .page-hero { min-height: 360px; } .article-photo-hero { min-height: 0; } }

/* ---------- CONTACTO ---------- */
.contact-sec { background: var(--paper); padding-block: var(--section-y); }
.wrap.form-narrow { max-width: 620px; }
.contact-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--gap-flow); align-items: start; }
.contact-methods { display: flex; flex-direction: column; gap: 8px; }
/* Canal de denuncias: listas informativas de la columna izquierda. */
.denuncias-info-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 7px; }
.denuncias-info-list li { font-size: 0.875rem; line-height: 1.5; color: var(--ink-3); }
.denuncias-info-list li strong { color: var(--ink); font-weight: 700; }
/* En candidatura el eyebrow va seguido del titular: anulamos el margin-bottom
   negativo que .contact-methods aplica al eyebrow (pensado para contacto.php),
   que aqui dejaba 0 de separacion y hacia que el antetitulo pisara el h2. */
#candidatura .contact-methods .e3-eyebrow { margin-bottom: 0; }
.cm-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.cm-item:hover { border-color: var(--ink); transform: translateY(-2px); }
.cm-ic { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 11px; background: var(--ink); color: var(--yellow); display: inline-flex; align-items: center; justify-content: center; }
.cm-ic svg { width: 22px; height: 22px; }
.cm-txt h2 { font-family: var(--display); font-weight: 700; font-size: 1rem; margin: 0 0 3px; letter-spacing: -0.01em; }
.cm-txt p { font-size: 0.875rem; color: var(--muted); margin: 0; line-height: 1.45; }
.cm-txt b { color: var(--ink); font-weight: 700; }
/* permitir que el texto (email/horario) encoja y envuelva: si no, .cm-item no baja de ~367px y desborda en moviles estrechos (<=375px) */
.cm-item { min-width: 0; }
.cm-txt { min-width: 0; }
.cm-txt p { overflow-wrap: anywhere; }
.contact-form-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: 20px; padding: 40px; box-shadow: 0 24px 50px -38px rgba(14,17,22,0.3); }
.contact-form-card h2 { font-family: var(--display); font-weight: 700; font-size: 1.625rem; letter-spacing: -0.02em; margin: 0 0 6px; }
.contact-form-card .fdesc { font-size: 0.90625rem; color: var(--muted); margin: 0 0 24px; }
/* Formulario en columna lateral estrecha (vacante): menos padding y titulo a 20px -> cabe en una linea. */
.press-side .contact-form-card { padding: 30px 24px; }
.press-side .contact-form-card h2 { font-size: 1.25rem; }
/* ---------- EMPLEO / CARRERAS ---------- */
.jobs { background: var(--paper); padding-block: var(--section-y); }
.jobs-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
/* .jobs-filter button (+:hover, +.is-active) fusionado con .news-filter button (ver regla compartida arriba) */
.job-list { display: flex; flex-direction: column; gap: 12px; }
/* cada vacante es una tarjeta blanca con esquinas redondeadas: destaca sobre el fondo suave de la seccion */
.job-row { display: grid; grid-template-columns: 1.6fr 1fr 0.8fr auto; gap: 24px; align-items: center; padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.job-row:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: 0 14px 30px -18px rgba(14, 17, 22, 0.35); }
.job-title { font-family: var(--display); font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.015em; color: var(--ink); }
.job-title .dept { display: block; font-family: var(--body); font-weight: 600; font-size: 0.78125rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--orange); margin-top: 5px; }
.job-meta { font-size: 0.875rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.job-meta svg { width: 16px; height: 16px; opacity: 0.6; }
.job-tag { justify-self: start; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: var(--paper-3); color: var(--ink-2); }
.job-tag.tech { background: #E3F1FF; color: var(--blue-deep); }
.job-go { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: transform .15s ease, background .15s ease; }
.job-row:hover .job-go { transform: translateX(4px); background: var(--orange); }
.job-go svg { width: 16px; height: 16px; }

.perks { background: var(--paper-2); padding-block: var(--section-y); }
.perks-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.perk { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: var(--pad-card); box-shadow: var(--shadow-card); }
.perk-ic { width: 46px; height: 46px; border-radius: 11px; background: var(--yellow); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.perk-ic svg { width: 22px; height: 22px; }
.perk h3 { font-family: var(--display); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; margin: 0 0 8px; }
.perk p { font-size: 0.84375rem; line-height: 1.5; color: var(--muted); margin: 0; }

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .perks-grid { grid-template-columns: 1fr 1fr; }
  .job-row { grid-template-columns: 1fr auto; gap: 4px 12px; }
  /* recuperar ubicacion y jornada bajo el titulo (antes display:none ocultaba datos utiles) */
  .job-meta { display: flex; grid-column: 1; font-size: 0.8125rem; }
  .job-tag { display: inline-flex; justify-self: start; grid-column: 1; margin-top: 4px; }
  .job-go { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
}
@media (max-width: 560px) {
  .perks-grid { grid-template-columns: 1fr; }
  .contact-form-card { padding: 28px 22px; }
}

/* ---------- 404 ---------- */
.nf-hero { background: radial-gradient(circle at 50% 20%, var(--ink-radial) 0%, var(--ink) 65%); color: #fff; padding-block: var(--section-y); text-align: center; }
.nf-code { font-family: var(--display); font-weight: 800; font-size: clamp(6.875rem, 18vw, 12.5rem); line-height: 0.9; letter-spacing: -0.05em; color: #fff; display: flex; align-items: center; justify-content: center; gap: 0.04em; }
.nf-zero { height: clamp(86px, 14vw, 156px); width: auto; display: inline-block; margin-right: -0.07em; }
.nf-hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -0.02em; margin: 28px 0 12px; }
.nf-hero p { font-size: 1rem; line-height: 1.6; color: rgba(255,255,255,0.7); max-width: 52ch; margin: 0 auto 32px; }
.nf-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- LEGAL (plantilla) ---------- */
/* Cabecera legal oscura (coherente con el resto de heroes). */
.legal-hero { background: var(--grad-hero-radial); padding-block: var(--hero-y); color: #fff; }
.legal-hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -0.03em; line-height: 1.02; margin: 14px 0 10px; color: #fff; }
.legal-meta { font-size: 0.84375rem; color: rgba(255,255,255,0.6); margin: 0 0 22px; }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.legal-tabs a { font-size: 0.8125rem; font-weight: 600; color: rgba(255,255,255,0.82); padding: 8px 15px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.06); text-decoration: none; transition: background 0.2s ease; }
.legal-tabs a:hover { background: rgba(255,255,255,0.14); }
.legal-tabs a.is-active { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
/* El contenedor lo pone el .wrap interior (mismo ancho/gutter que el hero y el resto de la web).
   El texto corrido se limita a una medida de lectura comoda; las tablas usan todo el ancho. */
.legal-body { padding-block: var(--section-y); }
.legal-body > .wrap > p,
.legal-body > .wrap > ul,
.legal-body > .wrap > ol,
.legal-body > .wrap > h2,
.legal-body > .wrap > h3,
.legal-body > .wrap > h4,
.legal-body > .wrap > blockquote,
.legal-body > .wrap > .legal-index,
.legal-body > .wrap > section > p,
.legal-body > .wrap > section > ul,
.legal-body > .wrap > section > ol,
.legal-body > .wrap > section > h2,
.legal-body > .wrap > section > h3,
.legal-body > .wrap > section > h4 { max-width: 900px; }
.legal-body section { scroll-margin-top: 100px; margin-top: 18px; padding-block: 0; }
.legal-body section:first-of-type { margin-top: 0; }
.legal-body section > h2:first-child { margin-top: 0; }
.legal-body h2 { font-family: var(--display); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.015em; margin: 36px 0 12px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; text-transform: uppercase; color: var(--ink-2); margin: 16px 0 8px; }
.legal-body p { font-size: 0.96875rem; line-height: 1.7; color: var(--ink-3); margin: 0 0 16px; }
.legal-body ul { margin: 0 0 16px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal-body li { font-size: 0.96875rem; line-height: 1.6; color: var(--ink-3); }
.legal-body a { color: var(--ink); font-weight: 600; text-decoration: underline; overflow-wrap: anywhere; }
.legal-body a:hover { color: var(--orange); }
/* Sub-indice de apartados */
.legal-index { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 16px 20px; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-2); }
.legal-index a { font-size: 0.875rem; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.legal-index a:hover { color: var(--orange); }
/* Tablas (cookies). Scroll horizontal en movil para no romper el layout. */
.legal-table-wrap { overflow-x: auto; margin: 0 0 20px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; min-width: 520px; }
.legal-table th, .legal-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; line-height: 1.45; color: var(--ink-3); }
.legal-table th { background: var(--paper-2); font-weight: 700; color: var(--ink); }
/* Tabla generica dentro del cuerpo legal: el %cookiesTable% sale con class="table" (no .legal-table).
   Sin display:block/overflow-x (creaba cajas de scroll horizontal estrechas con las tablas legacy
   del editor). Se limitan al ancho del contenedor y el texto de las celdas hace wrap. */
.legal-body table { width: 100%; max-width: 100%; border-collapse: collapse; font-size: 0.8125rem; margin: 0 0 20px; }
.legal-body th, .legal-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; line-height: 1.45; color: var(--ink-3); overflow-wrap: anywhere; }
.legal-body th { background: var(--paper-2); font-weight: 700; color: var(--ink); }

/* ---------- VACANTE (ficha de empleo) ---------- */
.job-head { background: var(--grad-hero-radial); padding-block: var(--hero-y); color: #fff; }
.job-head h1 { font-family: var(--display); font-weight: 800; font-size: clamp(1.875rem, 4vw, 3.125rem); letter-spacing: -0.03em; line-height: 1.04; margin: 16px 0 16px; max-width: 24ch; color: #fff; }
.job-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.job-chips span { display: inline-flex; align-items: center; gap: 7px; font-size: 0.8125rem; font-weight: 600; color: rgba(255,255,255,0.82); padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.06); }
.job-chips svg { width: 15px; height: 15px; opacity: 0.6; }
.job-head-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- SHOWROOM · Tienda Demo ---------- */
.demo-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.demo-collage {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1.5fr 1fr;
  gap: 12px; aspect-ratio: 4 / 3;
}
.demo-collage img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; display: block; }
.demo-collage img:first-child { grid-column: 1 / -1; }
.demo-body h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.125rem); letter-spacing: -0.025em; line-height: 1.1; margin: 12px 0 14px; }
.demo-body p { font-size: 0.96875rem; line-height: 1.65; color: var(--ink-3); margin: 0 0 20px; }
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ============================================================
   Fondos de hero por pagina (asset unico) y tint unificado.
   .page-hero.hero-* tiene 2 clases -> gana a .page-hero.is-tech.
   ============================================================ */
/* La imagen va en .page-hero-bg (no en el header) para que el parallax pueda desplazarla. */
.page-hero.hero-alta     .page-hero-bg { background-image: url('assets/tienda-demo-1.webp'); background-size: cover; background-position: center right; }
.page-hero.hero-contacto .page-hero-bg { background-image: url('assets/contacto-hero-bg.webp'); background-size: cover; background-position: center right; }
.page-hero.hero-empleo   .page-hero-bg { background-image: url('assets/empleo-hero.webp'); background-size: cover; background-position: center; }
.page-hero.hero-noticias .page-hero-bg { background-image: url('assets/noticias-hero-bg.webp'); background-size: cover; background-position: center right; }
/* Estos heroes usan el .page-hero-tint vertical estandar (abajo->arriba), igual que el resto. */

/* ============================================================
   Pagina "Descargar app" (publica/descargar-app)
   ============================================================ */
/* Hero estilo B2B: degradado radial, imagen a la izquierda (mas pequena) + copy a la derecha */
.dapp-hero { background: radial-gradient(circle at 82% 20%, #16365E 0%, var(--ink) 55%); color: #fff; position: relative; overflow: hidden; }
.dapp-hero-grid { display: grid; grid-template-columns: 1.18fr 0.82fr; gap: var(--gap-flow); align-items: center; }
.dapp-hero-media { text-align: center; }
.dapp-hero-media img { max-width: 100%; max-height: 380px; filter: drop-shadow(0 28px 55px rgba(0,0,0,0.5)); }
.dapp-hero-body h1 { margin: 10px 0 14px; }

/* Botones de tienda (App Store / Google Play): pastilla blanca con icono de marca */
.dapp-stores { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.dapp-store {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 10px 18px; border-radius: 12px;
  background: #fff; color: var(--ink); text-decoration: none;
  box-shadow: 0 10px 24px -14px rgba(0,0,0,0.5);
  transition: transform .15s ease, box-shadow .15s ease;
}
.dapp-store:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(0,0,0,0.55); }
.dapp-store svg { width: 26px; height: 26px; flex: 0 0 auto; }
.dapp-store-txt { display: flex; flex-direction: column; line-height: 1.12; text-align: left; }
.dapp-store-txt small { font-size: 0.6875rem; font-weight: 600; opacity: .65; }
.dapp-store-txt strong { font-size: 0.9375rem; font-weight: 800; }

/* Bloques split (imagen + texto) */
.dapp-intro { padding-block: var(--section-y); }
.dapp-split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center; }
.dapp-split-media { margin: 0; display: flex; justify-content: center; align-items: center; }
.dapp-split-media img { max-width: 100%; max-height: 480px; }
.dapp-split-body h2 { margin: 8px 0 14px; }
.dapp-split-body h3 { margin: 22px 0 8px; font-size: 1.1875rem; }
.dapp-lead { font-size: 1.125rem; line-height: 1.55; color: var(--ink); }

/* Rejillas de tarjetas */
.dapp-feats { padding-block: var(--section-y); }

/* En tiempo real: bloque oscuro (estilo Tecnologia e I+D) */
.dapp-real { background: var(--ink); color: #fff; padding-block: var(--section-y); position: relative; overflow: hidden; }
.dapp-real::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(circle at 50% 25%, #000 0%, transparent 70%);
  mask-image: radial-gradient(circle at 50% 25%, #000 0%, transparent 70%);
}
.dapp-real .wrap { position: relative; z-index: 1; }
.dapp-real .testi-head h2 { color: #fff; }
.dapp-real .split-lead { color: rgba(255,255,255,0.82); }
.dapp-real .split-lead strong { color: #fff; }
.dapp-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.dapp-grid-4 { grid-template-columns: repeat(4, 1fr); }
.dapp-card { text-align: left; }
.dapp-ic {
  width: 46px; height: 46px; border-radius: 12px; display: inline-flex;
  align-items: center; justify-content: center; margin-bottom: 14px;
  background: var(--paper-3); color: var(--ink);
}
.dapp-ic svg { width: 24px; height: 24px; }

/* En tiempo real: cabecera IDENTICA a la de testimonios de empresa (reutiliza .testi-head) */
.dapp-real .testi-head { margin-bottom: var(--stack-head); }

/* En tiempo real: cards oscuras (icono + texto) flanqueando el movil central */
.dapp-real-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 40px; align-items: center; }
.dapp-real-media { margin: 0; text-align: center; }
.dapp-real-media img { max-width: 100%; max-height: 520px; filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5)); }
.dapp-real-col { display: flex; flex-direction: column; gap: 18px; }
.dapp-feature {
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 18px;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.dapp-feature:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,204,0,0.4); transform: translateY(-2px); }
.dapp-feature-ic { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 11px; background: rgba(255,204,0,0.12); color: var(--yellow); display: inline-flex; align-items: center; justify-content: center; }
.dapp-feature-ic svg { width: 22px; height: 22px; }
.dapp-feature-txt h3 { margin: 0 0 4px; font-size: 1rem; color: #fff; }
.dapp-feature-txt p { margin: 0; font-size: 0.875rem; color: rgba(255,255,255,0.68); line-height: 1.5; }

/* Descarga: banda compacta contenida (degradado), texto izq + botones der */
.dapp-final { padding-block: var(--section-y-sm); }
.dapp-final-band {
  position: relative; overflow: hidden; border-radius: 22px; color: #fff;
  background: radial-gradient(circle at 85% 15%, #16365E 0%, var(--ink) 60%);
  padding: 36px 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap;
}
.dapp-final-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(circle at 92% 20%, #000 0%, transparent 62%);
  mask-image: radial-gradient(circle at 92% 20%, #000 0%, transparent 62%);
}
.dapp-final-text { position: relative; z-index: 1; }
.dapp-final-text h2 { color: #fff; margin: 0 0 6px; font-size: clamp(1.5rem, 2.6vw, 2.125rem); }
.dapp-final-text p { color: rgba(255,255,255,0.72); margin: 0; }
.dapp-final .dapp-stores { position: relative; z-index: 1; margin-top: 0; }
@media (max-width: 640px) { .dapp-final-band { padding: 28px 24px; } }

@media (max-width: 900px) {
  .dapp-hero .dapp-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .dapp-hero-media img { max-height: 340px; }
  .dapp-split { grid-template-columns: 1fr; gap: 28px; }
  .dapp-split-media { order: -1; }
  .dapp-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .dapp-real-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .dapp-grid-4 { grid-template-columns: 1fr; }
}
