/* =========================================================
   Johamna M. Lalinde — one-page editorial site
   ========================================================= */

:root {
  --bg-0: #0e0e0d;
  --bg-1: #161512;
  --bg-2: #1c1a16;
  --gold: #c9a45c;
  --gold-soft: #e3c584;
  --ink: #f3efe7;
  --ink-dim: #a79f8f;
  --ink-dimmer: #726b5e;
  --white: #ffffff;
  --accent2: #33453f;
  --accent2-soft: #6c8b81;
  --line: rgba(201, 164, 92, 0.22);
  --line-soft: rgba(243, 239, 231, 0.1);

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-script: "Petit Formal Script", "Brush Script MT", cursive;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1220px;
  --pad: clamp(20px, 5vw, 64px);

  /* Motion: real spring curves (critically damped / slight momentum
     overshoot) sampled from a mass-spring-damper simulation via
     CSS linear(), not hand-guessed cubic-béziers. --ease is the
     default for anything that settles into place (reveals, hovers,
     panels); --ease-bounce is reserved for the handful of spots
     where the motion itself carries a little momentum (a panel
     materializing, an icon flipping) — see apple-design skill. */
  --ease: linear(0, 0.0754, 0.2275, 0.3908, 0.5372, 0.6575, 0.7513, 0.8222, 0.8743, 0.912, 0.9389, 0.9579, 0.9711, 0.9803, 0.9866, 0.9909, 0.9939, 0.9959, 0.9972, 0.9982, 1);
  --ease-bounce: linear(0, 0.0242, 0.0873, 0.1768, 0.282, 0.3941, 0.5063, 0.6133, 0.7115, 0.7986, 0.8732, 0.9352, 0.9847, 1.0226, 1.05, 1.0683, 1.0789, 1.0832, 1.0827, 1.0784, 1.0716, 1.0632, 1.0539, 1.0445, 1.0354, 1.0269, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--gold); color: var(--bg-0); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* ---------- section label / kicker ---------- */
.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.kicker::after {
  content: "";
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: var(--line);
}
.section-head {
  max-width: 780px;
  margin-bottom: 56px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--white);
}
.section-head p {
  margin-top: 18px;
  color: var(--ink-dim);
  font-size: 1.05rem;
  max-width: 60ch;
}

.section {
  position: relative;
  padding: clamp(72px, 12vw, 140px) 0;
  border-top: 1px solid var(--line-soft);
}
.section--tinted { background: var(--bg-1); }
.section--accent {
  background: linear-gradient(180deg, var(--bg-1), var(--bg-0));
}
.section--accent::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 85% 0%, rgba(51, 69, 63, 0.35), transparent 70%);
  pointer-events: none;
}

/* ---------- cursor spotlight (decorative, desktop pointer only) ----------
   A soft light that follows the cursor, echoing the hero's own radial
   gradient. Sits above regular content (but below the header/overlays)
   and blends additively, so it reads the same over every section's
   background instead of being hidden by opaque tinted sections.
   transform-only (GPU) and eased toward the pointer each frame rather
   than snapped 1:1, so it trails a little instead of feeling mechanical. */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 640px; height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 164, 92, 0.16), transparent 70%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  transform: translate3d(-1000px, -1000px, 0);
  will-change: transform;
}
.cursor-glow.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce), (hover: none), (pointer: coarse) {
  .cursor-glow { display: none; }
}

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.3s var(--ease), transform 1.3s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- buttons / links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  transition: background 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--gold); color: var(--bg-0); transform: translateY(-2px); }
}
.btn:active { transform: scale(0.96); transition-duration: 0.1s; }
.btn--solid { background: var(--gold); color: var(--bg-0); }
@media (hover: hover) and (pointer: fine) {
  .btn--solid:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
}
.btn--ghost { border-color: var(--line-soft); color: var(--ink-dim); }
@media (hover: hover) and (pointer: fine) {
  .btn--ghost:hover { border-color: var(--gold); color: var(--white); background: transparent; }
}

.link-underline {
  position: relative;
  display: inline-block;
}
.link-underline::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s var(--ease);
}
.link-underline:focus-visible::after { transform: scaleX(1); transform-origin: left; }
@media (hover: hover) and (pointer: fine) {
  .link-underline:hover::after { transform: scaleX(1); transform-origin: left; }
}

