/* ==========================================================================
   SHA DESTINO INVEST S.L. — shadestino.online
   Hoja de estilos principal
   ========================================================================== */

:root {
  --ink-950: #0e1620;
  --ink-900: #14202c;
  --ink-800: #1d2d3d;
  --ink-700: #2b4055;

  --bronze-700: #8a5a22;
  --bronze-600: #a96d28;
  --bronze-500: #c2852f;
  --bronze-400: #d79c4a;
  --bronze-50: #faf2e5;

  --sea-600: #2f6f78;
  --sea-50: #e8f2f3;

  --ink: #16222e;
  --body: #4a5a68;
  --muted: #7a8b99;
  --line: #e2ddd5;
  --line-soft: #efebe4;
  --bg: #ffffff;
  --bg-soft: #f8f6f2;
  --bg-warm: #f3efe8;

  --radius-s: 4px;
  --radius: 10px;
  --radius-l: 18px;

  --shadow-s: 0 1px 2px rgba(20, 32, 44, .06);
  --shadow: 0 12px 34px rgba(20, 32, 44, .09);
  --shadow-l: 0 26px 64px rgba(20, 32, 44, .16);

  --wrap: 1160px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  color: var(--ink);
  margin: 0 0 .6em;
  font-weight: 600;
}

h1, h2 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.015em;
}

h1 { font-size: clamp(2.05rem, 1.3rem + 3vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 1.15rem + 2vw, 2.5rem); }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -.01em; }
h4 { font-size: 1rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--bronze-600); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .45em; }

strong { color: var(--ink); font-weight: 600; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

:focus-visible {
  outline: 3px solid var(--bronze-500);
  outline-offset: 2px;
  border-radius: 3px;
}

/* -------------------------------------------------- Layout helpers */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: clamp(56px, 7vw, 100px) 0; }
.section--soft { background: var(--bg-soft); }
.section--warm { background: var(--bg-warm); }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink-900);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
  border-radius: 0 0 var(--radius-s) 0;
}
.skip-link:focus { left: 0; }

.eyebrow {
  display: inline-block;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bronze-600);
  margin-bottom: 1rem;
}

.section-head { max-width: 700px; margin-bottom: 2.8rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin-bottom: 0; }

