/* =========================================================
   Vulner Agency — referencia Reformas Jerez
   Marfil + verde esmeralda profundo + dorado, tipografía gruesa
   ========================================================= */

:root {
  --paper: #FBF8F2;
  --sand: #F3EDE3;
  --sand-deep: #E8DECE;
  --ink: #14231D;
  --ink-soft: #40554B;
  --muted: #62746A;

  --green: #1F5D49;
  --green-deep: #12382B;
  --green-dark: #0D2A20;
  --gold: #C8A45C;
  --gold-light: #D8BC86;
  --cream: #FBF8F2;

  --line: rgba(20, 35, 29, .16);
  --line-light: rgba(251, 248, 242, .20);
  --gold-line: rgba(200, 164, 92, .42);

  --shadow-sm: 0 14px 38px rgba(20, 35, 29, .10);
  --shadow-md: 0 28px 70px rgba(20, 35, 29, .18);

  --font-display: "Plus Jakarta Sans", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1240px;
  --header-h: 82px;
  --ease: cubic-bezier(.22, .7, .2, 1);
  --progress: 0;
  --scroll: 0;
}

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

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

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

@supports (overflow-x: clip) {
  body { overflow-x: clip; }
}

main,
.site-footer { position: relative; z-index: 1; }

[hidden] { display: none !important; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button,
input,
select,
textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--gold); color: var(--green-dark); }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.ico { width: 19px; height: 19px; flex: 0 0 auto; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 44px);
}
.container > * { max-width: 100%; }

section { scroll-margin-top: calc(var(--header-h) + 14px); }

/* ---------------------- Capas ---------------------- */

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 300;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transform: scaleX(var(--progress));
  transform-origin: left center;
  pointer-events: none;
}
.page-glow {
  position: fixed;
  inset: -20% -10%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 10%, rgba(200, 164, 92, .09), transparent 30%),
    radial-gradient(circle at 8% 80%, rgba(31, 93, 73, .07), transparent 30%);
  transform: translate3d(0, calc(var(--scroll) * -0.03px), 0);
}
.skip-link {
  position: fixed;
  top: -100px; left: 16px;
  z-index: 400;
  padding: 11px 16px;
  background: var(--gold);
  color: var(--green-dark);
  font-weight: 800;
  border-radius: 3px;
}
.skip-link:focus { top: 12px; }

/* ---------------------- Tipografía ---------------------- */

h1, h2, h3 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.08;
  overflow-wrap: break-word;
}

h1 {
  max-width: 20ch;
  font-size: clamp(2.75rem, 5.2vw, 4.5rem);
  line-height: 1.04;
}
h2 { font-size: clamp(2.1rem, 3.8vw, 3.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.3; }

h1 em, h2 em {
  font-style: normal;
  color: var(--gold);
}
.section--dark h2 em,
.hero h1 em,
.contact h2 em { color: var(--gold-light); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--green);
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
}
.kicker::before { content: ""; width: 30px; height: 2px; background: currentColor; }
.kicker--gold { color: var(--gold-light); }
.kicker--light { color: var(--gold-light); }
.kicker--light::before { background: var(--gold-light); }

.section-head { max-width: 800px; margin-bottom: 44px; }
.section-head h2 { margin-top: 14px; }
.section-intro {
  max-width: 62ch;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* ---------------------- Botones ---------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 54px;
  padding: 14px 24px;
  border: 2px solid transparent;
  border-radius: 3px;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.2;
  text-align: center;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn .ico { transition: transform .3s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0) scale(.99); }

.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--green-dark); }
.btn--gold:hover { background: var(--gold-light); border-color: var(--gold-light); box-shadow: 0 14px 30px rgba(200, 164, 92, .28); }

.btn--outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--outline:hover { border-color: var(--green); color: var(--green); background: rgba(31, 93, 73, .05); }

.btn--outline-light { background: transparent; border-color: var(--line-light); color: var(--cream); }
.btn--outline-light:hover { border-color: var(--gold-light); color: var(--gold-light); background: rgba(251, 248, 242, .08); }

.btn--sm { min-height: 46px; padding: 11px 18px; font-size: .88rem; }
.btn--full { width: 100%; }

