/* Gunka Games para empresas: el aspecto de gunkastudios.com (azul noche,
 * turquesa, titulares en mayúsculas con Plus Jakarta Sans, texto en Inter,
 * los puntos de la marca y las flechas ▶▶▶▶) con la estructura de página de
 * Orain Media. Lo que es de un juego (capturas, demos) lleva su propio color.
 *
 * Contraste: el turquesa de la marca (#118b99) no llega a AA con texto blanco,
 * así que los botones y el texto turquesa sobre blanco usan --teal-ink, y
 * sobre fondo oscuro, --teal-light.
 */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #0e002e;
  --navy-2: #02022a;
  --navy-3: #1a1446;
  --teal: #118b99;
  --teal-ink: #0c6f7a;
  --teal-ink-hover: #095862;
  --teal-light: #2fc1cf;
  --text: #1d2939;
  --muted: #4b5565;
  --soft: #f2f5f7;
  --line: #dbe2e7;
  --white: #fff;
  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(56px, 8vw, 104px);
  --band: linear-gradient(100deg, var(--navy) 0%, var(--navy-3) 55%, #24606a 100%);
}

*, *::before, *::after { box-sizing: border-box; }
/* Lo que el JavaScript oculta con el atributo hidden (el aviso de cookies,
   los filtros, las tarjetas filtradas) tiene que ocultarse aunque su clase
   le dé otro display. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal-ink); text-underline-offset: .18em; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); line-height: 1.15; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 860px; }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 8px 14px; border-radius: 8px;
  background: var(--white); color: var(--navy-2);
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--teal-light); outline-offset: 3px; border-radius: 4px; }

/* ---- Títulos con los puntos de la marca ------------------------------- */

h2.dots, .dots {
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.005em;
  color: var(--navy-2);
  margin-bottom: clamp(20px, 3vw, 32px);
  padding-left: 20px;
}
/* Los rombos de la marca, como en gunkastudios.com: de fondo de la primera
   letra, arriba a la izquierda (static/empresas/marca/rombos-*.svg). */
.dots::first-letter,
.hero-page h1::first-letter {
  margin-left: -28px;
  padding-left: 28px;
  padding-top: 10px;
  background: url("marca/rombos-color.svg") no-repeat 0 0 / 28px auto;
}
.section-dark .dots::first-letter,
.hero-page h1::first-letter { background-image: url("marca/rombos-blanco.svg"); }
.hero-page h1 { padding-left: 24px; }
.hero-page h1::first-letter { margin-left: -36px; padding-left: 36px; padding-top: 14px; background-size: 36px auto; }
.dots em { font-style: normal; color: var(--teal-ink); }
.h-note { font-family: var(--font-body); font-size: .5em; font-weight: 500; text-transform: none; color: var(--muted); }

/* ---- Flechas ▶▶▶▶ ---------------------------------------------------- */

.arrows { display: inline-flex; gap: 7px; vertical-align: middle; }
.arrows i {
  width: 0; height: 0;
  border-left: 11px solid currentColor;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}
.arrows-sm { gap: 3px; }
.arrows-sm i { border-left-width: 7px; border-top-width: 4.5px; border-bottom-width: 4.5px; }

