/* ==========================================================
   Valentina Miranda · Portfolio
   Paleta: crema, negro, bordó, verde oscuro y azul oscuro
   ========================================================== */

:root {
  --bg: #f5efe4;
  --bg-soft: #f8f3ea;
  --card: #fbf7f0;
  --line: #e4d9c8;
  --ink: #15120f;
  --ink-soft: #4d4640;
  --muted: #7a7068;
  --bordo: #6d1c2e;
  --bordo-dark: #561424;
  --verde: #1d4434;
  --azul: #14244b;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(40, 25, 10, .04), 0 10px 30px -12px rgba(60, 35, 15, .12);
  --shadow-hover: 0 2px 4px rgba(40, 25, 10, .05), 0 22px 44px -16px rgba(60, 35, 15, .22);
  --ease: cubic-bezier(.22, .8, .25, 1);
  --wrap: 1140px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -.01em; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.wrap-narrow { width: min(880px, 100% - 48px); margin-inline: auto; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 239, 228, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  width: min(1340px, 100% - 48px);
  margin-inline: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
}
.brand-pill {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  color: #fff;
  background: var(--bordo);
  padding: 4px 10px;
  border-radius: 99px;
}
.nav { display: flex; gap: 4px; }
.nav a {
  text-decoration: none;
  font-size: 15px;
  color: var(--ink-soft);
  padding: 7px 12px;
  border-radius: 99px;
  transition: background .25s, color .25s;
}
.nav a:hover { color: var(--ink); background: rgba(21, 18, 15, .06); }
.nav a.active { background: var(--ink); color: #fff; }

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
  position: relative;
}
.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
  content: "";
}
.menu-btn span { top: 20px; }
.menu-btn span::before { left: 0; top: -6px; }
.menu-btn span::after { left: 0; top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Generales ---------- */
section { padding: 44px 0; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bordo);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 1.5px; background: var(--bordo); }
.section-title { font-size: clamp(36px, 5vw, 58px); }
.section-title em { font-style: normal; color: var(--bordo); }
.section-title em.verde { font-style: italic; color: var(--verde); }
.section-sub { margin-top: 14px; color: var(--ink-soft); }
.kicker {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--bordo);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
}
.link-arrow .arr { transition: transform .3s var(--ease); }
.link-arrow:hover .arr,
a:hover > .link-arrow .arr { transform: translateX(4px); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  background: var(--ink);
  color: #fff;
  transition: transform .3s var(--ease), background .3s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .5); }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  background: var(--bordo);
}
.badge svg { width: 16px; height: 16px; }
.badge.shine { position: relative; overflow: hidden; isolation: isolate; }
.badge.shine::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .55) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: shine 3.2s ease-in-out infinite;
  z-index: -1;
  mix-blend-mode: screen;
}
@keyframes shine { 0% { left: -60%; } 45%, 100% { left: 130%; } }
.badge.azul { background: var(--azul); }

.tag {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 15px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .45);
}

.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

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

/* ---------- Hero ---------- */
.hero { padding: 40px 0 30px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-hello { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); font-weight: 500; }
.hero-name {
  font-family: var(--serif);
  font-size: clamp(64px, 10vw, 128px);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.035em;
  margin: 26px 0 30px;
}
.hero-name span { display: block; }
.hero-role { font-size: clamp(19px, 1.8vw, 22px); }
.hero-text { margin-top: 18px; color: var(--ink-soft); max-width: 640px; }
.rotator {
  display: inline-block;
  position: relative;
  font-weight: 700;
  color: var(--azul);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: opacity .35s, transform .35s var(--ease);
}
.rotator.out { opacity: 0; transform: translateY(8px); }

.hero-photo {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 0.88;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; animation: photoIn 1.4s var(--ease) both; }
@keyframes photoIn { from { transform: scale(1.08); filter: saturate(.6); } to { transform: none; filter: none; } }

.hero-name span { animation: nameIn 1s var(--ease) both; }
.hero-name span:nth-child(2) { animation-delay: .12s; }
@keyframes nameIn { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

.contact-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 50px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 18px;
  text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s;
}
a.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.contact-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  color: #fff;
}
.contact-ico.bordo { background: var(--bordo); }
.contact-ico.verde { background: var(--verde); }
.contact-ico.azul { background: var(--azul); }
.contact-ico.negro { background: var(--ink); }
.contact-label { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--bordo); text-transform: uppercase; }
.contact-value { font-size: 15px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }

.scroll-cue {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 54px;
  font-weight: 500;
  text-decoration: none;
}
.scroll-cue svg { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* ---------- Proyectos ---------- */
.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  margin-top: 36px;
  text-decoration: none;
  transition: transform .45s var(--ease), box-shadow .45s;
}
.featured:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.featured-media { overflow: hidden; background: #eee; min-height: 360px; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.featured:hover .featured-media img { transform: scale(1.04); }
.featured-body { padding: 44px 46px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.featured-body h3 { font-size: clamp(32px, 3.5vw, 44px); }
.featured-body p { color: var(--ink-soft); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.featured .btn { align-self: flex-start; margin-top: 6px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.project {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  transition: transform .45s var(--ease), box-shadow .45s;
}
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.project-media { aspect-ratio: 16 / 10; overflow: hidden; background: #eee; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.project:hover .project-media img { transform: scale(1.06); }
.project-body { padding: 24px 22px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project-body h3 { font-size: 24px; }
.project-body p { color: var(--ink-soft); font-size: 16px; }
.project-body .link-arrow { margin-top: auto; align-self: flex-start; padding-top: 10px; }

/* ---------- Proyectos personales ---------- */
.personal { margin-top: 56px; }
.personal-intro { max-width: 760px; color: var(--ink-soft); margin-top: 14px; }
.personal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 30px; }
.pp {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  transition: transform .45s var(--ease), box-shadow .45s;
}
.pp:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.pp-body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pp-body h3 { font-size: 28px; }
.pp-body p { color: var(--ink-soft); font-size: 16px; }
.pp-body .tags .tag { font-size: 13.5px; padding: 6px 12px; }
.pp-body .link-arrow { margin-top: auto; align-self: flex-start; padding-top: 8px; }
.photo-slot {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(20, 36, 75, .14) 0 22%, transparent 23%),
    radial-gradient(circle at 10% 95%, rgba(29, 68, 52, .14) 0 26%, transparent 27%),
    #efe6d8;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pp:hover .photo-slot img { transform: scale(1.04); }
.photo-slot.contain { background: #fff; }
.photo-slot.contain img { object-fit: contain; padding: 8% 10%; }
.photo-slot.top img { object-position: left top; }
.photo-slot .ph { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.photo-slot .ph svg { width: 34px; height: 34px; stroke: var(--bordo); }
.page-hero-media.photo-slot { aspect-ratio: 4 / 3; }

/* ---------- Redacción ---------- */
.redaccion-title { font-size: clamp(30px, 3.6vw, 40px); margin-top: 10px; }
.redaccion-title em { color: var(--verde); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 28px; max-width: 760px; }
.writing {
  padding: 28px 26px 30px;
  border-left: 5px solid var(--verde);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .45s var(--ease), box-shadow .45s;
}
.writing.azul { border-left-color: var(--azul); }
.writing:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.writing h3 { font-size: 23px; line-height: 1.18; }
.writing p { color: var(--ink-soft); font-size: 16px; }
.writing .link-arrow { margin-top: auto; align-self: flex-start; }

/* ---------- Herramientas ---------- */
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.tool-card { padding: 28px 26px 30px; }
.tool-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.tool-head h3 { font-size: 21px; }
.tool-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; color: #fff; flex: none; }
.chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .35);
  font-size: 15px;
  line-height: 1.25;
  transition: transform .3s var(--ease), border-color .3s;
}
.chip:hover { transform: translateY(-2px); border-color: #cdbda6; }
.chip-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.chip-ico svg { width: 17px; height: 17px; }
.bg-bordo { background: var(--bordo); }
.bg-verde { background: var(--verde); }
.bg-azul { background: var(--azul); }

.certs-title { margin-top: 40px; font-size: 14.5px; font-weight: 600; letter-spacing: .04em; color: var(--bordo); text-transform: uppercase; }
.certs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.certs .tag { color: var(--ink); background: var(--card); }

/* ---------- Experiencia ---------- */
.exp-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; margin-top: 34px; align-items: start; }
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1.5px; background: var(--line); }
.job { position: relative; padding-bottom: 34px; }
.job:last-child { padding-bottom: 0; }
.job::before {
  content: "";
  position: absolute;
  left: -38px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 3.5px solid var(--dot, var(--bordo));
}
.job-date { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.job h3 { font-size: 26px; margin-top: 4px; }
.job-place { color: var(--bordo); font-weight: 500; margin-top: 4px; }
.job-toggle {
  margin-top: 12px;
  background: none;
  border: 0;
  padding: 0 0 2px;
  border-bottom: 1.5px solid currentColor;
  font: inherit;
  font-weight: 600;
  font-size: 15.5px;
  cursor: pointer;
  color: var(--ink);
}
.job-details {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .55s var(--ease);
}
.job-details > ul { overflow: hidden; margin: 0; padding: 0; list-style: none; }
.job.open .job-details { grid-template-rows: 1fr; }
.job-details li {
  position: relative;
  padding-left: 18px;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 16px;
}
.job-details li::before { content: "•"; position: absolute; left: 2px; color: var(--dot, var(--bordo)); font-weight: 700; }
.job.open .job-details > ul { padding-bottom: 4px; }

.gallery-label { color: var(--bordo); font-weight: 600; margin-bottom: 12px; }
.gallery { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 0.92; background: #ddd; box-shadow: var(--shadow); }
.gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1s var(--ease), transform 5s linear;
}
.gallery img.on { opacity: 1; transform: scale(1); }
.dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(6px);
}
.dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(21, 18, 15, .3);
  cursor: pointer;
  transition: width .35s var(--ease), background .35s;
}
.dots button.on { width: 22px; background: var(--bordo); }

/* ---------- Recomendaciones ---------- */
.letters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 30px; }
.letter {
  padding: 34px 36px 32px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform .45s var(--ease), box-shadow .45s;
}
.letter:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.quote-mark { font-family: var(--serif); font-size: 64px; line-height: .6; height: 34px; color: var(--bordo); }
.letter.verde .quote-mark { color: var(--verde); }
.letter blockquote { margin: 18px 0 24px; font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.35; }
.letter-who { display: flex; gap: 14px; align-items: flex-start; padding-top: 20px; border-top: 1px solid var(--line); }
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  font-family: var(--serif);
  font-weight: 600;
  background: var(--bordo);
}
.letter.verde .avatar { background: var(--verde); }
.letter-name { font-weight: 600; }
.letter-role { font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }
.letter .link-arrow { margin-top: 20px; align-self: flex-start; }

/* ---------- Contacto ---------- */
.contact-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--bordo);
  color: #fff;
  padding: 54px 66px 46px;
}
.contact-box > * { position: relative; z-index: 1; }
.blob { position: absolute; border-radius: 50%; z-index: 0; }
.blob.azul { width: 290px; height: 290px; right: -60px; top: -70px; background: var(--azul); animation: float 9s ease-in-out infinite; }
.blob.verde { width: 240px; height: 240px; left: -60px; bottom: -110px; background: var(--verde); animation: float 11s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translate(-14px, 16px); } }
.contact-box .eyebrow { color: rgba(255, 255, 255, .85); }
.contact-box .eyebrow::before { display: none; }
.contact-box h2 { font-size: clamp(44px, 6vw, 68px); color: #f8f0e6; }
.contact-box > p { margin-top: 18px; max-width: 560px; color: rgba(255, 255, 255, .88); }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 26px; max-width: 760px; }
.contact-glass {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  text-decoration: none;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  transition: background .3s, transform .35s var(--ease);
}
a.contact-glass:hover { background: rgba(255, 255, 255, .18); transform: translateY(-3px); }
.contact-glass .contact-label { color: rgba(255, 255, 255, .85); font-size: 11.5px; }
.contact-glass .contact-value { font-size: 16px; }
.cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 13px 22px;
  border-radius: 99px;
  background: #f8f0e6;
  color: var(--bordo);
  font-weight: 700;
  text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.cv-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -14px rgba(0, 0, 0, .6); }