.link-btn {
  margin-top: 16px;
  padding: 4px 0;
  background: none;
  border: 0;
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.link-btn:hover { color: var(--gold); }

/* ---------------------- Cabecera fija y difuminada ---------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  color: var(--cream);
  background: rgba(18, 56, 43, .80);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  backdrop-filter: blur(20px) saturate(130%);
  border-bottom: 1px solid rgba(216, 188, 134, .30);
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.site-header.is-scrolled {
  border-color: rgba(216, 188, 134, .50);
  background: rgba(13, 42, 32, .88);
  box-shadow: 0 14px 34px rgba(8, 24, 18, .38);
}

.nav-shell {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2vw, 34px);
}
.brand { display: inline-flex; align-items: center; gap: 13px; flex: none; min-width: 0; }
.brand__mark {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 2px solid var(--gold);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -.04em;
}
.brand__word { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__word strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--cream);
}
.brand__word > span {
  margin-top: 4px;
  color: rgba(251, 248, 242, .72);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
}

.desktop-nav { display: flex; align-items: center; gap: clamp(12px, 1.7vw, 24px); margin-left: auto; }
.desktop-nav a {
  position: relative;
  padding: 10px 0;
  color: rgba(251, 248, 242, .84);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: color .25s;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 3px;
  width: 100%; height: 2px;
  background: var(--gold-light);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}
.desktop-nav a:hover,
.desktop-nav a.is-active { color: var(--cream); }
.desktop-nav a:hover::after,
.desktop-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle {
  display: none;
  flex: 0 0 46px;
  width: 46px; height: 46px;
  margin-left: auto;
  padding: 11px;
  background: transparent;
  border: 2px solid rgba(251, 248, 242, .6);
  border-radius: 3px;
}
.menu-toggle > span { display: block; }
.menu-toggle i {
  display: block;
  width: 100%; height: 2px;
  margin: 5px 0;
  background: var(--cream);
  transition: transform .25s, opacity .2s;
}
.menu-toggle[aria-expanded="true"] i:first-child { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] i:last-child { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  padding: 4px clamp(20px, 4vw, 44px) 24px;
  background: rgba(13, 42, 32, .97);
  border-top: 1px solid var(--line-light);
}
.mobile-menu a:not(.btn) {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-light);
  color: var(--cream);
  font-weight: 700;
}
.mobile-menu .btn { width: 100%; margin-top: 14px; }

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

.hero {
  position: relative;
  min-height: 690px;
  padding: clamp(84px, 9vw, 128px) 0 clamp(72px, 8vw, 104px);
  overflow: hidden;
  background: var(--green-dark);
  color: var(--cream);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.78) contrast(1.05) brightness(.76);
  transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.06);
  will-change: transform;
}
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 30, 23, .96) 0%, rgba(13, 42, 32, .88) 48%, rgba(13, 42, 32, .58) 100%),
    linear-gradient(180deg, rgba(9, 30, 23, .35) 0%, rgba(9, 30, 23, .78) 100%);
}
.hero__inner { position: relative; z-index: 2; }
.hero h1 { max-width: 21ch; margin-top: 18px; color: var(--cream); }
.hero__lead {
  max-width: 60ch;
  margin-top: 22px;
  color: rgba(251, 248, 242, .88);
  font-size: clamp(1rem, 1.25vw, 1.13rem);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 42px;
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
}
.hero__stats > div { display: flex; flex-direction: column; }
.hero__stats strong {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--gold-light);
}
.hero__stats span { margin-top: 6px; color: rgba(251, 248, 242, .78); font-size: .82rem; font-weight: 500; }
.hero__side {
  position: absolute;
  right: 22px; bottom: 40px;
  z-index: 2;
  color: rgba(251, 248, 242, .55);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .28em;
  writing-mode: vertical-rl;
}

/* ---------------------- Manifiesto ---------------------- */

.statement { padding: clamp(82px, 9vw, 128px) 0; background: var(--paper); }
.statement__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}
.statement__copy h2 { margin-top: 16px; }
.statement__text { max-width: 60ch; margin-top: 20px; color: var(--ink-soft); font-size: 1.02rem; }
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}
.pillar {
  padding: 20px 18px;
  background: var(--sand);
  border-top: 4px solid var(--gold);
  border-radius: 3px;
}
.pillar > span {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}
.pillar strong { font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; }
.pillar p { margin-top: 6px; color: var(--muted); font-size: .82rem; line-height: 1.45; }

