/* Vuelve · base compartida por las tres páginas */
:root {
  --bg: #0c0a08;
  --surface: #181512;
  --surface-2: #221e1a;
  --ink: #ffffff;
  --muted: #b3aba2;
  --accent: #e3342f; /* el rojo del sello de caucho */
  --accent-ink: #0c0a08;
  --ok: #3f9c66;

  --display: "Besley", Georgia, serif;
  --text: "Libre Franklin", system-ui, sans-serif;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --step-head: clamp(2.25rem, 1.4rem + 2.8vw, 3.75rem);
  --step-hero: clamp(2.5rem, 1.2rem + 4.6vw, 7rem);

  --radius: 20px;
  --gap: 12px;
  --pad: clamp(24px, 4.4vw, 64px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  background: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.98;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 var(--step-body) / 1 var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease), background-color 160ms var(--ease);
}

.button:hover {
  background: #ec4a43;
}

.button:active {
  transform: scale(0.97);
}

.button.ink {
  background: var(--ink);
  color: var(--bg);
}

.button.ink:hover {
  background: #ece6df;
}

.link {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: color 160ms var(--ease);
}

.link:hover {
  color: var(--accent);
}

/* Marca: la palabra con su sello */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 800 1.75rem / 1 var(--display);
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
}

.wordmark .seal {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
}

/* Aparición por sección: el contenido es visible sin script */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: var(--d, 0ms);
}

.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Pie de una línea */
.footline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  gap: 24px;
  padding: 30vh var(--pad) 30px;
  font-size: var(--step-small);
  color: var(--muted);
}

.footline nav {
  display: flex;
  gap: 24px;
}

.footline a {
  color: var(--ink);
  text-decoration: none;
}

.footline a:hover {
  color: var(--accent);
}

.footline .end {
  text-align: right;
}

.credits {
  padding: 0 var(--pad) 30px;
  font-size: var(--step-small);
  color: var(--muted);
  max-width: 90ch;
}

.credits a {
  color: var(--muted);
}

@media (max-width: 760px) {
  .footline {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20vh 20px 24px;
  }
  .footline nav {
    flex-wrap: wrap;
    gap: 8px 20px;
  }
  .footline .end {
    text-align: left;
  }
  .credits {
    padding: 0 20px 24px;
  }
}

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