/* ==========================================================
   Vanesa Giordano — portfolio 2026
   Editorial cálida con señal de IA
   ========================================================== */

:root {
  --cream: #FBF6EF;
  --sand: #F3EADF;
  --peach: #F3DEC7;
  --line: #EBDFD0;
  --line-strong: #D9CBB9;
  --navy: #1F2A37;
  --ink: #1F2A37;
  --ink-soft: #3F4650;
  --muted: #6B5E52;
  --brown: #7A4A1E;
  --accent: #E0662A;
  --accent-deep: #B4531B;
  --signal: #0F766E;
  --white: #FFFFFF;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --max: 1248px;
  --gutter: 24px;
  --header-h: 72px;
  --radius-card: 24px;
  --radius-pill: 999px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-deep); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; margin: 0; line-height: 1.1; }
p { margin: 0; }

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

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  padding: 10px 16px; background: var(--navy); color: var(--cream); border-radius: 8px;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Language toggle: elements carry data-lang; the html[data-lang] attribute shows one set */
[data-lang] { display: none; }
html[data-site-lang="en"] [data-lang="en"],
html[data-site-lang="es"] [data-lang="es"] { display: revert; }
html[data-site-lang="en"] span[data-lang="en"],
html[data-site-lang="es"] span[data-lang="es"] { display: inline; }
html[data-site-lang="en"] a[data-lang="en"],
html[data-site-lang="es"] a[data-lang="es"] { display: inline-flex; }
html[data-site-lang="en"] .grid[data-lang="en"],
html[data-site-lang="es"] .grid[data-lang="es"] { display: grid; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(251, 246, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 500; }
.nav a[aria-current="page"] { border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.lang-toggle { display: flex; align-items: center; gap: 4px; font-size: 13px; letter-spacing: 0.08em; color: var(--muted); }
.lang-toggle button { background: none; border: 0; padding: 6px 4px; color: var(--muted); font-weight: 500; min-width: 32px; min-height: 44px; }
.lang-toggle button[aria-pressed="true"] { color: var(--ink); font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 26px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 16px; border: 1.5px solid transparent; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-deep); color: var(--white); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--cream); }
.btn-dark { background: var(--navy); color: var(--cream); height: 44px; padding: 0 20px; font-size: 14px; }
.btn-dark:hover { background: var(--accent-deep); color: var(--white); }
.btn-outline-light { border-color: var(--cream); color: var(--cream); }
.btn-outline-light:hover { background: var(--cream); color: var(--navy); }
.btn svg { width: 14px; height: 14px; }