.statement__frame { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow-md); }
.statement__frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.8) contrast(1.04); }
.statement__frame figcaption {
  padding: 14px 18px;
  background: var(--green-deep);
  color: var(--gold-light);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ---------------------- Secciones ---------------------- */

.section { padding: clamp(80px, 9vw, 124px) 0; }
.section--sand { background: var(--sand); border-block: 1px solid var(--line); }
.section--dark {
  background: var(--green-deep);
  color: var(--cream);
}
.section--dark h2 { color: var(--cream); }
.section--dark .section-intro { color: rgba(251, 248, 242, .78); }

/* Problema */
.problem-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.problem-card {
  position: relative;
  min-width: 0;
  padding: 30px 28px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 3px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.problem-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.problem-card__num {
  display: block;
  margin-bottom: 16px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
}
.problem-card h3 { margin-bottom: 10px; }
.problem-card > p:not(.problem-card__cost) { color: var(--ink-soft); font-size: .94rem; }
.problem-card__cost {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
}
.problem-card__cost strong { color: var(--green); }

/* Solución */
.solution-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.solution-card {
  padding: clamp(28px, 3vw, 38px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 5px solid var(--green);
  border-radius: 3px;
  box-shadow: var(--shadow-sm);
}
.solution-card--green {
  background: var(--green);
  border-color: rgba(216, 188, 134, .4);
  border-top-color: var(--gold);
  color: var(--cream);
}
.solution-card h3 { margin-top: 10px; font-size: 1.65rem; }
.solution-card--green h3 { color: var(--cream); }
.solution-card > p { margin-top: 12px; color: var(--ink-soft); font-size: .95rem; }
.solution-card--green > p { color: rgba(251, 248, 242, .84); }
.solution-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.solution-card__head > span {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.check-list { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.check-list li {
  position: relative;
  padding: 9px 0 9px 28px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .9rem;
  line-height: 1.5;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 15px;
  width: 15px; height: 2px;
  background: var(--gold);
}
.solution-card--green .check-list { border-color: rgba(251, 248, 242, .18); }
.solution-card--green .check-list li { border-color: rgba(251, 248, 242, .14); color: rgba(251, 248, 242, .88); }

/* Proceso */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.process-step {
  min-width: 0;
  padding: 28px 22px;
  background: rgba(251, 248, 242, .04);
  border: 1px solid rgba(216, 188, 134, .24);
  border-top: 3px solid var(--gold);
  border-radius: 3px;
  transition: transform .35s var(--ease), background-color .35s var(--ease), border-color .35s var(--ease);
}
.process-step.is-active {
  transform: translateY(-5px);
  background: rgba(251, 248, 242, .09);
  border-color: rgba(216, 188, 134, .55);
}
.process-step > span {
  display: block;
  margin-bottom: 16px;
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}
.process-step h3 { color: var(--cream); }
.process-step p { margin-top: 8px; color: rgba(251, 248, 242, .76); font-size: .88rem; line-height: 1.5; }

/* Planes */
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(28px, 3vw, 38px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan-card--featured {
  background: var(--green-deep);
  border-color: rgba(216, 188, 134, .45);
  border-top-color: var(--gold);
  box-shadow: 0 32px 70px rgba(13, 42, 32, .28);
}
.plan-card--featured:hover { box-shadow: 0 38px 84px rgba(13, 42, 32, .34); }
.plan-card.is-selected { box-shadow: 0 0 0 3px rgba(200, 164, 92, .4), var(--shadow-md); }
.plan-card__badge {
  position: absolute;
  top: -15px; right: 26px;
  padding: 8px 16px;
  background: var(--gold);
  color: var(--green-dark);
  font-family: var(--font-display);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 3px;
}
.plan-card h3 { margin: 14px 0 10px; font-size: 2rem; }
.plan-card--featured h3 { color: var(--cream); }
.plan-card__lead { color: var(--ink-soft); font-size: .95rem; }
.plan-card--featured .plan-card__lead { color: rgba(251, 248, 242, .82); }
.plan-card .check-list { flex: 1; margin-bottom: 24px; }
.plan-card--featured .check-list { border-color: rgba(251, 248, 242, .18); }
.plan-card--featured .check-list li { border-color: rgba(251, 248, 242, .14); color: rgba(251, 248, 242, .88); }

.plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 2px 0 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.plan-price__amount {
  color: var(--green);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1;
}
.plan-price__note { color: var(--muted); font-size: .82rem; font-weight: 600; }
.plan-card--featured .plan-price { border-color: rgba(251, 248, 242, .18); }
.plan-card--featured .plan-price__amount { color: var(--gold-light); }
.plan-card--featured .plan-price__note { color: rgba(251, 248, 242, .72); }
.plan-maintenance { margin: 12px 0 20px; color: var(--ink-soft); font-size: .84rem; line-height: 1.5; }
.plan-card--featured .plan-maintenance { color: rgba(251, 248, 242, .74); }
.plan-note { margin-top: 20px; color: var(--muted); font-size: .8rem; }

/* Consentimiento legal en el formulario */
.legal-consent { padding-top: 0; }
.legal-consent__row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 24px;
}
.legal-consent__row label {
  display: inline;
  margin: 0;
  color: var(--ink-soft);
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
}
.legal-consent__row a {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-consent__row a:hover { color: var(--gold); }

/* Paseo visual con profundidad, giro de cubo y desenfoque muy suave */
.depth-3d {
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translate3d(0, var(--ty, 0px), var(--tz, 0px)) scale(var(--sc, 1));
  transform-origin: center center;
  filter: blur(var(--blur, 0px));
  will-change: transform, filter;
}

/* ---------------------- Ejemplos: vistas previas ---------------------- */

.example-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.example-card {
  --p-bar: #12382B;
  --p-surface: #FBF8F2;
  --p-ink: #14231D;
  --p-muted: #62746A;
  --p-accent: #C8A45C;
  --p-accent-text: #0D6B52;
  --p-accent-ink: #0D2A20;
  --p-on-dark: #FFFFFF;
  --p-tile: #F3EDE3;
  --p-line: rgba(20, 35, 29, .16);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--p-surface);
  border: 1px solid var(--p-line);
  border-top: 4px solid var(--p-accent);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.example-card--clinica {
  --p-bar: #0E5C66;
  --p-surface: #F2FBFA;
  --p-ink: #0E3F45;
  --p-muted: #3F6A70;
  --p-accent: #35C4B2;
  --p-accent-text: #0E7A70;
  --p-accent-ink: #073B36;
  --p-on-dark: #FFFFFF;
  --p-tile: #DFF3F0;
  --p-line: rgba(14, 92, 102, .2);
}
.example-card--taller {
  --p-bar: #111111;
  --p-surface: #191919;
  --p-ink: #F6F1E6;
  --p-muted: #B7B0A2;
  --p-accent: #F2B705;
  --p-accent-text: #F2B705;
  --p-accent-ink: #111111;
  --p-on-dark: #F6F1E6;
  --p-tile: #242424;
  --p-line: rgba(242, 183, 5, .3);
}
.example-card--cafeteria {
  --p-bar: #6B2F22;
  --p-surface: #FBF2E6;
  --p-ink: #4A2118;
  --p-muted: #7A4C3B;
  --p-accent: #D98B4A;
  --p-accent-text: #8A4A22;
  --p-accent-ink: #3B1B13;
  --p-on-dark: #FFFFFF;
  --p-tile: #F1DFC9;
  --p-line: rgba(107, 47, 34, .2);
}
.example-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan-card.depth-3d:hover,
.example-card.depth-3d:hover {
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translate3d(0, calc(var(--ty, 0px) - 4px), var(--tz, 0px)) scale(var(--sc, 1));
}

.preview {
  margin: 18px 18px 0;
  overflow: hidden;
  background: var(--p-surface);
  border: 1px solid var(--p-line);
  border-radius: 5px;
  box-shadow: 0 14px 32px rgba(20, 35, 29, .10);
}
.preview__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  background: var(--p-bar);
}
.preview__bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.preview__bar i:first-child { background: var(--p-accent); }
.preview__bar span { margin-left: 8px; color: rgba(255, 255, 255, .72); font-size: .62rem; letter-spacing: .03em; }
.preview__nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--p-surface);
  border-bottom: 1px solid var(--p-line);
}
.preview__nav strong {
  color: var(--p-accent-text);
  font-family: var(--font-display);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .06em;
}
.preview__nav span { color: var(--p-muted); font-size: .6rem; font-weight: 600; }
.preview__hero { position: relative; height: 178px; overflow: hidden; }
.preview__hero img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.72); }
.preview__hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 8%, var(--p-bar));
  opacity: .82;
}
.preview__hero-copy {
  position: absolute;
  left: 14px; right: 14px; bottom: 14px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.preview__hero-copy > span {
  color: var(--p-accent);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .12em;
}
.preview__hero-copy strong {
  margin-top: 4px;
  color: var(--p-on-dark);
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.preview__hero-copy i {
  margin-top: 9px;
  padding: 6px 11px;
  background: var(--p-accent);
  color: var(--p-accent-ink);
  border-radius: 2px;
  font-size: .6rem;
  font-style: normal;
  font-weight: 800;
}
.preview__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--p-line); }
.preview__tiles span {
  padding: 9px 5px;
  background: var(--p-tile);
  color: var(--p-muted);
  font-size: .58rem;
  font-weight: 700;
  text-align: center;
}
.preview__legal {
  padding: 7px 10px;
  background: var(--p-bar);
  color: rgba(255, 255, 255, .72);
  font-size: .55rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-align: center;
}
.example-card__body { padding: 22px 24px 24px; }
.example-card__body h3 { color: var(--p-ink); }
.example-card__body p { margin-top: 8px; color: var(--p-muted); font-size: .9rem; line-height: 1.5; }

