/* Salchi Run · landing
   Paleta y formas tomadas del juego: azul marino, azul brillante y dorado. */

@font-face {
  font-family: "Fredoka";
  src: url("../fonts/Fredoka.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --navy-deep: #07122e;
  --navy: #0b1e4b;
  --panel: #122a63;
  --panel-light: #1a3a82;
  --border: #2e55a8;
  --blue: #2d8cff;
  --blue-light: #6cb8ff;
  --gold: #ffc532;
  --gold-deep: #ff9f1c;
  --orange: #ff7a1a;
  --green: #58d34b;
  --text: #ffffff;
  --text-soft: #b9c8ec;
  --radius: 22px;
  --nav-height: 72px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: "Fredoka", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
  color: var(--text);
  background: var(--navy);
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.1;
}

a {
  color: var(--blue-light);
}

a:hover {
  color: var(--gold);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  fill: currentColor;
  flex-shrink: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 2000;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
  color: var(--navy);
}

/* ------------------------------------------------------------ Navegación */

.site-nav {
  min-height: var(--nav-height);
  transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

.site-nav.is-scrolled,
.site-nav:has(.navbar-collapse.show),
.site-nav:has(.navbar-collapse.collapsing) {
  background: rgba(11, 30, 75, 0.92);
  box-shadow: 0 6px 24px rgba(4, 11, 34, 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.navbar-brand img {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 3px 6px rgba(4, 11, 34, 0.5));
  transition: transform 0.25s;
}

.navbar-brand:hover img {
  transform: rotate(-4deg) scale(1.06);
}

.site-nav .nav-link {
  color: var(--text);
  font-weight: 600;
  padding-inline: 0.9rem;
  border-radius: 12px;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus-visible,
.site-nav .nav-link.active {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.07);
}

.navbar-toggler {
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-width='2.6' d='M5 8h20M5 15h20M5 22h20'/%3e%3c/svg%3e");
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(7, 18, 46, 0.6);
  border: 1.5px solid var(--border);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-btn.is-active {
  background: var(--blue);
  color: #fff;
}

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

.btn-game,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-weight: 700;
  border-radius: 18px;
  border: 0;
  transition: transform 0.12s, box-shadow 0.12s, filter 0.2s;
}

/* Botón dorado con «grosor», como los del juego. */
.btn-game {
  position: relative;
  overflow: hidden;
  color: var(--navy);
  background: linear-gradient(180deg, #ffe066, var(--gold) 45%, var(--gold-deep));
  box-shadow: 0 5px 0 #c96a00, 0 10px 22px rgba(4, 11, 34, 0.4);
}

.btn-game::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.7) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: shine 3.2s ease-in-out infinite;
}

.btn-game:hover,
.btn-game:focus-visible {
  color: var(--navy);
  background: linear-gradient(180deg, #ffe98a, var(--gold) 45%, var(--gold-deep));
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #c96a00, 0 14px 26px rgba(4, 11, 34, 0.45);
}

.btn-game:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #c96a00, 0 4px 10px rgba(4, 11, 34, 0.4);
}

.btn-game.is-disabled {
  cursor: default;
  filter: saturate(0.75);
}

.btn-game.is-disabled:hover {
  transform: none;
  box-shadow: 0 5px 0 #c96a00, 0 10px 22px rgba(4, 11, 34, 0.4);
}

.btn-ghost {
  color: #fff;
  background: rgba(18, 42, 99, 0.75);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55), 0 5px 0 #081638;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: #fff;
  background: var(--panel-light);
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 2px #fff, 0 7px 0 #081638;
}

.btn-ghost:active {
  transform: translateY(4px);
  box-shadow: inset 0 0 0 2px #fff, 0 1px 0 #081638;
}

.btn-lg {
  padding: 0.8rem 1.5rem;
  font-size: 1.15rem;
}

/* Botón principal de la portada: grande, a la escala del título. */
.hero-cta {
  margin-bottom: 2rem;
}

.btn-hero {
  gap: 0.65em;
  padding: 0.6rem 1.6rem 0.6rem 0.7rem;
  font-size: clamp(1.15rem, 1.6vw, 1.3rem);
  border-radius: 999px;
  box-shadow: 0 5px 0 #c96a00, 0 12px 26px rgba(4, 11, 34, 0.45), 0 0 30px rgba(255, 197, 50, 0.3);
}

.btn-hero:hover,
.btn-hero:focus-visible {
  box-shadow: 0 7px 0 #c96a00, 0 16px 30px rgba(4, 11, 34, 0.5), 0 0 44px rgba(255, 197, 50, 0.45);
}

.btn-hero:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #c96a00, 0 6px 14px rgba(4, 11, 34, 0.45);
}

