/* ============================================================
   Kenelva Internacional - hoja de estilos unica

   Escala de radios (regla unica del proyecto):
     - superficies (tarjetas, imagenes, celdas): 14px
     - elementos interactivos (botones, pills):  pill completo
   Acento unico en toda la pagina: var(--accent)
   ============================================================ */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- tokens: claro ---------- */
:root {
  --paper: #f7f6f4;
  --surface: #ffffff;
  --surface-2: #efedea;
  --ink: #17161b;
  --muted: #66636d;
  --line: #e0ddd8;
  --accent: #b01a3e;
  --accent-fg: #ffffff;
  --accent-soft: rgba(176, 26, 62, 0.07);
  --r: 14px;
  --shadow: 0 1px 2px rgba(23, 22, 27, 0.04),
    0 20px 44px -24px rgba(23, 22, 27, 0.22);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shell: 1320px;
  --gutter: 28px;
  --gap-grid: 16px;
  color-scheme: light;
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* red de seguridad: nada provoca scroll lateral */
}
img {
  max-width: 100%;
  height: auto; /* sin esto el atributo height del HTML deforma la imagen */
  display: block;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.06;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
svg {
  display: block;
  flex: none;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 99;
  background: var(--accent);
  color: var(--accent-fg);
  padding: 10px 18px;
  border-radius: 999px;
}

/* Escala de silencios: 64 estandar, 96 solo donde cambia el fondo.
   Antes todas las uniones median 198px (96+96) y la pagina no respiraba. */
section {
  padding-block: clamp(48px, 5vw, 64px);
}
.contact {
  padding-block: clamp(64px, 7vw, 96px);
}
.lede {
  color: var(--muted);
  font-size: clamp(1rem, 0.4vw + 0.94rem, 1.125rem);
  max-width: 60ch;
}
h2 {
  font-size: clamp(2rem, 3.8vw, 3.1rem);
}
.h-sub {
  margin-top: 18px;
}

/* ---------- botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 550;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}
.btn--primary {
  background: var(--accent);
  color: var(--accent-fg);
}
.btn--primary:hover {
  transform: translateY(-2px);
  background: color-mix(in oklab, var(--accent) 88%, var(--ink));
}
.btn--ghost {
  /* 50% es el minimo que da >=3:1 en claro y en oscuro (WCAG 1.4.11) */
  border-color: color-mix(in oklab, var(--ink) 50%, transparent);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
}
.btn:active {
  transform: scale(0.98);
}
.btn--sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

/* ---------- nav ---------- */
/* Los tres colores salen de la banda del logo: abren y cierran la pagina
   y no aparecen en ningun otro sitio, para no competir con el acento. */
:root {
  --tricolor: linear-gradient(90deg, #404aa2, #cc3265 52%, #fcb517);
}
.nav::after,
.foot::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--tricolor);
}
.foot::before {
  inset: 0 0 auto;
}
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 84px;
  display: flex;
  align-items: center;
  background: color-mix(in oklab, var(--paper) 84%, transparent);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  transition: box-shadow 0.25s var(--ease), height 0.25s var(--ease);
}
.nav[data-stuck] {
  height: 70px;
  /* al despegarse del inicio, sombra en vez de linea: el tricolor ya esta */
  box-shadow: 0 6px 20px -12px rgba(0, 0, 0, 0.28);
}
@media (prefers-reduced-transparency: reduce) {
  .nav {
    background: var(--paper);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
}
.nav__logo {
  flex: none;
}
.nav__logo img,
.foot__logo img {
  transition: opacity 0.16s var(--ease);
}
.nav__logo:hover img,
.foot__logo:hover img {
  opacity: 0.72;
}
.nav__logo img {
  height: 56px;
  width: auto;
  transition: height 0.25s var(--ease);
}
.nav[data-stuck] .nav__logo img {
  height: 46px;
}
.nav__panel {
  display: contents;
}
.nav__ctrl {
  display: flex;
  align-items: center;
  gap: 10px;
  order: 2;
}
.nav__cta {
  margin-left: 4px;
}
.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  order: 1;
  list-style: none;
  padding: 0;
  margin-block: 0;
}
.nav__links a {
  text-decoration: none;
  font-size: 0.94rem;
  color: var(--muted);
  transition: color 0.16s var(--ease);
}
.nav__links a:hover,
.nav__links a[aria-current] {
  color: var(--ink);
}
.nav__end {
  display: flex;
  align-items: center;
  gap: 12px;
}
/* Pastilla de idioma: el activo relleno, como un conmutador. */
.lang {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}
.lang a {
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
}
.lang a:not([aria-current]):hover {
  color: var(--ink);
  background: color-mix(in oklab, var(--ink) 8%, transparent);
}
.lang [aria-current] {
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}


