/* ============================================================
   BASE — reset, tipografia y utilidades generales
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--negro);
  color: var(--texto);
  font-family: var(--font-texto);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-abierto { overflow: hidden; }

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--trans);
}

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

button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-titulo);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  letter-spacing: 0.005em;
}

h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

::selection {
  background: var(--oro);
  color: var(--negro);
}

/* ---------- Layout ---------- */

.contenedor {
  width: 100%;
  max-width: var(--max-ancho);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.seccion {
  padding-block: var(--seccion-y);
  position: relative;
}

.seccion--alt { background: var(--negro-2); }

/* ---------- Encabezados de seccion ---------- */

.seccion-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

.seccion-head--izq {
  text-align: left;
  margin-inline: 0;
}

.etiqueta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: 1.1rem;
}

.etiqueta::before,
.etiqueta::after {
  content: '';
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--oro));
}

.etiqueta::after { background: linear-gradient(90deg, var(--oro), transparent); }

.seccion-head--izq .etiqueta::after { display: none; }

.seccion-bajada {
  color: var(--texto-suave);
  font-size: 1.02rem;
  margin-top: 1.1rem;
}

/* ---------- Texto dorado ---------- */

.oro {
  background: var(--oro-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--oro);
}

/* ---------- Utilidades ---------- */

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

.centrado { text-align: center; }

/* ---------- Animacion de aparicion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 750ms ease, transform 750ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

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

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