/* ---- Botones ---------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 2px solid transparent;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.btn-lg { min-height: 52px; padding: 13px 26px; font-size: 1rem; }
.btn-cta { background: var(--teal-ink); color: var(--white); }
.btn-cta:hover { background: var(--teal-ink-hover); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgb(255 255 255 / .08); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.linkish { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; }

/* ---- Barra de navegación ---------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgb(14 0 46 / .96);
  backdrop-filter: saturate(1.4) blur(8px);
  color: var(--white);
  border-bottom: 1px solid rgb(255 255 255 / .06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.logo { color: var(--white); display: inline-flex; text-decoration: none; }
.logo-img { display: block; height: 44px; width: auto; }

.nav-menu { display: flex; align-items: center; gap: 24px; }
.nav-menu ul { display: flex; gap: 20px; list-style: none; }
.nav-menu ul a {
  color: rgb(255 255 255 / .82);
  font-size: .8rem; font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  padding-block: 6px;
}
.nav-menu ul a:hover, .nav-menu ul a[aria-current="page"] { color: var(--white); box-shadow: 0 2px 0 var(--teal-light); }
.nav-menu .btn { min-height: 40px; padding: 8px 16px; font-size: .88rem; white-space: nowrap; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .js .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0;
    background: none; border: 0; color: var(--white); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -7px; }
  .nav-toggle-bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

  .nav-inner { flex-wrap: wrap; }
  .nav-menu { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 16px; padding-bottom: 20px; }
  .js .nav-menu { display: none; }
  .js .nav.open .nav-menu { display: flex; }
  .nav-menu ul { flex-direction: column; gap: 0; }
  .nav-menu ul a { display: block; padding: 12px 0; font-size: .9rem; border-bottom: 1px solid rgb(255 255 255 / .08); }
  .nav-menu ul a:hover, .nav-menu ul a[aria-current="page"] { box-shadow: none; color: var(--teal-light); }
}

/* ---- Cabecera de página ----------------------------------------------- */

.hero {
  position: relative;
  color: var(--white);
  background:
    radial-gradient(900px 520px at 88% 0%, rgb(17 139 153 / .32), transparent 62%),
    radial-gradient(700px 500px at 0% 100%, rgb(59 52 161 / .28), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, #140a3c 60%, #1c2550 100%);
  overflow: hidden;
}
.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.9rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: 1.05;
}
.hero-sub { margin-top: 22px; font-size: clamp(1.08rem, 1.7vw, 1.28rem); color: rgb(255 255 255 / .86); max-width: 38em; }
.hero-note { margin-top: 14px; font-size: .9rem; color: rgb(255 255 255 / .66); }
.hero .btn-ghost { color: var(--white); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding-block: clamp(48px, 8vw, 96px) clamp(32px, 5vw, 56px);
}
.hero-art { position: relative; height: clamp(380px, 46vw, 560px); }
.hero-art .phone { position: absolute; width: clamp(170px, 19vw, 248px); }
.phone-front { right: 12%; top: 0; z-index: 2; transform: rotate(3deg); }
.phone-back { right: 46%; top: 12%; transform: rotate(-7deg); opacity: .92; }
.hero-dot { position: absolute; border-radius: 50%; background: var(--teal-light); }
.hero-dot-1 { width: 18px; height: 18px; left: 8%; top: 6%; }
.hero-dot-2 { width: 11px; height: 11px; left: 15%; top: 2%; }
.hero-dot-3 { width: 8px; height: 8px; right: 4%; bottom: 10%; opacity: .7; }

.hero-art-photo { display: flex; align-items: center; height: auto; }
.hero-photo {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 28px 60px rgb(0 0 0 / .38), 0 0 0 1px rgb(255 255 255 / .08);
}
.hero-art-photo .hero-dot-1 { left: -10px; top: -14px; }
.hero-art-photo .hero-dot-2 { left: 14px; top: -22px; }
.hero-page-art .hero-grid { padding-block: clamp(48px, 7vw, 88px); }

.hero-foot { padding-bottom: clamp(32px, 5vw, 56px); }
.hero-aval { color: rgb(255 255 255 / .72); font-size: .95rem; max-width: 52em; }

.hero-page { text-align: left; }
.hero-page .wrap { padding-block: clamp(56px, 9vw, 112px); }
.hero-page .arrows { display: flex; margin-top: 36px; color: var(--white); }
.hero-thanks .wrap {
  min-height: min(78vh, 720px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(72px, 12vw, 140px);
}
.hero-thanks .hero-sub { margin-top: 28px; }
.thanks-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(36px, 5vw, 48px); }
.thanks-note {
  margin-top: clamp(40px, 6vw, 56px);
  padding-top: 24px;
  max-width: 34em;
  border-top: 1px solid rgb(255 255 255 / .14);
  font-size: .95rem;
  color: rgb(255 255 255 / .7);
}
.thanks-note a { color: var(--white); text-underline-offset: 3px; }
.hero-thanks .arrows { margin-top: clamp(40px, 6vw, 56px); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { height: 340px; order: -1; }
  .hero-art-photo { height: auto; }
  .hero-art .phone { width: 140px; }
  .phone-front { right: 14%; top: 4px; }
  .phone-back { right: auto; left: 14%; top: 22px; }
}

