/* Vessa & Humo — estilos base */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .serif {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .01em;
  margin: 0 0 var(--space-2);
  color: var(--marron);
}

h1 { font-size: clamp(2.2rem, 5vw + 1rem, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw + 1rem, 2.75rem); }
h3 { font-size: clamp(1.3rem, 1.5vw + 1rem, 1.75rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 var(--space-2); }
p.lead { font-size: 1.15rem; color: var(--humo); }

a { color: var(--vino); text-decoration: none; }
a:hover { text-decoration: underline; }

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

/* Foco visible accesible en todos los elementos interactivos */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--ocre);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* IMPORTANTE: las secciones usan padding-block, nunca la shorthand `padding: X 0`.
   Muchos elementos llevan las clases `container` y `section` juntas; con la
   shorthand, el 0 horizontal pisaba el gutter del contenedor y el contenido
   quedaba pegado al borde de la pantalla. */
.section {
  padding-block: var(--section-y);
}

.section--tight { padding-block: var(--section-y-tight); }

/* En tablet y arriba el aire vuelve a la escala amplia: ahí sí se lee limpio. */
@media (min-width: 768px) {
  :root {
    --gutter: 32px;
    --section-y: var(--space-7);
    --section-y-tight: var(--space-4);
  }
}

.section--crema { background: var(--crema); }
.section--marron { background: var(--marron); color: var(--crema); }
.section--marron h1, .section--marron h2, .section--marron h3 { color: var(--beige); }
.section--vino { background: var(--vino); color: var(--crema); }
.section--vino h1, .section--vino h2, .section--vino h3 { color: #fff; }

.text-center { text-align: center; }
.text-humo { color: var(--humo); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ocre);
  margin-bottom: var(--space-2);
}

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

.skip-link {
  position: absolute;
  left: 0; top: -60px;
  background: var(--vino);
  color: #fff;
  padding: var(--space-1) var(--space-2);
  z-index: 200;
  transition: top var(--dur-base) var(--ease-out);
}
.skip-link:focus { top: 0; }

/* Revelado por scroll — estado inicial; reveal.js agrega .is-visible */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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