/* =========================================================
   Marcos Dámaso · estilos
   Los colores, tipografías y espaciados se ajustan en :root
   ========================================================= */

:root {
  /* Color */
  --bg: #F5F1EA;          /* crema */
  --surface: #FBF9F5;     /* tarjetas */
  --bg-alt: #EFE9DF;      /* secciones alternas */
  --ink: #16130F;         /* texto principal */
  --ink-2: #48433C;       /* texto secundario */
  --muted: #6B655C;       /* microtexto */
  --line: #DFD8CB;        /* bordes sutiles */
  --accent: #D9442B;      /* coral: CTA y destacados grandes */
  --accent-ink: #B4341D;  /* coral oscuro: enlaces y texto pequeño */
  --accent-soft: #F7DDD5;
  --dark: #16130F;
  --on-dark: #F5F1EA;
  --on-dark-2: #B9B2A6;
  --accent-on-dark: #F2694F;

  /* Tipografía */
  --font-display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Espaciado */
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(80px, 11vw, 152px);
  --radius: 14px;
  --radius-sm: 10px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px; /* alto de la cabecera fija */
  -webkit-text-size-adjust: 100%;
}

/* Al saltar a una sección (#problema, #contacto…), el título queda justo bajo la cabecera,
   sin el hueco del padding de la sección ni una franja de la sección anterior */
.section[id] { scroll-margin-top: calc(40px - var(--section-y)); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--ink); color: var(--bg);
  padding: 10px 16px; border-radius: 8px; z-index: 100;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

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

.accent { color: var(--accent); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem; font-weight: 600; line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

.btn-sm { min-height: 42px; padding: 10px 18px; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn-icon { width: 52px; padding: 0; }

.icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.25rem; letter-spacing: -0.03em;
  color: var(--ink); text-decoration: none;
  margin: 0;
}
.wordmark-dot { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) {
  color: var(--ink-2); text-decoration: none;
  font-size: .9375rem; font-weight: 500;
  transition: color .2s;
}
.nav a:not(.btn):hover { color: var(--ink); }

.nav-toggle { display: none; }

@media (max-width: 880px) {
  .nav-toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; cursor: pointer; color: var(--ink);
  }
  .nav-toggle-bar,
  .nav-toggle-bar::before {
    content: ""; display: block;
    width: 22px; height: 2px; background: currentColor; border-radius: 2px;
    transition: transform .25s var(--ease);
  }
  .nav-toggle-bar { position: relative; transform: translateY(-4px); }
  .nav-toggle-bar::before { position: absolute; top: 8px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(-8px) rotate(-90deg); }

  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .25s var(--ease), visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) {
    padding: 14px 0; font-size: 1.125rem; color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .nav-cta { margin-top: 20px; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 88px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}

.eyebrow {
  font-size: .875rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.hero-lead {
  margin-top: 32px;
  max-width: 34rem;
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  line-height: 1.55;
  color: var(--ink-2);
}

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 40px;
}

.microcopy {
  margin-top: 16px;
  font-size: .9375rem; color: var(--muted);
  max-width: 30rem;
}

.hero-profile { margin: 0; }
.hero-photo { aspect-ratio: 4 / 5; }

.hero-caption {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.hero-name {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em;
  line-height: 1.2;
}
.hero-role { margin-top: 2px; font-size: .9375rem; color: var(--ink-2); }
.hero-note {
  margin-top: 12px;
  max-width: 26rem;
  font-size: .9375rem; line-height: 1.55;
  color: var(--muted);
}

.attributes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(56px, 7vw, 104px);
  border-top: 1px solid var(--ink);
}
.attributes li {
  display: flex; flex-direction: column; gap: 6px;
  padding: 24px 24px 0 0;
}
.attributes li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.attr-num { font-size: .8125rem; font-weight: 600; color: var(--accent-ink); }
.attributes strong { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
.attributes span:last-child { font-size: .9375rem; color: var(--ink-2); line-height: 1.5; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-profile { max-width: 420px; }
  .hero-photo { aspect-ratio: 4 / 4.2; }
  .attributes { grid-template-columns: 1fr 1fr; }
  .attributes li:nth-child(3) { padding-left: 0; border-left: 0; }
  .attributes li:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 24px; }
}
@media (max-width: 520px) {
  .hero-actions .btn { width: 100%; }
  .hero-profile {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 16px; align-items: end;
  }
  .hero-photo { aspect-ratio: 4 / 5; }
  .hero-caption { margin-top: 0; padding-top: 0; border-top: 0; }
  .hero-name { font-size: 1.125rem; }
  .hero-role { font-size: .875rem; }
  .hero-note { margin-top: 10px; font-size: .875rem; }
  .attributes { grid-template-columns: 1fr; }
  .attributes li,
  .attributes li + li { padding: 20px 0 0; border-left: 0; }
  .attributes li + li { border-top: 1px solid var(--line); margin-top: 20px; }
}

/* ---------- Fotos y placeholders ---------- */
.photo {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-portrait { aspect-ratio: 4 / 5; }
.photo-wide { aspect-ratio: 16 / 7; padding: 0; }
.photo-wide img { border-radius: var(--radius); }
figure.container.photo-wide {
  margin-inline: auto;
  background: none;
  padding-inline: var(--gutter);
  border-radius: 0;
}
@media (max-width: 640px) {
  .photo-wide { aspect-ratio: 4 / 3; }
}

/* ---------- Secciones ---------- */
.section { padding-block: var(--section-y); }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 46rem; margin-bottom: clamp(40px, 5vw, 72px); }

.section-label {
  display: flex; align-items: center; gap: 12px;
  font-size: .875rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 20px;
}
.section-label span {
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}
.section-label span::after {
  content: ""; display: inline-block;
  width: 28px; height: 1px; margin-left: 12px;
  background: currentColor; vertical-align: middle;
}

.section-title { font-size: clamp(2.125rem, 4.6vw, 3.75rem); letter-spacing: -0.03em; }
.section-lead {
  margin-top: 24px;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  color: var(--ink-2);
  max-width: 40rem;
}

.prose p + p { margin-top: 16px; }
.prose { color: var(--ink-2); font-size: 1.125rem; }
.prose strong { color: var(--ink); font-weight: 600; }

/* Split: foto + texto */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}
.split-copy .section-title { margin-bottom: 28px; }
.split-copy .prose { max-width: 36rem; }
.split-reverse .photo { position: sticky; top: 104px; }