.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--navy); background: transparent; align-items: center; justify-content: center; }
.icon-btn { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--cream); align-items: center; justify-content: center; }
.icon-btn svg { width: 16px; height: 16px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0 80px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 40px; }
.eyebrow { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.h2 { font-size: 44px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; color: var(--ink); border-bottom: 2px solid var(--accent); padding-bottom: 4px; white-space: nowrap; }
.link-arrow svg { width: 16px; height: 16px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 0; }
.hero .container { display: grid; grid-template-columns: 7fr 5fr; gap: 32px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.kicker { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.hero h1 { font-size: 72px; line-height: 1.02; letter-spacing: -0.02em; }
.hero h1 .amp { color: var(--accent); }
.hero .lede { max-width: 620px; font-size: 20px; line-height: 1.55; color: var(--ink-soft); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.portrait { position: relative; height: 600px; display: flex; align-items: flex-end; justify-content: center; }
.portrait .arch { position: absolute; left: 30px; right: 30px; top: 40px; bottom: 0; border-radius: 240px 240px 28px 28px; background: var(--peach); }
.portrait .ring { position: absolute; right: 6px; top: 8px; width: 92px; height: 92px; border-radius: 50%; border: 2px solid var(--accent); }
.portrait img { position: relative; width: 470px; height: 571px; object-fit: contain; object-position: bottom; }

/* ---------- Work cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.card {
  display: flex; flex-direction: column; gap: 20px; padding: 36px; min-height: 300px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card);
  transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--line-strong); color: inherit; }
.card h3 { font-size: 30px; line-height: 1.15; }
.card p { flex-grow: 1; color: var(--ink-soft); }
.card .read { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--accent-deep); }
.card .read svg { width: 16px; height: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--line); color: #4B4038;
}
.tag-ai { background: var(--signal); color: var(--white); }
.tag-teacher { background: var(--peach); color: var(--brown); }
.tag-corp, .tag-sim { background: var(--navy); color: var(--cream); }
.tag-pm { background: var(--sand); color: var(--ink); border: 1px solid var(--line-strong); }
.section-foot { display: flex; justify-content: center; margin-top: 40px; }

/* ---------- Expertise ---------- */
.expertise { background: var(--sand); }
.areas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.area { padding-top: 20px; border-top: 2px solid var(--navy); display: flex; flex-direction: column; gap: 14px; }
.area.is-ai { border-top-color: var(--signal); }
.area h3 { font-size: 24px; }
.area p { font-size: 16px; color: var(--ink-soft); }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 40px; }
.tools .label { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-right: 8px; }
.tools > span:not(.label) { height: 32px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-strong); font-size: 13px; color: var(--ink-soft); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 4fr 1fr 7fr; gap: 32px; }
.about-grid .h2 { line-height: 1.1; }
.about-text { display: flex; flex-direction: column; gap: 20px; font-size: 18px; line-height: 1.6; color: var(--ink-soft); }
.timeline { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.tl { display: flex; flex-direction: column; gap: 10px; }
.tl .year { font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--accent); }
.tl.is-ai .year { color: var(--signal); }
.tl .what { font-size: 15px; font-weight: 600; }
.tl .how { font-size: 14px; line-height: 1.5; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact { padding: 0 0 40px; }
.contact-box {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding: 72px 80px; border-radius: 32px; background: var(--navy); color: var(--cream);
}
.contact-box h2 { font-size: 44px; }
.contact-box p { font-size: 18px; color: var(--line-strong); margin-top: 16px; max-width: 700px; }
.contact-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-end; }

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0; font-size: 14px; color: var(--muted); }
.site-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 24px; }

/* ---------- Work page ---------- */
.page-head { padding: 72px 0 40px; display: flex; flex-direction: column; gap: 28px; }
.page-head h1 { font-size: 56px; letter-spacing: -0.02em; }
.page-head .lede { max-width: 720px; font-size: 18px; color: var(--ink-soft); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter {
  height: 40px; padding: 0 18px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--line-strong); background: transparent; font-size: 14px; font-weight: 500;
}
.filter[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--cream); font-weight: 600; }

.cases { padding: 16px 0 80px; display: flex; flex-direction: column; gap: 20px; }
.case { background: var(--white); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; scroll-margin-top: calc(var(--header-h) + 16px); }
.case[hidden] { display: none; }
.case-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: 100%; padding: 28px 40px; border: 0; background: transparent; text-align: left;
}
.case-toggle:hover .chev { background: var(--navy); color: var(--cream); }
.case-toggle .titles { display: flex; flex-direction: column; gap: 12px; }
.case-toggle h2 { font-size: 30px; letter-spacing: -0.01em; }
.case-toggle .sub { font-size: 15px; color: var(--ink-soft); }
.chev { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--navy); display: inline-flex; align-items: center; justify-content: center; transition: background-color .15s, color .15s; }
.chev svg { width: 18px; height: 18px; }
.chev .minus { display: none; }
.case.is-open .chev .plus { display: none; }
.case.is-open .chev .minus { display: block; }
.case-body { display: none; }
.case.is-open .case-body { display: block; }

.facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; margin: 0 40px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { display: flex; flex-direction: column; gap: 6px; }
.fact .k { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.fact .v { font-size: 15px; line-height: 1.4; }

.story { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 40px 40px 44px; }
.blocks { display: flex; flex-direction: column; gap: 28px; }
.block h3 { font-size: 22px; margin-bottom: 8px; }
.block p { font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.evidence { display: flex; flex-direction: column; gap: 14px; }
.evidence figure { margin: 0; }
.evidence img { width: 100%; border-radius: 16px; border: 1px solid var(--line); }
.evidence figcaption, .evidence .note { font-size: 14px; line-height: 1.5; color: var(--muted); }
.video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: var(--navy); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade { position: absolute; inset: 0; width: 100%; border: 0; background: var(--navy); color: var(--cream); display: flex; align-items: center; justify-content: center; }
.video-facade .badge { position: absolute; left: 20px; top: 20px; height: 28px; padding: 0 12px; border-radius: var(--radius-pill); background: rgba(251,246,239,0.16); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; display: inline-flex; align-items: center; }
.video-facade .play { width: 84px; height: 84px; border-radius: 50%; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; transition: transform .15s; }
.video-facade:hover .play { transform: scale(1.06); }
.video-facade .play svg { width: 30px; height: 30px; }
.links { display: flex; flex-wrap: wrap; gap: 10px; }
.links a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--radius-pill); border: 1.5px solid var(--navy); font-size: 14px; font-weight: 600; }
.links a:hover { background: var(--navy); color: var(--cream); }
.links a svg { width: 14px; height: 14px; }
.share { display: inline-flex; align-items: center; gap: 8px; margin: 0 40px 36px; font-size: 14px; color: var(--muted); background: none; border: 0; padding: 0; }
.share:hover { color: var(--accent-deep); }
.share svg { width: 14px; height: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero h1 { font-size: 56px; }
  .portrait { height: 480px; }
  .portrait img { width: 380px; height: 462px; }
  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .story { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-grid .spacer { display: none; }
  .contact-box { flex-direction: column; align-items: flex-start; padding: 56px 40px; }
  .contact-actions { align-items: flex-start; }
}

@media (max-width: 767px) {
  :root { --gutter: 16px; --header-h: 64px; }
  body { font-size: 16px; }
  .brand { font-size: 18px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: var(--header-h); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; background: var(--cream); border-bottom: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom: 1px solid var(--line); color: var(--accent-deep); }
  .nav .lang-toggle { padding: 12px 0 0; }
  .nav .btn-dark { display: none; }
  .menu-btn, .icon-btn { display: inline-flex; }
  .header-right { display: flex; align-items: center; gap: 10px; }
  .section { padding: 56px 0 40px; }
  .h2 { font-size: 32px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
  .hero { padding-top: 32px; }
  .hero .container { grid-template-columns: 1fr; gap: 8px; }
  .hero-copy { gap: 20px; }
  .kicker { font-size: 11px; }
  .hero h1 { font-size: 40px; }
  .hero .lede { font-size: 17px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .portrait { height: 340px; margin-top: 16px; }
  .portrait .arch { left: 24px; right: 24px; top: 24px; border-radius: 160px 160px 20px 20px; }
  .portrait .ring { display: none; }
  .portrait img { width: 270px; height: 328px; }
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 24px; min-height: 0; }
  .card h3 { font-size: 24px; }
  .areas { grid-template-columns: 1fr; gap: 24px; }
  .timeline { grid-template-columns: 1fr; gap: 24px; margin-top: 40px; }
  .tl { flex-direction: row; flex-wrap: wrap; gap: 4px 12px; }
  .tl .year { flex-basis: 100%; }
  .contact-box { padding: 40px 24px; border-radius: 24px; }
  .contact-box h2 { font-size: 32px; }
  .contact-actions { width: 100%; }
  .contact-actions .btn { width: 100%; }
  .site-footer .container { flex-direction: column; align-items: flex-start; }
  .page-head { padding: 40px 0 24px; }
  .page-head h1 { font-size: 40px; }
  .case { border-radius: 20px; }
  .case-toggle { padding: 20px; }
  .case-toggle h2 { font-size: 22px; }
  .facts { grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 20px; }
  .story { padding: 24px 20px 28px; gap: 24px; }
  .share { margin: 0 20px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .chev, .video-facade .play { transition: none; }
}
