/* =========================================================
   Osdany Maury — sistema visual
   Crema y tinta · sans serif editorial · móvil primero
   ========================================================= */

:root {
  --bg: #EFE9DB;
  --card: #F8F4EB;
  --ink: #18211E;
  --muted: #5C625D;
  --line: rgba(24, 33, 30, 0.14);
  --page-tone: #EFE9DB;

  --font: "General Sans", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 5vw, 72px);
  --max: 1360px;
  --space: clamp(88px, 13vw, 176px);
  --gap: clamp(10px, 1.6vw, 22px);
  --radius: 2px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(15px, 0.88rem + 0.2vw, 17px);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* El fondo del Portafolio toma, muy suave, el tono de la foto en pantalla */
body.page-portfolio {
  background: color-mix(in srgb, var(--bg) 86%, var(--page-tone));
  transition: background-color 1.4s ease;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 4px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space) 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Tipografía ---------- */
.label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 18px;
}
h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
h2 { font-size: clamp(28px, 3.6vw, 48px); }
h3 { font-size: clamp(22px, 2.2vw, 30px); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(17px, 1.05rem + 0.35vw, 21px); line-height: 1.5; max-width: 34ch; }
.muted { color: var(--muted); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border: 1px solid var(--ink); border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: 0.01em;
  transition: background-color .25s ease, color .25s ease;
}
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--bg); }
.btn svg { width: 18px; height: 18px; flex: none; }
.link-arrow { display: inline-flex; gap: 8px; border-bottom: 1px solid var(--ink); padding-bottom: 3px; font-weight: 500; }

/* ---------- Franja «en construcción» (CONFIG en_construccion en build.py) ---------- */
.obra { background: var(--ink); color: var(--bg); }
.obra p { margin: 0; padding-block: 9px; font-size: 12.5px; line-height: 1.45; letter-spacing: 0.02em; text-align: center; }

