/* ==========================================================================
   programas.pedrobisbal.com · el escaparate (portada desde el 6-oct-2026)
   --------------------------------------------------------------------------
   Identidad de Pedro Bisbal: navy y negro, azul #3656E8, amarillo #FFE376,
   Abel en mayúsculas y Roboto. El azul como fondo, solo en el contacto.
   Comparte con el Arco los archivos de la raíz (vídeo, logos de clientes,
   favicon), pero no su hoja de estilos: tocar una página no rompe la otra.
   ========================================================================== */

:root {
  --navy: #050017;
  --black: #000000;
  --blue: #3656E8;
  --blue-soft: #7D93FF;
  --yellow: #FFE376;
  --yellow-cta: #ECE451;
  --white: #FFFFFF;
  --text: rgba(255, 255, 255, 0.86);
  --muted: rgba(255, 255, 255, 0.64);
  --faint: rgba(255, 255, 255, 0.4);
  --line: rgba(255, 255, 255, 0.14);
  --line-blue: rgba(54, 86, 232, 0.55);
  --font-display: 'Abel', 'Arial Narrow', sans-serif;
  --font-body: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--navy); color: var(--text); font-family: var(--font-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
b, strong { color: var(--white); font-weight: 700; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.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; }
.contenedor { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-soft); margin-bottom: 16px; }
.titulo { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(36px, 5vw, 56px); line-height: 1.02; margin-bottom: 20px; }
.titulo .l1 { display: block; color: var(--blue); }
.titulo .l2 { display: block; color: var(--yellow); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 13px 28px; border-radius: 50px; border: 2px solid transparent; font-family: var(--font-body); font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer; transition: opacity 0.18s ease, transform 0.18s ease, border-color 0.18s ease; }
.btn:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-cta { background: var(--yellow-cta); color: #111; }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-borde { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.btn-borde:hover { border-color: var(--white); }

/* ── Cabecera con vídeo ──────────────────────────────────────────────────── */
.inicio { position: relative; min-height: 88svh; display: flex; align-items: center; overflow: hidden; background: var(--navy); padding: 176px 0 80px; }
.inicio-video, .inicio-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.inicio-velo { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,0,23,0.94) 0%, rgba(5,0,23,0.82) 45%, rgba(5,0,23,0.55) 100%); }
.inicio .contenedor { position: relative; }
.inicio-arriba { position: absolute; top: 24px; left: 0; right: 0; }
.inicio-arriba .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.inicio-logo img { width: 104px; height: auto; }
.inicio-enlaces { display: flex; gap: 20px; }
.inicio-enlaces a { font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; }
.inicio-enlaces a:hover { color: var(--white); }
.inicio h1 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(46px, 7vw, 92px); line-height: 0.96; margin-bottom: 24px; max-width: 900px; }
.inicio h1 .l1 { display: block; color: var(--white); }
.inicio h1 .l2 { display: block; color: var(--yellow); }
.inicio-sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--text); max-width: 640px; margin-bottom: 30px; }

