@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/instrument-serif.ttf") format("truetype"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/instrument-italic.ttf") format("truetype"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/nunito-400.ttf") format("truetype"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/nunito-600.ttf") format("truetype"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/nunito-700.ttf") format("truetype"); }

:root {
  --purple: #8a4299;
  --purple-deep: #5e2a6b;
  --purple-light: #a050a0;
  --gold: #ffcc66;
  --gold-soft: #fff2b2;
  --orange: #ff9900;
  --olive: #666600;
  --ink: #241a28;
  --muted: #5b5061;
  --paper: #fffdf8;
  --surface: #ffffff;
  --line: #ecdff0;
  --radius: 14px;
  --shadow: 0 18px 40px -24px rgba(94, 42, 107, 0.45);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

/* Accessibility: visible focus for every interactive component */
:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
  border-radius: 6px;
}
.contact-card :focus-visible,
footer.site :focus-visible { outline-color: var(--gold); }
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--purple-deep); color: #fff; padding: 12px 18px;
  border-radius: 0 0 var(--radius) var(--radius); text-decoration: none; font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

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

body {
  margin: 0;
  font-family: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
}

h1, h2, h3 { font-family: "Instrument Serif", Georgia, serif; line-height: 1.15; margin: 0 0 .5em; font-weight: 400; letter-spacing: 0; }
h1 { font-size: 4rem; color: var(--purple-deep); }
h2 { font-size: 2.65rem; color: var(--purple-deep); }
h3 { font-size: 1.7rem; color: var(--purple); }
p { margin: 0 0 1rem; }
a { color: var(--purple); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 253, 248, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 18px; padding: 14px 0; min-height: 86px; }
.brand { display: block; width: 250px; flex: 0 0 250px; text-decoration: none; }
.brand img { display: block; width: 100%; height: auto; }
nav.main { margin-left: auto; display: flex; gap: 18px; }
nav.main a { text-decoration: none; color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; font-size: .85rem; font-weight: 600; padding: 4px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
nav.main a:hover { color: var(--purple); border-color: var(--gold); }

.langs { display: flex; gap: 6px; }
.langs button {
  min-height: 44px; min-width: 44px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  border-radius: 999px; padding: 5px 11px; font: inherit; font-size: .78rem; cursor: pointer;
  text-transform: uppercase; letter-spacing: 0;
}
.langs button:hover { border-color: var(--purple); color: var(--purple); }
.langs button[aria-current="true"] { background: var(--purple); border-color: var(--purple); color: #fff; }

.menu-toggle { display: none; min-height: 44px; min-width: 44px; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 1.1rem; cursor: pointer; color: var(--purple-deep); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 92px 0 76px; background: linear-gradient(140deg, #fff8e6 0%, #fffdf8 45%, #f7ecfa 100%); }
.hero .wrap { position: relative; z-index: 2; max-width: 900px; }
.kicker { text-transform: uppercase; letter-spacing: .16em; font-size: 1.02rem; font-weight: 700; color: var(--purple); margin-bottom: 10px; }
.kicker-sub { font-size: .88rem; letter-spacing: .22em; color: var(--muted); margin-bottom: 0; }
.hero-brand { text-align: center; margin-bottom: 40px; }
.hero-brand h1 { margin: 24px 0 0; }
.hero-logo { width: min(100%, 380px); height: auto; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 30px; }
.pill { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; font-size: .88rem; box-shadow: var(--shadow); }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-block; text-decoration: none; border-radius: 999px; padding: 13px 26px; font-weight: 600; font-size: .95rem; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-deep); }
.btn-ghost { border-color: var(--purple); color: var(--purple); background: transparent; }
.btn-ghost:hover { background: #f7ecfa; }

/* Sections */
section { padding: 74px 0; }
section[hidden] { display: none; }
section:nth-of-type(even) { background: var(--surface); }
.section-head { max-width: 62ch; margin-bottom: 34px; }
.section-head p { color: var(--muted); }

.grid { display: grid; gap: 22px; }
.grid > *, .combos > * { min-width: 0; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
section:nth-of-type(even) .card { background: var(--paper); }
.card ul, .list { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.card li, .list li { margin-bottom: .35rem; }

.combos { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.combo { border-left: 3px solid var(--gold); padding: 10px 0 10px 16px; font-weight: 600; }
.combo small { display: block; font-weight: 400; color: var(--muted); }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 22px 26px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 2px solid var(--purple); }
.timeline strong { display: block; color: var(--purple-deep); }
.timeline span { color: var(--muted); font-size: .95rem; }

.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.badge { background: var(--gold-soft); border-radius: 8px; padding: 5px 12px; font-size: .85rem; }

.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; align-items: start; }
.contact-card { background: linear-gradient(150deg, var(--purple-deep), var(--purple)); color: #fff; border-radius: var(--radius); padding: 30px; }
.contact-card h3, .contact-card a { color: #fff; }
.contact-card a { text-decoration: underline; }
.contact-card .rows { display: grid; gap: 10px; }
.profile-details { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; border-top: 1px solid var(--line); padding-top: 30px; margin-top: 38px; }
.profile-details .btn { justify-self: start; }
.collaboration { margin-top: 46px; }
.contact-panel { text-align: center; padding: 40px 20px; border-top: 2px solid var(--gold); border-bottom: 1px solid var(--line); }
.contact-panel h3 { font-size: 2rem; }
.contact-panel > p { max-width: 640px; margin: 0 auto 22px; }
.email-display { width: min(100%, 510px); margin: 28px auto; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.email-display img { display: block; width: 100%; height: auto; }
.contact-location { color: var(--muted); }
.legal-email { display: block; max-width: min(100%, 380px); height: auto; margin: 8px 0; background: var(--surface); }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 20px; }

.legal { background: var(--surface); }
.legal details { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 14px; background: var(--paper); }
.legal summary { min-height: 44px; display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 400; color: var(--purple-deep); font-family: "Instrument Serif", serif; font-size: 1.7rem; }
.legal summary::after { content: "+"; margin-left: auto; font-family: "Nunito Sans", sans-serif; }
.legal details[open] summary::after { content: "−"; }
.legal .body { padding-top: 12px; color: var(--muted); }
.legal h4 { margin: 16px 0 6px; color: var(--purple); }

footer.site { background: var(--purple-deep); color: #f4e9f7; padding: 40px 0 28px; }
footer.site a { color: var(--gold); }
.foot { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; font-size: .9rem; }

/* Cookie banner */
.cookie {
  position: fixed; inset: auto 16px 16px 16px; z-index: 60;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px rgba(94,42,107,.5);
  padding: 20px; max-width: 620px; margin: 0 auto; display: none;
}
.cookie.show { display: block; }
.cookie[hidden] { display: none; }
.cookie p { font-size: .92rem; color: var(--muted); }
.cookie .actions { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 1100px) {
  .menu-toggle { display: inline-block; }
  nav.main { display: none; order: 3; width: 100%; flex-direction: column; gap: 8px; margin: 8px 0 4px; }
  nav.main.open { display: flex; }
  .bar { flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .g3, .g2, .contact-grid, .combos, .profile-details { grid-template-columns: 1fr; }
  #expList { columns: 1 !important; }
  .hero { padding: 60px 0; }
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
}
@media (max-width: 560px) {
  .brand { width: 218px; flex-basis: 218px; }
  .bar { gap: 8px; }
  .langs { margin-left: auto; }
  .menu-toggle { padding: 8px; }
  section { padding: 54px 0; }
  .card { padding: 22px; }
  .contact-panel { padding: 28px 0; }
  .hero .btn { text-align: center; }
  .hero-logo { width: min(100%, 300px); }
  .hero-brand { margin-bottom: 30px; }
}

/* High contrast preference */
@media (prefers-contrast: more) {
  :root { --muted: #43384a; --line: #b79ec0; }
}

/* Email as button: disabled until contact forms exist; remove disabled to activate */
.email-btn { font: inherit; color: inherit; cursor: default; }
.email-btn:not([disabled]) { cursor: pointer; }
.email-btn:not([disabled]):hover { border-color: var(--gold); box-shadow: var(--shadow); }
button.email-display { display: block; }
.legal-email-btn { display: block; padding: 0; border: 0; background: none; margin: 8px 0; }
.legal-email-btn .legal-email { margin: 0; }
#quien .section-head { max-width: none; }