/* ---------- Encabezado ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.nav { display: none; }
.nav ul { list-style: none; display: flex; gap: clamp(18px, 2.4vw, 34px); margin: 0; padding: 0; }
.nav a { font-size: 14px; position: relative; padding-block: 4px; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-tools { display: flex; align-items: center; gap: 18px; }
.lang { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; padding: 6px 2px; }
.menu-btn { font-size: 14px; font-weight: 500; padding: 6px 0; }

@media (min-width: 900px) {
  .nav { display: block; }
  .menu-btn { display: none; }
}

/* Menú móvil a pantalla completa */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--bg);
  display: flex; flex-direction: column;
  padding: 0 var(--gutter) 40px;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__top { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.mobile-menu ul { list-style: none; margin: auto 0; padding: 0; }
.mobile-menu li a { display: block; font-size: clamp(34px, 10vw, 52px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.25; }
.mobile-menu__foot { font-size: 14px; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Inicio ---------- */
.hero { padding-block: clamp(40px, 8vw, 120px) 0; }
.hero .wrap { display: grid; gap: clamp(36px, 6vw, 96px); align-items: center; }
.hero__photo { width: min(64%, 320px); }
.hero__place { margin-bottom: 22px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 64px); letter-spacing: -0.035em; max-width: 17ch; }
.hero .lead { margin-top: 24px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; }
  .hero__photo { order: 2; justify-self: end; width: min(100%, 420px); }
}

/* ---------- Marcador de imagen (se sustituye por la foto real) ---------- */
.ph {
  position: relative;
  width: 100%;
  aspect-ratio: var(--r, 4 / 5);
  background: var(--ph, #D9D1BF);
  border-radius: var(--radius);
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.ph span {
  font-size: 12px; letter-spacing: 0.01em; font-weight: 500;
  color: rgba(24, 33, 30, .6);
  padding: 12px 14px;
  overflow-wrap: anywhere;
}
.ph--bw { --ph: #C9C7C2; }

/* ---------- Grilla editorial ---------- */
.section-head { display: grid; gap: 20px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .quote { font-size: clamp(22px, 2.8vw, 38px); letter-spacing: -0.02em; line-height: 1.2; max-width: 26ch; text-wrap: balance; font-weight: 400; margin: 0; }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1fr 1fr; align-items: end; }
  .section-head .quote { justify-self: end; text-align: right; }
}

/* Mosaico ajustado: filas que llenan el ancho, fotos pegadas, cada una en su proporción (sin recorte) */
.grid { display: flex; flex-wrap: wrap; }                       /* respaldo sin JS */
/* --mg: el marco entre foto y foto, igual en horizontal y en vertical */
.grid { --mg: 6px; gap: var(--mg); }
@media (min-width: 640px) { .grid { --mg: 10px; } }
.grid > .shot { width: calc(33.333% - var(--mg)); }
.grid.is-js { display: flex; flex-direction: column; gap: var(--mg); }
.grid__row { display: flex; width: 100%; gap: var(--mg); }
.grid__row > .shot { flex: none; }

.shot { display: block; position: relative; cursor: zoom-in; overflow: hidden; }
.shot img { display: block; width: 100%; height: 100%; object-fit: fill; }
.shot .ph { border-radius: 0; }
.shot[hidden] { display: none !important; }
.shot::after { content: ""; position: absolute; inset: 0; background: var(--ink); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.shot:hover::after { opacity: .06; }

.grid-foot { margin-top: clamp(36px, 5vw, 56px); display: flex; justify-content: center; }

/* Pestañas del filtro */
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: clamp(28px, 4vw, 48px); }
.tab { font-size: 15px; padding: 0 0 14px; color: var(--muted); position: relative; }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); }

/* ---------- Servicios ---------- */
.big-word {
  font-size: clamp(56px, 17.2vw, 280px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.82;
  margin: 0 0 clamp(36px, 5vw, 72px) -0.05em;
  white-space: nowrap;
  text-transform: uppercase;
}
.services-intro { display: grid; gap: 20px; margin-bottom: clamp(56px, 8vw, 112px); }
@media (min-width: 900px) { .services-intro { grid-template-columns: 1fr 1fr; } }

.block { padding-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); margin-bottom: clamp(72px, 10vw, 128px); }
.block__head { display: grid; gap: 12px; margin-bottom: clamp(32px, 4vw, 48px); }
@media (min-width: 900px) { .block__head { grid-template-columns: 1fr 1fr; align-items: end; } }

.pkg-group + .pkg-group { margin-top: clamp(48px, 6vw, 72px); }
.pkg-group > .label { margin-bottom: 20px; }
.packages { display: grid; gap: var(--gap); }
@media (min-width: 700px) { .packages { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: clamp(24px, 2.6vw, 36px);
  display: flex; flex-direction: column;
}
.pkg__name { font-size: 18px; font-weight: 500; margin: 0 0 6px; }
.pkg__price { font-size: clamp(40px, 4.2vw, 56px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; margin: 14px 0 22px; }
.pkg__specs { list-style: none; padding: 0; margin: 0 0 28px; font-size: 15px; }
.pkg__specs li { padding: 10px 0; border-top: 1px solid var(--line); }
.pkg__specs li:last-child { border-bottom: 1px solid var(--line); }
.card .btn { margin-top: auto; width: 100%; }
.pending { color: var(--muted); font-style: normal; }
.pkg-notes { list-style: none; padding: 0; margin: 24px 0 0; font-size: 14px; color: var(--muted); display: grid; gap: 6px; }
.pkg-notes strong { color: var(--ink); font-weight: 500; }
@media (min-width: 900px) { .pkg-notes { grid-template-columns: repeat(3, 1fr); gap: var(--gap); } }
.badge { display: inline-block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; border: 1px solid var(--ink); border-radius: 999px; padding: 4px 10px; }

/* ---------- Sobre mí ---------- */
.about { display: grid; gap: clamp(32px, 6vw, 96px); }
.about__photo { width: min(60%, 300px); }
.about__text { max-width: 58ch; }
.about__text p:first-of-type { font-size: clamp(19px, 1.1rem + 0.5vw, 24px); line-height: 1.45; letter-spacing: -0.01em; }
@media (min-width: 900px) {
  .about { grid-template-columns: 0.8fr 1.2fr; align-items: start; }
  .about__photo { width: min(100%, 320px); }
}

/* ---------- Tienda ---------- */
.shop-cards { display: grid; gap: var(--gap); }
@media (min-width: 700px) { .shop-cards { grid-template-columns: repeat(3, 1fr); } }
.product .ph { margin-bottom: 18px; }
.product h4 { font-size: 17px; font-weight: 500; margin: 0 0 4px; }
.product p { font-size: 14px; color: var(--muted); margin: 0 0 20px; }
.gear { list-style: none; padding: 0; margin: 0; }
.gear li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.gear li:last-child { border-bottom: 1px solid var(--line); }
.gear a { font-weight: 500; }
.gear small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.disclosure { font-size: 13px; color: var(--muted); margin-top: 18px; }

/* ---------- Contacto ---------- */
.contact { display: grid; gap: clamp(40px, 6vw, 96px); }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; } }
.form { display: grid; gap: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--card); border: 1px solid transparent; border-radius: var(--radius);
  padding: 14px 16px; min-height: 48px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.form .btn { justify-self: start; }
.form-status { font-size: 14px; min-height: 1.4em; margin: 0; }
.hp { display: none !important; }

/* ---------- Pie ---------- */
.footer { margin-top: var(--space); padding-block: 40px 48px; border-top: 1px solid var(--line); font-size: 14px; }
.footer .wrap { display: grid; gap: 24px; }
.footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; padding: 0; }
.footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: var(--muted); }

