:root {
  --bg: #FFFFFF;
  --mint-panel: #E7F4F0;
  --mint-soft: #F1F8F6;
  --mint-accent: #86D4CB;
  --teal: #4E807B;
  --teal-dark: #3C6B66;
  --teal-light: #6F9E98;
  --ink: #232827;
  --ink-soft: #515856;
  --muted: #8A908E;
  --hair: #E4E8E6;
  --hair-2: #D3DAD7;

  --f: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad-x: clamp(20px, 6vw, 100px);
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  font-family: var(--f);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
::selection { background: var(--teal); color: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; }

.container { max-width: var(--maxw); margin: 0 auto; }

/* ---------- Chips / tags ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  border: 1px solid var(--hair-2);
  border-radius: 999px;
  padding: 6px 15px;
  line-height: 1;
}
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--teal-dark);
  background: var(--mint-accent);
  border-radius: 6px;
  padding: 5px 12px;
  line-height: 1;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--hair-2);
  border-radius: 999px;
  padding: 12px 26px;
  background: var(--bg);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease;
}
.btn:hover { border-color: var(--teal); color: var(--teal-dark); transform: translateY(-1px); }
.btn.solid { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn.solid:hover { background: var(--teal-dark); color: #fff; }

/* ---------- Nav ---------- */
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--hair);
  padding: 18px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.topnav .mark { font-weight: 800; font-size: 19px; color: var(--ink); letter-spacing: -0.01em; }
.navlinks { display: flex; gap: 30px; align-items: center; }
.navlinks a { font-weight: 500; font-size: 14px; color: var(--ink-soft); transition: color .2s ease; }
.navlinks a:hover { color: var(--teal-dark); }
.navlinks a.active { color: var(--teal-dark); font-weight: 600; }
.navlinks .lang { margin-left: 8px; padding-left: 22px; border-left: 1px solid var(--hair); display: flex; gap: 10px; }
.navlinks .lang a { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.navlinks .lang a.active { color: var(--teal); }

.hamburger { display: none; width: 30px; height: 20px; position: relative; background: transparent; border: 0; cursor: pointer; padding: 0; }
.hamburger span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink); transition: transform .3s ease, top .3s ease, opacity .2s; }
.hamburger span:nth-child(1) { top: 4px; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { top: 18px; }
.hamburger.is-open span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; background: var(--bg); z-index: 40;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 0 var(--pad-x); gap: 22px;
  transform: translateY(-100%); visibility: hidden;
  transition: transform .45s cubic-bezier(.6,.2,.2,1), visibility 0s linear .45s;
}
.mobile-menu.is-open { transform: translateY(0); visibility: visible; transition: transform .45s cubic-bezier(.6,.2,.2,1), visibility 0s; }
.mobile-menu a { font-weight: 700; font-size: 28px; color: var(--teal-dark); }

/* ---------- Hero ---------- */
.hero { padding: clamp(36px, 5vw, 64px) var(--pad-x) clamp(48px, 6vw, 80px); }
.hero-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(22px, 3vw, 34px); }
.hero-name {
  font-weight: 500; line-height: .92; letter-spacing: -0.03em; margin: 0 0 22px;
  font-size: clamp(58px, 9.5vw, 124px);
}
.hero-name .hn-1 { display: block; color: var(--teal-light); font-weight: 500; }
.hero-name .hn-2 { display: block; color: var(--teal-dark); font-weight: 800; }
.hero-role { font-weight: 700; font-size: clamp(15px, 1.4vw, 17px); color: var(--ink); margin: 0 0 12px; }
.hero-bio { font-size: 15.5px; line-height: 1.65; color: var(--ink-soft); margin: 0 0 26px; max-width: 50ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-photo {
  width: 100%; aspect-ratio: 4/5; overflow: hidden; border-radius: 4px; background: var(--mint-panel);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }

/* ---------- Section scaffolding ---------- */
.section { padding: clamp(40px, 6vw, 84px) var(--pad-x); }
.tag-center { display: flex; justify-content: center; margin-bottom: clamp(26px, 3vw, 40px); }

/* ---------- Intro mint panel ---------- */
.intro { padding: clamp(20px, 3vw, 36px) var(--pad-x) clamp(40px, 5vw, 72px); }
.intro-panel {
  max-width: var(--maxw); margin: 0 auto;
  background: var(--mint-panel); border-radius: 14px;
  padding: clamp(30px, 4vw, 54px) clamp(26px, 4vw, 60px);
  display: grid; grid-template-columns: 1fr 1px 1fr; gap: clamp(24px, 4vw, 56px); align-items: stretch;
  position: relative;
}
.intro-panel .divider { background: var(--teal-light); opacity: .45; position: relative; }
.intro-panel .divider::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px;
  transform: translate(-50%,-50%); border: 1.5px solid var(--teal-light); background: var(--mint-panel);
}
.intro-panel p { margin: 0; font-size: clamp(15px, 1.5vw, 17px); line-height: 1.6; color: var(--ink); }
.intro-panel p strong { color: var(--teal-dark); font-weight: 700; }