/* the "who are you?" chooser */
.elige { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.elige-titulo { width: 100%; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 2px; }
.elige button { font: inherit; font-size: 15px; font-weight: 700; color: var(--white); background: rgba(5, 0, 23, 0.6); border: 2px solid var(--line-blue); border-radius: 50px; padding: 10px 20px; cursor: pointer; transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease; }
.elige button:hover { border-color: var(--yellow); }
.elige button[aria-pressed="true"] { background: var(--yellow-cta); border-color: var(--yellow-cta); color: #111; }

/* ── Los tres programas ──────────────────────────────────────────────────── */
.catalogo { background: var(--black); padding: clamp(72px, 9vw, 112px) 0; }
.catalogo-cab { margin-bottom: clamp(36px, 5vw, 52px); }
.programas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.programa { position: relative; display: flex; flex-direction: column; border: 2px solid var(--blue); border-radius: 16px; background: var(--navy); overflow: hidden; transition: transform 0.25s ease, border-color 0.25s ease, opacity 0.25s ease; }
.programa:hover { transform: translateY(-3px); }
.programas.filtrado .programa { opacity: 0.4; }
.programas.filtrado .programa.elegido { opacity: 1; border-color: var(--yellow); transform: translateY(-3px); }
.programa-ilu { position: relative; height: 230px; background: var(--black); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.programa-ilu img { max-height: 92%; width: auto; object-fit: contain; }
.programa-ilu--ancha img { max-height: 84%; margin-bottom: 18px; }
.programa-num { position: absolute; top: 16px; left: 18px; font-family: var(--font-display); font-size: 44px; line-height: 1; color: var(--yellow); }
.programa-nuevo { position: absolute; top: 18px; right: 16px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #111; background: var(--yellow); border-radius: 50px; padding: 5px 12px; }
.programa-cuerpo { display: flex; flex-direction: column; flex: 1; padding: 26px 24px 24px; }
.programa h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 32px; line-height: 1.02; color: var(--white); margin-bottom: 12px; }
.programa .programa-para { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-soft); margin-bottom: 12px; line-height: 1.45; }
.programa .programa-lema { font-family: var(--font-display); text-transform: uppercase; font-size: 22px; line-height: 1.1; color: var(--yellow); margin-bottom: 10px; }
.programa p { font-size: 15.5px; color: var(--muted); }
.formatos { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 4px 0 22px; padding: 0; }
.formatos li { font-size: 12px; font-weight: 700; color: var(--white); border: 1px solid var(--line-blue); border-radius: 50px; padding: 5px 12px; }
.programa-acciones { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.programa-acciones .btn { width: 100%; }
.programa-secundario { text-align: center; font-size: 14px; font-weight: 700; color: var(--yellow); text-decoration: none; }
.programa-secundario:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 980px) { .programas { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

/* ── Logos de clientes (calco del carrusel del Arco) ─────────────────────── */
.clientes { background: var(--black); padding: 48px 0 56px; border-top: 1px solid var(--line); overflow: hidden; }
.logos-label { text-align: center; color: var(--muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; margin: 0 0 32px; }
.logos-marquee { overflow: hidden; padding: 6px 0; -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%); mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%); }
.logos-track { display: flex; align-items: center; gap: 3.5rem; width: max-content; animation: marquee 50s linear infinite; }
.logos-marquee:hover .logos-track { animation-play-state: paused; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .logos-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .logos-track [aria-hidden="true"] { display: none; } }
.logo-item { flex-shrink: 0; display: flex; align-items: center; justify-content: center; opacity: 0.85; padding: 0 8px; }
.logo-item img { height: 42px; width: auto; max-width: 200px; object-fit: contain; filter: brightness(0) invert(1); }
.logo-item[data-logo="bayer"] img { height: 44px; }
.logo-item[data-logo="esic"] img, .logo-item[data-logo="asevi"] img { height: 54px; }
.logo-item[data-logo="tm"] img { height: 52px; }
.logo-item[data-logo="gdc"] img { height: 50px; }
.logo-item[data-logo="maxcolchon"] img { height: 52px; max-width: 160px; }
.logo-item[data-logo="union-alcoyana"] img { height: 50px; max-width: 160px; }
.logo-item[data-logo="monto"] img, .logo-item[data-logo="vegalsa"] img { height: 46px; }
.logo-item[data-logo="quironsalud"] img, .logo-item[data-logo="apm"] img { height: 44px; }
.logo-item[data-logo="inditex"] img { height: 40px; max-width: 210px; }
.logo-item[data-logo="stolt-nielsen"] img { height: 40px; max-width: 220px; }
.logo-item[data-logo="argenta-ceramica"] img, .logo-item[data-logo="norauto"] img { height: 36px; max-width: 220px; }
.logo-item[data-logo="stadler"] img { height: 30px; max-width: 230px; }

/* ── Quién imparte ───────────────────────────────────────────────────────── */
.quien { background: var(--navy); padding: clamp(72px, 9vw, 112px) 0; }
.quien-rejilla { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.quien-foto { border: 2px solid var(--blue); border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 4.2; }
.quien-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1); }
.quien p { color: var(--muted); }
.cifras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 26px 0; }
.cifras div { border: 2px solid var(--line-blue); border-radius: 14px; padding: 14px 16px; }
.cifras b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 38px; line-height: 1; color: var(--yellow); }
.cifras span { font-size: 13px; color: var(--muted); line-height: 1.35; display: block; margin-top: 6px; }
.quien-enlaces { display: flex; flex-wrap: wrap; gap: 18px; }
.quien-enlaces a { color: var(--yellow); font-size: 14px; font-weight: 700; text-decoration: none; }
.quien-enlaces a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 860px) { .quien-rejilla { grid-template-columns: 1fr; } .quien-foto { max-width: 420px; } }
@media (max-width: 480px) { .cifras { grid-template-columns: 1fr; } }

/* ── Escríbeme (la única sección azul) ───────────────────────────────────── */
.escribeme { background: var(--blue); padding: clamp(64px, 8vw, 96px) 0; text-align: center; }
.escribeme .titulo .l1 { color: var(--white); }
.escribeme p { color: rgba(255, 255, 255, 0.88); max-width: 620px; margin: 0 auto 28px; font-size: 18px; }