/* ---- Móviles (capturas y demos) --------------------------------------- */

.phone {
  position: relative;
  border-radius: 30px;
  border: 7px solid #07060f;
  background: #07060f;
  overflow: hidden;
  box-shadow: 0 28px 60px rgb(0 0 0 / .38), 0 0 0 1px rgb(255 255 255 / .08);
}
.phone img { width: 100%; border-radius: 23px; }

/* ---- Logos de clientes ------------------------------------------------ */

.logos ul { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 44px; list-style: none; margin-top: 22px; }
.logos img { height: 32px; width: auto; opacity: .85; }
.logo-placeholder {
  display: inline-block;
  padding: 7px 14px;
  border: 1px dashed rgb(255 255 255 / .35);
  border-radius: 6px;
  font: 700 .82rem/1 var(--font-display);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgb(255 255 255 / .72);
}

/* ---- Secciones -------------------------------------------------------- */

.section { padding-block: var(--section); }
.section-soft { background: var(--soft); }
.section-dark { background: var(--band); color: var(--white); }
.section-dark .dots { color: var(--white); }

.section-dark a { color: var(--teal-light); }
.section-dark .btn-cta { color: var(--white); }
.section-glow { background:
  radial-gradient(800px 400px at 100% 0%, rgb(47 193 207 / .18), transparent 60%),
  var(--band); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.link-more { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; margin-bottom: clamp(20px, 3vw, 32px); }
.link-more:hover { text-decoration: underline; }
.lead { font-size: clamp(1.06rem, 1.5vw, 1.18rem); color: var(--muted); }
.lead + .lead { margin-top: 1em; }
.section-dark .lead { color: rgb(255 255 255 / .84); }

/* Problemas del cliente */
.problems { display: grid; gap: 14px; list-style: none; }
.problems li {
  position: relative;
  padding: 18px 20px 18px 58px;
  background: var(--soft);
  border-radius: var(--radius);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--navy-2);
}
.problems li::before {
  content: "?";
  position: absolute; left: 18px; top: 50%; translate: 0 -50%;
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--teal-ink); color: var(--white);
  font: 800 .9rem/1 var(--font-display);
}
.problems-close { margin-top: 26px; font: 700 clamp(1.15rem, 2vw, 1.4rem)/1.3 var(--font-display); color: var(--teal-ink); }

