﻿:root {
  --navy: #063955;
  --navy-deep: #082235;
  --copper: #b75f24;
  --copper-dark: #8c4319;
  --green: #176d63;
  --green-deep: #0d443f;
  --ink: #f4f1eb;
  --muted: #b8c0c5;
  --paper: #050505;
  --white: #ffffff;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
  --radius: 8px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--navy-deep);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 6vw, 5rem);
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2rem, 4vw, 4rem);
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

p {
  margin-bottom: 18px;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 14px;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: 6px;
  background: var(--navy-deep);
  color: var(--white);
  padding: 12px 16px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 5, 5, 0.88);
  padding: 12px clamp(18px, 4vw, 54px);
  backdrop-filter: blur(18px);
}

.brand-link {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.brand-link img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  object-fit: contain;
}

.brand-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--white);
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-header.is-menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.96rem;
  font-weight: 800;
}

.site-nav a {
  border-radius: 6px;
  padding: 8px 2px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #ffd2b2;
}

.intro-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background-color: var(--navy-deep);
  background-image: url("../../imagenes/hero_principal_quincho.png");
  background-position: center;
  background-size: cover;
  color: var(--white);
}

.intro-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(8, 19, 28, 0.84) 0%, rgba(8, 19, 28, 0.68) 32%, rgba(8, 19, 28, 0.2) 72%, rgba(8, 19, 28, 0.08) 100%),
    linear-gradient(0deg, rgba(8, 19, 28, 0.2) 0%, rgba(8, 19, 28, 0.02) 46%, rgba(8, 19, 28, 0.22) 100%);
  pointer-events: none;
}

.intro-shell {
  display: grid;
  position: relative;
  z-index: 1;
  min-height: calc(90svh - var(--header-height));
  max-width: 1220px;
  margin: 0 auto;
  align-items: center;
  padding: clamp(44px, 7vw, 90px) clamp(18px, 4vw, 54px) clamp(34px, 5vw, 64px);
  grid-template-columns: minmax(0, 680px);
}

.intro-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--copper-dark);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-logo {
  width: min(720px, 100%);
  margin-bottom: clamp(26px, 4vw, 46px);
}

.intro-copy h1 {
  color: var(--white);
  font-size: clamp(1.85rem, 4vw, 3.35rem);
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.26);
}

.hero-lead {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
  margin-top: clamp(26px, 4vw, 40px);
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 15px 30px;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  font-weight: 800;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.hero-cta-btn:hover,
.hero-cta-btn:focus-visible {
  transform: translateY(-2px);
}

.hero-cta-btn-primary {
  background: var(--copper);
  color: var(--white);
}

.hero-cta-btn-primary:hover,
.hero-cta-btn-primary:focus-visible {
  background: var(--copper-dark);
}

.hero-cta-btn-secondary {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.hero-cta-btn-secondary:hover,
.hero-cta-btn-secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.16);
}

/* Iconos (de trazo) en los CTA del hero ("Juega Truco" / "Juega Dudo"). Heredan el color del
   botón vía currentColor; un poco más grandes que el texto por ser de línea fina. */
.hero-cta-icon {
  width: 1.5em;
  height: 1.5em;
  flex: 0 0 auto;
}

/* En móvil los 2 CTA del hero comparten la fila en partes iguales (no se baja "Juega Dudo"):
   nowrap + flex:1, con padding e icono más compactos para que quepan en pantallas angostas. */
@media (max-width: 560px) {
  .hero-cta {
    flex-wrap: nowrap;
    gap: 10px;
  }
  .hero-cta-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 13px 10px;
    gap: 7px;
    font-size: 0.95rem;
    white-space: nowrap;
  }
  .hero-cta-icon {
    width: 1.2em;
    height: 1.2em;
  }
}

/* Botón flotante para instalar/abrir la PWA (en la home y en /app/), arriba a
   la derecha, justo bajo el header. El texto lo controla pwa.js (data-app-cta):
   "Instalar app" si el sistema lo permite, "Abrir app" si ya está instalada o
   si no se puede detectar. Se oculta cuando la página ya corre como app
   instalada (standalone). */
