/* =========================================================
   Ceuta GameFest · Web pública — cartel con la inscripción en funda PSA 10
   Colores oficiales: rojo #F42F37 · negro #0A0A0A
   ========================================================= */
:root {
  --red: #f42f37;
  --red-dark: #c91d25;
  --ink: #0a0a0a;
  --paper: #f2ede4;
  --white: #ffffff;
  --muted: #6b665e;

  --font: "Archivo", "Arial Narrow", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 48px; }

body {
  margin: 0;
  background: var(--red);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
/* Titulares condensados, la seña de esta versión */
.poster__title,
.deck h2,
.signup h2,
.faq h2,
.foot__big,
.cta,
.tabs button,
.submit,
.stamp,
.done h3,
.faq__t {
  font-stretch: 62%;
  font-weight: 900;
  text-transform: uppercase;
}

/* ---------- Barra superior ---------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--gutter);
  background: var(--ink);
  color: var(--white);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bar__brand { font-weight: 600; text-decoration: none; white-space: nowrap; }
.bar__brand::first-line { color: inherit; }
.bar__info { color: rgba(255, 255, 255, 0.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar__nav { display: flex; align-items: center; gap: 22px; }
.bar__nav > a {
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(var(--red), var(--red)) 0 100% / 0 2px no-repeat;
  padding: 3px 0;
  transition: background-size 0.3s var(--ease);
}
.bar__nav > a:hover { background-size: 100% 2px; }

/* ---------- Cartel ---------- */
.poster {
  position: relative;
  overflow: hidden;
  padding-top: clamp(16px, 2.5vw, 40px);
}
.poster__title {
  line-height: 0.8;
  letter-spacing: -0.01em;
  font-size: 22.6vw;
}
.poster__word {
  display: block;
  white-space: nowrap;
  padding: 0 calc(var(--gutter) * 0.6);
  transform: translateX(var(--drift, 0px));
  will-change: transform;
}
.poster__word--a { color: var(--ink); }
.poster__word--b { color: var(--white); text-align: right; margin-top: -0.02em; }

.poster__foot {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px 48px;
  margin: clamp(20px, 3vw, 40px) var(--gutter) 0;
  padding: clamp(20px, 2.5vw, 32px) 0 clamp(32px, 4vw, 56px);
  border-top: 2px solid var(--ink);
}
.poster__when { display: grid; gap: 10px; margin: 0; }
.poster__when strong {
  font-size: clamp(44px, 5.4vw, 80px);
  font-stretch: 62%;
  font-weight: 900;
  line-height: 0.82;
  text-transform: uppercase;
  white-space: nowrap;
}
.poster__when strong span { display: block; color: var(--white); }
.poster__lead {
  margin: 0;
  max-width: 32ch;
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 500;
  line-height: 1.3;
}
.poster__cta { display: grid; justify-items: end; gap: 12px; }
.cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  height: 68px;
  padding: 0 34px;
  background: var(--ink);
  color: var(--white);
  font-size: 28px;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color 0.25s, color 0.25s;
}
.cta::after { content: "→"; font-stretch: 100%; transition: transform 0.3s var(--ease); }
.cta:hover { background: var(--white); color: var(--ink); }
.cta:hover::after { transform: translateX(6px); }

.signup h2,
.faq h2 {
  font-size: clamp(56px, 9vw, 136px);
  line-height: 0.84;
  letter-spacing: -0.005em;
}

/* ---------- Qué encontrarás: rodillo y muro de palabras ---------- */
.deck {
  background: var(--ink);
  color: var(--white);
  padding: clamp(56px, 7vw, 104px) 0;
  overflow: hidden;
}
.deck__head .mono { color: var(--red); margin: 0 0 14px; }
/* Siempre dos líneas ("Ven a por" / palabra) para que el alto no cambie
   según la palabra; si una no cabe, muro.js la encoge. */