/* ============================================================
   NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* only background/opacity animate here — never padding: changing
     padding forces layout on every frame instead of running on the
     GPU (review-animations: GPU-only properties) */
  transition: background 0.3s var(--ease);
}
.site-header::after {
  /* scroll-edge effect: content fades into the floating nav instead
     of meeting a hard divider line (apple-design: materials §12) */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 22px;
  pointer-events: none;
  background: linear-gradient(to bottom, var(--line-soft), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(14, 14, 13, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header.is-scrolled::after { opacity: 1; }
@media (prefers-reduced-transparency: reduce) {
  .site-header.is-scrolled {
    background: var(--bg-0);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
.brand {
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--gold-soft);
  line-height: 1;
  z-index: 2;
}

.nav-desktop {
  display: none;
}
@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: clamp(22px, 2.4vw, 38px);
  }
}
.nav-desktop a {
  position: relative;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 6px 0;
  transition: color 0.18s var(--ease);
}
.nav-desktop a.is-active { color: var(--white); }
@media (hover: hover) and (pointer: fine) {
  .nav-desktop a:hover { color: var(--white); }
}
.nav-desktop a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease);
}
.nav-desktop a.is-active::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .nav-desktop a:hover::after { transform: scaleX(1); }
}

.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-cta .btn { padding: 11px 22px; font-size: 0.75rem; }
@media (max-width: 899.98px) {
  .nav-cta .btn--solid-desktop { display: none; }
}

.menu-toggle {
  position: relative;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  z-index: 610;
}
@media (min-width: 900px) {
  .menu-toggle { display: none; }
}
.menu-toggle {
  transition: transform 0.2s var(--ease);
}
.menu-toggle:active {
  transform: scale(0.9);
}
.menu-toggle .bar {
  position: absolute;
  width: 22px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.4s var(--ease-bounce), opacity 0.2s var(--ease);
}
.menu-toggle .bar:nth-child(1) { transform: translateY(-5px); }
.menu-toggle .bar:nth-child(3) { transform: translateY(5px); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(0) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(0) rotate(-45deg); }

.nav-overlay {
  position: fixed; inset: 0;
  z-index: 600;
  background: var(--bg-0);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(-100%);
  transition: transform 0.48s var(--ease-bounce);
}
.nav-overlay.is-open { transform: translateY(0); }
.nav-overlay ul { display: flex; flex-direction: column; gap: 6px; }
.nav-overlay a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3.4rem);
  font-weight: 600;
  color: var(--ink-dim);
  padding: 10px 0;
  display: inline-flex;
  align-items: baseline;
  gap: 16px;
  transition: color 0.3s var(--ease);
}
.nav-overlay a:focus-visible { color: var(--white); }
@media (hover: hover) and (pointer: fine) {
  .nav-overlay a:hover { color: var(--white); }
}
.nav-overlay a span.num {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 600;
}
.nav-overlay .nav-overlay-foot {
  margin-top: 48px;
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
.nav-overlay .nav-overlay-foot a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink-dimmer);
  padding: 0;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px var(--pad) 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(45% 60% at 15% 15%, rgba(201, 164, 92, 0.12), transparent 60%),
    radial-gradient(50% 50% at 90% 90%, rgba(51, 69, 63, 0.35), transparent 65%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.35fr 1fr; gap: 60px; }
}
.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.hero-name {
  font-family: var(--font-script);
  font-size: clamp(3.2rem, 9vw, 6.6rem);
  color: var(--gold-soft);
  line-height: 1;
  margin-bottom: 8px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 3.4vw, 2.1rem);
  color: var(--white);
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 16ch;
}
.hero-title em { color: var(--ink-dim); font-style: normal; }
.hero-desc {
  margin-top: 26px;
  max-width: 46ch;
  color: var(--ink-dim);
  font-size: 1.05rem;
}
.hero-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.hero-portrait {
  position: relative;
  justify-self: center;
  width: min(360px, 82vw);
}
/* Ambient float — its own layer so it never fights the one-time
   .reveal entrance transform, or the JS-driven 3D tilt below, both
   of which own `transform` on a different element. */
