/* =============================================================
   PIEROLUNA IMMO SL — Hoja de estilos principal
   Diseño inmobiliario premium · Inter · paleta neutra + oro
   ============================================================= */

:root {
  --ink-50: #f7f7f8;
  --ink-100: #eeeef0;
  --ink-200: #d8d8dc;
  --ink-300: #b6b6bd;
  --ink-400: #8a8a93;
  --ink-500: #65656d;
  --ink-600: #4a4a52;
  --ink-700: #3a3a40;
  --ink-800: #23232a;
  --ink-900: #15151a;
  --ink-950: #0b0b10;

  --navy-700: #2b3e5b;
  --navy-800: #1f2c41;
  --navy-900: #131a28;

  --gold-300: #dabf65;
  --gold-400: #caa540;
  --gold-500: #b08a2c;
  --gold-600: #8c6c22;

  --bg: #ffffff;
  --bg-soft: #f7f7f5;
  --bg-dark: var(--ink-950);
  --border: #ececee;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(15, 15, 20, .05);
  --shadow: 0 1px 2px rgba(15, 15, 20, .04), 0 8px 24px rgba(15, 15, 20, .06);
  --shadow-lg: 0 12px 40px rgba(15, 15, 20, .12);

  --container: 1200px;
  --header-h: 76px;

  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-800);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-500); }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -.015em;
  line-height: 1.18;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.5rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; color: var(--ink-700); }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; color: var(--ink-700); }
li { margin-bottom: .35em; }

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

::selection { background: var(--gold-300); color: var(--ink-950); }

/* ----------------------- Layout -------------------------- */

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

.section { padding: clamp(56px, 8vw, 112px) 0; }
.section-sm { padding: clamp(40px, 6vw, 72px) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--bg-dark); color: var(--ink-100); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: var(--ink-200); }

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

.section-dark .eyebrow { color: var(--gold-300); }

.lead {
  font-size: 1.125rem;
  color: var(--ink-600);
  max-width: 60ch;
}

.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); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ----------------------- Buttons -------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .005em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .25s var(--ease);
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--ink-900);
  color: #fff;
}
.btn-primary:hover {
  background: var(--ink-950);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-gold {
  background: var(--gold-500);
  color: #fff;
}
.btn-gold:hover {
  background: var(--gold-600);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--ink-200);
}
.btn-outline:hover {
  border-color: var(--ink-900);
  color: var(--ink-900);
}

.btn-light {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-color: rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
}
.btn-light:hover {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border-color: rgba(255, 255, 255, .3);
}

.btn-block { width: 100%; }

/* ----------------------- Header -------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(15, 15, 20, .06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: .04em;
  color: var(--ink-900);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--ink-900);
  color: var(--gold-300);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: 0;
}

.brand-text strong { color: var(--ink-900); font-weight: 700; }
.brand-text small { display: block; font-size: .68rem; font-weight: 500; color: var(--ink-500); letter-spacing: .14em; text-transform: uppercase; line-height: 1; margin-top: 2px; }

.nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav a {
  font-size: .94rem;
  color: var(--ink-700);
  font-weight: 500;
  position: relative;
  padding: .25rem 0;
}

.nav a:hover { color: var(--ink-900); }

.nav a.active {
  color: var(--ink-900);
}

.nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--gold-500);
  border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: var(--ink-900);
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    padding: .5rem 24px 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--border); }
  .nav a:last-of-type { border-bottom: 0; }
  .nav.open { display: flex; }
  .header-actions .btn { display: none; }
}

/* ----------------------- Hero -------------------------- */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(11,11,16,.55) 0%, rgba(11,11,16,.7) 100%),
                    url('https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?auto=format&fit=crop&w=2000&q=80');
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.hero-content {
  max-width: 760px;
  padding: 120px 0 80px;
  animation: fadeUp .9s var(--ease) both;
}

.hero h1 { color: #fff; font-weight: 600; }

.hero p.lead { color: rgba(255,255,255,.85); font-size: 1.18rem; max-width: 56ch; margin-bottom: 2rem; }

.hero .eyebrow { color: var(--gold-300); }

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: clamp(48px, 8vw, 90px);
  border-top: 1px solid rgba(255,255,255,.18);
}

.hero-stat {
  padding: 1.5rem 0;
  border-right: 1px solid rgba(255,255,255,.12);
}
.hero-stat:last-child { border-right: 0; }
.hero-stat .num { font-size: 1.7rem; font-weight: 600; color: #fff; }
.hero-stat .lbl { font-size: .82rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .12em; }

@media (max-width: 640px) {
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .hero-stat:last-child { border-bottom: 0; }
}

/* ----------------------- Page header (interior pages) -------------------------- */

.page-header {
  padding: clamp(90px, 12vw, 140px) 0 clamp(48px, 6vw, 80px);
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
}

.page-header h1 { margin-bottom: .5rem; }
.page-header p.lead { font-size: 1.2rem; }

.breadcrumb {
  font-size: .82rem;
  color: var(--ink-500);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--ink-500); }