.lead { font-size: 1.14rem; color: var(--body); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* -------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: 14px 28px;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: .96rem;
  line-height: 1;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  text-decoration: none;
  font-family: inherit;
  letter-spacing: .01em;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn--primary { background: var(--bronze-600); color: #fff; box-shadow: 0 8px 20px rgba(169, 109, 40, .26); }
.btn--primary:hover { background: var(--bronze-500); color: #fff; }

.btn--dark { background: var(--ink-900); color: #fff; }
.btn--dark:hover { background: var(--ink-800); color: #fff; }

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .38); }
.btn--ghost:hover { background: rgba(255, 255, 255, .11); color: #fff; }

.btn--outline { background: #fff; color: var(--ink-900); border-color: var(--line); box-shadow: var(--shadow-s); }
.btn--outline:hover { border-color: var(--bronze-600); color: var(--bronze-700); }

.btn--block { width: 100%; justify-content: center; }

/* -------------------------------------------------- Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header.is-scrolled { box-shadow: var(--shadow-s); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 40px; height: 40px; flex: 0 0 40px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.12; min-width: 0; }
.brand__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink-900);
  letter-spacing: -.01em;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand__sub {
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  padding: 9px 14px;
  border-radius: var(--radius-s);
  color: var(--ink-800);
  font-weight: 500;
  font-size: .95rem;
}
.nav a:hover { background: var(--bg-soft); text-decoration: none; }
.nav a.is-active { color: var(--bronze-700); font-weight: 600; }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone {
  font-weight: 600;
  color: var(--ink-900);
  font-size: .94rem;
  white-space: nowrap;
}
.header-phone:hover { color: var(--bronze-600); text-decoration: none; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-s);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--ink-900);
  transform: translateX(-50%);
  transition: transform .2s ease, opacity .2s ease;
  border-radius: 2px;
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { content: ""; top: -6px; left: 0; transform: none; }
.nav-toggle span::after { content: ""; top: 6px; left: 0; transform: none; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* -------------------------------------------------- Hero */
.hero {
  position: relative;
  background: var(--ink-950);
  color: #c3d1dd;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 78% 8%, rgba(194, 133, 47, .20), transparent 62%),
    radial-gradient(ellipse 60% 70% at 10% 95%, rgba(47, 111, 120, .20), transparent 60%),
    linear-gradient(160deg, var(--ink-950) 10%, var(--ink-800) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 65% 20%, #000 5%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 65% 20%, #000 5%, transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 60px;
  align-items: center;
  padding: clamp(62px, 8vw, 118px) 0;
}

.hero h1 { color: #fff; margin-bottom: .5em; }
.hero__text p { color: #a9bfcf; font-size: 1.13rem; max-width: 50ch; }
.hero .eyebrow { color: var(--bronze-400); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.1rem; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin-top: 2.5rem;
  padding-top: 1.7rem;
  border-top: 1px solid rgba(255, 255, 255, .13);
  font-size: .89rem;
  color: #8ba6b9;
}
.hero-meta span strong { color: #fff; font-weight: 600; }

.hero-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius-l);
  padding: 32px;
  backdrop-filter: blur(6px);
}
.hero-card h2 {
  font-family: var(--sans);
  color: #fff;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.hero-card dl { margin: 0; display: grid; gap: 15px; }
.hero-card .row {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 10px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  font-size: .93rem;
}
.hero-card .row:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-card dt { color: #85a2b6; }
.hero-card dd { margin: 0; color: #fff; font-weight: 500; }
.hero-card dd a { color: #fff; }

/* -------------------------------------------------- Page hero (interior) */
.page-hero {
  background: linear-gradient(150deg, var(--ink-950) 5%, var(--ink-700) 100%);
  color: #a9bfcf;
  padding: clamp(50px, 6vw, 88px) 0;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 88% 0%, rgba(194, 133, 47, .17), transparent 65%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { max-width: 64ch; color: #a9bfcf; margin-bottom: 0; }

.breadcrumb { font-size: .84rem; color: #7f9cb0; margin-bottom: 1.2rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5em; margin: 0; padding: 0; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .5em; color: #4e7087; }
.breadcrumb a { color: #9cb9cb; }

/* -------------------------------------------------- Cards & grids */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d3cbbf; }
.card h3 { margin-bottom: .5em; }
.card p { font-size: .97rem; }
.card p:last-child { margin-bottom: 0; }

.card__code {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--bronze-700);
  background: var(--bronze-50);
  border-radius: 999px;
  padding: 5px 13px;
  margin-bottom: 1.1rem;
}

.card__icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-s);
  background: var(--bg-warm);
  color: var(--bronze-700);
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
}
.card__icon svg { width: 25px; height: 25px; }

.card__link {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  margin-top: 1.1rem;
  font-weight: 600;
  font-size: .92rem;
}

.card--flat { border: 0; background: var(--bg-soft); }
.card--flat:hover { transform: none; box-shadow: none; }

/* numbered steps */
.steps { counter-reset: step; display: grid; gap: 24px; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 20px; align-items: start; }
.step__num {
  counter-increment: step;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-s);
  background: var(--ink-900);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: .95rem;
  font-family: var(--serif);
}
.step__num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 1.07rem; margin-bottom: .3em; }
.step p { font-size: .96rem; margin-bottom: 0; }

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat { background: #fff; padding: 28px 26px; }
.stat__value {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -.01em;
  line-height: 1.2;
}
.stat__label { font-size: .85rem; color: var(--muted); margin-top: .3rem; }

/* service detail blocks */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
  padding: clamp(38px, 5vw, 60px) 0;
  border-top: 1px solid var(--line);
}
.service-block:first-of-type { border-top: 0; padding-top: 0; }
.service-block__tag {
  display: inline-block;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bronze-700);
  background: var(--bronze-50);
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.checklist li { position: relative; padding-left: 30px; font-size: .97rem; margin: 0; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .45em;
  width: 16px; height: 16px;
  border-radius: 3px;
  background: var(--bronze-50);
  border: 1.5px solid var(--bronze-500);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 5px; top: .74em;
  width: 6px; height: 3px;
  border-left: 2px solid var(--bronze-700);
  border-bottom: 2px solid var(--bronze-700);
  transform: rotate(-45deg);
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--ink-900), var(--ink-700));
  color: #b9ccda;
  border-radius: var(--radius-l);
  padding: clamp(32px, 4.5vw, 56px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 110% at 92% 10%, rgba(194, 133, 47, .22), transparent 62%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: .35em; }
.cta-band p { margin-bottom: 0; color: #b9ccda; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* -------------------------------------------------- Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 52px;
  align-items: start;
}

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 38px);
  box-shadow: var(--shadow-s);
}

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: .89rem;
  color: var(--ink);
  margin-bottom: 7px;
}
.field .req { color: #b03a2b; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  font: inherit;
  font-size: .97rem;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 142px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--bronze-500);
  box-shadow: 0 0 0 3px rgba(194, 133, 47, .16);
}
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 6px; }

.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: .88rem;
  margin-bottom: 22px;
}
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--bronze-600); }
.consent label { font-weight: 400; margin: 0; font-size: .88rem; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-msg {
  display: none;
  padding: 14px 16px;
  border-radius: var(--radius-s);
  font-size: .93rem;
  margin-bottom: 18px;
}
.form-msg.is-visible { display: block; }
.form-msg--ok { background: var(--sea-50); color: #1f5057; border: 1px solid #a9ccd0; }
.form-msg--err { background: #fcebe8; color: #8f2c1e; border: 1px solid #f0bdb3; }

.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.info-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  padding: 17px 0;
  border-bottom: 1px solid var(--line-soft);
  margin: 0;
}
.info-list li:last-child { border-bottom: 0; }
.info-list__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-s);
  background: var(--bg-warm);
  color: var(--ink-700);
  display: grid;
  place-items: center;
}
.info-list__icon svg { width: 20px; height: 20px; }
.info-list .k {
  display: block;
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 3px;
}
.info-list .v { color: var(--ink); font-weight: 600; font-size: .99rem; }
.info-list .v a { color: var(--ink); }
.info-list .v a:hover { color: var(--bronze-600); }
.info-list .v span { display: block; font-weight: 400; color: var(--body); font-size: .93rem; }