.portrait-float {
  animation: portraitFloat 6s ease-in-out infinite;
}
@keyframes portraitFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(0.6deg); }
}
@media (prefers-reduced-motion: reduce) {
  .portrait-float { animation: none; }
}
.hero-portrait .frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  /* transform itself is NOT transitioned here — it's driven by JS every
     frame already eased toward its target (see script.js), so a CSS
     transition on top would just add a second, fighting layer of lag.
     box-shadow toggles as a discrete state, so it keeps its transition. */
  transition: box-shadow 0.5s var(--ease);
  will-change: transform;
}
.hero-portrait .frame.is-near {
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 164, 92, 0.35);
  transition-duration: 0.2s;
}
.hero-portrait img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(0.92);
}
.hero-portrait .duotone {
  position: absolute; inset: 0;
  background: linear-gradient(155deg, rgba(201,164,92,0.75), rgba(14,14,13,0.15) 45%, rgba(51,69,63,0.55));
  mix-blend-mode: color;
}
.hero-portrait .tag {
  position: absolute;
  left: -18px; bottom: 28px;
  background: var(--bg-0);
  border: 1px solid var(--line);
  padding: 12px 18px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.scroll-cue {
  position: absolute;
  left: var(--pad); bottom: 34px;
  display: flex; align-items: center; gap: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dimmer);
}
.scroll-cue .line {
  width: 1px; height: 34px;
  background: linear-gradient(var(--gold), transparent);
  animation: cueFall 1.8s linear infinite;
}
@keyframes cueFall {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@media (max-width: 640px) { .scroll-cue { display: none; } }

/* ============================================================
   SOBRE MI
   ============================================================ */
.about-grid {
  display: grid;
  gap: 60px;
  grid-template-columns: 1fr;
}
@media (min-width: 980px) {
  .about-grid { grid-template-columns: 0.9fr 1.1fr; }
}
.about-blocks {
  display: grid;
  gap: 30px;
}
@media (min-width: 640px) {
  .about-blocks { grid-template-columns: 1fr 1fr; }
}
.about-block {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.about-block .num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 10px;
  display: block;
}
.about-block h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 10px;
  font-weight: 600;
}
.about-block p { color: var(--ink-dim); font-size: 0.98rem; }

.timeline {
  position: relative;
  padding-left: 28px;
}
.timeline::before {
  content: "";
  position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 1px;
  background: linear-gradient(var(--gold), transparent 90%);
}
.timeline-item {
  position: relative;
  padding-bottom: 34px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute; left: -32.5px; top: 4px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg-0);
  border: 1px solid var(--gold);
}
.timeline-item .yr {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
}
.timeline-item h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--white);
  margin-top: 6px;
  font-weight: 600;
}
.timeline-item p {
  color: var(--ink-dim);
  font-size: 0.92rem;
  margin-top: 4px;
}

/* ============================================================
   CARD GRIDS  (periodismo / academia / blog)
   ============================================================ */
.card-grid {
  display: grid;
  gap: 15px;
}
@media (min-width: 720px) {
  .card-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--bg-0);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.section--tinted .card { background: var(--bg-1); }
