/* =============================================================
   Tokens
   ============================================================= */
:root {
  --bg:        #f8f6f1;   /* marfil */
  --bg-2:      #efeae0;   /* marfil oscurecido, para secciones alternas */
  --paper:     #ffffff;   /* blanco */
  --ink:       #061e3a;   /* azul precisión — Pantone 2965 C */
  --ink-soft:  #14304f;
  --ink-mute:  #6b6762;   /* gris cálido — Pantone Cool Gray 9 C */
  --accent:    #061e3a;   /* azul precisión — color primario de marca */
  --accent-2:  #a9792b;   /* oro satinado — Pantone 873 C */
  --line:      rgba(6,30,58,0.12);

  /* Tipografías oficiales de marca (manual): Cormorant Garamond para nombre y
     titulares; Montserrat para tagline, navegación, cuerpo y subtítulos. */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --nav-h: 94px;
}

/* =============================================================
   Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
/* Todo destino de ancla deja hueco bajo la barra fija. Con :where() la
   especificidad es 0, así que cualquier regla propia sigue mandando. */
:where(main [id], main[id]) { scroll-margin-top: calc(var(--nav-h) + 1.5rem); }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.01em; font-family: var(--serif); font-weight: 600; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent-2); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--paper); color: var(--ink);
  z-index: 9999; border-radius: 8px; font-weight: 500;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   Utilities
   ============================================================= */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }
.section-alt { background: var(--bg-2); }
.eyebrow {
  font-family: var(--sans); font-size: .8rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  margin-bottom: .75rem;
}
.section-title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 2.5rem; max-width: 32ch; }

/* Scroll reveal (functional micro-interaction — never gated) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; } /* defensive per skill gotcha A.4.5 */

.img-placeholder {
  position: relative;
  width: 100%; aspect-ratio: 4/3;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--ink-soft) 100%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6); font-size: .8rem; letter-spacing: .05em; text-transform: uppercase;
  overflow: hidden;
}
.img-placeholder::after {
  content: "Imagen pendiente";
  font-family: var(--sans); font-weight: 500;
}
.img-placeholder::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 2px, transparent 2px 14px);
}

/* =============================================================
   Reduced-motion — only gate truly intrusive effects
   (the .marquee-track override lives in marquee.css, right after its
   base animation rule, so the cascade order — and thus which rule
   wins — is unaffected by splitting this file out of the original
   single stylesheet)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