/* ---------- Visor de fotos ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 80;
  background: color-mix(in srgb, var(--bg) 82%, var(--page-tone));
  display: grid; place-items: center;
  padding: clamp(56px, 7vw, 88px) clamp(12px, 5vw, 96px);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__stage { width: 100%; height: 100%; display: grid; place-items: center; }
.lightbox__stage > * { max-width: 100%; max-height: 100%; width: auto; }
.lightbox__stage img { max-height: calc(100vh - 2 * clamp(56px, 7vw, 88px)); object-fit: contain; }
.lightbox__stage .ph { height: min(78vh, 900px); width: auto; max-width: 100%; }
.lightbox__close { position: absolute; top: 16px; right: var(--gutter); font-size: 14px; font-weight: 500; padding: 8px 0; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 26px; padding: 16px; }
.lightbox__nav--prev { left: 4px; }
.lightbox__nav--next { right: 4px; }
@media (max-width: 639px) { .lightbox__nav { display: none; } }

/* ---------- Página de links ---------- */
.links-page { min-height: 100vh; display: flex; flex-direction: column; }
.links { width: 100%; max-width: 440px; margin: 0 auto; padding: 56px var(--gutter) 40px; text-align: center; flex: 1; }
.links__photo { width: 104px; margin: 0 auto 22px; }
.links__photo .ph { border-radius: 50%; }
.links h1 { font-size: 26px; letter-spacing: -0.02em; }
.links .muted { margin: 8px 0 32px; font-size: 15px; }
.links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.links .btn { width: 100%; }
.links-lang { position: absolute; top: 16px; right: var(--gutter); }