.play-badge {
  display: grid;
  place-items: center;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.play-badge .icon {
  width: 1.1em;
  height: 1.1em;
  margin-left: 0.12em;
}

@keyframes shine {
  0%,
  55% {
    transform: translateX(-120%);
  }
  85%,
  100% {
    transform: translateX(120%);
  }
}

/* ---------------------------------------------------------------- Portada */

.hero {
  position: relative;
  /* A pantalla completa, con tope para ventanas muy altas. */
  min-height: min(100svh, 980px);
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 24px) 0 110px;
  background: linear-gradient(180deg, #123a8c, var(--navy) 55%, var(--navy-deep));
  overflow: hidden;
}

.hero-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-art img {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* La misma ilustración, desenfocada, rellena el lado izquierdo. */
.hero-art-blur {
  width: 78%;
  filter: blur(28px);
  transform: scale(1.12);
  -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent);
  mask-image: linear-gradient(90deg, #000 45%, transparent);
}

.hero-art-main {
  width: min(54%, 86svh, 840px);
  -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent);
  mask-image: linear-gradient(90deg, #000 80%, transparent);
  transition: transform 0.4s ease-out;
  will-change: transform;
}

.hero-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 30, 75, 0) 38%, rgba(11, 30, 75, 0.6) 50%, var(--navy) 64%),
    linear-gradient(180deg, rgba(11, 30, 75, 0.25), rgba(11, 30, 75, 0) 30%, rgba(7, 18, 46, 0.55));
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: rgba(45, 140, 255, 0.2);
  border: 1.5px solid rgba(108, 184, 255, 0.5);
  color: var(--blue-light);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.9rem);
  margin-bottom: 1rem;
  text-shadow: 0 4px 0 rgba(7, 18, 46, 0.6);
}

.hero-title span {
  display: block;
}

.gold {
  background: linear-gradient(180deg, #ffe680, var(--gold) 50%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 4px 0 rgba(7, 18, 46, 0.6));
}

.hero-lead {
  max-width: 34rem;
  font-size: 1.2rem;
  color: var(--text-soft);
  margin-bottom: 1.6rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 30rem;
  margin: 0;
}

.stats div {
  padding: 0.7rem 0.4rem;
  text-align: center;
  border-radius: 16px;
  background: rgba(18, 42, 99, 0.8);
  border: 1.5px solid var(--border);
}

.stats dt {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stats dd {
  margin: 0.15rem 0 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 70px;
  fill: var(--navy);
  z-index: 2;
}

/* Huellas y destellos flotando, como en los menús del juego. */
.paws {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 214, 110, 0.5) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(159, 210, 255, 0.5) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(255, 255, 255, 0.35) 0 1.5px, transparent 2.5px);
  background-size: 190px 230px, 260px 310px, 140px 170px;
  background-position: 20px 40px, 120px 160px, 70px 10px;
  animation: drift 40s linear infinite;
  opacity: 0.7;
}

@keyframes drift {
  to {
    background-position: 20px -880px, 120px -1080px, 70px -670px;
  }
}

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