/* ---------------------- Contacto ---------------------- */

.contact { background: var(--green-deep); color: var(--cream); }
.contact h2 { color: var(--cream); }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.contact__lead { max-width: 52ch; margin-top: 18px; color: rgba(251, 248, 242, .82); font-size: 1rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.contact-links { margin-top: 30px; border-top: 1px solid var(--line-light); }
.contact-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-light);
}
.contact-link strong { grid-column: 1; font-size: .98rem; font-weight: 700; overflow-wrap: anywhere; transition: color .2s; }
.contact-link > span:last-child { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--gold-light); }
.contact-link:hover strong { color: var(--gold-light); }

.contact-card {
  min-width: 0;
  padding: clamp(26px, 3vw, 38px);
  background: var(--paper);
  border: 1px solid rgba(216, 188, 134, .35);
  border-top: 4px solid var(--gold);
  border-radius: 4px;
  box-shadow: 0 32px 70px rgba(6, 22, 16, .35);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 7px; color: var(--ink); font-size: .8rem; font-weight: 700; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 11px 14px;
  background: #F7F2E9;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  font-size: .93rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 112px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #7C887E; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 93, 73, .14);
}
.field [aria-invalid="true"] { border-color: #A96A4A; }
.field-error { display: block; margin-top: 5px; color: #A96A4A; font-size: .76rem; font-weight: 700; }
.field-error:empty { display: none; }

/* Casilla legal: tamaño cómodo, borde limpio y alineación vertical exacta */
.legal-consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-content: center;
  width: 20px;
  height: 20px;
  min-height: 0;
  flex: none;
  margin: 0;
  padding: 0;
  background: var(--paper);
  border: 2px solid var(--green);
  border-radius: 4px;
  box-shadow: none;
  cursor: pointer;
}
.legal-consent input[type="checkbox"]::after {
  content: "";
  width: 10px;
  height: 5px;
  border-left: 2px solid var(--paper);
  border-bottom: 2px solid var(--paper);
  transform: rotate(-45deg) scale(0);
  transition: transform .15s var(--ease);
}
.legal-consent input[type="checkbox"]:checked {
  background: var(--green);
  border-color: var(--green);
}
.legal-consent input[type="checkbox"]:checked::after { transform: rotate(-45deg) scale(1); }
.legal-consent input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 93, 73, .2);
}
.legal-consent input[type="checkbox"][aria-invalid="true"] {
  border-color: #A96A4A !important;
  box-shadow: 0 0 0 3px rgba(169, 106, 74, .16);
}
.legal-consent .legal-consent__row label {
  display: inline;
  margin: 0;
  color: var(--ink-soft);
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
}