/* ---------- Aparición suave al bajar ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  body.page-portfolio { transition: none; }
}

/* ---------- Páginas interiores ---------- */
.section.page-top { padding-top: clamp(40px, 7vw, 104px); }
.h1-page { font-size: clamp(30px, 4.2vw, 56px); letter-spacing: -0.03em; }
.h2 { font-size: clamp(28px, 3.6vw, 48px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
h1.label { line-height: 1.6; letter-spacing: 0.14em; }

/* ---------- Índice de caminos (Inicio) ---------- */
.index { border-top: 1px solid var(--line); }
.index__row {
  display: grid; grid-template-columns: 2.4em 1fr auto; align-items: baseline; gap: 4px 16px;
  padding: clamp(20px, 2.6vw, 30px) 0; border-bottom: 1px solid var(--line);
}
.index__n { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.index__t { font-size: clamp(26px, 3.4vw, 46px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; transition: transform .35s ease; }
.index__d { grid-column: 2; font-size: 14px; color: var(--muted); }
.index__a { grid-column: 3; grid-row: 1; font-size: 22px; transition: transform .35s ease; }
.index__row:hover .index__t { transform: translateX(6px); }
.index__row:hover .index__a { transform: translateX(6px); }
@media (min-width: 900px) {
  .index__row { grid-template-columns: 3em 1fr 1fr auto; }
  .index__d { grid-column: 3; grid-row: 1; }
  .index__a { grid-column: 4; }
}

/* ---------- Redes en el pie ---------- */
.social { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin: 0; padding: 0; }
.social a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); transition: opacity .25s ease; }
.social a:hover { opacity: .6; text-decoration: none !important; }
.social svg { width: 22px; height: 22px; display: block; }
.social__studio span { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; }

/* =========================================================
   Ronda 17-nov: piezas nuevas
   ========================================================= */
figure { margin: 0; }
figure picture, figure img { display: block; width: 100%; height: auto; }
.h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
.reply { font-size: 13px; margin: 14px 0 0; }

/* Servicio destacado (Inicio) */
.featured { display: block; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding: clamp(32px, 5vw, 56px) 0; }
.featured h2 { font-size: clamp(34px, 5vw, 64px); letter-spacing: -0.035em; margin-bottom: 16px; }
.featured .lead { max-width: 46ch; }
.featured__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin: 24px 0 0; font-weight: 500; }
.featured__go { transition: transform .3s ease; }
.featured:hover .featured__go { transform: translateX(6px); }

/* Cierres de página */
.closing { text-align: center; display: grid; justify-items: center; gap: 20px; padding: clamp(24px, 4vw, 48px) 0; }
.closing h2 { max-width: 20ch; }
.closing .reply { margin: -6px 0 0; }
.closing__actions, .about__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.about__actions { justify-content: flex-start; margin-top: 32px; }

/* Cómo funciona */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--gap); counter-reset: none; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { background: var(--card); padding: clamp(20px, 2.4vw, 28px); border-radius: var(--radius); }
.steps__n { display: block; font-size: 13px; color: var(--muted); margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.steps p { margin: 0; font-size: 16px; line-height: 1.45; }

/* Preguntas frecuentes */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative; font-weight: 500; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; transition: transform .25s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 62ch; }

/* Línea «pronto» de Maury Studio */
.soon-line { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; }
.soon-line p { margin: 0; }
.soon-line strong { font-weight: 500; }

/* Subfiltros de Maury Studio */
.subtabs { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 clamp(24px, 3vw, 36px); }
.subtabs[hidden] { display: none; }
.subtab { font-size: 13px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); transition: all .2s ease; }
.subtab[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }

/* Curso */
.course { display: grid; gap: clamp(28px, 4vw, 56px); background: var(--card); padding: clamp(24px, 4vw, 48px); border-radius: var(--radius); }
@media (min-width: 900px) { .course { grid-template-columns: 1.1fr 0.9fr; align-items: end; } }
.course h2 { font-size: clamp(30px, 4vw, 52px); letter-spacing: -0.03em; margin: 16px 0 6px; }
.course__sub { font-size: 17px; font-weight: 500; margin: 0 0 14px; }
.course__meta { font-size: 13px; letter-spacing: 0.04em; margin: 18px 0 0; }
.form--inline .field input { background: var(--bg); }
.form--inline .btn { justify-self: stretch; }
.form-note { font-size: 13px; margin: 0; }
.field select { width: 100%; font: inherit; color: var(--ink); background: var(--card); border: 1px solid transparent; border-radius: var(--radius); padding: 14px 16px; min-height: 48px; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select:focus { outline: none; border-color: var(--ink); }

/* Productos */
.product__name { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; margin: 18px 0 6px; }
.product .ph, .product picture { margin-bottom: 0; }
.product picture img { border-radius: var(--radius); }
.product__buy { display: flex; align-items: baseline; gap: 18px; margin: 0; }
.product__price { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }

/* Con qué trabajo */
.tools__photo { margin-bottom: clamp(32px, 5vw, 56px); }
.tools__photo img, .tools__photo .ph { border-radius: var(--radius); }
.tools { display: grid; gap: clamp(32px, 4vw, 48px) var(--gap); }
@media (min-width: 900px) { .tools { grid-template-columns: 1fr 1fr; } }
.tools ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.tools li { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tools li a, .tools__name { font-weight: 500; }
.tools li a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.tools li > span:last-child { color: var(--muted); font-size: 15px; }

/* Pie */
.footer__links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; }

/* Links */
.links__group { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; color: var(--muted); margin: 28px 0 10px; }
.links .muted { margin-bottom: 4px; }
.links__photo .ph, .links__photo img { border-radius: 50%; }
.links__photo .ph span { display: none; }
.links__social { margin-top: 36px; display: flex; justify-content: center; }

/* Aviso legal */
.legal { max-width: 760px; }
.legal h2 { margin: 40px 0 10px; }

/* Barra fija de acción en el móvil */
.sticky-cta { display: none; }
@media (max-width: 899px) {
  .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .35s ease;
  }
  .sticky-cta.is-shown { transform: none; }
  .sticky-cta .btn { width: 100%; }
  body:has(.sticky-cta) .footer { padding-bottom: 96px; }
}

/* Sugerencia de idioma */
.lang-suggest {
  position: fixed; left: 50%; top: calc(var(--header-h) + 10px); transform: translateX(-50%); z-index: 45;
  display: flex; align-items: center; gap: 14px; font-size: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 10px 8px 18px;
  box-shadow: 0 6px 24px rgba(24, 33, 30, .08); white-space: nowrap;
}
.lang-suggest a { font-weight: 500; border-bottom: 1px solid var(--ink); }
.lang-suggest button { font-size: 18px; line-height: 1; padding: 4px 8px; color: var(--muted); }

/* ---------- Series ---------- */
.series-index[hidden] { display: none; }
.series-cards { display: grid; gap: clamp(28px, 4vw, 44px) var(--gap); }
@media (min-width: 640px) { .series-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .series-cards { grid-template-columns: repeat(3, 1fr); } }
.series-card { display: grid; gap: 6px; }
.series-card picture, .series-card .ph { margin-bottom: 12px; overflow: hidden; }
.series-card img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.series-card:hover img { transform: scale(1.02); }
.series-card__title { font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; letter-spacing: -0.02em; }
.series-card__count { font-size: 13px; color: var(--muted); }

.series__back { font-size: 14px; }
.series__head { margin: clamp(28px, 4vw, 48px) 0 clamp(40px, 6vw, 80px); }
.series__head .muted { margin-top: 10px; }
.series__photos { display: grid; justify-items: center; gap: clamp(48px, 9vw, 120px); }
.series__photo { width: 100%; max-width: 900px; }
.series__photo img { width: auto; max-width: 100%; max-height: 88vh; margin: 0 auto; }
@media (max-width: 639px) { .series__photo img { max-height: none; width: 100%; } }

.grid[hidden] { display: none !important; }

/* Portadas de series: todas en el mismo marco 4:5, la foto entera dentro (como copia sobre paspartú) */
.series-card picture {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 5; background: var(--card); padding: clamp(14px, 2vw, 28px);
}
.series-card picture img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }

.subtab[hidden] { display: none; }
