/* =========================================================
   mktn.es · Home nueva (diseño G4)
   Solo lo exclusivo de la home. La base (fuente, tokens, reset)
   está en /assets/css/system.css; el header en header.css.
   ========================================================= */

/* ── Tokens exclusivos de la home: colores de las salas ──── */
:root {
  --r1bg: #1A160E; --r1ink: #E8D6A0;   /* Pobill (modo apilado) */
  /* Salas del escenario (G5): fondo, tinta y acento */
  --s1bg: #1A160E; --s1ink: #E8D6A0; --s1acc: #D9A441;   /* Pobill */
  --s2bg: #020202; --s2ink: #EFB858; --s2acc: #EFB858;   /* Gasma */
  --s3bg: #1C2027; --s3ink: #F2EFE9; --s3acc: #E5534B;   /* GuiaOnda */
  --s4bg: #F8E5AB; --s4ink: #22201B; --s4acc: #1F3A30;   /* FPCat */
  --s5bg: #5B2333; --s5ink: #F6E7EA;                     /* Profesionales (burdeos) */
}
html.gal-open { overflow: hidden; }

/* ═════════════ ESCENARIO (hero con salas) ═════════════
   Base = modo apilado: sin JS o con prefers-reduced-motion,
   cada sala es un bloque de color con su captura.        */
.stage { position: relative; }
.stage-view { background: var(--r1bg); color: var(--r1ink); }
.stage-inner { padding: 56px 0 0; }

.lead-col { padding: 40px var(--gut) 56px; max-width: 34em; }