.deck .deck__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  font-size: clamp(44px, 6.2vw, 100px);
  line-height: 0.86;
}
.deck__fijo { white-space: nowrap; }
/* La palabra que rueda */
.rodillo {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  height: 0.92em;
  /* recorta solo arriba y abajo: la palabra nueva nunca se ve cortada de ancho */
  clip-path: inset(0 -100vw 0 0);
  vertical-align: bottom;
  color: var(--red);
  transition: width 0.55s var(--ease);
}
.rodillo__palabra {
  display: block;
  flex: none;
  white-space: nowrap;
  line-height: 0.92;
}
.rodillo__palabra.sale { position: absolute; left: 0; top: 0; animation: rodilloSale 0.55s var(--ease) forwards; }
.rodillo__palabra.entra { animation: rodilloEntra 0.6s cubic-bezier(0.3, 1.45, 0.5, 1) both; }
@keyframes rodilloSale { to { transform: translateY(-105%); opacity: 0.2; } }
@keyframes rodilloEntra { from { transform: translateY(105%); } }

/* Muro: todo lo que habrá, en grande y apagado; se va encendiendo */
.muro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.06em 0;
  margin: clamp(24px, 3vw, 44px) 0 0;
  padding: clamp(14px, 1.6vw, 22px) 0 0;
  border-top: 2px solid rgba(255, 255, 255, 0.9);
  list-style: none;
  font-size: clamp(19px, 2.3vw, 36px);
  font-stretch: 62%;
  font-weight: 900;
  line-height: 1.02;
  text-transform: uppercase;
}
.muro li {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.16);
  transition: color 0.5s, transform 0.5s var(--ease);
}
.muro li::after {
  content: "";
  flex: none;
  width: 0.16em;
  height: 0.16em;
  margin: 0 0.42em;
  background: rgba(255, 255, 255, 0.16);
  transform: rotate(45deg);
  transition: background-color 0.5s;
}
.muro li:last-child::after { display: none; }
.muro li.is-luz { color: var(--white); transition-duration: 0.15s; }
.muro li.is-ya { color: var(--red); transform: translateY(-0.06em); }
.muro li.is-ya::after { background: var(--red); }
.muro li:hover { color: var(--white); }
/* Sin JS o con movimiento reducido: todo encendido */
html:not(.js) .muro li { color: var(--white); }
.deck .deck__sub { margin: clamp(16px, 2vw, 28px) 0 0; max-width: 36em; color: rgba(255, 255, 255, 0.6); font-size: 17px; font-weight: 500; }

/* ---------- Apúntate: la entrada ---------- */
.signup { padding: clamp(72px, 10vw, 140px) 0; overflow-x: clip; }
.signup__head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: end;
  gap: 24px 56px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.signup h2 { color: var(--white); grid-row: span 2; }
.signup__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.signup__head p { margin: 0; font-size: 17px; font-weight: 500; max-width: 30em; }

/* Funda gradeada tipo Beckett: plástico transparente esmerilado, etiqueta roja
   con las subnotas y la ventana con el formulario */