/* Tarjetas */
.cards { display: grid; gap: 20px; list-style: none; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgb(2 2 42 / .1); }
.card h3 { font-size: 1.2rem; font-weight: 700; color: var(--navy-2); margin-bottom: 10px; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card p { color: var(--muted); }
.card strong { color: var(--navy-2); }
.card-product { border-top: 4px solid var(--teal); padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-product .card-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-product .card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card-num { font: 800 .85rem/1 var(--font-display); color: var(--teal-ink); letter-spacing: .1em; margin-bottom: 14px; }
.card-more { margin-top: auto; padding-top: 18px; font-weight: 600; color: var(--teal-ink); display: inline-flex; align-items: center; gap: 10px; }
.list .card { padding: 22px; }

.card-project { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-media img, .card-media .placeholder { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 18px 20px 22px; }
.card-project h3 { font-size: 1.1rem; margin-bottom: 6px; }
.card-project p { font-size: .95rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin-bottom: 12px; }
.tags li {
  font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 4px;
  background: #e3f3f5; color: var(--teal-ink);
}
.placeholder {
  display: grid; place-content: center; text-align: center; gap: 4px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 50%, #24606a 100%);
  color: var(--white);
  font: 700 1rem/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .04em;
  padding: 16px;
}
.placeholder small { font: 500 .72rem/1 var(--font-body); opacity: .6; text-transform: none; letter-spacing: 0; }

/* Listas sencillas */
.list.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px 32px; list-style: none; }
.list:not(.cards):not(.cols) { display: grid; gap: 12px; list-style: none; max-width: 860px; }
.check { position: relative; padding-left: 34px; color: var(--muted); }
.check strong { color: var(--navy-2); }
.check::before {
  content: "";
  position: absolute; left: 6px; top: .3em;
  width: 7px; height: 13px;
  border-right: 2.5px solid var(--teal);
  border-bottom: 2.5px solid var(--teal);
  transform: rotate(45deg);
}

/* Por qué nosotros */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px 40px; list-style: none; }
.why li { padding: 18px 0 18px; border-top: 2px solid var(--line); color: var(--muted); }
.why strong { display: block; font: 700 1.1rem/1.3 var(--font-display); color: var(--navy-2); margin-bottom: 6px; }

/* Proceso en tres pasos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; counter-reset: step; }
.step {
  padding: 26px;
  border-radius: var(--radius);
  background: rgb(255 255 255 / .06);
  border: 1px solid rgb(255 255 255 / .12);
}
.step-num {
  display: grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 18px;
  border-radius: 50%;
  background: var(--teal-light); color: var(--navy-2);
  font: 800 1.2rem/1 var(--font-display);
}
.step h3 { font-size: 1.2rem; text-transform: uppercase; margin-bottom: 8px; }
.step p { color: rgb(255 255 255 / .82); }
.section-glow .arrows { margin-top: 36px; color: var(--teal-light); }

/* Ejemplo real, con la imagen del caso al lado */
.example-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.example-media img, .example-media .placeholder { width: 100%; border-radius: var(--radius); box-shadow: 0 18px 40px rgb(2 2 42 / .14); }
.example-link { margin-top: 18px; }
@media (max-width: 860px) { .example-grid { grid-template-columns: 1fr; } }

/* Precio */
.price .btn { margin-top: 28px; }

/* Preguntas frecuentes */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 1.08rem; font-weight: 600; color: var(--navy-2); }
.faq summary::after {
  content: "";
  flex: none;
  width: 14px; height: 14px;
  background:
    linear-gradient(var(--teal-ink), var(--teal-ink)) center / 14px 2.5px no-repeat,
    linear-gradient(var(--teal-ink), var(--teal-ink)) center / 2.5px 14px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 46em; }

/* ---- Franja de capturas de nuestros juegos (portada) ------------------ */

