:root {
  --bg: #eef1f6;
  --surface: #ffffff;
  --ink: #0c1524;
  --muted: #4a5568;
  --primary: #0f2347;
  --primary-mid: #1a3560;
  --primary-dark: #081528;
  --accent: #d4af5a;
  --accent-bright: #e8c878;
  --accent-soft: #f5ecd6;
  --line: #c8d0de;
  --focus: #2563eb;
  --success: #166534;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(8, 21, 40, 0.12);
  --shadow-sm: 0 8px 24px rgba(8, 21, 40, 0.08);
  --font-display: "Libre Baskerville", Georgia, serif;
  --font-body: "Work Sans", system-ui, sans-serif;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 1.05rem;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-mid); text-underline-offset: 2px; }
a:hover { color: #8a6b1e; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: .75rem 1rem;
  z-index: 9999;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.shell, .header-inner, .footer-inner {
  width: min(var(--max), calc(100% - 1.5rem));
  margin-inline: auto;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--ink);
  z-index: 101;
}
.logo-img {
  height: 2.85rem;
  width: auto;
  display: block;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .5rem .65rem;
  cursor: pointer;
  color: var(--ink);
  z-index: 101;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  padding: .4rem 0;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.site-nav a[aria-current="page"] {
  color: var(--primary);
  border-bottom-color: var(--accent);
}
.site-nav a:hover { color: var(--primary); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .9rem 1.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: .98rem;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  color: var(--primary-dark);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}
.btn-light {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.btn-light:hover {
  background: var(--accent-soft);
  color: var(--primary-dark);
}

/* ── Hero (dark band) ── */
.hero-band {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-mid) 100%);
  color: #f0f4fa;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
  position: relative;
  overflow: hidden;
}
.hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(212, 175, 90, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
  pointer-events: none;
}
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  position: relative;
}
.hero-copy { position: relative; z-index: 1; }
.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  color: #fff;
}
.hero-copy .lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(240, 244, 250, 0.88);
  max-width: 36rem;
  margin: 0;
  line-height: 1.75;
}
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
  color: var(--accent-bright);
  font-weight: 700;
  margin: 0 0 .85rem;
  padding: .35rem .75rem;
  background: rgba(212, 175, 90, 0.15);
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 90, 0.35);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
}
.hero-visual {
  position: relative;
  z-index: 1;
}
.hero-photo, .page-photo, .split-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid rgba(255, 255, 255, 0.12);
  background: var(--primary-mid);
}
.hero-photo img, .page-photo img, .split-visual img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.hero-photo img[src$=".svg"],
.page-photo img[src$=".svg"],
.split-visual img[src$=".svg"] {
  aspect-ratio: auto;
  object-fit: contain;
  background: transparent;
}
.hero-photo img:not([src$=".svg"]) { aspect-ratio: 5 / 3; }
.split-visual img:not([src$=".svg"]) { aspect-ratio: 4 / 3; }

/* ── Info strip (pill cards) ── */
.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .85rem;
  margin-top: -2rem;
  position: relative;
  z-index: 2;
  padding-bottom: 1rem;
}
.strip-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.strip-item span {
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.strip-item strong {
  font-size: .92rem;
  color: var(--ink);
  line-height: 1.45;
  word-break: break-word;
}
.strip-item a {
  color: var(--primary-mid);
  text-decoration: none;
  font-weight: 600;
}
.strip-item a:hover { text-decoration: underline; }

/* ── Sections ── */
.section { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  margin: 0 0 .75rem;
  line-height: 1.2;
  color: var(--ink);
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ── Bento feature grid ── */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}
.bento .card:first-child {
  grid-column: span 2;
  grid-row: span 1;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-soft), #fff);
  border: 1px solid rgba(212, 175, 90, 0.4);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 .55rem;
  color: var(--ink);
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.65;
}

/* ── Standard cards grid ── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.card-numbered {
  position: relative;
  padding-top: 1.75rem;
}
.card-numbered::before {
  content: attr(data-num);
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-soft);
  line-height: 1;
}

/* ── Split block (text + image) ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }
.split-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 .75rem;
}
.split-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
}

/* ── CTA band (high contrast) ── */
.cta-band {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary-mid));
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--shadow);
  margin: 1rem 0;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0 0 .5rem;
  color: #fff;
}
.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  max-width: 32rem;
  font-size: 1.02rem;
  line-height: 1.65;
}
.cta-band .btn-primary {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── Timeline (proceso) ── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 42rem;
}
.timeline-step {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem 1.25rem;
  padding-bottom: 2rem;
  position: relative;
}
.timeline-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 1.4rem;
  top: 3rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--line));
}
.timeline-marker {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--accent-bright);
  font-weight: 700;
  font-size: .95rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 3px solid var(--accent-soft);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
}
.timeline-body h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: .35rem 0 .4rem;
}
.timeline-body p {
  margin: 0;
  color: var(--muted);
  font-size: .98rem;
}