.slab-wrap { max-width: 660px; margin: 0 auto; }
.slab {
  --gx: 30%;
  --gy: 0%;
  --plate: var(--red-dark);   /* rojo oscuro: el texto blanco pequeño de la placa se lee bien (contraste AA) */
  position: relative;
  padding: clamp(10px, 1.4vw, 14px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background:
    radial-gradient(520px circle at var(--gx) var(--gy), rgba(255, 255, 255, 0.28), transparent 60%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.18) 28%, rgba(255, 255, 255, 0.1) 62%, rgba(255, 255, 255, 0.3));
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -14px 30px rgba(120, 0, 6, 0.12),
    0 46px 70px -34px rgba(70, 0, 4, 0.6),
    0 16px 30px -18px rgba(70, 0, 4, 0.35);
  overflow: hidden;
}
/* canto interior del plástico */
.slab::before {
  content: "";
  position: absolute;
  inset: clamp(6px, 0.9vw, 10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 0 0 1px rgba(120, 0, 6, 0.06);
  pointer-events: none;
}
/* grano esmerilado */
.slab::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.22;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

/* etiqueta: el logo va sobre el plástico y la placa de color a su derecha */
.slab__label {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 2vw, 22px);
  padding-left: clamp(4px, 0.8vw, 8px);
  color: var(--white);
  font-family: var(--font);
  font-stretch: 88%;
  text-transform: uppercase;
}
.slab__brand { display: grid; justify-items: center; gap: 5px; }
.slab__brand img {
  width: clamp(34px, 3.8vw, 44px);
  filter: drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff) drop-shadow(0 6px 10px rgba(70, 0, 4, 0.3));
}
.slab__brand span {
  font-family: var(--serif);
  font-size: clamp(8.5px, 0.8vw, 10px);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-align: center;
  text-shadow: 0 1px 2px rgba(70, 0, 4, 0.55), 0 0 10px rgba(120, 0, 6, 0.35);
  white-space: nowrap;
}
.slab__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "lines grade" "subs grade";
  align-items: center;
  gap: 5px clamp(16px, 2.6vw, 32px);
  padding: clamp(7px, 0.9vw, 9px) clamp(12px, 1.8vw, 18px);
  border-radius: 4px;
  background-color: var(--plate);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 45%, rgba(0, 0, 0, 0.1));
  /* canto oscuro y nítido para que la placa se lea igual en rojo que en negro */
  box-shadow:
    0 0 0 1px rgba(60, 0, 3, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 16px -10px rgba(40, 0, 2, 0.6);
  transition: background-color 0.5s var(--ease);
}
.slab__lines { grid-area: lines; display: grid; margin: 0; font-size: clamp(10.5px, 1.05vw, 12.5px); font-weight: 500; line-height: 1.15; letter-spacing: 0.02em; }
.slab__subs {
  grid-area: subs;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 0 clamp(16px, 2.4vw, 28px);
  margin: 0;
  font-size: clamp(10px, 1vw, 12px);
  letter-spacing: 0.02em;
}
.slab__subs div { display: grid; grid-template-columns: minmax(8em, auto) auto; gap: 8px; }
.slab__subs dt { font-weight: 800; }
.slab__subs dd { margin: 0; font-weight: 600; }
.slab__grade {
  grid-area: grade;
  display: grid;
  justify-items: center;
  font-size: clamp(10px, 1vw, 12px);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.slab__grade strong {
  margin-bottom: 2px;
  font-size: clamp(34px, 3.8vw, 48px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0;
}

/* Tienda: todo lo rojo de la funda pasa a negro */
.slab:has(#tab-tienda[aria-selected="true"]) { --plate: var(--ink); }
.slab .submit { background-color: var(--plate); }
.slab:has(#tab-tienda[aria-selected="true"]) .submit:hover { background-color: #3a3a3a; }

/* hueco donde va la carta: plástico en relieve alrededor */
.slab__window {
  position: relative;
  z-index: 1;
  margin-top: clamp(10px, 1.4vw, 14px);
  padding: clamp(8px, 1.1vw, 11px);
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 0 0 4px rgba(255, 255, 255, 0.1),
    inset 0 3px 8px rgba(70, 0, 4, 0.18);
}
.slab__card {
  padding: clamp(18px, 2.6vw, 28px) clamp(18px, 3vw, 32px);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(70, 0, 4, 0.2);
}
.slab__glint {
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}
.slab__glint::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 260%;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.16) 47%, rgba(255, 255, 255, 0.04) 53%, transparent 60%);
  transform: translateX(-80%);
}
.js .slab-wrap.is-in .slab__glint::before { will-change: transform; }
@keyframes glint { 0% { transform: translateX(-80%); } 30%, 100% { transform: translateX(18.5%); } }

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 2px solid var(--ink);
}
.tabs button {
  height: 44px;
  border: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 21px;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}
.tabs button + button { border-left: 2px solid var(--ink); }
.tabs button:hover { background: var(--paper); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--white); }
.tabs__hint { margin: 8px 0 14px; color: var(--muted); font-size: 11px; }