/* ---------- Uria / Recorrido ---------- */
.recorrido-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 5vw, 80px); align-items: start;
}
.recorrido-grid.flip { grid-template-columns: 1.05fr .95fr; }
.photo-stack { display: grid; gap: 18px; position: relative; }
.photo-stack figure { margin: 0; position: relative; border-radius: 4px; overflow: hidden; background: var(--mint-panel); }
.photo-stack img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; display: block; }
.ps-1 { aspect-ratio: 16/10; }
.ps-2 { aspect-ratio: 16/10; }
.deco-sq { position: absolute; width: 54px; height: 54px; background: var(--mint-accent); z-index: 2; border-radius: 2px; }
.deco-a { top: -16px; right: 22px; }
.deco-b { bottom: -16px; left: -16px; opacity: .85; }

/* ---------- Full-width strip ---------- */
.strip { width: 100%; background: var(--bg); overflow: hidden; }
.strip img { width: 100%; height: clamp(240px, 34vw, 460px); object-fit: cover; object-position: 50% 30%; }

.recorrido-text h2 { font-size: clamp(24px, 2.6vw, 33px); font-weight: 800; color: var(--ink); letter-spacing: -0.02em; margin: 0 0 18px; line-height: 1.15; }
.recorrido-text p { font-size: 15px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 16px; }
.recorrido-text p strong { color: var(--teal-dark); font-weight: 700; }
.recorrido-text .btn { margin-top: 10px; }

/* ---------- Áreas cards ---------- */
.areas { padding: clamp(48px, 6vw, 96px) var(--pad-x); border-top: 1px solid var(--hair); }
.cards {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  position: relative;
}
.card { padding: 0 clamp(14px, 1.8vw, 26px); position: relative; }
.card:not(:last-child)::after {
  content: ""; position: absolute; top: 16px; right: 0; width: 1px; height: 24px; background: var(--hair-2);
}
.card .ic { width: 34px; height: 34px; color: var(--teal); margin-bottom: 18px; }
.card .ic svg { width: 100%; height: 100%; display: block; }
.card h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.card p { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); margin: 0; }
.areas-cta { display: flex; justify-content: center; margin-top: clamp(38px, 5vw, 60px); }

