:root {
  --paper: #F1EEE4;
  --ink: #0D0D0D;
  --yellow: #FFD21F;
  --gutter: 14px;
}

* { box-sizing: border-box; margin: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100svh;
  padding: var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---------- Cabecera ---------- */
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 48px;
  padding: 0 4px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Archivo", sans-serif;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand__mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: inset 0 0 0 5px var(--ink);
}

.nav__links {
  display: flex;
  gap: 22px;
  margin-right: auto;
  padding-left: 28px;
  border-left: 1px solid rgb(13 13 13 / 0.25);
  font-size: 13px;
  font-weight: 500;
}

.nav__links a { opacity: 0.8; transition: opacity .15s; }
.nav__links a:hover { opacity: 1; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 24px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform .15s, background .15s, color .15s;
}

.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.btn--solid { background: var(--ink); color: var(--yellow); }
.btn--solid:hover { background: var(--yellow); color: var(--ink); }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- Redes sociales ---------- */
.social {
  display: flex;
  gap: 8px;
}

.social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--yellow);
  transition: transform .15s, background .15s, color .15s;
}

.social a:hover { background: var(--yellow); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-1px); }
.social a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ---------- Hero a pantalla completa ---------- */
.hero {
  position: relative;
  flex: 1;
  min-height: 560px;
}

#halftone {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Si no hay WebGL, panel negro con degradado amarillo */
.hero.no-gl {
  border-radius: 28px;
  background:
    radial-gradient(60% 70% at 70% 30%, var(--yellow), transparent 70%),
    var(--ink);
}

/* El tamaño de estas dos cajas ES el de las muescas del panel (hero.js las mide) */
.hero__title {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: fit-content;
  padding: 4px 40px 30px 0;
  font-family: "Archivo", "Arial Black", sans-serif;
  font-weight: 900;
  font-size: clamp(46px, 8.6vw, 172px);
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.hero__cta {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: min(460px, 40vw);
  padding: 28px 0 0 28px;
}

.hero__cta p {
  max-width: 38ch;
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 500;
}

.hero__buttons {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

/* ---------- Móvil ---------- */
@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav { justify-content: space-between; }

  .hero { min-height: 520px; }

  .hero__title {
    width: 100%;
    font-size: clamp(40px, 15vw, 96px);
    padding-bottom: 22px;
  }

  .hero__cta {
    width: 100%;
    padding: 22px 0 0;
  }

  .hero__buttons { flex-wrap: wrap; }
}

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