.nav__toggle .ico-close {
  display: none;
}
.nav[data-open] .nav__toggle .ico-menu {
  display: none;
}
.nav[data-open] .nav__toggle .ico-close {
  display: block;
}
.nav__toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.16s var(--ease);
}
.nav__toggle:hover {
  border-color: var(--ink);
}
.nav__toggle svg {
  width: 21px;
  height: 21px;
}

/* ---------- hero: titular grande y franja panoramica ---------- */
.hero {
  padding-block: 0;
}
.hero .shell {
  padding-block: clamp(56px, 7vw, 104px) clamp(32px, 4vw, 52px);
}
.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 5.1rem);
  letter-spacing: -0.045em;
  max-width: 16ch;
  /* ES: balance corta en "Tu negocio crece / cuando creces tu", la unidad de
     sentido. EN: balance lo partiria en 3 lineas, asi que ahi manda pretty. */
  text-wrap: pretty;
}
html[lang="es"] .hero h1 {
  text-wrap: balance;
}
/* sin cursiva (era formula de plantilla), pero el acento de marca se queda */
.hero h1 b {
  font-weight: inherit;
  color: var(--accent);
}
.hero__pie {
  display: flex;
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: clamp(26px, 3vw, 38px);
}
.hero__lede {
  color: var(--muted);
  font-size: clamp(1.05rem, 0.6vw + 0.95rem, 1.2rem);
  max-width: 40ch;
}
.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero__franja {
  height: clamp(240px, 34vw, 460px);
  overflow: hidden;
  background: var(--surface-2);
}
.hero__franja img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
}

/* ---------- banda de datos ---------- */
.band {
  border-block: 1px solid var(--line);
  padding-block: clamp(30px, 3.5vw, 44px);
}
.band__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
/* separadores por borde, no por gap+fondo: el reveal no descubre franjas */
.band__item {
  padding: 4px clamp(14px, 2vw, 32px);
  border-left: 1px solid var(--line);
}
.band__item:first-child {
  padding-left: 0;
  border-left: 0;
}
.band__k {
  display: block;
  min-height: 2.2em; /* reserva 2 lineas: las 4 leyendas arrancan a la misma cota */
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.band__v {
  display: block;
  margin-top: 8px;
  min-height: 2.9em; /* reserva 2 lineas: las 4 columnas cierran a la misma cota */
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ---------- sobre mi: editorial split ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 4vw, 64px) clamp(32px, 5vw, 80px);
  align-items: start;
}
.about__media {
  grid-row: span 2;
  align-self: center;
}
.about__lede {
  margin-top: 18px;
  color: var(--ink);
  font-size: clamp(1.1rem, 0.8vw + 0.95rem, 1.35rem);
  line-height: 1.45;
  letter-spacing: -0.015em;
  max-width: 60ch;
}
/* el retrato viene recortado con alfa: se apoya sobre una linea, sin caja */
.about__media {
  max-width: 400px;
  border-bottom: 2px solid var(--ink);
}
.about__resto p {
  color: var(--muted);
  max-width: 62ch;
}
.about__resto p + p {
  margin-top: 20px;
}
/* La bio termina en primera persona: cierra como una carta, firmada.
   Va como mascara sobre currentColor, asi sirve en claro y en oscuro. */
.firma {
  width: clamp(150px, 17vw, 205px);
  aspect-ratio: 900 / 343;
  margin-top: 30px;
  background: var(--ink);
  -webkit-mask: url("img/firma.png") left center / contain no-repeat;
  mask: url("img/firma.png") left center / contain no-repeat;
}

.roles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.roles li,
.card__l li {
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
}

/* ---------- reconocimientos: bento 6 celdas ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-grid);
  margin-top: clamp(36px, 4vw, 56px);
}
.bento__cell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: border-color 0.24s var(--ease);
}
.bento__cell:hover {
  border-color: color-mix(in oklab, var(--accent) 35%, var(--line));
}
.bento__ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}
.bento__ico svg {
  width: 23px;
  height: 23px;
}
/* en absoluto para que la foto no estire las filas del grid */
.bento__cell--img {
  position: relative;
  grid-row: span 2;
  min-height: 300px;
  padding: 0;
  overflow: hidden;
  border: 0;
}
.bento__cell--img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bento__cell--ancho {
  grid-column: span 2;
}
.bento__cell--wide {
  grid-column: span 3;
  background: var(--accent-soft);
  border-color: color-mix(in oklab, var(--accent) 24%, transparent);
  padding: 32px 30px 28px;
  gap: 24px;
}
.bento__cell--wide .bento__ico {
  margin-bottom: 0;
  width: 52px;
  height: 52px;
  background: var(--surface);
}
.bento__cell--wide .bento__ico svg {
  width: 26px;
  height: 26px;
}
.bento__t {
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.22;
}
.bento__cell--wide .bento__t {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  max-width: 34ch;
}
.bento__m {
  font-size: 0.875rem;
  color: var(--muted);
}
.bento__cell--wide .bento__m {
  max-width: 46ch;
}