@media (hover: hover) and (pointer: fine) {
  .card:hover { background: var(--bg-2); border-color: var(--line); }
}
.card:active { transform: scale(0.99); transition-duration: 0.1s; }
.card .meta {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.35;
}
.card p { color: var(--ink-dim); font-size: 0.92rem; flex: 1; }
.card .card-link {
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
@media (hover: hover) and (pointer: fine) {
  .card .card-link:hover { color: var(--gold); }
}
.card .card-link svg { width: 13px; height: 13px; transition: transform 0.3s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .card .card-link:hover svg { transform: translate(3px, -3px); }
}

.section-foot {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

/* academia groups */
.pub-group { margin-bottom: 52px; }
.pub-group:last-child { margin-bottom: 0; }
.pub-group-title {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.pub-list { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 5px; overflow: hidden; }
.pub-row {
  background: var(--bg-0);
  padding: 20px 24px;
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: space-between;
  transition: background 0.3s var(--ease);
}
.section--tinted .pub-row { background: var(--bg-1); }
@media (hover: hover) and (pointer: fine) {
  .pub-row:hover { background: var(--bg-2); }
}
.pub-row .pub-title { font-size: 1rem; color: var(--ink); flex: 1 1 320px; }
.pub-row .pub-yr { font-size: 0.85rem; color: var(--ink-dimmer); white-space: nowrap; }
.pub-row .pub-go { color: var(--gold); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }

/* ============================================================
   MULTIMEDIA
   ============================================================ */
.video-carousel {
  position: relative;
  margin: 0 calc(var(--pad) * -1);
  padding: 0 var(--pad);
}
.video-track {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  margin-bottom: -8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.video-track::-webkit-scrollbar { display: none; }
.video-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 0 0 auto;
  width: min(360px, 78vw);
  scroll-snap-align: start;
}
.carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 26px;
}
.carousel-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}
.carousel-btn svg { width: 16px; height: 16px; stroke: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .carousel-btn:hover { border-color: var(--gold); background: var(--gold); transform: translateY(-2px); }
}
@media (hover: hover) and (pointer: fine) {
  .carousel-btn:hover svg { stroke: var(--bg-0); }
}
.carousel-btn:active { transform: scale(0.92); transition-duration: 0.1s; }
.carousel-btn:disabled { opacity: 0.3; pointer-events: none; }
.carousel-btn.prev svg { transform: rotate(180deg); }
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
}
.video-frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.55) brightness(0.75);
  transition: filter 0.3s var(--ease), transform 0.3s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .video-frame:hover img { filter: grayscale(0.15) brightness(0.85); transform: scale(1.04); }
}
.video-frame .play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.video-frame .play span {
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(14,14,13,0.55);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.4s var(--ease-bounce), background 0.3s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .video-frame:hover .play span { transform: scale(1.08); background: var(--gold); }
}
.video-frame:active .play span { transform: scale(0.94); transition-duration: 0.1s; }
@media (hover: hover) and (pointer: fine) {
  .video-frame:hover .play span svg { fill: var(--bg-0); }
}
.video-frame .play svg { width: 16px; height: 16px; fill: var(--gold); margin-left: 3px; transition: fill 0.3s; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-wrap {
  display: grid;
  gap: 56px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .contact-wrap { grid-template-columns: 0.95fr 1.05fr; gap: 80px; } }

.contact-headline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(3rem, 8vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 26px;
}
.contact-headline .dot { color: var(--gold); }

.contact-note { color: var(--ink-dim); max-width: 46ch; margin-bottom: 30px; }

.contact-main .big-link {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 600;
  color: var(--white);
  display: inline-block;
  word-break: break-word;
}
@media (hover: hover) and (pointer: fine) {
  .contact-main .big-link:hover { color: var(--gold); }
}

/* ---------- icon buttons (social) — same circular language as
   .carousel-btn / .back-to-top: bordered circle, gold fill on hover ---------- */
.icon-row {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.icon-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-dim);
  /* color switches much faster than background: the icon (mail glyph,
     LinkedIn mark) must never sit at a midpoint color close to the
     midpoint of the background fade, or a solid-fill icon like the
     LinkedIn mark reads as invisible for part of the transition */
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.12s linear, transform 0.3s var(--ease);
}
.icon-btn svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) {
  .icon-btn:hover { border-color: var(--gold); background: var(--gold); color: var(--bg-0); transform: translateY(-2px); }
}
.icon-btn:active { transform: scale(0.92); transition-duration: 0.1s; }
.icon-btn--sm { width: 38px; height: 38px; }
.icon-btn--sm svg { width: 15px; height: 15px; }
.icon-row--footer { margin-top: 0; }

/* ---------- contact form ---------- */
.contact-form { display: flex; flex-direction: column; gap: 30px; }

.motivo-field { border: 0; padding: 0; margin: 0; }
.motivo-field legend {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0;
  margin-bottom: 16px;
}
.motivo-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.motivo-chips input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  pointer-events: none;
}
.motivo-chips label {
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-dim);
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .motivo-chips label:hover { border-color: var(--gold); color: var(--white); }
}
.motivo-chips label:active { transform: scale(0.95); transition-duration: 0.1s; }
.motivo-chips input[type="radio"]:checked + label {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg-0);
  font-weight: 600;
}
.motivo-chips input[type="radio"]:focus-visible + label {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.form-field { position: relative; }
.form-field input,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 10px 2px;
  resize: none;
  transition: border-color 0.3s var(--ease);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--ink-dimmer); }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-submit { align-self: flex-start; border: none; }
.form-submit svg { width: 15px; height: 15px; }
.form-submit:disabled { opacity: 0.6; pointer-events: none; }