.pwa-fab {
  position: fixed;
  top: calc(var(--header-height) + 12px);
  right: clamp(12px, 3vw, 20px);
  z-index: 15;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(5, 8, 12, 0.72);
  color: var(--white);
  padding: 10px 18px;
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.pwa-fab::before {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v10m0 0 4-4m-4 4-4-4M5 21h14' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v10m0 0 4-4m-4 4-4-4M5 21h14' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* En estado "Abrir app" quitamos el icono de descarga (ya no aplica). */
.pwa-fab[data-app-state="open"]::before {
  display: none;
}

.pwa-fab:hover,
.pwa-fab:focus-visible {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(5, 8, 12, 0.88);
  transform: translateY(-2px);
}

/* Variante "solo instalar" (en /app/): oculta salvo cuando se puede instalar,
   porque "Abrir app" es redundante dentro de la propia app. */
.pwa-fab-install-only {
  display: none;
}

.pwa-fab-install-only[data-app-state="install"] {
  display: inline-flex;
}

/* En la app instalada (standalone) no ofrecemos instalar/abrir. */
html[data-display-mode="standalone"] .pwa-fab {
  display: none !important;
}

.purpose-section {
  position: relative;
  overflow: hidden;
  background-color: var(--paper);
  background-image: url("../../imagenes/hero_casa_estancia.png");
  background-position: center;
  background-size: cover;
  padding: clamp(64px, 8vw, 112px) 0;
}

.purpose-section::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.84) 0%, rgba(5, 5, 5, 0.66) 36%, rgba(5, 5, 5, 0.16) 78%, rgba(5, 5, 5, 0.08) 100%),
    linear-gradient(0deg, rgba(5, 5, 5, 0.34) 0%, rgba(5, 5, 5, 0.02) 48%, rgba(5, 5, 5, 0.26) 100%);
  pointer-events: none;
}

.section-shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: min(620px, 72svh);
  align-content: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 54px);
}

.section-heading {
  max-width: 850px;
  margin-bottom: clamp(22px, 4vw, 34px);
}

.section-heading h2 {
  color: var(--white);
  margin-bottom: 0;
}

.purpose-text {
  max-width: 920px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.1rem, 2vw, 1.32rem);
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.game-hero {
  position: relative;
  display: grid;
  min-height: min(760px, 86svh);
  align-items: center;
  scroll-margin-top: var(--header-height);
  overflow: hidden;
  background-color: var(--navy-deep);
  background-position: center;
  background-size: cover;
  padding: clamp(44px, 8vw, 92px) clamp(18px, 5vw, 72px);
}

.game-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.game-hero-truco {
  background-image: url("../../imagenes/hero_cartas_truco-2.png");
}

.game-hero-truco::before {
  background: linear-gradient(90deg, rgba(8, 19, 28, 0.92) 0%, rgba(8, 19, 28, 0.74) 30%, rgba(8, 19, 28, 0.18) 70%, rgba(8, 19, 28, 0.08) 100%);
}

.game-hero-cacho {
  background-image: url("../../imagenes/hero_dados_cacho-3.png");
  background-position: center;
}

.game-hero-cacho::before {
  background: linear-gradient(270deg, rgba(8, 19, 28, 0.94) 0%, rgba(8, 19, 28, 0.8) 34%, rgba(8, 19, 28, 0.24) 70%, rgba(8, 19, 28, 0.1) 100%);
}

.game-copy {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  color: rgba(255, 255, 255, 0.88);
}

.game-copy h2 {
  color: var(--white);
  text-wrap: balance;
}

.game-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.04rem, 2vw, 1.22rem);
}

.game-copy .eyebrow {
  color: #f3aa74;
}

.coming-soon-badge {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid rgba(255, 210, 178, 0.42);
  border-radius: 999px;
  background: rgba(183, 95, 36, 0.18);
  color: #ffd2b2;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.game-copy-right {
  margin-left: auto;
}

/* ===== Hero carrusel (entre "Distancia" y "Truco") =====
   Mismo encuadre que los .game-hero (alto, padding, degradé de izquierda) para que
   lea como un hero más. Las slides van apiladas en absoluto y hacen crossfade. */
.hero-carousel {
  position: relative;
  isolation: isolate;
  min-height: min(760px, 86svh);
  scroll-margin-top: var(--header-height);
  overflow: hidden;
  background-color: var(--navy-deep);
}