/* ── Pie ─────────────────────────────────────────────────────────────────── */
.pie { background: var(--black); border-top: 1px solid var(--line); padding: 40px 0 34px; font-size: 14px; color: var(--muted); }
.pie-dentro { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.pie a { color: var(--white); text-decoration: none; }
.pie a:hover { color: var(--yellow); }
.pie p { margin: 0 0 6px; }

.programa-ilu img { mix-blend-mode: lighten; }

/* ── Seis tarjetas, tres por fila y alineadas (6-oct-2026) ──────────────── */
.programas { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; row-gap: 28px; }
.programa h3 { min-height: 2.04em; }
.programa .programa-para { min-height: 4.35em; }
.programa .programa-lema { min-height: 2.2em; }
.programa .formatos { margin-top: auto; padding-top: 6px; }
.programa .programa-acciones { margin-top: 0; }
.programa-cuerpo > p:not([class]) { margin-bottom: 18px; }
@media (max-width: 1100px) { .programas { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; } }
@media (max-width: 680px) {
  .programas { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .programa h3, .programa .programa-para, .programa .programa-lema { min-height: 0; }
}

/* ── «Próximamente»: el halo de misterio ─────────────────────────────────── */
.programa--pronto {
  overflow: visible;
  border-color: rgba(255, 227, 118, 0.55);
  border-style: dashed;
  animation: pronto-latido 4.5s ease-in-out infinite;
}
@keyframes pronto-latido {
  0%, 100% { box-shadow: 0 0 0 0 rgba(54, 86, 232, 0), 0 0 40px 2px rgba(54, 86, 232, 0.35); }
  50% { box-shadow: 0 0 0 0 rgba(54, 86, 232, 0), 0 0 70px 10px rgba(255, 227, 118, 0.22); }
}
.programa--pronto:hover { transform: none; }
.programa-ilu--pronto {
  border-radius: 14px 14px 0 0;
  align-items: center;
  background: radial-gradient(circle at 50% 55%, rgba(54, 86, 232, 0.28) 0%, rgba(5, 0, 23, 0) 62%), var(--black);
}
.pronto-halo {
  position: absolute;
  width: 168px;
  height: 168px;
  left: 50%;
  top: 50%;
  margin: -84px 0 0 -84px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255, 227, 118, 0), rgba(255, 227, 118, 0.75), rgba(54, 86, 232, 0.85), rgba(255, 227, 118, 0));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  filter: blur(0.6px) drop-shadow(0 0 12px rgba(255, 227, 118, 0.45));
  animation: pronto-gira 9s linear infinite;
}
@keyframes pronto-gira { to { transform: rotate(360deg); } }
.pronto-signo {
  position: relative;
  font-family: var(--font-display);
  font-size: 112px;
  line-height: 1;
  color: var(--yellow);
  text-shadow: 0 0 18px rgba(255, 227, 118, 0.6), 0 0 42px rgba(54, 86, 232, 0.6);
  animation: pronto-parpadea 3.2s ease-in-out infinite;
}
@keyframes pronto-parpadea { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
/* The seated figure only ever sits on a card's edge, never loose (Pedro, 6-oct-2026) */
.pronto-sentado {
  position: absolute;
  z-index: 3;
  width: 84px;
  height: auto;
  top: -96px;
  right: 22px;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.6));
}
@media (prefers-reduced-motion: reduce) {
  .programa--pronto, .pronto-halo, .pronto-signo { animation: none; }
}
.programa-secundario--apagado { color: var(--faint); font-weight: 500; }

/* Perfect alignment: every card shares the same rows as its neighbours
   (image, title, audience, motto, text, formats, actions) */
@supports (grid-template-rows: subgrid) {
  .programas { grid-auto-rows: auto; row-gap: 0; }
  .programa { display: grid; grid-template-rows: subgrid; grid-row: span 7; margin-bottom: 28px; }
  .programa-cuerpo { display: contents; }
  .programa-cuerpo > * { margin-left: 24px; margin-right: 24px; }
  .programa-cuerpo > h3 { margin-top: 26px; }
  .programa-cuerpo > .programa-acciones { margin-bottom: 24px; align-self: end; }
  .programa-cuerpo > .formatos { align-self: end; }
  .programa h3, .programa .programa-para, .programa .programa-lema { min-height: 0; }
}
/* Room above each row for the seated figure, so it never overlaps the card above */
@supports (grid-template-rows: subgrid) {
  .programa { margin-bottom: 92px; }
  .programas { margin-bottom: -64px; }
}
.pronto-sentado { width: 78px; top: -90px; right: 26px; }
.catalogo-nota { margin: 18px 0 0; font-size: 15.5px; color: var(--muted); }
.catalogo-nota a { color: var(--yellow); text-underline-offset: 3px; }
