/* ============================================================
   Grand Talks · hoja de estilos común del sitio publicado
   Reúne los tokens del sistema de diseño exportado de Claude Design
   (tokens/fonts, colors, typography, spacing, motion y base) en un
   solo archivo, con las tipografías alojadas en el propio sitio
   (documento rector, decisión D23). Los estilos propios de cada
   página siguen en el <style> de esa página, como en el diseño.
   ============================================================ */

/* ——— Tipografías · woff2 con subconjunto latino, desde Google Fonts ——— */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(/assets/fonts/cormorant-garamond.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
  src: url(/assets/fonts/cormorant-garamond-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/inter.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/work-sans.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   Grand Talks — Color · «Ámbar y Carbón»
   Charcoal cálido dominante · neutros sepia · oro disciplinado.
   ============================================================ */
:root {
  --gt-noche:  #0E0C0A;
  --gt-carbon: #16120E;
  --gt-ember:  #211A13;
  --gt-black:  #000000;

  --gt-text:   #EAE3D5;
  --gt-marfil: #F4ECDD;
  --gt-paper:  #FAF6EC;
  --gt-arena:  #B3A793;
  --gt-sepia:  #6E6050;

  --gt-gold:       #E8B85B;
  --gt-gold-light: #F0CE82;
  --gt-gold-deep:  #C9912F;
  --gt-gold-text:  #8A6320;
  --gt-foil: linear-gradient(165deg, #F0CE82, #E8B85B 45%, #C9912F);

  --gt-line:        rgba(234,227,213,.10);
  --gt-line-strong: rgba(234,227,213,.20);
  --gt-line-gold:   rgba(232,184,91,.30);

  --surface-base:    var(--gt-noche);
  --surface-card:    var(--gt-carbon);
  --surface-alt:     var(--gt-ember);
  --surface-light:   var(--gt-paper);

  --text-body:       var(--gt-text);
  --text-display:    var(--gt-marfil);
  --text-secondary:  var(--gt-arena);
  --text-faint:      var(--gt-sepia);
  --text-on-light:   #241F18;
  --text-on-light-2: #5A5145;

  --accent-gold:     var(--gt-gold);
  --accent-gold-ink: var(--gt-gold-deep);
  --accent-warn:     #C97A5B;

  --border-soft:   var(--gt-line);
  --border-strong: var(--gt-line-strong);
  --border-gold:   var(--gt-line-gold);

  /* ——— Tipografía · el serif manda ——— */
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:  'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:  'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  --font-precio: 'Work Sans', 'Inter', system-ui, sans-serif;

  --fw-serif-display: 300;
  --fw-serif-title:   400;
  --fw-serif-em:      500;
  --fw-body:          400;
  --fw-body-medium:   500;
  --fw-body-strong:   600;
  --fw-mono:          500;

  --type-display-xl: clamp(42px, 7.4vw, 104px);
  --type-display-l:  clamp(28px, 4.4vw, 50px);
  --type-section:    clamp(30px, 4.6vw, 50px);
  --type-lead:       clamp(22px, 3.1vw, 34px);
  --type-body-l:     18px;
  --type-body-m:     16px;
  --type-body-s:     14px;
  --type-eyebrow:    11.5px;
  --type-meta:       12px;

  --lh-display: 1.04;
  --lh-title:   1.1;
  --lh-lead:    1.28;
  --lh-body:    1.7;
  --lh-meta:    1.5;

  --track-display: -0.01em;
  --track-eyebrow:  0.18em;
  --track-meta:     0.1em;
  --track-tag:      0.08em;

  /* ——— Espaciado, radios y ritmo ——— */
  --s-half: 4px;
  --s1:  8px;
  --s2:  16px;
  --s3:  24px;
  --s4:  32px;
  --s5:  40px;
  --s6:  48px;
  --s8:  64px;
  --s10: 80px;
  --s12: 96px;
  --s16: 128px;

  --rhythm-min: 96px;
  --rhythm-max: 160px;
  --section-pad: clamp(64px, 11vh, 120px);

  --radius-0:  0px;
  --radius-sm: 2px;
  --radius-pill: 999px;

  --measure: 64ch;
  --measure-tight: 45ch;
  --content-max: 1240px;
  --gutter: clamp(22px, 6vw, 80px);

  /* ——— Movimiento y elevación ——— */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in:  cubic-bezier(.7, 0, .84, 0);

  --dur-micro:     160ms;
  --dur-reveal:    560ms;
  --dur-signature: 700ms;
  --dur-entrance: 1100ms;

  --shadow-card:  0 1px 0 rgba(0,0,0,.4);
  --shadow-lift:  0 12px 40px rgba(0,0,0,.45);
  --glow-gold:    0 2px 40px rgba(232,184,91,.10);
  --ring-focus:   0 0 0 2px var(--gt-gold);
}

/* Movimiento reducido: viene con el sistema de diseño. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Grand Talks — Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body.gt {
  margin: 0;
  background: var(--surface-base);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--type-body-m);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

::selection { background: rgba(232,184,91,.22); color: var(--gt-marfil); }

/* Grano de película: ruido SVG sutil sobre el carbón. */
body.gt::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.gt-eyebrow {
  font-family: var(--font-mono);
  font-weight: var(--fw-body-medium);
  font-size: var(--type-eyebrow);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--accent-gold);
  display: inline-flex; align-items: center; gap: 10px;
}
.gt-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--accent-gold); opacity: .6; }

.gt-display { font-family: var(--font-serif); font-weight: var(--fw-serif-display);
  font-size: var(--type-display-xl); line-height: var(--lh-display);
  letter-spacing: var(--track-display); color: var(--text-display); }
.gt-display em { font-style: italic; color: var(--accent-gold); }

.gt-section-title { font-family: var(--font-serif); font-weight: var(--fw-serif-title);
  font-size: var(--type-section); line-height: var(--lh-title); color: var(--text-display); }

.gt-lead { font-family: var(--font-serif); font-weight: var(--fw-serif-title);
  font-size: var(--type-lead); line-height: var(--lh-lead); color: var(--text-display); max-width: 28ch; }
.gt-lead em { font-style: italic; color: var(--accent-gold); }

.gt-body { font-family: var(--font-body); font-size: var(--type-body-m);
  line-height: var(--lh-body); color: var(--text-secondary); max-width: var(--measure); }

.gt-meta { font-family: var(--font-mono); font-weight: var(--fw-mono); font-size: var(--type-meta);
  letter-spacing: var(--track-meta); color: var(--text-secondary); }

.gt-hairline { height: 1px; width: 64px; border: 0; background: var(--accent-gold-ink); opacity: .7; }

.gt :focus-visible, body.gt :focus-visible { outline: 2px solid var(--gt-gold); outline-offset: 3px; }

/* ——— Botón de reproducir (antes, componente PlayButton del sistema de diseño) ——— */
.gt-play {
  width: 52px; height: 52px; min-width: 44px; min-height: 44px;
  padding: 0; border-radius: 50%;
  border: 1.5px solid var(--gt-marfil); background: transparent;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out);
}
.gt-play:hover { background: rgba(244,236,221,.08); }
.gt-play > span {
  display: block; margin-left: 3px; width: 0; height: 0;
  border-left: 11px solid var(--gt-marfil);
  border-top: 7px solid transparent; border-bottom: 7px solid transparent;
}

/* ——— Menú móvil: oculto hasta que se abre ——— */
[data-menu][hidden] { display: none !important; }