.section {
  position: relative;
  padding: 5.5rem 0;
  background: var(--navy);
}

.section-alt {
  background: linear-gradient(180deg, var(--navy-deep), #0a1940);
}

.section-head {
  max-width: 44rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head h2,
#platforms h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 0.8rem;
}

.section-head p,
.lead-soft {
  color: var(--text-soft);
  font-size: 1.15rem;
  margin: 0;
}

/* Tarjetas tipo panel del juego */
.feature-card,
.dog-card,
.download-card {
  height: 100%;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-light), var(--panel));
  border: 1.5px solid var(--border);
  box-shadow: 0 10px 24px rgba(4, 11, 34, 0.4);
}

.feature-card {
  padding: 1.6rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: var(--blue-light);
  box-shadow: 0 16px 34px rgba(4, 11, 34, 0.55), 0 0 0 1px rgba(108, 184, 255, 0.4);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 1rem;
  border-radius: 18px;
  color: var(--navy);
  font-size: 1.5rem;
  background: linear-gradient(180deg, #ffe066, var(--gold-deep));
  box-shadow: 0 4px 0 #c96a00;
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-soft);
}

/* Inclinación 3D suave que sigue al puntero (la aplica site.js). */
.tilt {
  transform: perspective(700px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.18s ease-out;
  will-change: transform;
}

/* ------------------------------------------------------------------ Video */

.video-frame {
  max-width: 960px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 28px;
  background: linear-gradient(180deg, var(--panel-light), var(--panel));
  border: 1.5px solid var(--border);
  box-shadow: 0 24px 60px rgba(4, 11, 34, 0.6), 0 0 80px rgba(45, 140, 255, 0.25);
}

.video-frame video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  background: #000;
}

/* ----------------------------------------------------------------- Mundos */

.world-card,
.shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.world-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1.5px solid var(--border);
  box-shadow: 0 8px 20px rgba(4, 11, 34, 0.45);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.world-card img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s;
}

.world-card:hover,
.world-card:focus-visible {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 16px 30px rgba(4, 11, 34, 0.6);
}

.world-card:hover img {
  transform: scale(1.08);
}

.world-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 0.8rem 0.6rem;
  text-align: left;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(180deg, transparent, rgba(7, 18, 46, 0.92));
}

.world-name b {
  display: inline-grid;
  place-items: center;
  min-width: 1.7em;
  height: 1.7em;
  margin-right: 0.3em;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.85em;
}

/* --------------------------------------------------------------- Perritos */

.dog-card {
  padding: 1.4rem 1rem 1.2rem;
  text-align: center;
}

.dog-card img {
  width: 100%;
  max-width: 220px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 12px 10px rgba(4, 11, 34, 0.55));
  transition: transform 0.3s;
}

.dog-card:hover img {
  animation: hop 0.6s ease;
}

.dog-card h3 {
  margin: 0.9rem 0 0.3rem;
  font-size: 1.35rem;
  color: var(--gold);
}

.dog-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.98rem;
}

@keyframes hop {
  40% {
    transform: translateY(-14px) rotate(-4deg);
  }
  70% {
    transform: translateY(0) rotate(2deg);
  }
}

/* ---------------------------------------------------------------- Galería */

.gallery-tabs {
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.gallery-tabs .nav-link {
  color: var(--text-soft);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.5rem 1.3rem;
  background: var(--panel);
  border: 1.5px solid var(--border);
}

.gallery-tabs .nav-link.active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue-light);
}

.shots {
  display: flex;
  gap: 1.2rem;
  padding: 0.6rem 0.4rem 1.4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--border) transparent;
}

.shot {
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 22px;
  border: 5px solid #0a1638;
  outline: 1.5px solid var(--border);
  box-shadow: 0 14px 30px rgba(4, 11, 34, 0.55);
  scroll-snap-align: center;
  transition: transform 0.2s;
}