.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer; }
.select-wrap::after {
  content: "";
  position: absolute;
  top: 50%; right: 17px;
  width: 9px; height: 9px;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.form-note { margin-top: 15px; color: var(--muted); font-size: .78rem; }

.form-success__mark {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 18px;
  background: rgba(31, 93, 73, .1);
  color: var(--green);
  border-radius: 50%;
}
.form-success h3 { margin-bottom: 10px; font-size: 1.8rem; color: var(--green); }
.form-success p { margin-bottom: 20px; color: var(--ink-soft); font-size: .93rem; }
.form-success__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------------------- Pie ---------------------- */

.site-footer { padding: 62px 0 24px; background: var(--green-dark); color: var(--cream); border-top: 1px solid var(--line-light); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; gap: 32px; }
.brand--footer .brand__mark { width: 40px; height: 40px; }
.brand--footer .brand__word strong { font-size: .95rem; }
.footer-brand > p { max-width: 44ch; margin-top: 16px; color: rgba(251, 248, 242, .72); font-size: .88rem; }
.footer-col a,
.footer-col p:not(.kicker) {
  display: block;
  max-width: 100%;
  margin: 0 0 9px;
  color: rgba(251, 248, 242, .78);
  font-size: .88rem;
  overflow-wrap: anywhere;
  transition: color .2s;
}
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line-light);
}
.footer-bottom p:not(.kicker) { color: rgba(251, 248, 242, .62); font-size: .8rem; }
.footer-bottom .kicker::before { display: none; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-legal a {
  color: rgba(251, 248, 242, .72);
  font-size: .8rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-legal a:hover { color: var(--gold-light); }
.footer-legal button {
  padding: 0;
  background: none;
  border: 0;
  color: rgba(251, 248, 242, .72);
  font: inherit;
  font-size: .8rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.footer-legal button:hover { color: var(--gold-light); }

/* ---------------------- Banner de cookies ---------------------- */

.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 450;
  background: var(--paper);
  border-top: 3px solid var(--gold);
  box-shadow: 0 -14px 40px rgba(6, 22, 16, .28);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-block: 16px;
}
.cookie-banner__copy strong {
  color: var(--green-deep);
  font-family: var(--font-display);
  font-size: .93rem;
  font-weight: 800;
}
.cookie-banner__copy p {
  max-width: 72ch;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.5;
}
.cookie-banner__actions { display: flex; gap: 8px; flex: none; }

/* Página 404 */
.notfound {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-h));
  padding-block: clamp(60px, 10vw, 120px);
  text-align: center;
}
.notfound__inner { max-width: 640px; }
.notfound__code {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 800;
  line-height: .9;
}
.notfound h1 { margin-top: 12px; }
.notfound p { margin: 16px 0 28px; color: var(--ink-soft); font-size: 1rem; line-height: 1.6; }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------------------- Modal legal ---------------------- */