.point-list { margin-top: 48px; border-top: 1px solid var(--line); }
.point-list li {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.point-list h3 { font-size: 1.25rem; }
.point-list p { color: var(--ink-2); }

@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split-reverse .photo { position: static; max-width: 420px; }
  .point-list li { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Servicio ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.service {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 40px);
}
.service-num {
  display: inline-block;
  font-family: var(--font-display); font-weight: 600; font-size: .9375rem;
  color: var(--accent-ink);
  margin-bottom: 40px;
}
.service h3 { font-size: clamp(1.375rem, 2vw, 1.625rem); margin-bottom: 12px; }
.service p { color: var(--ink-2); max-width: 30rem; }

.beyond {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 40px; align-items: end;
  margin-top: 16px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius);
  background: var(--ink); color: var(--on-dark);
}
.beyond h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 12px; }
.beyond p { color: var(--on-dark-2); max-width: 36rem; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.tags li {
  padding: 8px 14px;
  border: 1px solid rgba(245, 241, 234, .25);
  border-radius: 999px;
  font-size: .875rem; color: var(--on-dark);
}

@media (max-width: 760px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-num { margin-bottom: 20px; }
  .beyond { grid-template-columns: 1fr; gap: 24px; }
  .tags { justify-content: flex-start; }
}

/* ---------- Criterio (oscura) ---------- */
.section-dark { background: var(--dark); color: var(--on-dark); }
.section-dark .section-label { color: var(--on-dark-2); }
.section-dark .section-label span { color: var(--accent-on-dark); }
.section-dark .accent { color: var(--accent-on-dark); }
.section-dark .prose { color: var(--on-dark-2); }

.statement {
  font-size: clamp(2.25rem, 5.6vw, 4.75rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 17ch;
}

.criterio-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 112px);
  margin-top: clamp(48px, 6vw, 88px);
  align-items: start;
}

.compare { border-top: 1px solid rgba(245, 241, 234, .3); }
.compare-row {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(245, 241, 234, .14);
}
.compare-row span:first-child {
  color: var(--on-dark-2);
  text-decoration: line-through;
  text-decoration-color: rgba(242, 105, 79, .7);
}
.compare-row span:last-child {
  font-family: var(--font-display); font-weight: 500; font-size: 1.1875rem;
  letter-spacing: -0.01em;
}
.compare-head span,
.compare-head span:first-child,
.compare-head span:last-child {
  font-family: var(--font-body);
  font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--on-dark-2); text-decoration: none;
}

@media (max-width: 880px) {
  .criterio-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .compare-row { grid-template-columns: 1fr; gap: 4px; }
  .compare-head span:last-child { display: none; }
  .compare-head span:first-child::after { content: " → lo que de verdad te pregunto"; }
}