.stage h1 { font-size: clamp(34px, 5.4vw, 56px); line-height: 1.02; font-weight: 600; letter-spacing: -.035em; text-wrap: balance; }
.nb { white-space: nowrap; }
.sectors { margin-top: 20px; font-size: 20px; line-height: 1.4; text-wrap: pretty; }
.sectors a { position: relative; display: inline; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.sectors a[aria-current="true"] { text-decoration-thickness: 3px; }

.progress, .hint { display: none; }

.rooms { display: block; }
.room {
  padding: 64px var(--gut);
  --r: .575; --d: 1.7391; --p: .5452; --k: 4.0232; --tg: 8px; --vg: 10px;
  --lift: -3px;
}
.room[data-room="0"] { background: var(--s1bg); color: var(--s1ink); --acc: var(--s1acc); --edge: rgba(255,255,255,.14); --shadow: rgba(0,0,0,.6); }
.room[data-room="1"] { background: var(--s2bg); color: var(--s2ink); --acc: var(--s2acc); --edge: rgba(255,255,255,.14); --shadow: rgba(0,0,0,.7); }
.room[data-room="2"] { background: var(--s3bg); color: var(--s3ink); --acc: var(--s3acc); --edge: rgba(255,255,255,.14); --shadow: rgba(0,0,0,.6); }
/* FPCat: las capturas tienen cabecera crema como la sala; marco verde de marca para separarlas */
.room[data-room="3"] { background: var(--s4bg); color: var(--s4ink); --acc: var(--s4acc); --edge: #1F3A30; --ring: 2px; --shadow: rgba(31,58,48,.55); }
.zone-box { display: block; }

/* Composición única: captura grande + fila de tres miniaturas (escritorio / móvil / escritorio) */
.gal { display: flex; flex-direction: column; gap: var(--vg); width: 100%; max-width: 920px; }
.g-row { display: grid; grid-template-columns: 1.7391fr .5452fr 1.7391fr; gap: var(--tg); }
.shot {
  position: relative; display: block; margin: 0; padding: 0; border: 0; background: transparent; color: inherit;
  border-radius: 6px; overflow: hidden; cursor: zoom-in;
  box-shadow: 0 0 0 var(--ring, 1px) var(--edge), 0 24px 48px -24px var(--shadow);
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.g-main, .g-d { aspect-ratio: 2000 / 1150; }
.g-row .shot { min-width: 0; }
.shot:focus-visible { outline: 3px solid var(--acc, currentColor); outline-offset: 3px; }
.zoom { position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(14,14,13,.72); color: #F4F3EF; display: grid; place-items: center; }
@media (prefers-reduced-motion: no-preference) {
  .shot { transition: transform .2s ease, outline-color .2s ease; }
}
@media (hover: hover) {
  .shot:hover { outline: 2px solid var(--acc, currentColor); outline-offset: 3px; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .shot:hover { transform: translateY(var(--lift)); }
}
.info { display: flex; flex-direction: column; gap: 6px; margin-top: 24px; }
.info .count { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.info h2 { font-size: 30px; line-height: 1.05; font-weight: 600; letter-spacing: -.02em; }
.info p { font-size: 15px; line-height: 1.35; }
.case-link { font-weight: 500; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; align-self: flex-start; }

/* ── Modo vivo: escenario sticky dirigido por scroll ────── */
@media (prefers-reduced-motion: no-preference) {
  html.js .stage { height: calc(5.8 * 100svh); }
  html.js .stage-view {
    position: sticky; top: 0; height: 100svh; overflow: hidden; container-type: size;
    background: var(--rbg, var(--s1bg)); color: var(--rink, var(--s1ink));
    transition: background-color .7s ease, color .7s ease;
  }
  html.js .stage[data-room="1"] .stage-view { --rbg: var(--s2bg); --rink: var(--s2ink); }
  html.js .stage[data-room="2"] .stage-view { --rbg: var(--s3bg); --rink: var(--s3ink); }
  html.js .stage[data-room="3"] .stage-view { --rbg: var(--s4bg); --rink: var(--s4ink); }
  html.js .stage-inner { position: absolute; inset: 0; padding: 0; }

  html.js .progress { display: flex; gap: 3px; position: absolute; top: 56px; left: 0; right: 0; height: 5px; z-index: 3; }
  html.js .progress i { flex: 1; position: relative; display: block; }
  html.js .progress i::before { content: ''; position: absolute; inset: 0; background: currentColor; opacity: .25; }
  html.js .progress i::after {
    content: ''; position: absolute; inset: 0; background: currentColor; transform-origin: left;
    transform: scaleX(clamp(0, calc(var(--p, 0) * 4 - var(--n)), 1));
  }

  html.js .lead-col { padding: 0; }
  html.js .sectors a { transition: none; }
  html.js .sectors a[aria-current="true"] { text-decoration-thickness: 3px; }
  html.js .sectors a { cursor: pointer; transition: text-decoration-thickness .15s ease, text-underline-offset .15s ease; }
  html.js .sectors a:focus-visible { text-decoration-thickness: 3px; text-underline-offset: 7px; }
  @media (hover: hover) {
    html.js .sectors a:hover { text-decoration-thickness: 3px; text-underline-offset: 7px; }
  }

  html.js .rooms { position: absolute; inset: 0; pointer-events: none; }
  html.js .room a, html.js .room button { pointer-events: auto; }
  html.js .room {
    position: absolute; inset: 0; padding: 0; container-type: size; background: none; color: inherit;
    opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease, visibility .6s;
  }
  html.js .stage[data-room="0"] .room[data-room="0"],
  html.js .stage[data-room="1"] .room[data-room="1"],
  html.js .stage[data-room="2"] .room[data-room="2"],
  html.js .stage[data-room="3"] .room[data-room="3"] { opacity: 1; visibility: visible; transform: none; }

  html.js .zone-box { position: absolute; container-type: size; }
  html.js .gal { position: absolute; top: 0; right: 0; max-width: none; width: var(--W); }
  html.js .info { position: absolute; margin: 0; }
  html.js .hint { display: block; position: absolute; font-size: 14px; font-weight: 500; transition: opacity .6s ease; pointer-events: none; }
  html.js .stage[data-moved] .hint { opacity: 0; }

  /* ── Escritorio ── */
  @media (min-width: 761px) {
    html.js .stage-inner {
      --my: 900px;                                               /* alto máximo del contenido del escenario */
      --ex: max(0px, calc((100cqw - var(--mx)) / 2));            /* margen extra a cada lado por encima del ancho máximo */
      --ey: max(0px, calc((100cqh - var(--my)) / 2));            /* margen extra arriba y abajo por encima del alto máximo */
      --cw: calc(100cqw - 2 * var(--ex));                        /* ancho del contenedor */
      --ch: calc(100cqh - 2 * var(--ey));                        /* alto del contenedor */
      --hd: calc(92px + clamp(16px, calc(var(--ch) * .05), 44px)); --foot: 56px;
      --leftW: calc((var(--cw) - var(--pad)) * .3);
      --AL: calc(var(--ex) + var(--pad) + var(--leftW) + 48px);
      --AW: calc(var(--cw) - var(--pad) - (var(--pad) + var(--leftW) + 48px));
      --AH: calc(var(--ch) - var(--hd) - var(--foot));
    }
    html.js .lead-col { position: absolute; left: calc(var(--ex) + var(--pad)); top: calc(var(--ey) + var(--hd)); width: var(--leftW); display: flex; flex-direction: column; gap: 20px; }
    html.js .stage h1 { font-size: min(clamp(40px, calc(var(--ch) * .072), 64px), calc(var(--leftW) / 8.6)); }
    html.js .sectors { margin: 0; font-size: clamp(17px, calc(var(--ch) * .025), 22px); }
    html.js .zone-box { left: var(--AL); top: calc(var(--ey) + var(--hd)); width: var(--AW); height: var(--AH); }
    html.js .room { --W: min(100cqw, calc((100cqh - var(--vg) + 2 * var(--tg) / var(--k)) / (var(--r) + 1 / var(--k)))); }
    html.js .info { left: calc(var(--ex) + var(--pad)); width: var(--leftW); bottom: calc(var(--ey) + var(--foot)); }
    html.js .info h2 { font-size: 30px; }
    html.js .hint { left: calc(var(--ex) + var(--pad)); bottom: calc(var(--ey) + 20px); }
  }

  /* ── Móvil ── */
  @media (max-width: 760px) {
    html.js .stage-inner { display: flex; flex-direction: column; --pad: 20px; }
    html.js .stage-inner { padding-top: 64px; }
    html.js .lead-col { position: relative; padding: 12px var(--pad) 12px; display: flex; flex-direction: column; gap: 12px; }
    html.js .stage h1 { font-size: clamp(26px, 8vw, 32px); }
    html.js .sectors { margin: 0; font-size: 16px; }
    html.js .rooms { position: relative; inset: auto; flex: 1; min-height: 0; margin: 0 var(--pad); }
    html.js .room { --tg: 6px; --vg: 8px; --W: 100cqw; }
    html.js .zone-box { left: 0; top: 0; right: 0; bottom: 0; }
    html.js .gal { left: 0; right: auto; }
    html.js .info {
      left: 0; right: 0; width: auto; bottom: auto;
      top: calc(var(--W) * var(--r) + var(--vg) + (var(--W) - 2 * var(--tg)) / var(--k) + 16px);
      flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 12px;
    }
    html.js .info h2 { font-size: 22px; }
    html.js .info .meta { font-size: 14px; }
    html.js .info .case-link { flex: none; padding: 0 16px; border: 1px solid currentColor; border-radius: 22px; text-decoration: none; }
    html.js .hint { left: 50%; transform: translateX(-50%); bottom: 6px; white-space: nowrap; font-size: 13px; }
  }
}

/* ═════════════ Resto de la página ═════════════ */
.block { padding: 96px var(--gut); }
.block h2.section-title { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; font-weight: 600; letter-spacing: -.03em; }

/* ═════════════ Servicios y casos (G6) ═════════════ */
.sc-head { padding: 56px var(--gut) 20px; display: flex; flex-wrap: wrap; gap: 12px 48px; align-items: flex-end; justify-content: space-between; }
.sc-head h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; font-weight: 600; letter-spacing: -.03em; }
.sc-big { display: flex; align-items: baseline; gap: 14px; }
.sc-19 { font-size: 88px; line-height: .8; font-weight: 600; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.sc-big-t { font-size: 21px; line-height: 1.2; max-width: 9em; }
.sc .more, .grp-service { font-weight: 500; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }

/* Índice de tipos de web: se fija bajo la barra (56 px) mientras recorres los grupos */
.sc-nav {
  position: sticky; top: 56px; z-index: 5; background: var(--bg);
  border-top: 1px solid var(--ln); border-bottom: 1px solid var(--ln);
  padding: 0 var(--gut); display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.sc-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 36px; }
.sc-nav li { display: flex; }
.sc-nav li a { display: flex; align-items: center; gap: 10px; min-height: 56px; text-decoration: none; }
.sc-nav li a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.sc-mark { flex: none; width: 12px; height: 12px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(128,128,128,.55); }
.sc-mark--tiendas { background: var(--s1bg); }
.sc-mark--corporativas { background: var(--bg); box-shadow: inset 0 0 0 1.5px currentColor; }
.sc-mark--portales { background: var(--s3bg); }
.sc-mark--escuelas { background: var(--s4bg); }
.sc-mark--profesionales { background: var(--s5bg); }
.sc-name { position: relative; padding-bottom: 3px; font-size: 17px; font-weight: 500; white-space: nowrap; }
.sc-name::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; }
.sc-name::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: currentColor; transform-origin: left; transform: scaleX(0); }
.sc-nav a[aria-current="true"] .sc-name::after { transform: scaleX(1); }
@media (prefers-reduced-motion: no-preference) { .sc-name::after { transition: transform .3s ease; } }
.sc-count { font-size: 14px; color: var(--sc); font-variant-numeric: tabular-nums; }
.sc-all { flex: none; font-size: 14px; color: var(--sc); display: inline-flex; gap: 6px; align-items: center; min-height: 44px; }
.grp { scroll-margin-top: 50px; }   /* 64 px de scroll-padding global + 50 = barra (56) + índice (58) */
/* Ventanas bajas: el índice no se fija (con la barra ocuparía casi una cuarta parte) */
@media (max-height: 699px) { .sc-nav { position: static; } .grp { scroll-margin-top: 0; } }

.grp {
  --gline: var(--ln); --gsh: rgba(0,0,0,.6);
  --prevW: min(480px, calc((100vw - 128px) * .46));
  padding: 56px var(--gut); display: flex; flex-direction: column; gap: 24px;
}
@media (max-height: 699px) and (min-width: 761px) { .grp { padding-top: 40px; padding-bottom: 40px; } }
.grp--tiendas { background: var(--s1bg); color: var(--s1ink); --gline: rgba(232,214,160,.35); }
.grp--corporativas { background: var(--bg); color: var(--tx); --gline: var(--ln); --gsh: rgba(0,0,0,.3); }
.grp--portales { background: var(--s3bg); color: var(--s3ink); --gline: rgba(242,239,233,.3); }
.grp--escuelas { background: var(--s4bg); color: var(--s4ink); --gline: rgba(34,32,27,.3); --gsh: rgba(34,32,27,.35); }
.grp--escuelas .panel { box-shadow: 0 0 0 2px #1F3A30, 0 28px 56px -28px var(--gsh); }
.grp--profesionales { background: var(--s5bg); color: var(--s5ink); --gline: rgba(246,231,234,.3); --gsh: rgba(0,0,0,.55); }

.grp-top { display: flex; flex-wrap: wrap; gap: 8px 48px; align-items: baseline; justify-content: space-between; }
.grp-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.grp-title h3, .seo-text h3 { font-size: 44px; line-height: 1.05; font-weight: 600; letter-spacing: -.025em; }
.grp-count { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.grp-desc { flex: 0 1 700px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 24px; }
.grp-desc p { text-wrap: pretty; }

.grp-main { display: flex; flex-direction: row; gap: 56px; align-items: flex-start; }
.grp:nth-of-type(even) .grp-main { flex-direction: row-reverse; }
.cases { list-style: none; margin: 0; padding: 0; flex: 1 1 0; min-width: 0; border-bottom: 1px solid var(--gline); display: flex; flex-direction: column; min-height: calc(var(--prevW) / 1.6); }
.cases li { flex: 1 1 auto; display: flex; border-top: 1px solid var(--gline); }
.case {
  flex: 1; align-content: center; display: grid; grid-template-columns: minmax(0, 1fr) 16px; gap: 4px 16px; align-items: baseline;
  padding: 15px 0; text-decoration: none;
}
.case:hover { text-decoration: underline; text-underline-offset: 5px; }
.case:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
.case-body { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; min-width: 0; }
.case-name { font-size: 22px; line-height: 1.15; font-weight: 600; letter-spacing: -.015em; }
.case-tags { font-size: 15px; line-height: 1.35; }
.case-seo { font-size: 12px; font-weight: 600; letter-spacing: .08em; border: 1px solid currentColor; border-radius: 3px; padding: 1px 5px; }
.case .arrow { align-self: center; opacity: .45; }
.case.is-active .arrow { opacity: 1; }

.panel {
  flex: 0 0 var(--prevW); position: relative; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--gline), 0 28px 56px -28px var(--gsh);
}
.panel-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; max-width: none; }
.panel-img.is-on { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .panel-img { transition: opacity .25s ease; } }

.seo-band { background: #D7EDE8; color: #10302B; --sc: #2E5049; --ln: rgba(16,48,43,.22); padding: 72px var(--gut); display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-start; }
.seo-text { flex: 1 1 320px; display: flex; flex-direction: column; gap: 12px; }
.seo-eyebrow { font-size: 14px; font-weight: 600; }
.seo-text p { max-width: 30em; text-wrap: pretty; }
.seo-text .seo-note { font-size: 15px; color: var(--sc); }
.seo-text .grp-service { align-self: flex-start; }
.seo-card { flex: 0 1 420px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.seo-card:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.seo-card img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 0 0 1px var(--ln); }
.seo-card strong { font-size: 15px; font-weight: 600; }
.seo-card span { font-size: 14px; color: var(--sc); text-wrap: pretty; }

/* Sin panel: móvil, tableta estrecha y dispositivos sin ratón. El toque abre la ficha */
@media (max-width: 1023px), (hover: none) {
  .panel { display: none; }
  .cases { min-height: 0; }
  .grp-main, .grp:nth-of-type(even) .grp-main { flex-direction: column; gap: 0; }
  .cases { width: 100%; flex: 0 0 auto; }
  .case.is-active .arrow { opacity: .45; }
}
@media (max-width: 760px) {
  .sc-head { padding: 48px var(--gut) 20px; }
  .sc-19 { font-size: 64px; }
  .sc-big-t { font-size: 18px; }
  .sc-nav { position: static; padding: 0 var(--gut) 24px; flex-direction: column; align-items: stretch; gap: 4px; border-top: 0; border-bottom: 0; }
  .sc-nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .sc-nav li a { min-height: 44px; }
  .sc-name { font-size: 16px; }
  .grp { scroll-margin-top: 0; }
  .grp { padding: 40px var(--gut) 32px; gap: 16px; }
  .grp-title h3, .seo-text h3 { font-size: 28px; }
  .grp-desc { flex-basis: 100%; }
  .case { grid-template-columns: minmax(0, 1fr) 16px; padding: 14px 0; }
  .case-name { font-size: 20px; }
  .seo-band { padding: 40px var(--gut); }
  .seo-card { flex-basis: 100%; }
}


/* ═════════════ Lo que dicen (G9, dirección D) ═════════════ */
.testi {
  --tbg: #161616; --tink: #F4F3EF; --tsc: #B9B5AC; --tln: rgba(244,243,239,.2); --tavBg: #2A2927; --star: #F2B705;
  --sc: var(--tsc); --ln: var(--tln);
  background: var(--tbg); color: var(--tink); padding: 48px var(--gut); display: flex; flex-direction: column; gap: 28px;
}
.testi-head { display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: center; justify-content: space-between; }
.testi-title { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.testi h2 { font-size: 52px; line-height: 1.05; font-weight: 600; letter-spacing: -.03em; }
.testi-badge { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1px solid var(--tln); border-radius: 22px; text-decoration: none; font-size: 15px; font-weight: 600; }
.testi-badge:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.testi-stars { display: inline-flex; gap: 2px; color: var(--star); }
.testi-all { font-weight: 500; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }

.testi-alex { display: flex; flex-direction: row-reverse; gap: 48px; align-items: center; }
.alex-fig { display: flex; flex-direction: column; gap: 16px; min-width: 0; align-self: center; }
.alex-av { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--tln); }
.alex-fig blockquote { font-size: 17px; line-height: 1.42; font-weight: 500; letter-spacing: -.01em; text-wrap: pretty; }
@media (max-height: 699px) and (min-width: 1024px) { .alex-fig blockquote { font-size: 16px; } }
.alex-fig figcaption { font-size: 15px; color: var(--tsc); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.alex-fig figcaption strong { color: var(--tink); font-weight: 600; font-size: 17px; }
.alex-src { font-size: 13px; }
.alex-case { font-size: 14px; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; min-height: 44px; color: var(--tink); }

/* Captura de la plataforma de Álex Rovira: 62 % del ancho útil, nunca por encima de su tamaño real */
.t-cap {
  --lift: 0px; --acc: currentColor;
  width: min(calc((min(100vw, var(--mx)) - 128px) * .62), 1250px); max-width: 100%; flex: none;
  border-radius: 8px; background: #FFFFFF; color: var(--tink);
  box-shadow: 0 0 0 1px var(--tln), 0 30px 60px -30px rgba(0,0,0,.6);
}
.t-cap img { height: auto; object-fit: initial; }
.t-cap .zoom { width: 36px; height: 36px; right: 14px; bottom: 14px; }
@media (hover: hover) { .t-cap:hover { outline: 2px solid currentColor; outline-offset: 4px; } }
.t-cap:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.t-bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: #E9E7E1; border-bottom: 1px solid rgba(0,0,0,.08); }
.t-bar i { width: 9px; height: 9px; border-radius: 50%; background: #CFCBC2; }
.t-bar b { flex: 0 1 260px; height: 14px; margin-left: 12px; border-radius: 7px; background: #F6F5F1; }

.testi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; --qFs: 14.5px; }
.testi-m { display: none; }
.pair { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pair-cover { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px var(--tln); }
.pair-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pair-cover:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
@media (hover: hover) { .pair-cover:hover { outline: 2px solid currentColor; outline-offset: 3px; } }
.pair-ext { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 14px; background: rgba(14,14,13,.78); color: #F4F3EF; font-size: 13px; font-weight: 600; }
.pair blockquote { font-size: var(--qFs, 15px); line-height: 1.5; text-wrap: pretty; }
.pair figcaption { margin-top: auto; display: flex; gap: 12px; align-items: center; }
.pair-who { display: flex; flex-direction: column; min-width: 0; font-size: 14px; line-height: 1.35; }
.pair-who strong { font-weight: 600; font-size: 15px; }
.pair-who span { color: var(--tsc); }
.pair-src { font-size: 13px; }
.av { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--tln); }
.av--logo { object-fit: contain; padding: 7px; background: #FFFFFF; }
.av--logo0 { padding: 0; }
.av--ini { display: grid; place-items: center; font-size: 15px; font-weight: 600; letter-spacing: .02em; background: var(--tavBg); }

/* Compacto: móvil y tableta */
@media (max-width: 1023px) {
  .testi { padding: 56px var(--gut); gap: 32px; }
  .testi h2 { font-size: 32px; }
  .testi-alex { flex-direction: column; gap: 24px; align-items: stretch; }
  .alex-av { width: 64px; height: 64px; }
  .alex-fig blockquote { font-size: 18px; }
  .t-cap { width: 100%; }
  .testi-grid { display: none; }
  .testi-m { display: flex; flex-direction: column; gap: 24px; --qFs: 16px; }
  .testi-more { display: flex; flex-direction: column; }
  .testi-more summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border: 1px solid currentColor; border-radius: 24px; font-weight: 600; align-self: flex-start; width: fit-content; }
  .testi-more summary::-webkit-details-marker { display: none; }
  .testi-more summary:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
  .testi-more[open] summary svg { transform: rotate(180deg); }
  .testi-more-list { display: flex; flex-direction: column; gap: 24px; padding-top: 24px; }
}

/* ── Móvil: resto de la página ── */
@media (max-width: 760px) {
  .lead-col { padding-top: 24px; }
  .block { padding: 72px var(--gut); }
  .room { padding: 48px var(--gut); }
  .info h2 { font-size: 24px; }
}

/* Mientras el aviso está visible, el escenario no muestra la pista de scroll (se pisarían) */
html.cookie-on .hint { opacity: 0; }

/* ── Galería a pantalla completa (<dialog> modal) ── */
.gallery { padding: 0; border: 0; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none; background: #0E0E0D; color: #F4F3EF; overflow: hidden; }
.gallery::backdrop { background: #0E0E0D; }
.g-top { position: absolute; top: 0; left: 0; right: 0; height: 72px; padding: 0 24px 0 32px; display: flex; align-items: center; justify-content: space-between; }
.g-count { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.g-btn { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 1px solid #8C8880; border-radius: 50%; color: #F4F3EF; cursor: pointer; }
.g-btn:hover { background: rgba(244,243,239,.12); }
.g-btn:focus-visible, .g-case:focus-visible { outline: 2px solid #F4F3EF; outline-offset: 3px; }
.g-btn[hidden] { display: none; }
.g-fig { position: absolute; inset: 80px 112px 96px; margin: 0; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; }
.g-fig img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 6px; background: #1C1C1A; }
.g-load { position: absolute; font-size: 14px; color: #CFCBC2; }
.g-load[hidden] { display: none; }
.g-prev, .g-next { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; }
.g-prev { left: 28px; }
.g-next { right: 28px; }
.g-bottom { position: absolute; left: 0; right: 0; bottom: 0; height: 80px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 15px; }
.g-cap { color: #B5B1A8; }
.g-cap strong { color: #F4F3EF; font-weight: 600; }
.g-case { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; }
@media (max-width: 760px) {
  .g-top { padding: 0 16px 0 20px; }
  .g-fig { inset: 64px 16px 148px; }
  .g-prev, .g-next { top: auto; bottom: 88px; margin-top: 0; width: 48px; height: 48px; }
  .g-prev { left: 16px; }
  .g-next { right: 16px; }
  .g-bottom { height: 72px; padding: 0 20px; font-size: 14px; }
}

/* enlaces del cierre que la home antigua tenía (prototipo gratuito, Castellón y Onda): se mantienen para no perder enlaces internos */
.contacto .cta-notes { display: flex; flex-wrap: wrap; gap: 4px 40px; padding-top: 20px; color: var(--sc); font-size: 16px; line-height: 1.45; }
.contacto .cta-notes p { margin: 0; }
.contacto .cta-notes a { display: inline-flex; align-items: center; min-height: 44px; color: var(--tx); font-weight: 600; text-decoration: underline; text-decoration-color: var(--acc); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.contacto .cta-notes a:hover { text-decoration-thickness: 3px; }
.contacto .cta-notes a:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 2px; }

/* caso sin ficha propia: se muestra el ejemplo sin enlace */
.case.is-static { cursor: default; }
.case.is-static:hover { text-decoration: none; }