.breadcrumb a:hover { color: var(--ink-900); }
.breadcrumb span { color: var(--ink-700); }

/* ----------------------- Cards -------------------------- */

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all .3s var(--ease);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: var(--ink-200);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card .icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-50);
  color: var(--ink-900);
  border-radius: 12px;
  margin-bottom: 1.25rem;
}
.card .icon svg { width: 24px; height: 24px; }

.card h3 { font-size: 1.2rem; }
.card p { color: var(--ink-600); font-size: .96rem; margin-bottom: 1rem; }
.card .card-link {
  margin-top: auto;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-900);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.card .card-link:hover { color: var(--gold-500); }

/* Image-led cards */

.media-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: all .3s var(--ease);
}
.media-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.media-card .media-img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
}
.media-card .media-body { padding: 1.5rem; }
.media-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.media-card p { font-size: .94rem; color: var(--ink-600); margin-bottom: 0; }

/* ----------------------- Service detail (servicios page) -------------------------- */

.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: clamp(56px, 8vw, 96px) 0;
  border-bottom: 1px solid var(--border);
}
.service-block:last-child { border-bottom: 0; }

.service-block.reverse .service-img { order: 2; }

.service-img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.service-img img { width: 100%; height: 100%; object-fit: cover; }

.service-body .eyebrow { color: var(--gold-500); }
.service-body h2 { margin-bottom: 1rem; }
.service-body ul { list-style: none; padding: 0; }
.service-body ul li {
  padding-left: 1.6rem;
  position: relative;
  color: var(--ink-700);
}
.service-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-500);
}

.service-meta {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  background: var(--bg-soft);
  border-left: 3px solid var(--gold-500);
  border-radius: var(--radius-sm);
}
.service-meta h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-500); margin-bottom: .35rem; font-weight: 600; }
.service-meta p { margin: 0; color: var(--ink-700); font-size: .96rem; }

@media (max-width: 900px) {
  .service-block { grid-template-columns: 1fr; gap: 32px; }
  .service-block.reverse .service-img { order: 0; }
}

/* ----------------------- Process / steps -------------------------- */

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}

.process-step {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  position: relative;
}

.process-step::before {
  counter-increment: step;
  content: '0' counter(step);
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gold-500);
  letter-spacing: .12em;
  margin-bottom: .75rem;
}

.process-step h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.process-step p { font-size: .94rem; color: var(--ink-600); margin: 0; }

@media (max-width: 900px) {
  .process-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .process-list { grid-template-columns: 1fr; }
}

/* ----------------------- Testimonials -------------------------- */

.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial blockquote {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-800);
  font-style: italic;
}
.testimonial blockquote::before {
  content: '“';
  display: block;
  font-size: 2.4rem;
  color: var(--gold-400);
  line-height: 0;
  margin-bottom: 1.2rem;
  font-family: Georgia, serif;
}

.testimonial-author {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: .9rem;
}
.testimonial-author .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink-100);
  color: var(--ink-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: .9rem;
}
.testimonial-author .who { font-size: .9rem; }
.testimonial-author .who strong { display: block; color: var(--ink-900); }
.testimonial-author .who span { color: var(--ink-500); font-size: .82rem; }

/* ----------------------- CTA -------------------------- */

.cta-band {
  background: var(--bg-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px);
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  background-image:
    radial-gradient(circle at 100% 0%, rgba(202, 165, 64, .18), transparent 60%),
    radial-gradient(circle at 0% 100%, rgba(43, 62, 91, .25), transparent 60%);
}
.cta-band h2 { color: #fff; max-width: 28ch; margin: 0; }
.cta-band p { color: rgba(255,255,255,.7); margin: .5rem 0 0; max-width: 50ch; }
.cta-band .cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ----------------------- About / Team -------------------------- */

.values-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.values-list li {
  padding: 1.25rem 1.5rem;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold-500);
}
.values-list li strong { display: block; color: var(--ink-900); font-size: 1.05rem; margin-bottom: .25rem; }
.values-list li span { color: var(--ink-600); font-size: .94rem; }

@media (max-width: 640px) { .values-list { grid-template-columns: 1fr; } }

.admin-card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
}
.admin-card .role { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold-500); font-weight: 600; }
.admin-card h3 { margin: .35rem 0 .6rem; font-size: 1.15rem; }
.admin-card p { color: var(--ink-600); font-size: .94rem; margin: 0; }