.form-status {
  font-size: 0.85rem;
  color: var(--ink-dim);
  min-height: 1.2em;
}
.form-status.is-error { color: #d98a6b; }
.form-status.is-ok { color: var(--gold); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 40px var(--pad) 36px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 22px;
  color: var(--ink-dimmer);
  font-size: 0.82rem;
}
@media (hover: hover) and (pointer: fine) {
  /* :not(.icon-btn) — otherwise this generic link-hover color beats
     .icon-btn:hover on specificity and paints the social icons gold
     on gold (background turns gold too, so the icon vanishes) */
  .site-footer a:not(.icon-btn):hover { color: var(--gold); }
}
.footer-top, .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-bottom { padding-top: 20px; border-top: 1px solid var(--line-soft); }
.footer-brand { font-family: var(--font-script); color: var(--ink-dim); font-size: 1.3rem; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.footer-legal a, .footer-legal-btn {
  color: var(--ink-dimmer);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  transition: color 0.3s var(--ease);
}
.footer-legal-btn { border: none; background: none; padding: 0; cursor: pointer; font-family: inherit; }
@media (hover: hover) and (pointer: fine) {
  .footer-legal-btn:hover, .footer-legal a:hover { color: var(--gold); }
}
.back-to-top {
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .back-to-top:hover { border-color: var(--gold); transform: translateY(-3px); }
}
.back-to-top:active { transform: scale(0.9); transition-duration: 0.1s; }
.back-to-top svg { width: 14px; height: 14px; }

/* ============================================================
   SECONDARY PAGES (periodismo.html / academia.html)
   ============================================================ */
.archive-hero {
  padding: 150px var(--pad) 60px;
}
.archive-hero .kicker { margin-bottom: 18px; }
.archive-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  color: var(--white);
  font-weight: 600;
  letter-spacing: -0.015em;
  max-width: 18ch;
}
.archive-hero p { margin-top: 20px; color: var(--ink-dim); max-width: 60ch; }
.back-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-dim); margin-bottom: 30px;
}
@media (hover: hover) and (pointer: fine) {
  .back-link:hover { color: var(--gold); }
}
.back-link svg { width: 13px; height: 13px; transform: rotate(180deg); }

@media (max-width: 640px) {
  .pub-row { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ============================================================
   BLOG POST (single article)
   ============================================================ */
.post-body {
  max-width: 68ch;
  margin: 0 auto;
}
.post-body p {
  color: var(--ink-dim);
  font-size: 1.08rem;
  line-height: 1.8;
  margin-bottom: 26px;
}
.post-body h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--white);
  margin: 48px 0 20px;
}
.post-body a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
  .post-body a:hover { color: var(--gold-soft); }
}
.post-meta {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
  color: var(--ink-dimmer);
  font-size: 0.85rem;
}
.post-share {
  max-width: 68ch;
  margin: 56px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

/* ---------- blog post images ---------- */
.post-hero {
  max-width: 900px;
  margin: 0 auto 48px;
}
.post-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid var(--line);
  display: block;
}
.post-hero figcaption {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--ink-dimmer);
  text-align: center;
}
.book-cover {
  max-width: 68ch;
  margin: 12px auto 40px;
  text-align: center;
}
.book-cover img {
  width: 260px;
  max-width: 60%;
  /* without this, the browser keeps using the HTML height="" attribute
     as a literal pixel height (its natural fallback) while only the
     CSS width shrinks — stretching the cover out of its real ratio */
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 5px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}
.book-cover figcaption {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--ink-dimmer);
  font-style: italic;
}

/* ============================================================
   COOKIE CONSENT BAR (injected by js/script.js)
   ============================================================ */
.cookie-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 700;
  background: rgba(14, 14, 13, 0.94);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-top: 1px solid var(--line);
  padding: 22px var(--pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transform: translateY(110%);
  transition: transform 0.48s var(--ease-bounce);
}
.cookie-bar.is-visible { transform: translateY(0); }
.cookie-bar p {
  margin: 0;
  max-width: 62ch;
  color: var(--ink-dim);
  font-size: 0.88rem;
  line-height: 1.55;
}
.cookie-bar p a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .cookie-bar p a:hover { color: var(--gold-soft); }
}
.cookie-bar-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-bar .btn { padding: 12px 24px; font-size: 0.78rem; }
@media (prefers-reduced-transparency: reduce) {
  .cookie-bar {
    background: var(--bg-0);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
@media (max-width: 640px) {
  .cookie-bar { flex-direction: column; align-items: stretch; }
  .cookie-bar-actions { justify-content: stretch; }
  .cookie-bar-actions .btn { flex: 1; justify-content: center; }
}
