/* ==========================================================================
   GAVARA EVENTOS — base.css
   Reset, custom properties, tipografía y utilidades transversales.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Sora:wght@300;400;500;600;700&display=swap');

:root {
  /* ---- Núcleo de marca ---- */
  --gavara-navy-900: #2D2459;
  --gavara-navy-800: #3A2F70;
  --gavara-teal-500: #76C6C8;
  --gavara-mint-200: #C8E9E8;
  --gavara-mint-100: #E7F5F4;

  --gavara-gold-400: #D8B564;
  --gavara-gold-600: #B8873A;
  --gavara-gold-foil: linear-gradient(135deg, #F3E3B8 0%, #D8B564 35%, #A9782F 70%, #C9A24C 100%);

  --gavara-cream-50: #FAF7F1;
  --gavara-cream-100: #F3EEE3;
  --gavara-ink-900: #1B1730;
  --gavara-white: #FFFFFF;

  /* ---- Tipografía ---- */
  --font-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Sora', 'Segoe UI', system-ui, sans-serif;

  /* ---- Ritmo / escala fluida ---- */
  --space-xs: clamp(0.5rem, 0.4rem + 0.4vw, 0.75rem);
  --space-sm: clamp(0.9rem, 0.75rem + 0.6vw, 1.25rem);
  --space-md: clamp(1.5rem, 1.2rem + 1.2vw, 2.5rem);
  --space-lg: clamp(2.5rem, 1.9rem + 2.4vw, 4.5rem);
  --space-xl: clamp(4rem, 3rem + 4vw, 7.5rem);

  --container-max: 1520px;
  --container-pad: clamp(1.25rem, 4vw, 4rem);

  --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.3s;
  --dur-med: 0.6s;
  --dur-slow: 1.1s;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

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

body {
  margin: 0;
  background: var(--gavara-cream-50);
  color: var(--gavara-ink-900);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.94rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  color: var(--gavara-navy-900);
}

p { margin: 0; }

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

svg { display: block; }

/* Selección de texto en tono marca */
::selection { background: var(--gavara-gold-400); color: var(--gavara-navy-900); }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gavara-gold-600);
}

.eyebrow::before {
  content: '';
  width: 2.4em;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.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;
  top: -3rem;
  left: 1rem;
  background: var(--gavara-navy-900);
  color: var(--gavara-white);
  padding: 0.75rem 1.25rem;
  border-radius: 0.25rem;
  z-index: 1000;
  transition: top var(--dur-fast) var(--ease-editorial);
}
.skip-link:focus { top: 1rem; }

/* Foco visible accesible en toda la marca */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gavara-gold-400);
  outline-offset: 3px;
  border-radius: 2px;
}

.font-display { font-family: var(--font-display); }