form { display: grid; gap: 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 2px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label,
.field legend {
  padding: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.field legend { margin-bottom: 8px; }
.opt { font-weight: 500; opacity: 0.7; }

input[type="text"],
input[type="email"],
select {
  width: 100%;
  height: 38px;
  padding: 0;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 500 16px var(--font);
  transition: border-color 0.2s;
}
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%230a0a0a' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  cursor: pointer;
}
input:focus,
select:focus { outline: none; border-bottom-color: var(--red); }
.is-invalid input,
.is-invalid select { border-bottom-color: var(--red); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips label {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s, color 0.2s, transform 0.2s var(--bounce);
}
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label:hover { transform: translateY(-2px); }
.chips label:has(input:checked) { background: var(--ink); color: var(--white); }
.chips label:has(input:focus-visible) { outline: 3px solid var(--red); outline-offset: 2px; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  cursor: pointer;
}
.consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--red); cursor: pointer; }
.consent.is-invalid { color: var(--red-dark); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-error {
  margin: 0;
  padding: 12px 14px;
  border-left: 4px solid var(--red);
  background: #fde8e9;
  color: #9b1219;
  font-size: 14px;
  font-weight: 600;
}

.submit {
  height: 54px;
  border: 0;
  background: var(--red);
  color: var(--white);
  font-family: var(--font);
  font-size: 25px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 0.25s;
}
.submit::after { content: "  →"; font-stretch: 100%; }
.submit:hover { background: var(--ink); }
.submit[disabled] { opacity: 0.7; cursor: progress; }

.link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link:hover { color: var(--red); }

.done { position: relative; padding: 16px 0; outline: none; }
.done h3 { font-size: clamp(32px, 3.4vw, 42px); line-height: 0.9; max-width: 11em; padding-right: 170px; }
.done p { margin: 16px 0 0; font-weight: 500; }
.done a { font-weight: 700; text-underline-offset: 3px; }
.done #again { margin-top: 28px; color: var(--muted); }
.stamp {
  position: absolute;
  top: 0;
  right: 0;
  padding: 4px 14px;
  border: 4px solid var(--red);
  border-radius: 8px;
  color: var(--red);
  font-family: var(--font);
  font-size: 28px;
  line-height: 1.1;
  transform: rotate(-12deg);
  animation: stamp 0.5s var(--bounce) 0.15s both;
}
@keyframes stamp { from { opacity: 0; transform: rotate(-12deg) scale(2.6); } }

/* ---------- Preguntas frecuentes ---------- */
.faq { background: var(--ink); color: var(--white); padding: clamp(72px, 10vw, 140px) 0; }
.faq .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 40px 64px;
  align-items: start;
}
.faq h2 { position: sticky; top: 88px; font-size: clamp(52px, 6.4vw, 104px); }
.faq__list { border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.faq__item { border-top: 1px solid rgba(255, 255, 255, 0.18); }
.faq__item h3 { font: inherit; }
.faq__q {
  width: 100%;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 14px;
  padding: 24px 0;
  border: 0;
  background: none;
  color: var(--white);
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
}
.faq__n { color: var(--red); }
.faq__t {
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1;
  transition: transform 0.35s var(--ease), color 0.25s;
}
.faq__q:hover .faq__t { transform: translateX(8px); color: var(--red); }
.faq__icon { position: relative; width: 20px; height: 20px; }
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 20px;
  height: 2px;
  background: currentColor;
}
.faq__icon::after { transform: rotate(90deg); }
.faq__icon { transition: transform 0.4s var(--ease); }
.faq__item.is-open .faq__icon { transform: rotate(45deg); color: var(--red); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.45s var(--ease), visibility 0s linear 0.45s;
}
.faq__a > div { overflow: hidden; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 0.45s var(--ease); }
.faq__a p { margin: 0 0 28px 58px; max-width: 58ch; color: rgba(255, 255, 255, 0.7); font-size: 16px; }
.faq__a a { color: var(--white); text-underline-offset: 3px; }
.faq__a p:has(+ .faq__precios) { margin-bottom: 12px; }
.faq__a p strong { color: var(--white); }
.faq__precios { list-style: none; margin: 0 0 24px 58px; padding: 0; max-width: 58ch; font-size: 16px; color: rgba(255, 255, 255, 0.7); }
.faq__precios li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.faq__precios li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.faq__precios li > strong { color: var(--white); white-space: nowrap; font-size: 18px; }
.faq__precios span strong { color: var(--white); }