.shot:hover,
.shot:focus-visible {
  transform: translateY(-6px);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.shots-phone .shot {
  width: min(62vw, 240px);
}

.shots-tablet .shot {
  width: min(74vw, 360px);
}

.shots-desktop .shot {
  width: min(86vw, 620px);
}

/* ------------------------------------------------------------ Plataformas */

.platform-list {
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.platform-list li {
  display: flex;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(18, 42, 99, 0.75);
  border: 1.5px solid var(--border);
}

.platform-list .icon {
  width: 2rem;
  height: 2rem;
  color: var(--gold);
  margin-top: 0.1rem;
}

.platform-list p {
  margin: 0.15rem 0 0;
  color: var(--text-soft);
}

.badge-soon,
.badge-dev {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.05rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  vertical-align: middle;
}

.badge-soon {
  background: var(--gold);
  color: var(--navy);
}

.badge-dev {
  background: rgba(108, 184, 255, 0.18);
  border: 1px solid rgba(108, 184, 255, 0.55);
  color: var(--blue-light);
}

.devices {
  position: relative;
  padding: 0 0 12% 0;
}

.device-desktop {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 6px solid #0a1638;
  outline: 1.5px solid var(--border);
  box-shadow: 0 24px 50px rgba(4, 11, 34, 0.6);
  transform: perspective(1200px) rotateY(-9deg) rotateX(3deg);
}

.device-phone {
  position: absolute;
  right: 4%;
  bottom: 0;
  width: 27%;
  height: auto;
  border-radius: 20px;
  border: 5px solid #0a1638;
  outline: 1.5px solid var(--border);
  box-shadow: 0 20px 40px rgba(4, 11, 34, 0.7);
  transform: perspective(900px) rotateY(-14deg) rotateZ(3deg);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  50% {
    translate: 0 -12px;
  }
}

/* --------------------------------------------------------------- Descarga */

.section-download {
  background:
    radial-gradient(circle at 50% 30%, rgba(61, 155, 255, 0.55), rgba(11, 30, 75, 0) 60%),
    var(--navy);
}

.download-card {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.5rem 1.6rem;
  text-align: center;
  border-color: var(--gold);
  box-shadow: 0 24px 60px rgba(4, 11, 34, 0.6), 0 0 60px rgba(255, 197, 50, 0.2);
}

.download-card img {
  width: min(70%, 340px);
  height: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 10px 16px rgba(4, 11, 34, 0.55));
  animation: float 5s ease-in-out infinite;
}

.download-card h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.download-card p {
  max-width: 36rem;
  margin: 0.8rem auto 1.8rem;
  color: var(--text-soft);
  font-size: 1.1rem;
}

/* -------------------------------------------------------------- Preguntas */

.faq {
  max-width: 820px;
  margin: 0 auto;
  --bs-accordion-bg: transparent;
  --bs-accordion-color: var(--text-soft);
  --bs-accordion-border-color: transparent;
  --bs-accordion-btn-color: #fff;
  --bs-accordion-active-color: var(--gold);
  --bs-accordion-active-bg: transparent;
  --bs-accordion-btn-focus-box-shadow: 0 0 0 3px rgba(255, 197, 50, 0.6);
  --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3e%3cpath d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffc532' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3e%3cpath d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

.faq .accordion-item {
  margin-bottom: 0.8rem;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--panel-light), var(--panel));
  border: 1.5px solid var(--border);
}

.faq .accordion-button {
  font-family: inherit;
  font-weight: 700;
  font-size: 1.12rem;
  padding: 1.1rem 1.3rem;
}

.faq .accordion-body {
  padding: 0 1.3rem 1.2rem;
  font-size: 1.05rem;
}

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

.site-footer {
  padding: 3.5rem 0 2rem;
  background: var(--navy-deep);
  border-top: 1.5px solid var(--border);
  color: var(--text-soft);
}