.carousel-track {
  margin: 0;
  padding: 0;
  list-style: none;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  background-position: center right;
  background-size: cover;
  padding: clamp(44px, 8vw, 92px) clamp(18px, 5vw, 72px);
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  transition: opacity 800ms ease, visibility 0s linear 800ms;
}

.carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 800ms ease, visibility 0s;
}

.carousel-slide::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 19, 28, 0.92) 0%, rgba(8, 19, 28, 0.74) 30%, rgba(8, 19, 28, 0.18) 70%, rgba(8, 19, 28, 0.08) 100%);
}

.carousel-content {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  color: rgba(255, 255, 255, 0.92);
}

/* Entrada escalonada del texto cuando la slide pasa a activa. */
.carousel-kicker,
.carousel-line {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.carousel-slide.is-active .carousel-kicker,
.carousel-slide.is-active .carousel-line {
  opacity: 1;
  transform: none;
}

.carousel-slide.is-active .carousel-kicker {
  transition-delay: 220ms;
}

.carousel-slide.is-active .carousel-line {
  transition-delay: 340ms;
}

.carousel-kicker {
  margin-bottom: 16px;
  color: #f3aa74;
  font-size: clamp(1.6rem, 3.4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.34);
  text-wrap: balance;
}

.carousel-line {
  margin-bottom: 0;
  max-width: 560px;
  font-size: clamp(1.15rem, 2.3vw, 1.6rem);
  font-weight: 500;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

/* Recalca la marca dentro del copy de cada slide. */
.carousel-brand {
  color: var(--white);
  font-weight: 800;
  white-space: nowrap;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(5, 8, 12, 0.5);
  color: var(--white);
  padding: 0;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.carousel-nav:hover,
.carousel-nav:focus-visible {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(5, 8, 12, 0.78);
}

.carousel-nav svg {
  width: 20px;
  height: 20px;
}

.carousel-prev {
  left: clamp(10px, 2vw, 22px);
}

.carousel-next {
  right: clamp(10px, 2vw, 22px);
}

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(18px, 3vw, 30px);
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  box-sizing: content-box;
  border: 5px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  background-clip: content-box;
  padding: 0;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.carousel-dot:hover,
.carousel-dot:focus-visible {
  background: rgba(255, 255, 255, 0.78);
}

.carousel-dot.is-active {
  background: #f3aa74;
  transform: scale(1.18);
}

/* Sin JS no hay cambio de slide: dejamos visible la primera y ocultamos controles. */
.no-js .carousel-nav,
.no-js .carousel-dots {
  display: none;
}

.site-footer {
  background: #020202;
  color: rgba(255, 255, 255, 0.86);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px clamp(18px, 4vw, 54px);
}

.footer-shell {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1180px;
  margin: 0 auto;
  gap: 18px 32px;
}

.footer-legal,
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-legal {
  align-items: flex-start;
  text-align: left;
}

.footer-info {
  align-items: flex-end;
  text-align: right;
}

.footer-shell p {
  margin-bottom: 0;
}

.footer-shell a {
  color: #ffd2b2;
  font-weight: 800;
}

.footer-note {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
}

.footer-credit {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.78rem;
}

@media (max-width: 620px) {
  .footer-shell {
    flex-direction: column;
  }

  .footer-legal,
  .footer-info {
    align-items: flex-start;
    text-align: left;
  }
}

.reveal {
  transform: translateY(18px);
  opacity: 0;
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible,
.no-js .reveal {
  transform: none;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    align-items: center;
    gap: 14px;
    flex-direction: row;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(5, 5, 5, 0.96);
    padding: 12px clamp(18px, 4vw, 54px) 16px;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.26);
    font-size: 1rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    visibility: hidden;
  }

  .site-header.is-menu-open .site-nav,
  .no-js .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: visible;
  }

  .no-js .site-nav {
    position: static;
    width: 100%;
  }

  .no-js .menu-toggle {
    display: none;
  }

  .site-nav a {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    padding: 14px 12px;
    text-align: center;
  }

  .intro-hero {
    background-position: 78% center;
  }

  .purpose-section {
    background-position: 84% center;
  }

  .intro-hero::before,
  .purpose-section::before {
    background:
      linear-gradient(0deg, rgba(8, 19, 28, 0.92) 0%, rgba(8, 19, 28, 0.78) 42%, rgba(8, 19, 28, 0.28) 72%, rgba(8, 19, 28, 0.14) 100%),
      linear-gradient(90deg, rgba(8, 19, 28, 0.62) 0%, rgba(8, 19, 28, 0.18) 58%, rgba(8, 19, 28, 0.08) 100%);
  }

  .intro-shell {
    min-height: calc(82svh - var(--header-height));
    grid-template-columns: 1fr;
  }

  .game-hero {
    min-height: 680px;
    align-items: end;
  }

  .game-copy,
  .game-copy-right {
    width: 100%;
    margin-left: 0;
  }

  .game-hero-truco {
    background-position: 55% center;
  }

  .game-hero-cacho {
    background-position: 42% center;
  }

  .game-hero-truco::before,
  .game-hero-cacho::before {
    background: linear-gradient(0deg, rgba(8, 19, 28, 0.94) 0%, rgba(8, 19, 28, 0.78) 46%, rgba(8, 19, 28, 0.18) 100%);
  }

  .hero-carousel {
    min-height: 680px;
  }

  .carousel-slide {
    align-items: end;
    background-position: 64% center;
  }

  .carousel-content {
    width: 100%;
  }

  .carousel-slide::before {
    background:
      radial-gradient(ellipse 112% 72% at 0% 100%, rgba(8, 19, 28, 0.92) 0%, rgba(8, 19, 28, 0.78) 30%, rgba(8, 19, 28, 0.42) 54%, rgba(8, 19, 28, 0.12) 72%, rgba(8, 19, 28, 0) 88%),
      linear-gradient(90deg, rgba(8, 19, 28, 0.5) 0%, rgba(8, 19, 28, 0.38) 46%, rgba(8, 19, 28, 0.18) 74%, rgba(8, 19, 28, 0) 100%),
      linear-gradient(0deg, rgba(8, 19, 28, 0.36) 0%, rgba(8, 19, 28, 0.12) 30%, rgba(8, 19, 28, 0) 56%);
  }

}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .brand-link span {
    font-size: 0.98rem;
  }

  .brand-link img {
    width: 38px;
    height: 38px;
  }

  .site-nav {
    font-size: 0.82rem;
  }

  .intro-hero {
    background-position: 92% top;
    background-repeat: no-repeat;
    background-size: auto 62svh;
  }

  .purpose-section {
    background-position: 92% top;
    background-repeat: no-repeat;
    background-size: auto min(48svh, 390px);
    padding: 0;
  }

  .intro-hero::before {
    background: linear-gradient(to bottom, rgba(8, 19, 28, 0.14) 0%, rgba(8, 19, 28, 0.2) 34%, rgba(8, 19, 28, 0.88) 58%, rgba(8, 19, 28, 0.97) 100%);
  }

  .intro-shell {
    min-height: calc(92svh - var(--header-height));
    align-items: end;
    padding-top: min(38svh, 330px);
    padding-bottom: 42px;
  }

  .hero-logo {
    width: min(330px, 92%);
  }

  /* El logo ya muestra la marca; ocultamos el título redundante en móvil
     para no empujar el texto y los botones hacia abajo. Se mantiene en el
     árbol de accesibilidad (único h1 y referencia del aria-labelledby). */
  .intro-copy h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .purpose-section::before {
    background: linear-gradient(to bottom, rgba(8, 19, 28, 0.12) 0%, rgba(8, 19, 28, 0.22) 34%, rgba(8, 19, 28, 0.88) 58%, rgba(8, 19, 28, 0.97) 100%);
  }

  .purpose-section .section-shell {
    min-height: auto;
    align-content: end;
    padding-top: min(48svh, 390px);
    padding-bottom: 46px;
  }

  .game-hero {
    min-height: 720px;
    padding-top: 58px;
    padding-bottom: 42px;
  }

  .hero-carousel {
    min-height: 640px;
  }

  .carousel-slide {
    background-position: 70% center;
    padding-top: 58px;
    padding-bottom: 70px;
  }

  .carousel-slide-mate {
    background-position: 82% center;
  }

  /* En pantallas angostas el swipe y los puntos bastan; las flechas taparían a los
     personajes de la foto. */
  .carousel-prev,
  .carousel-next {
    display: none;
  }

  .carousel-dots {
    bottom: 20px;
  }

}