/* ── Values row ── */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.value-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.value-item .card-icon {
  margin-inline: auto;
}
.value-item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 .4rem;
}
.value-item p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}

/* ── Quote block ── */
.quote-block {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}
.quote-block p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  margin: 0;
  color: var(--primary);
  line-height: 1.6;
}

/* ── Prose ── */
.prose { max-width: 46rem; }
.prose h1, .prose h2 {
  font-family: var(--font-display);
  color: var(--ink);
}
.prose h2 { font-size: 1.5rem; margin: 2rem 0 .75rem; }
.prose p { margin: 0 0 1rem; color: var(--muted); }
.prose a { color: var(--primary-mid); font-weight: 500; }

.page-hero {
  padding: clamp(2rem, 5vw, 3.5rem) 0 1rem;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  margin: 0 0 .75rem;
  line-height: 1.15;
}
.page-hero .lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0;
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 1rem 0 3rem;
}
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.form-field { margin-bottom: 1rem; }
.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: .4rem;
  color: var(--ink);
  font-size: .95rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: .8rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--primary-mid);
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 53, 96, 0.12);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-check {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  margin: 1rem 0;
  font-size: .92rem;
  color: var(--muted);
}
.form-check input { margin-top: .3rem; flex-shrink: 0; }
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.alert {
  padding: .9rem 1.1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: .95rem;
}
.alert-success {
  background: #ecfdf3;
  border: 1px solid #86efac;
  color: var(--success);
}
.alert-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}
.contact-info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-top: 1.5rem;
}
.info-card {
  background: var(--accent-soft);
  border: 1px solid rgba(212, 175, 90, 0.35);
  border-radius: var(--radius-sm);
  padding: .9rem 1rem;
}
.info-card span {
  display: block;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: .25rem;
}
.info-card strong, .info-card a {
  font-size: .9rem;
  color: var(--ink);
  word-break: break-word;
}
.map-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: var(--surface);
}
.map-card iframe {
  display: block;
  width: 100%;
  min-height: 360px;
  border: 0;
}
.map-caption {
  padding: .85rem 1.1rem;
  margin: 0;
  font-size: .92rem;
  background: var(--surface);
}

/* ── Footer ── */
.site-footer {
  margin-top: 2rem;
  background: var(--primary-dark);
  color: #dde5f0;
  padding: 2.75rem 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 1.5rem 2rem;
}
.footer-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 .35rem;
  color: #fff;
}
.footer-tagline, .footer-note, .footer-copy { color: #9aadc4; }
.footer-contact address {
  font-style: normal;
  line-height: 1.75;
  font-size: .95rem;
}
.footer-contact a { color: #fff; text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.footer-legal a {
  color: #dde5f0;
  text-decoration: none;
  font-size: .92rem;
}
.footer-legal a:hover { color: var(--accent-bright); }
.footer-note, .footer-copy {
  grid-column: 1 / -1;
  margin: 0;
  font-size: .88rem;
}

/* ── Cookie banner ── */
.cookie-banner {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  max-width: 28rem;
  margin-left: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem;
  z-index: 200;
}
.cookie-banner:not([hidden]) { display: block; }
.cookie-banner p {
  margin: 0;
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.55;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .85rem;
}
.cookie-actions button,
.cookie-panel button {
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  padding: .55rem .9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  color: var(--ink);
}
#cookie-accept, #cookie-save {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.cookie-panel label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: .45rem 0;
  font-size: .9rem;
  color: var(--ink);
}

.not-found {
  min-height: 50vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 0;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
    z-index: 100;
  }
  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }
  .site-nav a {
    font-size: 1.2rem;
    color: var(--ink);
  }

  .hero { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-photo img:not([src$=".svg"]) { aspect-ratio: 16 / 10; max-height: 280px; object-fit: cover; }
  .hero-photo img[src$=".svg"] { max-height: none; }

  .strip { grid-template-columns: repeat(2, 1fr); margin-top: -1.5rem; }
  .bento { grid-template-columns: 1fr; }
  .bento .card:first-child { grid-column: span 1; }
  .cards, .values { grid-template-columns: 1fr; }
  .split, .split-reverse { grid-template-columns: 1fr; direction: ltr; }
  .split-visual { order: -1; }
  .split-visual img:not([src$=".svg"]) { max-height: 260px; object-fit: cover; }
  .contact-grid, .footer-inner { grid-template-columns: 1fr; }
  .contact-info-cards { grid-template-columns: 1fr; }
  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .cta-band .btn-primary { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; min-width: 140px; }
}

@media (max-width: 520px) {
  .strip { grid-template-columns: 1fr; margin-top: -1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
  body { font-size: 1rem; }
  .cookie-banner {
    inset: auto .75rem .75rem .75rem;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card:hover { transform: none; }
}