/* ---------- Pie: despedida y cuenta de Instagram ---------- */
.foot { padding: 0 0 28px; overflow: hidden; }
.farewell {
  padding: clamp(72px, 10vw, 150px) 0 clamp(28px, 4vw, 48px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}
.farewell__t {
  margin: 0;
  font-size: 18.4vw;
  font-stretch: 62%;
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.farewell__w {
  display: block;
  white-space: nowrap;
  padding: 0 calc(var(--gutter) * 0.6);
  transform: translateX(var(--drift, 0px));
  will-change: transform;
}
.farewell__w--red { color: var(--red); text-align: right; margin-top: 0.04em; }
.farewell__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin: clamp(32px, 5vw, 64px) var(--gutter) 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  list-style: none;
  color: rgba(255, 255, 255, 0.6);
}
.farewell__meta li:first-child { color: var(--white); }
.farewell__meta a { color: inherit; text-underline-offset: 3px; }
.foot__big { margin-top: clamp(56px, 8vw, 110px); }
.foot__big {
  display: block;
  text-align: center;
  font-size: 12.4vw;
  line-height: 0.85;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s, letter-spacing 0.6s var(--ease);
}
.foot__big:hover { color: var(--white); letter-spacing: 0.01em; }
.foot__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin: clamp(28px, 4vw, 48px) var(--gutter) 0;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}
.foot__legal { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot__row a { text-underline-offset: 3px; }

/* Crédito del estudio: mismo lenguaje que las pestañas y el botón del cartel */
.credit {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.credit__pill {
  display: inline-flex;
  align-items: stretch;
  border: 2px solid var(--ink);
}
.credit__name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 7px;
  background: var(--ink);
  color: var(--white);
  transition: background-color 0.25s, color 0.25s;
}
.credit__name strong {
  font-family: var(--font);
  font-size: 24px;
  font-stretch: 62%;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.credit__spark { flex: none; color: var(--red); transition: transform 0.6s var(--ease); }
.credit__tag {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  font-size: 11px;
  letter-spacing: 0.18em;
  transition: background-color 0.25s, color 0.25s;
}
.credit:hover .credit__name { background: var(--white); color: var(--ink); }
.credit:hover .credit__tag { background: var(--ink); color: var(--white); }
.credit:hover .credit__spark { transform: rotate(90deg); }

/* ---------- Política de privacidad ---------- */
.legal {
  max-width: 820px;
  margin: clamp(32px, 6vw, 72px) auto 0;
  padding: clamp(28px, 5vw, 64px) clamp(20px, 5vw, 64px);
  background: var(--paper);
  font-size: 16.5px;
  font-weight: 450;
}
.legal h1 { font-size: clamp(48px, 7vw, 88px); font-stretch: 62%; font-weight: 900; line-height: 0.86; text-transform: uppercase; }
.legal__date { margin: 14px 0 8px; font: 500 12px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.legal h2 {
  margin: 36px 0 10px;
  font-size: 26px;
  font-stretch: 62%;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}
.legal p, .legal ul { margin: 0 0 12px; }
.legal ul { padding-left: 1.2em; }
.legal li + li { margin-top: 6px; }
.legal a { text-underline-offset: 3px; }
.legal__tabla { overflow-x: auto; margin: 0 0 14px; -webkit-overflow-scrolling: touch; }
.legal__tabla table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.legal__tabla th, .legal__tabla td { text-align: left; padding: 8px 10px; border: 1px solid #d8d1c4; vertical-align: top; }
.legal__tabla th { font: 600 11px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; background: #ebe5d9; }
.foot--legal { padding-top: clamp(24px, 4vw, 48px); }

.demo-note {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 40;
  max-width: calc(100% - 24px);
  padding: 6px 10px;
  background: #fff4cc;
  border: 1px solid #e6c24d;
  color: #5a4500;
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .poster__foot { grid-template-columns: minmax(0, 1fr); }
  .poster__cta { justify-items: start; }
  .signup__head { grid-template-columns: minmax(0, 1fr); }
  .signup h2 { grid-row: auto; }
  .faq .container { grid-template-columns: minmax(0, 1fr); }
  .faq h2 { position: static; }
}

@media (max-width: 640px) {
  .bar__info,
  .bar__nav a[href="#lista"] { display: none; }
  .poster__word--b { margin-top: 0.1em; }
  .cta { height: 60px; padding: 0 24px; font-size: 24px; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .tabs button { font-size: 19px; }
  .submit { font-size: 23px; }
  .done h3 { padding-right: 0; padding-top: 70px; }
  .slab { border-radius: 18px; }
  .slab::before { border-radius: 13px; }
  .slab__label { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-left: 0; }
  .slab__brand { grid-template-columns: auto auto; justify-content: start; align-items: center; gap: 10px; padding: 2px 4px 0; }
  .slab__brand img { width: 28px; }
  .slab__panel { grid-template-areas: "lines grade" "subs subs"; }
  .slab__subs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px 14px; }
  .slab__subs div { grid-template-columns: minmax(0, 1fr) auto; }
  .slab__card { border-radius: 8px; }
  .stamp { font-size: 26px; }
  .faq__q { grid-template-columns: 34px minmax(0, 1fr) 20px; gap: 10px; }
  .faq__a p, .faq__precios { margin-left: 44px; }
  .farewell__meta { flex-direction: column; }
  .credit { flex-wrap: wrap; gap: 8px 14px; }
}

/* =========================================================
   Movimiento (solo con JS activo)
   ========================================================= */
@keyframes fromLeft { from { transform: translateX(-35%); opacity: 0; } }
@keyframes fromRight { from { transform: translateX(35%); opacity: 0; } }
@keyframes rise { from { transform: translateY(30px); opacity: 0; } }
@keyframes deal {
  from {
    opacity: 0;
    transform: translate(calc((1.5 - var(--i)) * 100%), 140px) rotate(calc((var(--i) - 1.5) * 9deg));
  }
}

.js .poster__word--a { animation: fromLeft 0.7s var(--ease) backwards; }
.js .poster__word--b { animation: fromRight 0.7s var(--ease) 0.06s backwards; }
.js .poster__foot { animation: rise 0.6s var(--ease) 0.2s backwards; }

.js .rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
/* la funda entra inclinada, como al sacarla de la caja */
.js .slab-wrap.rv:not(.is-in) { transform: perspective(1600px) translateY(90px) rotateX(18deg) scale(0.96); transform-origin: 50% 100%; }
.js .slab-wrap.is-in .slab__glint::before { animation: glint 7s ease-in-out 0.6s infinite; }
.slab.is-certified .slab__grade strong { animation: grade 0.7s var(--bounce); }
@keyframes grade { 40% { transform: scale(1.35) rotate(-6deg); } }
.js .rv.is-in { opacity: 1; transform: none; }


#done-view:not([hidden]) { animation: rise 0.6s var(--ease) both; }
.only-tienda:not([hidden]) { animation: rise 0.45s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
}

/* =========================================================
   Móvil y pantallas táctiles
   ========================================================= */
a, button, summary, label, select { -webkit-tap-highlight-color: transparent; }
button, .cta, .submit, .tabs button { touch-action: manipulation; }

/* En el móvil no hay ratón: los efectos «al pasar por encima» se quedaban
   pegados después de tocar (botón en blanco, texto desplazado…). Se anulan
   y en su lugar el botón se hunde un poco al pulsarlo. */
@media (hover: none) {
  .cta:hover { background: var(--ink); color: var(--white); }
  .cta:hover::after { transform: none; }
  .submit:hover { background: var(--red); }
  .slab .submit:hover { background-color: var(--plate); }
  .slab:has(#tab-tienda[aria-selected="true"]) .submit:hover { background-color: var(--plate); }
  .tabs button:hover { background: var(--white); }
  .tabs button[aria-selected="true"]:hover { background: var(--ink); }
  .chips label:hover { transform: none; }
  .faq__q:hover .faq__t { transform: none; color: inherit; }
  .foot__big:hover { color: inherit; letter-spacing: normal; }
  .credit:hover .credit__name { background: var(--ink); color: var(--white); }
  .credit:hover .credit__tag { background: transparent; color: inherit; }
  .credit:hover .credit__spark { transform: none; }
  .cta:active, .submit:active, .tabs button:active { transform: scale(0.98); }
  .cta, .submit { transition: background-color 0.25s, color 0.25s, transform 0.12s; }
}

@media (max-width: 640px) {
  /* zonas táctiles de 44 px como mínimo */
  .bar__brand, .bar__nav > a { display: inline-flex; align-items: center; min-height: 44px; }
  .bar__nav > a { padding: 0 2px; background-position: 0 calc(100% - 10px); }
  .foot__legal { gap: 0 22px; }
  .foot__row a { display: inline-flex; align-items: center; min-height: 40px; }
  .chips { gap: 8px; }
  .chips label { min-height: 40px; padding: 6px 14px; font-size: 14px; }
  .consent { gap: 12px; }
  .consent input { width: 22px; height: 22px; margin: 0; }
  .faq__q { padding: 20px 0; }

  /* la funda del formulario: menos marcos para que los campos respiren */
  .slab { padding: 8px; border-radius: 16px; }
  .slab::before { inset: 5px; border-radius: 12px; }
  .slab__window { padding: 6px; margin-top: 8px; border-radius: 11px; }
  .slab__card { padding: 22px 18px; }
}

/* ---------- Patrocinadores: cinta de logos ----------
   Banda oscura que enlaza con la sección siguiente. Los logos van sin fondo,
   cada uno dentro de un hueco del mismo tamaño para que tengan el mismo peso. */
.patro {
  --patro-ficha-w: clamp(150px, 13vw, 184px);
  --patro-ficha-h: clamp(72px, 6.4vw, 88px);
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  padding: clamp(18px, 2.4vw, 28px) 0;
  background: var(--ink);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.patro[hidden] { display: none; }
.patro__t {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0 clamp(14px, 2vw, 28px) 0 var(--gutter);
  align-self: stretch;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.patro__t::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex: none;
}
.patro__cinta {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 64px, #000 calc(100% - 64px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 64px, #000 calc(100% - 64px), transparent);
}
.patro__pista {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  animation: patro-cinta var(--patro-dur, 40s) linear infinite;
}
/* Se para al pasar el ratón o al llegar con el teclado (no al pulsar un logo:
   el enlace se quedaría con el foco y la cinta no volvería a moverse) */
@media (hover: hover) {
  .patro__cinta:hover .patro__pista { animation-play-state: paused; }
}
.patro__cinta:has(:focus-visible) .patro__pista { animation-play-state: paused; }
@keyframes patro-cinta { to { transform: translateX(-50%); } }
/* El hueco va a la derecha de cada ficha (no con gap) para que la media vuelta
   de la animación cuadre al píxel y no se note el salto */
.patro__item { flex: none; padding-right: clamp(10px, 1.2vw, 16px); }
.patro__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: var(--patro-ficha-w);
  height: var(--patro-ficha-h);
  padding: 6px 14px;
  border-radius: 8px;
  transition: transform 0.25s var(--ease);
}
.patro__logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
@media (hover: hover) {
  a.patro__logo:hover { transform: scale(1.08); }
}
a.patro__logo:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
@media (max-width: 640px) {
  .patro {
    --patro-ficha-w: 132px;
    --patro-ficha-h: 64px;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 18px 0 20px;
  }
  .patro__t { justify-content: center; padding: 0 var(--gutter); border-right: 0; font-size: 10px; }
  .patro__logo { padding: 4px 10px; }
}
/* Sin animaciones: los logos quedan quietos y se pueden desplazar a mano */
@media (prefers-reduced-motion: reduce) {
  .patro__cinta { overflow-x: auto; }
}

/* ---------- Barco con Kikoto: oferta para no residentes ----------
   Billete con los colores de Kikoto (azul #288CFC, gris oscuro #212529,
   gris claro #F8F9FA, gris medio #909293) sobre el rojo, debajo del cartel:
   quién (azul, logo grande) / cómo (claro, 3 pasos) / precio y WhatsApp (oscuro). */
.barco {
  --k-azul: #288cfc;
  --k-claro: #f8f9fa;
  --k-medio: #909293;
  --k-oscuro: #212529;
  padding: 0 0 clamp(32px, 4vw, 56px);
}
.barco__card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.15fr) auto;
  overflow: hidden;
  border: 2px solid var(--k-oscuro);
  border-radius: 18px;
  background: var(--k-claro);
  color: var(--k-oscuro);
  box-shadow: 0 10px 0 -2px rgba(10, 10, 10, 0.18);
}
.barco__card > * { padding: clamp(20px, 2.4vw, 30px) clamp(18px, 2.4vw, 32px); }

/* Bloque azul: logo grande y titular */
.barco__id {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 12px;
  background: var(--k-azul);
  color: var(--white);
  overflow: hidden;
}
/* Isotipo gigante de fondo, en blanco y casi transparente */
.barco__id::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -12%;
  bottom: -30%;
  width: 72%;
  aspect-ratio: 1;
  background: var(--white);
  opacity: 0.13;
  -webkit-mask: url(../assets/kikoto-isotipo.svg) no-repeat center / contain;
  mask: url(../assets/kikoto-isotipo.svg) no-repeat center / contain;
  pointer-events: none;
}
.barco__marca { display: flex; align-items: center; gap: 14px; margin: 0; }
.barco__logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 72px;
  height: 72px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(33, 37, 41, 0.22);
}
.barco__logo img { width: 52px; height: 52px; }
.barco__firma { display: grid; gap: 4px; line-height: 1; }
.barco__firma strong {
  font-size: clamp(32px, 3vw, 42px);
  font-stretch: 62%;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.barco__firma .mono { font-size: 11px; letter-spacing: 0.12em; }
.barco__tag {
  padding: 5px 11px;
  background: var(--white);
  color: var(--k-oscuro);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
}
.barco__t {
  margin: 0;
  max-width: 13em;
  font-size: clamp(30px, 3.1vw, 44px);
  line-height: 0.9;
  font-stretch: 62%;
  font-weight: 900;
  text-transform: uppercase;
}

/* Bloque claro: los tres pasos */
.barco__como { display: grid; align-content: center; gap: 14px; }
.barco__como-t { margin: 0; color: var(--k-azul); font-weight: 600; }
.barco__pasos {
  counter-reset: paso;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}
.barco__pasos li { position: relative; padding-left: 40px; counter-increment: paso; }
.barco__pasos li::before {
  content: counter(paso);
  position: absolute;
  left: 0;
  top: -3px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--k-azul);
  color: var(--white);
  font: 700 13px var(--mono);
}
.barco__pasos b { font-weight: 700; }

/* Talón oscuro: precio, botón y el número a la vista */
.barco__stub {
  position: relative;
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 260px;
  background: var(--k-oscuro);
  color: var(--white);
  border-left: 2px dashed rgba(248, 249, 250, 0.35);
}
.barco__precio { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0; }
.barco__precio strong {
  font-size: clamp(56px, 5vw, 76px);
  line-height: 0.8;
  letter-spacing: -0.02em;
  font-stretch: 62%;
  font-weight: 900;
  color: var(--k-azul);
}
.barco__precio span { font: 600 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.barco__antes { margin: 0; color: var(--k-medio); font-size: 13.5px; font-weight: 500; }
.barco__antes s { text-decoration-thickness: 1.5px; }
.barco__wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  margin-top: 4px;
  padding: 0 20px;
  background: var(--k-azul);
  color: var(--white);
  border-radius: 999px;
  font-size: 21px;
  font-stretch: 62%;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 0 0 rgba(40, 140, 252, 0.6);
  transition: background-color 0.25s, color 0.25s, transform 0.25s var(--ease);
  animation: barco-pulso 2.6s ease-out infinite;
}
.barco__wa::after { content: "→"; font-stretch: 100%; transition: transform 0.3s var(--ease); }
.barco__wa:hover { background: var(--white); color: var(--k-oscuro); }
.barco__wa:hover::after { transform: translateX(4px); }
.barco__wa:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
@keyframes barco-pulso {
  0% { box-shadow: 0 0 0 0 rgba(40, 140, 252, 0.55); }
  70%, 100% { box-shadow: 0 0 0 14px rgba(40, 140, 252, 0); }
}
.barco__tel { justify-self: center; color: var(--k-medio); text-decoration: none; }
.barco__tel:hover { color: var(--white); text-decoration: underline; }
.barco__nota { margin: 12px 2px 0; font: 500 11px/1.4 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }

@media (max-width: 900px) {
  .barco__card { grid-template-columns: minmax(0, 1fr) auto; }
  .barco__como { grid-column: 1 / -1; grid-row: 2; }
  .barco__stub { border-left: 0; }
}
@media (max-width: 640px) {
  .barco__card { grid-template-columns: minmax(0, 1fr); }
  .barco__card > * { padding: 20px 18px; }
  .barco__id::after { width: 62%; right: -14%; bottom: -18%; }
  .barco__logo { width: 64px; height: 64px; border-radius: 16px; }
  .barco__logo img { width: 46px; height: 46px; }
  .barco__como { grid-row: auto; }
  .barco__pasos { font-size: 14.5px; }
  .barco__stub { min-width: 0; }
  .barco__wa { height: 56px; font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .barco__wa { animation: none; }
}

/* Aviso corto en páginas interiores que lleva a la oferta del barco */
.aviso-barco {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(16px, 2vw, 24px);
  padding: 8px 18px 8px 8px;
  background: #212529;
  color: var(--white);
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  box-shadow: 0 6px 0 -1px rgba(10, 10, 10, 0.2);
  transition: transform 0.25s var(--ease);
}
.aviso-barco__logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  background: var(--white);
  border-radius: 50%;
}
.aviso-barco__logo img { width: 28px; height: 28px; }
.aviso-barco b { color: #288cfc; white-space: nowrap; }
.aviso-barco b::after { content: " →"; }
.aviso-barco:hover { transform: translateY(-2px); }