/* ---------- Transparencia ---------- */
.duo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.duo-col {
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.duo-col h3 { font-size: 1.5rem; margin-bottom: 24px; }

.check-list li {
  position: relative;
  padding: 14px 0 14px 32px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
}
.check-list li::before {
  content: "";
  position: absolute; left: 2px; top: 22px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.honest-note {
  margin-top: 40px;
  max-width: 46rem;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
  color: var(--ink-2);
}

@media (max-width: 760px) {
  .duo { grid-template-columns: 1fr; }
}

/* ---------- Método ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.step {
  display: flex; flex-direction: column; gap: 32px;
  padding: 28px 24px 0 0;
}
.step + .step { padding-left: 24px; border-left: 1px solid var(--line); }
.step-num {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 1;
  color: var(--accent);
  letter-spacing: -0.04em;
}
.step h3 { font-size: 1.25rem; margin-bottom: 10px; }
.step p { color: var(--ink-2); font-size: 1rem; }

@media (max-width: 1024px) {
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .step,
  .step + .step {
    flex-direction: row; gap: 24px;
    padding: 24px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .step:first-child { border-top-color: var(--ink); }
  .step-num { min-width: 56px; font-size: 2.5rem; }
}

/* ---------- Preguntas ---------- */
#preguntas .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1.25rem;
  letter-spacing: -0.01em;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-weight: 400; font-size: 1.75rem; line-height: 1;
  color: var(--accent);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--ink-2); max-width: 40rem; }

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}

.whatsapp-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--line);
}
.whatsapp-card p { color: var(--ink-2); }
.whatsapp-card strong { color: var(--ink); }

.form {
  display: grid; gap: 20px;
  padding: clamp(24px, 3vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.field { display: grid; gap: 8px; }
.field label { font-size: .9375rem; font-weight: 500; }
.optional { color: var(--muted); font-weight: 400; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2316130F' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 40px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder { color: #9A9389; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(22, 19, 15, .08);
}
.field .is-invalid,
.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid { border-color: var(--accent-ink); }
.field-error { font-size: .875rem; color: var(--accent-ink); }

.field-check {
  grid-template-columns: auto 1fr; align-items: start; gap: 12px;
}
.field-check input {
  width: 20px; height: 20px; margin: 2px 0 0; padding: 0;
  -webkit-appearance: auto; appearance: auto;
  accent-color: var(--accent);
}
.field-check label { font-weight: 400; color: var(--ink-2); font-size: .9375rem; }
.field-check .field-error { grid-column: 2; }

.form-status { font-size: .9375rem; color: var(--ink-2); min-height: 1.5em; }
.form-status.is-error { color: var(--accent-ink); }
.form-status.is-success { color: #22663A; }

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Pie ---------- */
.site-footer {
  padding-block: 48px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px;
}
.footer-tag { color: var(--muted); font-size: .9375rem; }
.footer-links { display: flex; gap: 24px; margin-left: auto; }
.footer-links a { color: var(--ink-2); font-size: .9375rem; text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-copy { color: var(--muted); font-size: .875rem; width: 100%; }

@media (max-width: 640px) {
  .footer-links { margin-left: 0; width: 100%; }
}

/* ---------- Barra móvil ---------- */
.mobile-bar { display: none; }

@media (max-width: 640px) {
  .mobile-bar {
    display: flex; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    transform: translateY(110%);
    transition: transform .3s var(--ease);
  }
  .mobile-bar .btn-primary { flex: 1; }
  .mobile-bar.is-visible { transform: none; }
  .site-footer { padding-bottom: 112px; }
}

/* ---------- Aviso (toast) ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60;
  transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 32px);
  padding: 14px 20px;
  background: var(--ink); color: var(--on-dark);
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
@media (max-width: 640px) {
  .toast { bottom: 96px; }
}

/* ---------- Animación de entrada ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .nav, .mobile-bar { transition: none; }
}

/* ---------- Información básica de protección de datos (junto a los formularios) ---------- */
.form-legal {
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--muted);
}
.form-legal strong { color: var(--ink-2); font-weight: 600; }
.form-legal a { color: var(--ink-2); }

/* ---------- Antispam: campo trampa oculto ---------- */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------- Banner y panel de cookies (js/consent.js) ---------- */
.cookie-banner {
  position: fixed; left: 24px; bottom: 24px; z-index: 80;
  width: min(440px, calc(100% - 32px));
  padding: 22px 22px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(22, 19, 15, .16);
}
.cookie-title {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.cookie-text { font-size: .9375rem; line-height: 1.5; color: var(--ink-2); }
.cookie-text a { color: var(--accent-ink); }
.cookie-actions {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 16px;
}
.cookie-actions .btn { flex: 1 1 auto; }

.cookie-panel {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  padding: 16px;
  background: rgba(22, 19, 15, .45);
}
.cookie-panel[hidden] { display: none; }
.cookie-panel-box {
  width: min(520px, 100%);
  max-height: calc(100vh - 32px); overflow: auto;
  padding: 28px;
  background: var(--surface);
  border-radius: var(--radius);
}
.cookie-option {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.cookie-text + .cookie-option { margin-top: 12px; border-top: 1px solid var(--line); }
.cookie-option strong { display: block; font-weight: 600; color: var(--ink); }
.cookie-option span { display: block; font-size: .875rem; color: var(--muted); margin-top: 2px; }
.cookie-option input {
  width: 22px; height: 22px; flex-shrink: 0; margin: 0;
  accent-color: var(--accent);
}

.footer-links button {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: .9375rem; color: var(--ink-2);
}
.footer-links button:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 640px) {
  .cookie-banner { left: 16px; right: 16px; bottom: 16px; width: auto; }
}