/* ---------- FAQ ---------- */
.faq { padding: clamp(48px, 6vw, 90px) var(--pad-x); background: var(--mint-soft); border-top: 1px solid var(--hair); }
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq h2 { text-align: center; font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; color: var(--ink); letter-spacing: -0.02em; margin: 0 0 clamp(28px, 3vw, 40px); }
.faq-item { border-bottom: 1px solid var(--hair-2); padding: 22px 0; }
.faq-item:first-of-type { border-top: 1px solid var(--hair-2); }
.faq-item h3 { font-size: 17px; font-weight: 700; color: var(--teal-dark); margin: 0 0 8px; }
.faq-item p { font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); margin: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #C7CFCD; padding: clamp(44px, 5vw, 64px) var(--pad-x) 30px; }
.footer-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer .fname { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -0.01em; margin: 0 0 10px; }
.footer p { font-size: 14px; line-height: 1.6; margin: 0 0 8px; color: #AEB7B5; max-width: 42ch; }
.footer h4 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #8C9794; margin: 0 0 14px; font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul li { margin-bottom: 9px; }
.footer ul a { font-size: 14px; color: #C7CFCD; transition: color .2s; }
.footer ul a:hover { color: var(--mint-accent); }
.footer-bottom { max-width: var(--maxw); margin: clamp(32px,4vw,48px) auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12.5px; color: #8C9794; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-social { margin-top: 16px !important; display: flex; gap: 16px; }
.footer-social a { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: #C7CFCD; }
.footer-social a:hover { color: var(--mint-accent); }
.footer-social svg { width: 17px; height: 17px; }

/* ---------- Interior pages ---------- */
.breadcrumb { padding: 20px var(--pad-x) 0; }
.breadcrumb ol { max-width: var(--maxw); margin: 0 auto; padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li:not(:last-child)::after { content: "/"; color: var(--hair-2); }
.breadcrumb a { color: var(--teal-dark); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--muted); font-weight: 500; }

.page-hero { padding: clamp(26px, 4vw, 46px) var(--pad-x) clamp(20px, 3vw, 34px); }
.page-hero .inner { max-width: var(--maxw); margin: 0 auto; }
.page-title { font-weight: 800; letter-spacing: -0.02em; color: var(--teal-dark); line-height: 1.06; font-size: clamp(34px, 5.4vw, 62px); margin: 16px 0 20px; }
.page-title .thin { display: block; font-weight: 500; color: var(--teal-light); font-size: .58em; letter-spacing: -0.01em; margin-bottom: 2px; }
.page-lead { font-size: clamp(16px, 1.7vw, 19px); line-height: 1.62; color: var(--ink-soft); max-width: 62ch; margin: 0; }
.page-lead strong { color: var(--teal-dark); font-weight: 700; }

.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; color: var(--ink); letter-spacing: -0.02em; margin: 42px 0 14px; line-height: 1.2; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 16px; line-height: 1.75; color: var(--ink-soft); margin: 0 0 16px; }
.prose p strong { color: var(--teal-dark); font-weight: 700; }
.prose ul { padding-left: 20px; margin: 0 0 18px; }
.prose li { font-size: 16px; line-height: 1.72; color: var(--ink-soft); margin-bottom: 8px; }
.prose li strong { color: var(--teal-dark); font-weight: 700; }

/* ---------- Boxed cards (interior) ---------- */
.area-cards { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.area-cards .card { border: 1px solid var(--hair); border-radius: 12px; padding: clamp(24px, 3vw, 32px); background: var(--bg); transition: border-color .2s ease, transform .2s ease; }
.area-cards .card::after { display: none !important; }
.area-cards a.card:hover { border-color: var(--teal); transform: translateY(-2px); }
.area-cards a.card:hover h3 { color: var(--teal-dark); }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--teal); }

/* ---------- En los medios ---------- */
.media-h2 { text-align: center; font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; color: var(--ink); letter-spacing: -0.02em; margin: 0 0 clamp(24px, 3vw, 38px); }
.media-list { max-width: 840px; margin: 0 auto; list-style: none; padding: 0; }
.media-list li { border-bottom: 1px solid var(--hair-2); }
.media-list li:first-child { border-top: 1px solid var(--hair-2); }
.media-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 18px 4px; transition: color .2s ease; }
.media-list a:hover .media-title { color: var(--teal-dark); }
.media-title { font-size: 15.5px; font-weight: 600; color: var(--ink); line-height: 1.45; }
.media-src { flex: none; font-size: 12px; font-weight: 700; letter-spacing: .03em; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
@media (max-width: 560px) { .media-list a { flex-direction: column; gap: 4px; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 90ms; }
.reveal.d2 { transition-delay: 180ms; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .navlinks { display: none; }
  .hamburger { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-photo { aspect-ratio: 4/3; max-width: 620px; }
  .intro-panel { grid-template-columns: 1fr; gap: 22px; }
  .intro-panel .divider { display: none; }
  .recorrido-grid, .recorrido-grid.flip { grid-template-columns: 1fr; gap: 36px; }
  .photo-stack { max-width: 560px; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 36px 0; }
  .card:nth-child(2)::after { display: none; }
  .area-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; gap: 28px; }
  .card::after { display: none !important; }
  .footer-grid { grid-template-columns: 1fr; }
  .deco-b { display: none; }
}