.cv-btn svg { width: 18px; height: 18px; }

.footer { text-align: center; padding: 34px 0 40px; color: var(--ink-soft); font-size: 15px; }

/* ==========================================================
   Páginas internas
   ========================================================== */
.page { padding: 34px 0 40px; }
.back {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
  margin-bottom: 26px;
}
.back .arr { transition: transform .3s var(--ease); }
.back:hover .arr { transform: translateX(-4px); }
.page-kicker {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--bordo);
  text-transform: uppercase;
  margin: 18px 0 12px;
}
.page-title { font-size: clamp(42px, 6vw, 70px); }
.page-sub { font-size: clamp(20px, 2vw, 24px); margin-top: 16px; line-height: 1.3; }
.page-lead { font-size: clamp(18px, 1.7vw, 21px); color: var(--ink-soft); margin-top: 16px; line-height: 1.6; }
.page-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.page-hero-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #eee; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-video { background: #111; border: 1px solid var(--line); }
.hero-video video { display: block; width: 100%; height: auto; }
.page-block { margin-top: 44px; }
.block-title { font-family: var(--serif); font-size: clamp(28px, 3.2vw, 40px); font-weight: 600; margin-bottom: 22px; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.fact { padding: 20px 20px 22px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.fact small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.fact strong { display: block; margin-top: 6px; font-weight: 600; font-size: 17px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 26px 22px; }
.stat small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--bordo); text-transform: uppercase; }
.stat .num { display: block; font-family: var(--serif); font-size: 58px; font-weight: 700; line-height: 1.05; margin: 10px 0 6px; }
.stat:nth-child(2) .num { color: var(--verde); }
.stat:nth-child(3) .num { color: var(--azul); }
.stat:nth-child(1) .num { color: var(--bordo); }
.stat p { color: var(--ink-soft); font-size: 15.5px; }

