:root {
  --negro: #000000;
  --verde: #6da02d;
  --verde-oscuro: #2c351a;
  --grafito: #19171b;
  --gris: #343a40;
  --gris-claro: #939393;
  --blanco: #ffffff;
  --amarillo: #efb219;
  --amarillo-oscuro: #78550c;
  --fuente: "Patrick Hand", "Segoe Print", cursive;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--fuente);
  color: var(--blanco);
  background: var(--negro);
  font-size: 1.25rem;
  line-height: 1.45;
}

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

a {
  color: var(--amarillo);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-bg {
  min-height: 100vh;
  background-color: var(--negro);
  background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url("../assets/ui/fondo.png");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

.wrap {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
}

/* Nav */
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 1rem 0 0.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--blanco);
  text-decoration: none;
}

.nav-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.nav-brand span {
  font-size: 1.65rem;
  color: var(--amarillo);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--blanco);
  font-size: 1.2rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--amarillo);
  border-bottom-color: var(--amarillo);
  text-decoration: none;
}

/* Hero — una composición, marca primero */
.hero {
  padding: 2.5rem 0 3.5rem;
  text-align: center;
}

.hero-logo {
  width: min(420px, 85vw);
  margin: 0 auto 1.25rem;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  font-weight: 400;
  color: var(--amarillo);
  letter-spacing: 0.02em;
}

.hero .tagline {
  margin: 0 auto 1.75rem;
  max-width: 28ch;
  font-size: clamp(1.25rem, 3.5vw, 1.55rem);
  color: var(--blanco);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* Botones hueso */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0.7rem 1.4rem;
  border: 4px solid var(--gris);
  border-radius: 16px;
  font-family: var(--fuente);
  font-size: 1.35rem;
  color: var(--blanco);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  background: linear-gradient(180deg, var(--verde), var(--verde-oscuro));
  text-shadow: 1px 2px 4px #000;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-amarillo {
  background: linear-gradient(180deg, var(--amarillo), var(--amarillo-oscuro));
}

.btn-ghost {
  background: rgba(25, 23, 27, 0.75);
}

/* Secciones */
.section {
  padding: 1.5rem 0 2.5rem;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  font-weight: 400;
  color: var(--amarillo);
}

.section p.lead {
  margin: 0 0 1.5rem;
  max-width: 40ch;
  font-size: 1.3rem;
}

.modulos {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .modulos {
    grid-template-columns: 1fr 1fr;
  }
}

.modulo {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(147, 147, 147, 0.35);
}

.modulo img {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  object-fit: contain;
}

.modulo h3 {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--amarillo);
}

.modulo p {
  margin: 0;
  font-size: 1.1rem;
  color: var(--blanco);
}

/* Listados historias */
.lista-historias {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lista-historias a {
  display: block;
  padding: 0.85rem 1.1rem;
  border: 3px solid var(--gris);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--verde), var(--verde-oscuro));
  color: var(--blanco);
  font-size: 1.3rem;
  text-align: center;
  text-decoration: none;
  text-shadow: 1px 2px 3px #000;
}

.lista-historias a:hover {
  filter: brightness(1.08);
}

/* Artículo / historia */
.page-title {
  margin: 1rem 0 1.25rem;
  text-align: center;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  font-weight: 400;
  color: var(--amarillo);
}

.articulo {
  max-width: 720px;
  margin: 0 auto 2rem;
}

.articulo p {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.articulo .mark {
  color: var(--amarillo);
}

.articulo figure {
  margin: 0 0 0.35rem;
}

.articulo figcaption {
  margin: 0 0 1.25rem;
  text-align: center;
  color: var(--amarillo);
  font-size: 1.05rem;
}

.articulo .icon-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.articulo .icon-row img {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.back {
  margin: 1.5rem 0 2.5rem;
  text-align: center;
}

/* Descarga */
.download-box {
  margin: 1.5rem auto 2rem;
  padding: 1.5rem 1.25rem;
  max-width: 520px;
  text-align: center;
  background: rgba(25, 23, 27, 0.8);
  border: 3px solid var(--verde);
  border-radius: 16px;
}

.download-box .meta {
  margin: 0.75rem 0 1.25rem;
  color: var(--gris-claro);
  font-size: 1.1rem;
}

.vt-link {
  color: var(--amarillo);
  text-decoration: none;
}

.vt-link:hover {
  text-decoration: underline;
}

.vt-cue {
  color: var(--blanco);
}

.install-guide {
  margin: 1.35rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(147, 147, 147, 0.28);
  text-align: left;
}

.install-guide h2 {
  margin: 0 0 0.65rem;
  color: var(--amarillo);
  font-size: 1.35rem;
  font-weight: 400;
  text-align: center;
}

.install-guide p {
  margin: 0 0 0.85rem;
  color: var(--gris-claro);
  font-size: 1.05rem;
}

.install-guide ol {
  margin: 0;
  padding: 0 0 0 1.2rem;
  color: var(--gris-claro);
  font-size: 1.05rem;
}

.install-guide li {
  margin: 0 0 0.7rem;
}

.install-guide li:last-child {
  margin-bottom: 0;
}

.note {
  margin: 1rem auto;
  max-width: 40ch;
  color: var(--gris-claro);
  font-size: 1.05rem;
  text-align: center;
}

/* Footer */
.footer {
  padding: 2rem 0 2.5rem;
  text-align: center;
  color: var(--gris-claro);
  font-size: 1.05rem;
  border-top: 1px solid rgba(147, 147, 147, 0.25);
}

.footer a {
  color: var(--amarillo);
}

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

.nav-lang { margin-left: 0.5rem; font-size: 1.1rem; }
.nav-lang a { color: var(--amarillo); border: 2px solid var(--verde); padding: 0.15rem 0.55rem; border-radius: 8px; }