body.modal-open { overflow: hidden; }
.legal-modal[hidden] { display: none; }
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 32px);
}
.legal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 22, 16, .74);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.legal-modal__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(720px, 100%);
  max-height: min(86vh, 900px);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(216, 188, 134, .45);
  border-top: 4px solid var(--gold);
  border-radius: 4px;
  box-shadow: 0 40px 90px rgba(4, 16, 11, .55);
}
.legal-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line);
}
.legal-modal__head h2 { margin: 6px 0 0; font-size: 1.5rem; }
.legal-modal__close {
  display: grid;
  place-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.legal-modal__close:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--paper);
}
.legal-modal__tabs {
  display: flex;
  gap: 8px;
  padding: 14px 24px 0;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.legal-modal__tab {
  flex: none;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  color: var(--muted);
  font: inherit;
  font-size: .84rem;
  font-weight: 700;
  cursor: pointer;
}
.legal-modal__tab[aria-selected="true"] {
  background: var(--sand);
  border-color: var(--line);
  color: var(--green);
}
.legal-modal__tab:focus-visible { outline: 3px solid rgba(31, 93, 73, .2); outline-offset: -3px; }
.legal-modal__body {
  padding: 20px 24px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.legal-modal__panel p { margin: 0 0 14px; color: var(--ink-soft); font-size: .9rem; line-height: 1.65; }
.legal-modal__panel p:last-child { margin-bottom: 0; }
.legal-modal__panel strong { color: var(--ink); }
.legal-modal__panel a {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.legal-modal__panel a:hover { color: var(--gold); }
.legal-modal__note {
  padding: 12px 14px;
  background: var(--sand);
  border-left: 3px solid var(--gold);
  border-radius: 2px;
  color: var(--muted);
  font-size: .82rem;
}
.legal-modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 24px;
  background: #F7F2E9;
  border-top: 1px solid var(--line);
}

/* ---------------------- Movimiento ---------------------- */

.js-ready .reveal {
  opacity: 0;
  transition: opacity .6s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js-ready .reveal.is-visible { opacity: 1; }

/* ---------------------- Adaptación ---------------------- */

@media (max-width: 1120px) {
  .desktop-nav { gap: 12px; }
  .desktop-nav a { font-size: .8rem; }
  .hero__side { display: none; }
  .statement__grid { grid-template-columns: minmax(0, 1fr); }
  .statement__frame { max-width: 520px; }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .desktop-nav,
  .header-cta { display: none; }
  .menu-toggle { display: block; }
  .hero { min-height: auto; padding-top: 76px; }
  .problem-grid,
  .solution-grid,
  .plan-grid,
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .example-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand,
  .footer-col:last-child { grid-column: auto; }
}

@media (max-width: 640px) {
  h1 { font-size: clamp(2.35rem, 9.2vw, 3.1rem); }
  h2 { font-size: clamp(1.95rem, 7.6vw, 2.5rem); }
  .section { padding: 66px 0; }
  .section-head { margin-bottom: 28px; }
  .hero__actions .btn,
  .contact-actions .btn,
  .mobile-menu .btn,
  .form-success__actions .btn { width: 100%; }
  .hero__media img { object-position: 62% center; }
  .hero__stats { gap: 14px 22px; margin-top: 34px; }
  .hero__stats strong { font-size: 1.65rem; }
  .statement__frame img { height: auto; }
  .statement__frame figcaption { padding: 12px 14px; font-size: .72rem; }
  .pillars { gap: 10px; }
  .pillar { padding: 16px 14px; }
  .example-grid,
  .process-grid,
  .plan-grid,
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .plan-grid,
  .example-grid { gap: 22px; }
  .plan-card { padding: 26px 22px; }
  .plan-card h3 { font-size: 1.8rem; }
  .plan-card__lead,
  .example-card__body p { font-size: .92rem; }
  .preview { margin: 14px 14px 0; }
  .preview__bar span,
  .preview__nav span { display: none; }
  .preview__hero { height: 220px; }
  .preview__hero-copy { left: 12px; right: 12px; bottom: 12px; }
  .preview__hero-copy strong { font-size: 1.18rem; }
  .preview__hero-copy > span { font-size: .62rem; }
  .preview__hero-copy i { font-size: .64rem; }
  .preview__tiles span { padding: 10px 4px; font-size: .64rem; }
  .preview__legal { padding: 8px 10px; font-size: .58rem; }
  .example-card__body { padding: 18px 20px 22px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { margin-top: 32px; }
  .contact-card { padding: 24px 20px; }
  .form-grid { gap: 16px; }
  .field input,
  .field select,
  .field textarea { font-size: 16px; }
  .legal-consent__row label { font-size: .86rem; }
  main > section.depth-3d { transform: none; filter: none; }
  .legal-modal { padding: 10px; }
  .legal-modal__dialog { max-height: 92vh; }
  .legal-modal__head { padding: 16px; }
  .legal-modal__head h2 { font-size: 1.25rem; }
  .legal-modal__tabs { padding: 10px 16px 0; }
  .legal-modal__tab { padding: 9px 11px; font-size: .78rem; }
  .legal-modal__body { padding: 16px; }
  .legal-modal__foot { padding: 12px 16px; }
  .legal-modal__foot .btn { width: 100%; }
  .cookie-banner__inner { flex-direction: column; align-items: stretch; gap: 12px; padding-block: 14px; }
  .cookie-banner__actions .btn { flex: 1; }
  .notfound__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js-ready .reveal { opacity: 1; }
  .depth-3d,
  .page-glow,
  .hero__media img { transform: none; filter: none; }
}