.tool-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tool-item { display: flex; flex-direction: column; gap: 14px; padding: 24px 24px 26px; border: 0; transition: transform .35s var(--ease), box-shadow .35s; }
.tool-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.tool-item .chip-ico { width: 46px; height: 46px; border-radius: 12px; font-size: 13px; }
.tool-item .chip-ico svg { width: 20px; height: 20px; }
.tool-item strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.2; }
.tool-item span.desc { display: block; margin-top: 10px; font-size: 15.5px; color: var(--ink-soft); }
.tool-list.two { grid-template-columns: repeat(2, 1fr); }
.tool-rows { display: grid; gap: 14px; }
.tool-rows .tool-item { flex-direction: row; align-items: center; gap: 16px; padding: 20px 24px; }
.bg-negro { background: var(--ink); }

/* Barras de las cifras */
.bar { height: 9px; margin-top: 18px; border-radius: 99px; background: #ece4d8; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: currentColor; transition: width 1.6s var(--ease); }
.in .bar i, .bar.in i { width: var(--w); }
.segs { display: flex; gap: 5px; margin-top: 18px; }
.segs i { flex: 1; height: 9px; border-radius: 99px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.in .segs i { transform: none; }
.stat:nth-child(1) { color: var(--bordo); }
.stat:nth-child(2) { color: var(--verde); }
.stat:nth-child(3) { color: var(--azul); }
.stat:nth-child(4) { color: var(--ink); }
.stat:nth-child(4) .num { color: var(--ink); }

.cta-box {
  position: relative;
  overflow: hidden;
  padding: 50px 64px 46px;
  border-radius: 28px;
  background: var(--bordo);
  color: #fff;
}
.cta-box > :not(.blob) { position: relative; z-index: 1; }
.cta-box .blob { z-index: 0; }
.cta-box .blob.azul { width: 260px; height: 260px; right: -50px; top: -60px; }
.cta-box .blob.verde { width: 210px; height: 210px; left: -40px; bottom: -110px; }
.cta-box h3 { font-size: clamp(30px, 4vw, 44px); color: #f8f0e6; }
.cta-box p { color: rgba(255, 255, 255, .88); margin-top: 10px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.cta-box .btn { background: #f8f0e6; color: var(--bordo); }
.cta-box .btn.ghost { background: transparent; color: #f8f0e6; border: 1.5px solid rgba(248, 240, 230, .7); }
.cta-box .btn.ghost:hover { background: rgba(248, 240, 230, .12); }

.info-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; }
.info-card { padding: 30px 30px 32px; }
.info-card h3 { font-size: 24px; margin-bottom: 12px; }
.info-card p { color: var(--ink-soft); }
.info-card p + p { margin-top: 12px; }
.info-stack { display: grid; gap: 22px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { padding: 26px 22px; border-top: 4px solid var(--bordo); }
.step:nth-child(2) { border-top-color: var(--verde); }
.step:nth-child(3) { border-top-color: var(--azul); }
.step:nth-child(4) { border-top-color: var(--ink); }
.step:nth-child(4) .n { color: var(--ink); }
.step .n { font-family: var(--serif); font-size: 34px; font-weight: 700; color: var(--bordo); }
.step:nth-child(2) .n { color: var(--verde); }
.step:nth-child(3) .n { color: var(--azul); }
.step h3 { font-size: 22px; margin: 6px 0 12px; }
.step ul { margin: 0; padding: 0; list-style: none; }
.step li { position: relative; padding-left: 16px; color: var(--ink-soft); font-size: 15.5px; margin-top: 8px; line-height: 1.45; }
.step li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--bordo); }
.step:nth-child(2) li::before { background: var(--verde); }
.step:nth-child(3) li::before { background: var(--azul); }
.step:nth-child(4) li::before { background: var(--ink); }
.tags.color .tag { font-weight: 600; font-size: 14.5px; background: transparent; }
.tags.color .tag:nth-child(4n+1) { color: var(--bordo); border-color: var(--bordo); }
.tags.color .tag:nth-child(4n+2) { color: var(--verde); border-color: var(--verde); }
.tags.color .tag:nth-child(4n+3) { color: var(--azul); border-color: var(--azul); }
.tags.color .tag:nth-child(4n+4) { color: var(--ink); border-color: var(--ink); }

/* RecoBot: video + herramientas */
.split { display: grid; grid-template-columns: auto minmax(0, 520px); gap: 28px; align-items: center; }
.phone { width: 280px; border-radius: 32px; overflow: hidden; border: 6px solid #e6dccd; box-shadow: var(--shadow); background: #000; }
.phone video { width: 100%; display: block; }

.video-box { border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video-box video { width: 100%; display: block; }

/* Texto largo (crónica, semblanza, cartas) */
.article { font-size: 19px; line-height: 1.8; color: #2a2521; }
.article p + p { margin-top: 1.15em; }
.article > p:first-child::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 4.1em;
  line-height: .82;
  font-weight: 700;
  color: var(--bordo);
  padding: 8px 10px 0 0;
}
.article-title { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.12; }
.volanta { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 1.8vw, 21px); line-height: 1.4; color: var(--verde); margin-bottom: 12px; max-width: 760px; }
.article-sub { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--verde); margin-top: 16px; }
.divider { width: 80px; height: 3px; background: var(--bordo); border-radius: 3px; margin: 34px 0; }

.letter-page { padding: 50px 56px; }
.letter-page .article > p:first-child::first-letter { all: unset; }
.letter-meta { font-size: 19px; line-height: 1.8; color: #2a2521; }
.signature { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.signature strong { display: block; font-family: var(--serif); font-size: 26px; font-weight: 600; }
.signature a { color: var(--bordo); font-weight: 500; }
.signature img { max-height: 70px; width: auto; margin-bottom: 14px; }

/* Barra de progreso de lectura */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--bordo); z-index: 60; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .contact-row { grid-template-columns: repeat(2, 1fr); }
  .featured { grid-template-columns: 1fr; }
  .featured-media { min-height: 0; aspect-ratio: 16 / 9; }
  .grid-3, .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .exp-grid { grid-template-columns: 1fr; gap: 40px; }
  .gallery { max-width: 460px; }
  .stats, .steps, .tool-list { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; justify-items: center; }
  .split .tool-rows { width: 100%; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    gap: 2px;
    padding: 12px 18px 22px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .25);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, transform .35s var(--ease);
  }
  .menu-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { font-size: 18px; padding: 12px 16px; }
  .menu-btn { display: block; }
  .page-hero, .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap, .wrap-narrow { width: calc(100% - 36px); }
  .header-inner { width: calc(100% - 32px); }
  section { padding: 34px 0; }
  .hero { padding-top: 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-photo { order: -1; aspect-ratio: 1; max-width: 340px; }
  .hero-name { margin: 16px 0 20px; }
  .contact-row { grid-template-columns: 1fr; gap: 10px; margin-top: 34px; }
  .contact-card { padding: 16px; }
  .featured-body { padding: 28px 24px 30px; }
  .grid-3, .grid-2, .tools-grid, .letters, .contact-grid { grid-template-columns: 1fr; }
  .chips { grid-template-columns: 1fr 1fr; }
  .chip { font-size: 14px; }
  .letter { padding: 28px 24px; }
  .letter blockquote { font-size: 20px; }
  .contact-box { padding: 42px 24px 36px; border-radius: 24px; }
  .blob.azul { width: 180px; height: 180px; }
  .facts, .stats, .steps, .tool-list, .tool-list.two, .personal-grid { grid-template-columns: 1fr; }
  .tool-list { grid-template-columns: 1fr 1fr; }
  .tool-item { padding: 18px; }
  .tool-item strong { font-size: 18px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat .num { font-size: 42px; }
  .cta-box { padding: 38px 24px 34px; border-radius: 24px; }
  .article { font-size: 17.5px; }
  .letter-page { padding: 32px 22px; }
}