/* -------------------------------------------------- Prose / legal */
.prose { max-width: 830px; }
.prose h2 {
  font-size: 1.45rem;
  margin-top: 2.4em;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.prose h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.05rem; margin-top: 1.8em; }
.prose p, .prose li { font-size: 1rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .93rem; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg-soft); color: var(--ink); font-weight: 600; }

.toc {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 2.8rem;
}
.toc h2 {
  font-family: var(--sans) !important;
  font-size: .78rem !important;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1em !important;
  padding: 0 !important;
  border: 0 !important;
}
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 34px; }
.toc li { font-size: .92rem; break-inside: avoid; }

.updated {
  display: inline-block;
  font-size: .85rem;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 2rem;
}

.data-table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.data-table th, .data-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.data-table th {
  width: 250px;
  color: var(--muted);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.data-table td { color: var(--ink); font-weight: 500; }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: 0; }

/* -------------------------------------------------- Footer */
.site-footer {
  background: var(--ink-950);
  color: #8ba6b9;
  padding-top: clamp(50px, 6vw, 76px);
  font-size: .93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 42px;
  padding-bottom: 46px;
}
.site-footer h3 {
  color: #fff;
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 1.3em;
  font-weight: 600;
}
.site-footer a { color: #8ba6b9; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .62em; }

.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 1.3rem; }
.footer-brand .brand__mark { width: 38px; height: 38px; flex: 0 0 38px; }
.footer-brand strong {
  font-family: var(--serif);
  color: #fff;
  font-size: 1.04rem;
  display: block;
  line-height: 1.25;
  font-weight: 600;
}
.footer-brand span { font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; color: #68869b; }

.footer-legal-data {
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding: 28px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 18px 32px;
  font-size: .86rem;
}
.footer-legal-data .k {
  display: block;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #68869b;
  margin-bottom: 4px;
}
.footer-legal-data .v { color: #ccdde8; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding: 20px 0 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  align-items: center;
  font-size: .84rem;
  color: #68869b;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* -------------------------------------------------- Cookie banner */
.cookie-bar {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 150;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-l);
  padding: 20px 24px;
  display: none;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
  font-size: .9rem;
}
.cookie-bar.is-visible { display: flex; }
.cookie-bar p { margin: 0; flex: 1 1 380px; }
.cookie-bar .btn { padding: 11px 24px; font-size: .9rem; }

/* -------------------------------------------------- 404 */
.error-page { text-align: center; padding: clamp(60px, 10vw, 120px) 0; }
.error-page .code {
  font-family: var(--serif);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 600;
  color: var(--bg-warm);
  line-height: 1;
  letter-spacing: -.03em;
}

/* -------------------------------------------------- Reveal animation
   El contenido es visible por defecto; la animacion solo se aplica cuando
   el script anade <html class="js-anim">. Sin JavaScript nada queda oculto. */
.reveal { opacity: 1; transform: none; }
.js-anim .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js-anim .reveal.is-in { opacity: 1; transform: none; }

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

/* -------------------------------------------------- Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 42px; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  .header-cta .header-phone { display: none; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 12px 24px 22px;
    display: none;
    max-height: calc(100vh - 100%);
    overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav a:hover { background: transparent; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .service-block { grid-template-columns: 1fr; gap: 28px; }
  .cta-band { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; gap: 0; }
  .toc ol { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .data-table th { width: auto; display: block; border-bottom: 0; padding-bottom: 0; }
  .data-table td { display: block; padding-top: 4px; }
  .hero-card .row { grid-template-columns: 1fr; gap: 2px; }
  .cookie-bar { padding: 18px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* En pantallas estrechas la cabecera conserva solo marca y boton de menu. */
@media (max-width: 560px) {
  .header-cta .btn--primary { display: none; }
  .brand__sub { display: none; }
  .header-inner { min-height: 70px; }
  .brand__name { font-size: 1rem; white-space: nowrap; }
}

/* -------------------------------------------------- Print */
@media print {
  .site-header, .cookie-bar, .cta-band, .nav-toggle { display: none !important; }
  .js-anim .reveal { opacity: 1 !important; transform: none !important; }
  body { color: #000; font-size: 12pt; }
  a { color: #000; text-decoration: underline; }
}