/* ----------------------- Contact -------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-info dl { margin: 0; display: grid; gap: 1.4rem; }
.contact-info dt {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink-500);
  font-weight: 600;
  margin-bottom: .25rem;
}
.contact-info dd { margin: 0; color: var(--ink-800); font-size: 1rem; }
.contact-info dd a { color: var(--ink-900); border-bottom: 1px solid var(--ink-200); }
.contact-info dd a:hover { color: var(--gold-500); border-color: var(--gold-500); }

.form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow-sm);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; margin-bottom: 1rem; }
.field label {
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: .4rem;
  color: var(--ink-800);
}
.field label .req { color: var(--gold-500); margin-left: 2px; }

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: .96rem;
  color: var(--ink-900);
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-sm);
  padding: .75rem .9rem;
  transition: all .2s ease;
  width: 100%;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink-900);
  box-shadow: 0 0 0 3px rgba(15,15,20,.08);
}

.field textarea { min-height: 140px; resize: vertical; }

.field .check {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  font-size: .88rem;
  color: var(--ink-700);
  line-height: 1.5;
}
.field .check input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }

.honeypot { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.form-status {
  margin-top: 1rem;
  padding: .9rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  display: none;
}
.form-status.success { display: block; background: #f0f7ed; color: #2c5e1f; border: 1px solid #cde4c2; }
.form-status.error { display: block; background: #fdf1f0; color: #8a1f1a; border: 1px solid #f1c9c5; }

/* ----------------------- Trust / logos line -------------------------- */

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-row .trust-item {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink-500);
  font-weight: 600;
}

/* ----------------------- Footer -------------------------- */

.site-footer {
  background: var(--bg-dark);
  color: var(--ink-300);
  padding: 64px 0 24px;
  margin-top: 0;
}
.site-footer h4 {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #fff;
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.site-footer a { color: var(--ink-300); font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 900px) { .site-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .site-footer .footer-grid { grid-template-columns: 1fr; } }

.footer-brand { color: #fff; font-weight: 700; font-size: 1.05rem; letter-spacing: .04em; }
.footer-brand small { display: block; color: var(--ink-400); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; margin-top: 4px; }
.site-footer p.tagline { margin: 1rem 0 0; font-size: .92rem; color: var(--ink-400); max-width: 30ch; }

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: .55rem; font-size: .92rem; color: var(--ink-300); }

.site-footer .legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  padding-top: 24px;
  font-size: .82rem;
  color: var(--ink-400);
}
.site-footer .legal-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }

/* ----------------------- Legal pages -------------------------- */

.prose {
  max-width: 760px;
  margin: 0 auto;
}
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; font-size: 1.15rem; }
.prose p, .prose li { color: var(--ink-700); font-size: 1rem; }
.prose ul { padding-left: 1.5rem; }
.prose a { color: var(--ink-900); border-bottom: 1px solid var(--ink-300); }
.prose a:hover { color: var(--gold-500); border-color: var(--gold-500); }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .94rem;
}
.prose th, .prose td {
  border: 1px solid var(--border);
  padding: .75rem 1rem;
  text-align: left;
  vertical-align: top;
}
.prose th { background: var(--bg-soft); font-weight: 600; color: var(--ink-900); }

.toc {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  font-size: .94rem;
}
.toc strong { display: block; margin-bottom: .5rem; color: var(--ink-900); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; }
.toc ul { padding-left: 1.1rem; margin: 0; }
.toc li { margin-bottom: .25rem; }

.updated-on { color: var(--ink-500); font-size: .88rem; margin-bottom: 2rem; }

/* ----------------------- 404 -------------------------- */

.error-page {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
}
.error-code {
  font-size: clamp(6rem, 18vw, 11rem);
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1;
  letter-spacing: -.04em;
  margin-bottom: .5rem;
}
.error-page p { font-size: 1.1rem; color: var(--ink-600); max-width: 50ch; margin: 1rem auto 2rem; }

/* ----------------------- Cookie banner -------------------------- */

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem 1.5rem;
  max-width: 720px;
  margin: 0 auto;
  display: none;
  animation: fadeUp .4s var(--ease) both;
}
.cookie-banner.open { display: block; }
.cookie-banner h3 { font-size: 1rem; margin: 0 0 .25rem; }
.cookie-banner p { font-size: .9rem; color: var(--ink-600); margin: 0 0 1rem; }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner .cookie-actions .btn { padding: .65rem 1.05rem; font-size: .88rem; }

.cookie-prefs {
  margin-top: 1rem;
  display: none;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.cookie-prefs.open { display: block; }
.cookie-prefs .pref-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .6rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: .9rem;
}
.cookie-prefs .pref-row:last-child { border-bottom: 0; }
.cookie-prefs .pref-row strong { display: block; color: var(--ink-900); }
.cookie-prefs .pref-row small { color: var(--ink-500); }
.cookie-prefs input[type=checkbox] { width: 18px; height: 18px; }
.cookie-prefs input[disabled] { opacity: .5; }

/* ----------------------- Animations -------------------------- */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* ----------------------- Accessibility -------------------------- */

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink-900);
  color: #fff;
  padding: .75rem 1rem;
  z-index: 100;
  border-radius: 0 0 6px 0;
  font-size: .9rem;
}
.skip-link:focus { left: 0; color: #fff; }

/* ----------------------- Utility -------------------------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.muted { color: var(--ink-500); }
.divider {
  height: 1px;
  background: var(--border);
  margin: 3rem 0;
  border: 0;
}

.badge {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .65rem;
  border-radius: 999px;
  background: var(--ink-50);
  color: var(--ink-700);
  font-weight: 600;
}