.footer-title {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.9rem;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-links a {
  color: var(--text-soft);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.copyright {
  margin: 2.5rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(46, 85, 168, 0.6);
  font-size: 0.92rem;
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1020;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--navy);
  background: linear-gradient(180deg, #ffe066, var(--gold-deep));
  box-shadow: 0 4px 0 #c96a00, 0 10px 20px rgba(4, 11, 34, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  color: var(--navy);
}

/* ------------------------------------------------------- Imagen ampliada */

.zoom-content {
  position: relative;
  padding: 8px;
  border-radius: 22px;
  background: var(--panel);
  border: 1.5px solid var(--border);
}

.zoom-content video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 84vh;
  border-radius: 16px;
  background: #000;
}

.zoom-content img {
  display: block;
  max-width: 100%;
  max-height: 84vh;
  margin: 0 auto;
  border-radius: 16px;
}

.zoom-content .btn-close {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 2;
  padding: 0.7rem;
  border-radius: 50%;
  background-color: rgba(7, 18, 46, 0.85);
  opacity: 1;
}

/* -------------------------------------------- Aparición al hacer scroll */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Sin JavaScript todo queda visible. */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ----------------------------------------------------- Página de texto */

.page {
  padding: calc(var(--nav-height) + 3rem) 0 4rem;
  min-height: 80vh;
  background: linear-gradient(180deg, #123a8c, var(--navy) 320px);
}

.page-card {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.2rem clamp(1.2rem, 4vw, 2.6rem);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-light), var(--panel));
  border: 1.5px solid var(--border);
  box-shadow: 0 16px 40px rgba(4, 11, 34, 0.5);
}

.page-card h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--gold);
}

.page-card h2 {
  font-size: 1.35rem;
  margin: 1.8rem 0 0.6rem;
}

.page-card p,
.page-card li {
  color: var(--text-soft);
  font-size: 1.05rem;
}

.page-card .updated {
  font-size: 0.95rem;
}

/* -------------------------------------------------------------- Adaptación */

@media (max-width: 991.98px) {
  /* En pantallas angostas la ilustración pasa a ser el fondo superior. */
  .hero {
    align-items: flex-end;
    min-height: auto;
    /* El texto empieza donde la ilustración ya se ha fundido. */
    padding-top: calc(var(--nav-height) + min(98vw, 610px));
  }

  .hero-art-blur {
    display: none;
  }

  .hero-art .hero-art-main {
    right: 0;
    margin-inline: auto;
    width: min(100%, 640px);
    height: auto;
    aspect-ratio: 968 / 1290;
    -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 86%);
    mask-image: linear-gradient(180deg, #000 60%, transparent 86%);
  }

  .hero-veil {
    background: none;
  }

  .site-nav .navbar-collapse {
    padding: 0.8rem 0 1rem;
  }

  .section {
    padding: 4rem 0;
  }
}

/* Tableta en vertical: la ilustración no llega a los bordes, así que
   también se funde por los lados. */
@media (min-width: 641px) and (max-width: 991.98px) {
  .hero-art .hero-art-main {
    -webkit-mask-image:
      linear-gradient(180deg, #000 60%, transparent 86%),
      linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
    mask-image:
      linear-gradient(180deg, #000 60%, transparent 86%),
      linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
}

@media (max-width: 575.98px) {
  /* Más aire a los lados en teléfonos. */
  .container {
    padding-inline: 1.6rem;
  }

  .stats {
    gap: 0.5rem;
  }

  /* La galería sigue llegando al borde para invitar a deslizar. */
  .shots {
    margin-inline: -1.6rem;
    padding-inline: 1.6rem;
    scroll-padding-inline: 1.6rem;
  }

  .stats dt {
    font-size: 1.5rem;
  }

  .stats dd {
    font-size: 0.78rem;
  }

  .btn-lg {
    font-size: 1.02rem;
    padding: 0.75rem 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