.strip-lead { max-width: 40em; margin-top: -8px; }
.strip {
  --strip-edge: max(var(--gutter), calc((100vw - 1200px) / 2 + var(--gutter)));
  display: flex; gap: clamp(14px, 2vw, 24px);
  list-style: none;
  padding: 8px var(--strip-edge) 28px;
  scroll-padding-inline: var(--strip-edge);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.strip li { flex: none; scroll-snap-align: start; }
.strip-item { display: grid; gap: 12px; justify-items: center; text-decoration: none; color: var(--navy-2); }
.strip .phone { display: block; width: clamp(150px, 15vw, 200px); border-width: 6px; border-radius: 26px; box-shadow: 0 18px 36px rgb(2 2 42 / .18); transition: transform .2s ease; }
.strip .phone img { border-radius: 20px; }
.strip-framed { display: block; width: clamp(158px, 15.8vw, 210px); height: auto; filter: drop-shadow(0 16px 24px rgb(2 2 42 / .2)); transition: transform .2s ease; }
.strip-item:hover .phone, .strip-item:hover .strip-framed { transform: translateY(-4px) rotate(-1deg); }
.strip-name { font: 700 .9rem/1.2 var(--font-display); }

/* ---- Páginas de producto ------------------------------------------- */

/* Texto con imagen al lado (El problema). */
.text-media { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.text-media-art { justify-self: center; position: relative; }
.text-media-art .shot { width: 100%; border-radius: var(--radius); box-shadow: 0 22px 48px rgb(2 2 42 / .18); }
span.phone { display: block; }
.text-media-art.is-phone .phone { width: clamp(190px, 20vw, 250px); transform: rotate(3deg); }
.text-media-art::before {
  content: ""; position: absolute; z-index: -1;
  inset: 8% 0 -4% 12%;
  border-radius: 28px;
  background: linear-gradient(135deg, #e3f3f5, #efe7f7);
}
@media (max-width: 860px) { .text-media { grid-template-columns: 1fr; } }

/* Galerías de capturas, desplazables (las de la portada comparten .strip). */
.section-gallery { padding-bottom: calc(var(--section) - 28px); }
.strip-captions .strip-item { display: grid; gap: 12px; align-content: start; justify-items: center; width: clamp(160px, 16vw, 210px); }
.strip-captions .strip-item.is-wide { width: clamp(280px, 34vw, 480px); }
.strip-captions .phone { width: 100%; }
.strip-captions .shot { width: 100%; border-radius: var(--radius); box-shadow: 0 18px 36px rgb(2 2 42 / .14); background: var(--soft); }
.strip-captions .shot-framed { background: none; box-shadow: none; border-radius: 0; filter: drop-shadow(0 14px 22px rgb(2 2 42 / .18)); }
.strip-caption {
  font-size: .88rem; font-weight: 600; color: var(--navy-2); text-align: center; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Para quién: tarjetas sobre turquesa claro. */
.section-tint { background: linear-gradient(180deg, #e6f4f5 0%, #eef0fa 100%); }
.audience { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; list-style: none; }
.audience-card {
  padding: 28px 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgb(2 2 42 / .08);
}
.audience-num { display: block; font: 800 2.2rem/1 var(--font-display); color: var(--teal); margin-bottom: 14px; }
.audience-card h3 { font-size: 1.15rem; color: var(--navy-2); margin-bottom: 8px; }
.audience-card p { color: var(--muted); }

/* Qué incluye / qué no incluye, en dos tarjetas. */
.include-grid { display: grid; gap: 24px; }
.include-grid.has-no { grid-template-columns: 1.2fr 1fr; }
.include-card { padding: clamp(24px, 3vw, 40px); background: var(--white); border-radius: calc(var(--radius) + 4px); border-top: 4px solid var(--teal); box-shadow: 0 12px 30px rgb(2 2 42 / .06); }
.include-card .dots { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.include-card-no { background: transparent; border: 1.5px dashed #c5ced6; box-shadow: none; }
.list-no { display: grid; gap: 12px; list-style: none; }
.list-no .no { position: relative; padding-left: 34px; color: var(--muted); }
.list-no .no::before, .list-no .no::after {
  content: ""; position: absolute; left: 4px; top: .75em;
  width: 14px; height: 2.5px; border-radius: 2px; background: #9aa4ae;
}
.list-no .no::before { transform: rotate(45deg); }
.list-no .no::after { transform: rotate(-45deg); }
@media (max-width: 860px) { .include-grid.has-no { grid-template-columns: 1fr; } }

/* Precio: banda oscura con el botón. */
.price-band-grid { display: grid; grid-template-columns: minmax(0, 46em) auto; justify-content: space-between; gap: clamp(24px, 5vw, 64px); align-items: center; }
.price-band-cta { justify-self: end; }
@media (max-width: 860px) {
  .price-band-grid { grid-template-columns: 1fr; }
  .price-band-cta { justify-self: start; }
}

/* ---- Demos ------------------------------------------------------------ */

.demo-grid { display: grid; grid-template-columns: 1fr minmax(260px, 340px); gap: clamp(28px, 6vw, 80px); align-items: center; }
.demo-brand:empty { display: none; }
.demo-brand { margin-top: 16px; font-size: .9rem; opacity: .75; }
.demo-stage { justify-self: center; width: 100%; max-width: 320px; }
.demo-stage .phone { aspect-ratio: 9 / 19.5; }
.demo-stage .phone img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.demo-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 23px; background: #2b2d42; }
.demo-play {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  border: 0; border-radius: 23px;
  background: rgb(2 2 42 / .45);
  color: var(--white);
  font: 800 1.15rem/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s ease;
}
.demo-play:hover { background: rgb(2 2 42 / .3); }
.demo-play-icon {
  display: grid; place-items: center;
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--teal-ink);
  box-shadow: 0 0 0 10px rgb(47 193 207 / .25);
}
.demo-play-icon::before {
  content: ""; margin-left: 6px;
  border-left: 22px solid var(--white);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
}
.demo-note { margin-top: 14px; font-size: .85rem; text-align: center; opacity: .75; }
.demo-soon .demo-play { cursor: default; background: rgb(2 2 42 / .6); }

@media (max-width: 860px) {
  .demo-grid { grid-template-columns: 1fr; }
}

/* ---- Contacto --------------------------------------------------------- */

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact .dots { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.contact-note { margin-top: 18px; font-weight: 600; color: var(--teal-light); }
.contact-channels-title { margin-top: 32px; font: 600 .8rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: rgb(255 255 255 / .66); }
.contact-channels { list-style: none; margin-top: 12px; display: grid; gap: 8px; }
.contact-channels a { color: var(--white); text-decoration: none; font-weight: 600; }
.contact-channels a:hover { text-decoration: underline; }
.ch-label { display: inline-block; min-width: 92px; font-weight: 400; color: rgb(255 255 255 / .66); }

.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px;
  padding: clamp(20px, 3vw, 32px);
  background: var(--white); color: var(--text);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 30px 60px rgb(0 0 0 / .3);
}
.field { display: grid; gap: 6px; min-width: 0; align-content: end; }
.field-wide { grid-column: 1 / -1; }
.field label, .field legend { font-size: .88rem; font-weight: 600; color: var(--navy-2); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1.5px solid #c5ced6;
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  font: inherit; font-size: 1rem;
}
.form textarea { resize: vertical; min-height: 92px; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--teal-ink); outline: 3px solid rgb(17 139 153 / .25); outline-offset: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-block; padding: 9px 14px; border-radius: 999px;
  border: 1.5px solid #c5ced6; font-size: .92rem; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.chip input:checked + span { background: var(--teal-ink); border-color: var(--teal-ink); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--teal-light); outline-offset: 2px; }
.check-field label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
.check-field input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--teal-ink); flex: none; }
.check-field a { color: var(--teal-ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form-status { font-weight: 600; color: var(--teal-ink); }
.form-status.is-error { color: #b42318; }

@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ---- Pie -------------------------------------------------------------- */

.footer { background: var(--navy-2); color: rgb(255 255 255 / .82); font-size: .95rem; padding-top: 56px; }
.footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-grid p + p { margin-top: 8px; }
.logo-footer { margin-bottom: 16px; }
.footer-head { font-weight: 600; color: var(--white); margin-bottom: 10px; }
.footer-list { list-style: none; display: grid; gap: 8px; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { text-decoration: underline; }
.footer-muted { color: rgb(255 255 255 / .62); }
.footer-desc { display: block; font-size: .88rem; color: rgb(255 255 255 / .62); }
.footer-list li:has(.footer-desc) + li { margin-top: 6px; }
.footer-legal {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  padding-block: 20px 28px;
  border-top: 1px solid rgb(255 255 255 / .1);
  font-size: .85rem;
}
.footer-legal a, .footer-legal .linkish { color: rgb(255 255 255 / .7); }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cards-3, .cards-4, .steps { grid-template-columns: 1fr; }
}
@media (min-width: 561px) and (max-width: 860px) {
  .cards-4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 861px) and (max-width: 1100px) {
  .cards-4 { grid-template-columns: 1fr 1fr; }
}

/* ---- Proyectos y casos ---------------------------------------------- */

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter {
  padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--white); color: var(--navy-2);
  font-size: .92rem; font-weight: 600; cursor: pointer;
}
.filter[aria-pressed="true"] { background: var(--teal-ink); border-color: var(--teal-ink); color: var(--white); }
.filters-note { color: var(--muted); margin-bottom: 28px; }
.tags .tag-soon { background: #f6ebd2; color: #6e4c08; }

.card-game { display: flex; gap: 18px; align-items: flex-start; }
.card-game-icon { width: 72px; height: 72px; border-radius: 16px; flex: none; }
.soon { margin-top: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-ink); }

/* Margen de sobra: los rombos del título asoman por encima de la línea. */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; font-size: .88rem; margin-bottom: 44px; }
/* "\2f" es la barra: escrita tal cual, tools/nuevaweb.py la tomaría por una
   ruta del sitio y le pondría delante /nuevaweb. */
.crumbs li + li::before { content: "\2f"; margin-right: 6px; color: rgb(255 255 255 / .45); }
.crumbs a { color: rgb(255 255 255 / .8); }
.crumbs [aria-current] { color: var(--white); }
.h1-sub { display: block; margin-top: 10px; font-size: .5em; text-transform: none; font-weight: 600; color: rgb(255 255 255 / .82); line-height: 1.25; }
.h1-sub::first-letter { text-transform: uppercase; }
.hero-case .wrap { padding-block: clamp(40px, 7vw, 80px); }
.tags-dark { margin-top: 22px; }
.tags-dark li { background: rgb(255 255 255 / .1); color: var(--white); }

.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.case-h { margin-top: 36px; }
.case-media img, .case-media .placeholder { width: 100%; border-radius: var(--radius); box-shadow: 0 18px 40px rgb(2 2 42 / .14); }
.result {
  margin-top: 32px; padding: 22px 24px;
  border-left: 4px solid var(--teal);
  background: var(--white); border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
}
.result strong { color: var(--navy-2); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; list-style: none; }
.gallery img, .gallery .placeholder { width: 100%; height: 100%; max-height: 420px; object-fit: contain; background: var(--soft); border-radius: var(--radius); }
.gallery-tall { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.placeholder:not(.card-media *) { min-height: 240px; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
.about-links { margin-top: 16px; font-weight: 600; }
.card-principle h3 { font-size: 1.3rem; text-transform: uppercase; }
.page-about .hero-sub + .hero-sub { margin-top: 14px; }

@media (max-width: 860px) {
  .case-grid, .about-grid { grid-template-columns: 1fr; }
}

/* ---- Demo con la marca del cliente (reuniones) --------------------------- */

.brand-grid { display: grid; grid-template-columns: 1fr minmax(260px, 320px); gap: clamp(28px, 5vw, 56px); align-items: start; }
.brand-form { box-shadow: none; border: 1px solid var(--line); }
.brand-form input[type="color"] { width: 100%; height: 46px; padding: 4px; border: 1.5px solid #c5ced6; border-radius: 8px; background: var(--white); }
.brand-preview .phone iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 23px; background: #2b1a12; }
@media (max-width: 860px) { .brand-grid { grid-template-columns: 1fr; } }

/* ---- Banner de cookies ------------------------------------------------ */

.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  max-width: 560px;
  display: grid; gap: 14px;
  padding: 18px 20px;
  background: var(--white); color: var(--text);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgb(2 2 42 / .35);
  font-size: .95rem;
}
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.consent .btn-ghost { color: var(--navy-2); }
.consent .btn-ghost:hover { background: var(--soft); }

/* ---- Páginas de texto -------------------------------------------------- */

.prose p { color: var(--muted); }
.prose p + p { margin-top: 1em; }

/* ---- Movimiento -------------------------------------------------------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

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

/* ---- Lo que gana tu marca (portada) y enlace a Resultados ---------------- */

.audience-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.section-more { margin-top: 28px; }
.section-more .link-more { margin-bottom: 0; }

/* ---- Resultados: el panel de ejemplo con las partidas de la demo -------- */

.section-panel { background: var(--soft); }
.panel-metrics {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px;
  list-style: none; margin: 28px 0 20px;
}
.panel-metrics li, .panel-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.panel-metrics li { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.panel-num { font: 800 2.2rem/1 var(--font-display); color: var(--teal-ink); font-variant-numeric: tabular-nums; }
.panel-label { font-size: .9rem; color: var(--muted); line-height: 1.35; }
.panel-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 14px; }
.panel-card { padding: 20px; margin: 0; min-width: 0; }
.panel-card figcaption, .panel-card h3 { font: 700 1rem/1.3 var(--font-display); color: var(--navy-2); margin-bottom: 16px; }
.panel-chart {
  list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px;
  align-items: end; height: 170px;
}
.panel-chart li { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.panel-bar { width: 100%; max-width: 34px; min-height: 3px; border-radius: 6px 6px 2px 2px; background: var(--teal); }
.panel-chart .panel-bar-n { font-size: .8rem; font-weight: 700; color: var(--navy-2); }
.panel-chart .panel-day { font-size: .75rem; color: var(--muted); }
.panel-table-wrap { overflow-x: auto; }
.panel-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.panel-table th, .panel-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.panel-table th { font-weight: 600; color: var(--muted); font-size: .8rem; }
.panel-empty { color: var(--muted); font-size: .95rem; margin-top: 12px; }
.panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.btn-link { background: none; border-color: transparent; color: var(--teal-ink); text-decoration: underline; }
@media (max-width: 760px) {
  .panel-grid { grid-template-columns: 1fr; }
  .panel-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Tarjetas con icono (listas "tarjetas" de las páginas de producto) --- */

/* Flex en vez de grid: la última fila, si no está completa, se reparte el
   ancho y no deja huecos. */
.features { --cols: 3; display: flex; flex-wrap: wrap; gap: 20px; list-style: none; }
.features-1 { --cols: 1; }
.features-2 { --cols: 2; }
.features-4 { --cols: 4; }
.feature {
  flex: 1 1 calc((100% - (var(--cols) - 1) * 20px) / var(--cols));
  min-width: 0;
  display: flex; flex-direction: column; gap: 16px;
  padding: 26px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgb(2 2 42 / .05);
}
.features-2 .feature { flex-direction: row; align-items: flex-start; gap: 20px; padding: 28px; }
.feature-icon {
  flex: none; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, #e3f4f6 0%, #e9ecfa 100%);
  color: var(--teal-ink);
}
.feature-icon .icon { width: 24px; height: 24px; }
.feature h3 { font: 700 1.08rem/1.3 var(--font-display); color: var(--navy-2); margin-bottom: 6px; }
.feature p { color: var(--muted); }
.section-soft .feature { box-shadow: none; }
@media (max-width: 900px) {
  .features-3, .features-4 { --cols: 2; }
}
@media (max-width: 600px) {
  .features { --cols: 1 !important; gap: 14px; }
  .feature, .features-2 .feature { flex-direction: row; gap: 16px; padding: 20px; }
  .feature-icon { width: 42px; height: 42px; }
}
.text-media-art.is-framed .shot { width: clamp(210px, 22vw, 270px); border-radius: 0; box-shadow: none; filter: drop-shadow(0 22px 36px rgb(2 2 42 / .2)); transform: rotate(-2deg); }
.text-media-art.is-framed::before { display: none; }

/* Conceptos: el aviso de la cabecera del caso. */
.concept-note {
  max-width: 720px; margin-top: 22px; padding: 14px 18px;
  border: 1px dashed rgb(255 255 255 / .35); border-radius: 12px;
  color: rgb(255 255 255 / .85); font-size: .95rem;
}
.concept-note strong { color: var(--white); }
/* Conceptos: los móviles ya traen su marco (sin fondo detrás) y una
   pantalla horizontal (el panel) ocupa la fila entera. */
.gallery-concept img { background: none; }
.gallery-tall .is-wide { grid-column: 1 / -1; }
.gallery-tall .is-wide img { max-height: none; box-shadow: 0 18px 40px rgb(2 2 42 / .14); }
.gallery-concept { display: flex; flex-wrap: wrap; justify-content: center; }
.gallery-concept li { flex: 1 1 170px; max-width: 250px; }
.gallery-concept li.is-wide { flex-basis: 100%; max-width: none; }
.case-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; }
.case-demo p { color: rgb(255 255 255 / .75); font-size: .95rem; }
.case-demo-extras { margin-top: 12px; color: rgb(255 255 255 / .75); font-size: .95rem; }
.case-demo-extras a { color: var(--white); margin-left: 4px; }

/* Nuestros juegos (/juegos/) */
.card-game .card-body { display: flex; flex-direction: column; flex: 1; }
.card-game-links { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.card-game .card-more { padding-top: 0; margin-top: 0; }
.card-game-brand { position: relative; z-index: 1; font-size: .9rem; font-weight: 600; color: var(--navy-2); }
.games-next { display: flex; flex-wrap: wrap; gap: 0 32px; list-style: none; margin-top: 24px; }
.games-next .link-more { margin-bottom: 12px; }
.games-langs { margin-top: 28px; font-size: .9rem; color: var(--muted); }
.games-langs a { color: inherit; }