/* ---------- programas: carrusel scroll-snap ---------- */
/* el sangrado se calcula con 100%, nunca con vw: vw incluye la barra de scroll */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(370px, 80%);
  gap: var(--gap-grid);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-block: 6px 26px;
  margin-top: clamp(36px, 4vw, 56px);
  padding-inline: max(
    var(--gutter),
    calc((100% - var(--shell)) / 2 + var(--gutter))
  );
  /* Sin esto, scroll-snap-align: start alinea la tarjeta con el borde del
     contenedor y anula el padding: la primera quedaba pegada al canto. */
  scroll-padding-inline: max(
    var(--gutter),
    calc((100% - var(--shell)) / 2 + var(--gutter))
  );
}
.card {
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklab, var(--accent) 35%, var(--line));
}
.card__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* taller.webp es vertical: sin esto el 4:3 corta las manos alzadas */
.card:nth-child(2) .card__img img {
  object-position: center 28%;
}
.card__body {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.card__t {
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}
.card__d {
  font-size: 0.875rem;
  color: var(--muted);
}
.card__l {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* desde 1200px los 4 programas caben: nada queda medio cortado tras el carrusel */
@media (min-width: 1200px) {
  .rail {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-columns: auto;
    overflow: visible;
    scroll-snap-type: none;
    padding-inline: var(--gutter);
    max-width: var(--shell);
    margin-inline: auto;
  }
}
.card__cta {
  margin-top: auto;
  padding-top: 16px;
  align-self: flex-start;
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  padding-block: 4px 2px;
  transition: border-color 0.16s var(--ease);
}
.card__cta:hover {
  border-bottom-color: var(--accent);
}
.card__l {
  margin-top: auto;
}
.after-rail {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  /* el padding inferior del carrusel es sitio para su barra de scroll,
     no separacion: este bloque necesita la suya */
  margin-top: clamp(28px, 3.5vw, 44px);
}

/* ---------- entrevista ----------
   Seccion con fondo propio: es el unico bloque audiovisual y funciona como
   cambio de acto entre los premios y la oferta. */
.prensa {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.prensa__grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.prensa__medio {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.prensa__cita {
  margin: 16px 0 0;
  font-size: clamp(1.25rem, 1.7vw, 1.7rem);
  line-height: 1.28;
  letter-spacing: -0.025em;
  font-weight: 500;
  text-wrap: pretty;
}
.prensa__meta {
  margin-top: 18px;
  font-size: 0.875rem;
  color: var(--muted);
}
.video {
  margin: 0;
}
.video__btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface-2);
  cursor: pointer;
  aspect-ratio: 16 / 9;
}
.video__btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.video__btn:hover img {
  transform: scale(1.02);
}
.video__play {
  position: absolute;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: clamp(64px, 7vw, 84px);
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.5);
  transition: transform 0.22s var(--ease), background-color 0.22s var(--ease);
}
.video__play svg {
  width: 40%;
  height: 40%;
}
.video__btn:hover .video__play {
  transform: scale(1.07);
}
.video__btn iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* ---------- testimonios ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-grid);
  margin-top: clamp(36px, 4vw, 56px);
}
.quote {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.quote__t {
  font-size: 1.06rem;
  line-height: 1.5;
  letter-spacing: -0.012em;
}
.quote__by {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.35;
}
.quote__by img {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  flex: none;
}
.quote__by b {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

/* ---------- preguntas frecuentes ----------
   <details> nativo: acordeon accesible sin una linea de JS. */
.faq {
  margin-top: clamp(28px, 3vw, 40px);
  max-width: 70ch;
  border-top: 1px solid var(--line);
}
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__item summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
  font-size: 1.02rem;
  font-weight: 550;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
  transition: color 0.16s var(--ease);
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
/* El + gira hasta la x en vez de cambiar de glifo: Geist no trae el signo
   menos y salia un cuadro vacio. */
.faq__item summary::after {
  content: "+";
  display: inline-block;
  flex: none;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.2s var(--ease);
}
.faq__item[open] summary::after {
  transform: rotate(45deg);
}
.faq__item summary:hover {
  color: var(--accent);
}
.faq__item p {
  padding: 0 0 22px;
  color: var(--muted);
  max-width: 62ch;
}

/* ---------- galeria: rejilla asimetrica ---------- */
/* 4 columnas x 2 bandas: ritmo 2-2 arriba, 1-2-1 abajo */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: var(--gap-grid);
  margin-top: clamp(36px, 4vw, 56px);
}
.gallery figure {
  margin: 0;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface-2);
  grid-row: span 2;
}
.gallery figure:nth-child(1),
.gallery figure:nth-child(2),
.gallery figure:nth-child(4) {
  grid-column: span 2;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery figure:hover img {
  transform: scale(1.04);
}

/* ---------- contacto ---------- */
.contact {
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.contact h2 {
  max-width: 14ch;
}
.contact__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: clamp(28px, 3vw, 38px);
}
.dl {
  margin: 0;
  display: grid;
  gap: 22px;
}
.dl div {
  display: grid;
  gap: 4px;
}
.dl dt {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.dl dd {
  margin: 0;
  font-size: 1rem;
}
.dl a {
  display: inline-block;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-block: 4px 2px;
  transition: border-color 0.16s var(--ease);
}
.dl a:hover {
  border-color: var(--accent);
}

/* ---------- footer ---------- */
.foot {
  position: relative;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-block: clamp(36px, 4vw, 56px);
}
.foot__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  flex-wrap: wrap;
}
.foot__logo {
  display: block;
  line-height: 0; /* el enlace no debe anadir altura de linea bajo el logo */
}
.foot img {
  height: 52px;
  width: auto;
}
.foot small {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.7;
  text-align: right;
}

/* ---------- reveal al entrar en viewport ---------- */
/* Solo se ocultan si hay JS para volver a mostrarlos: sin JS el contenido se ve. */
@media (prefers-reduced-motion: no-preference) {
  .js .r {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .js .r.in {
    opacity: 1;
    transform: none;
  }
}

/* ---------- responsive ---------- */
/* El nav de escritorio necesita ~1100px: con los 5 enlaces, el logo, los
   controles y el CTA, por debajo el boton se salia del contenedor. */
@media (max-width: 1100px) {
  .nav__inner {
    gap: 10px;
  }
  .nav__logo img,
  .nav[data-stuck] .nav__logo img {
    height: 36px;
  }
  .nav__ctrl {
    margin-left: auto;
    gap: 8px;
  }
  .nav__toggle {
    display: grid;
  }
  /* la barra movil se queda en logo | idioma | tema | menu */
  .nav__cta {
    display: none;
  }
  /* Idioma y tema son controles globales: se quedan a la vista.
     El desplegable guarda solo navegacion y el CTA. */
  .nav__panel {
    display: none;
  }
  .nav[data-open] .nav__panel {
    display: block;
    position: absolute;
    inset: auto 16px auto;
    top: calc(100% + 8px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 20px 22px;
    box-shadow: var(--shadow);
  }
  .nav__links {
    display: grid;
    gap: 16px;
    margin-left: 0;
  }
  .nav__links a {
    font-size: 1.02rem;
    color: var(--ink);
  }
}

@media (max-width: 1023px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }
  .about__media {
    max-width: 320px;
  }
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento__cell--img {
    grid-row: span 1;
    aspect-ratio: 4 / 3;
    /* con aspect-ratio, un min-height alto obliga a un ancho mayor que el viewport */
    min-height: 0;
  }
  .bento__cell--ancho {
    grid-column: span 1;
  }
  .bento__cell--wide {
    grid-column: span 2;
  }
  .prensa__grid {
    grid-template-columns: 1fr;
  }
  .quotes {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
  .gallery figure:nth-child(n) {
    grid-column: span 1;
    grid-row: span 1;
  }
  .gallery figure:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
  }
}

/* En tablet la columna de texto es mucho mas alta que el retrato: centrado
   quedaba flotando a media altura y desconectado del titular. */
@media (min-width: 768px) and (max-width: 1023px) {
  .about__grid {
    grid-template-columns: 0.92fr 1.08fr;
  }
  .about__media {
    grid-row: auto;
    max-width: 340px;
    margin-top: 8px;
  }
  /* el texto largo fluye a todo el ancho en vez de en una columna estrecha */
  .about__resto {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  /* A 4 columnas la lista de paises se iba a 3 lineas y las leyendas
     cerraban a distinta altura: en tablet la banda va 2x2. */
  .band__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .band__item:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
  .band__item:nth-child(n + 3) {
    margin-top: 22px;
  }
}

@media (max-width: 767px) {
  .about__grid {
    grid-template-columns: 1fr;
  }
  .about__media {
    grid-row: auto;
    max-width: 300px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  :root {
    --gutter: 20px;
  }
  .bento {
    grid-template-columns: 1fr;
  }
  .bento__cell--ancho,
  .bento__cell--wide {
    grid-column: span 1;
  }
  .bento__cell--wide {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero__cta .btn {
    flex: 1 1 auto;
  }
  .foot__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .foot small {
    text-align: left;
  }
}
