/* ============================================================
   TROPIOS GARDENS — Design System v3
   Blanco, limpio, verde de marca · Poppins
   ============================================================ */

:root {
  /* Marca */
  --ink:          #16281F;   /* texto principal (verde casi negro) */
  --pine:         #10281E;   /* superficies oscuras (form / footer) */
  --brand-deep:   #14352A;   /* verde logo */
  --brand:        #069C61;   /* verde Tropios (botones/UI grande) */
  --brand-text:   #077549;   /* verde accesible para texto pequeño sobre claro */
  --brand-bright: #0CBA75;
  --brand-soft:   #E7F5EE;
  --mist:         #F4F7F5;   /* sección alterna */
  --paper:        #FFFFFF;
  --line:         #E4EAE6;
  --line-dark:    rgba(244, 247, 245, .16);
  --text-soft:    #47594F;
  --text-faint:   #66756D;
  --cream-soft:   rgba(244, 247, 245, .85);
  --cream-faint:  rgba(244, 247, 245, .6);
  --shadow-s: 0 1px 3px rgba(22, 40, 31, .06);
  --shadow-m: 0 10px 28px -10px rgba(22, 40, 31, .16);
  --shadow-l: 0 24px 48px -16px rgba(22, 40, 31, .22);

  /* Tipografía — Poppins (fuente de marca) */
  --font-display: "Poppins", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Poppins", -apple-system, "Segoe UI", sans-serif;
  --fs-hero:  clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem);
  --fs-h1:    clamp(1.9rem, 1.3rem + 2.2vw, 3rem);
  --fs-h2:    clamp(1.5rem, 1.15rem + 1.3vw, 2.15rem);
  --fs-h3:    clamp(1.1rem, 1rem + .5vw, 1.3rem);
  --fs-lead:  clamp(1rem, .95rem + .3vw, 1.14rem);
  --fs-body:  .95rem;
  --fs-eyebrow: .72rem;

  /* Ritmo */
  --space-section: clamp(3.25rem, 2.25rem + 4vw, 6rem);
  --space-block: clamp(1.8rem, 1.3rem + 2vw, 3rem);
  --gutter: clamp(1.1rem, 3.5vw, 2.5rem);
  --container: 84rem;   /* alineado con el header (logo y botón) — antes 74rem */
  --container-wide: 84rem;

  --radius-s: 10px;
  --radius-m: 14px;
  --radius-l: 20px;
  --radius-arch: 999px 999px 18px 18px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.015em;
  margin: 0 0 .55em;
  text-wrap: balance;
  color: var(--brand-deep);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.3; }
p { margin: 0 0 1.05em; }
a { color: var(--brand); text-decoration: none; transition: color .25s; }
a:hover { color: var(--brand-bright); }
strong { font-weight: 500; }
ul { padding-left: 1.2em; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--wide { width: min(100% - 2 * var(--gutter), var(--container-wide)); }

.section { padding-block: var(--space-section); position: relative; }
.section--mist { background: var(--mist); }
.section--dark { background: var(--pine); color: var(--cream-soft); }
.section--dark h2, .section--dark h3 { color: #fff; }

/* ---------- Átomos ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: var(--fs-eyebrow); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-text); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 2em; height: 1.5px; background: currentColor; opacity: .5; }
.lead { font-size: var(--fs-lead); font-weight: 300; line-height: 1.65; color: var(--text-soft); max-width: 44rem; }
.section--dark .lead { color: var(--cream-soft); }
.section--dark .eyebrow { color: var(--brand-bright); }
.section-head { max-width: 50rem; margin-bottom: var(--space-block); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; max-width: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-body); font-size: .88rem; font-weight: 500;
  letter-spacing: .01em; line-height: 1;
  padding: .95em 1.7em; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: transform .3s var(--ease-out), box-shadow .3s, background .3s, color .3s, border-color .3s;
}
.btn svg { width: 1em; height: 1em; flex: none; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-bright); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(6, 156, 97, .5); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--brand-deep); color: var(--brand-deep); transform: translateY(-1px); }
.btn--ghost-light { border-color: rgba(255,255,255,.45); color: #fff; background: rgba(255,255,255,.08); backdrop-filter: blur(6px); }
.btn--ghost-light:hover { border-color: #fff; color: #fff; }
.btn--whatsapp { background: #17954B; color: #fff; }
.btn--whatsapp:hover { background: #1FAF57; color: #fff; transform: translateY(-1px); }
.btn--lg { padding: 1.05em 2.1em; font-size: .95rem; }

.link-more {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 500; font-size: .86rem;
  color: var(--brand-deep);
}
.link-more::after { content: "→"; transition: transform .3s var(--ease-out); }
.link-more:hover { color: var(--brand); }
.link-more:hover::after { transform: translateX(4px); }

/* ---------- Header (claro) ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header--solid { border-bottom-color: var(--line); box-shadow: 0 4px 20px -12px rgba(22,40,31,.12); }
.header__inner {
  width: min(100% - 2 * var(--gutter), var(--container-wide));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 34px; width: auto; display: block; }
.footer .logo img { height: 40px; }

.nav { display: flex; align-items: center; gap: 1.7rem; }
.nav a { font-size: .88rem; font-weight: 400; color: var(--ink); position: relative; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 1.5px; width: 0;
  background: var(--brand); transition: width .3s var(--ease-out);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]:not(.btn)::after { width: 100%; }
.nav .btn { padding: .75em 1.4em; font-size: .84rem; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; z-index: 101; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .35s var(--ease-out), opacity .3s, background .3s; }

/* Dropdown */
.nav__group { position: relative; }
.nav__group > a::before { content: "▾"; float: right; margin-left: .4em; font-size: .75em; opacity: .6; }
.nav__menu {
  position: absolute; top: calc(100% + 12px); left: -1rem; min-width: 17.5rem;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-m); padding: .5rem; display: grid; gap: .05rem;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .22s, transform .22s, visibility .22s;
}
.nav__group:hover .nav__menu, .nav__group:focus-within .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__menu a { display: block; padding: .5em .75em; border-radius: 8px; font-size: .85rem; }
.nav__menu a:hover { background: var(--mist); }
.nav__menu a::after { display: none !important; }

/* Idiomas */
.lang-switch { display: flex; align-items: center; gap: .1rem; font-size: .7rem; letter-spacing: .06em; }
.lang-switch a { padding: .35em .5em; border-radius: 6px; color: var(--text-faint); font-weight: 500; }
.lang-switch a:hover { color: var(--ink); background: var(--mist); }
.lang-switch a.is-active { color: var(--brand-deep); background: var(--brand-soft); pointer-events: none; }
.lang-switch a::after { display: none !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 86svh;
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
  padding-block: calc(var(--header-h) + 1.5rem) clamp(2.2rem, 5vh, 3.5rem);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  /* Velo más presente para que el titular se lea sobre cualquier foto/vídeo
     (antes bajaba a .06 justo donde cae el texto). */
  background:
    linear-gradient(180deg, rgba(12,32,24,.44) 0%, rgba(12,32,24,.32) 38%, rgba(12,32,24,.64) 78%, rgba(12,32,24,.80) 100%);
}
.hero__inner { position: relative; z-index: 1; width: min(100% - 2 * var(--gutter), var(--container-wide)); margin-inline: auto; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.85); margin-bottom: 1.1rem;
}
.hero__eyebrow::before { content: ""; width: 2em; height: 1.5px; background: var(--brand-bright); }
.hero h1 { font-size: var(--fs-hero); font-weight: 600; color: #fff; max-width: 15em; margin-bottom: .4em; text-shadow: 0 2px 24px rgba(8,24,18,.45); }
/* verde claro (no el de marca) para que destaque incluso sobre vegetación */
.hero h1 em { font-style: normal; color: #7BE8B0; }
.hero__sub { font-size: var(--fs-lead); font-weight: 300; color: rgba(255,255,255,.94); max-width: 34em; margin-bottom: 1.6rem; text-shadow: 0 1px 16px rgba(8,24,18,.4); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__proof {
  display: flex; flex-wrap: wrap; gap: .5rem 1.8rem;
  padding: 1.2rem 0 0; margin: 1.8rem 0 0; border-top: 1px solid rgba(255,255,255,.22); list-style: none;
}
.hero__proof li { display: flex; align-items: center; gap: .5em; font-size: .8rem; color: rgba(255,255,255,.92); text-shadow: 0 1px 12px rgba(8,24,18,.5); }
.hero__proof svg { width: 13px; height: 13px; color: #7BE8B0; flex: none; }

/* ---------- Clientes ---------- */
.clients { text-align: center; }
.clients__label { font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 1.2rem; }
.clients__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(1.4rem, 3.5vw, 2.8rem); }
.clients__row img {
  height: clamp(30px, 4vw, 44px); width: auto; object-fit: contain;
  filter: grayscale(1); opacity: .55; mix-blend-mode: multiply;
  transition: filter .3s, opacity .3s;
}
.clients__row img:hover { filter: none; opacity: 1; }
.clients--bar { padding-block: clamp(1.6rem, 3vw, 2.4rem); border-bottom: 1px solid var(--line); }

/* ---------- Proyectos (grid uniforme) ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.8rem, 1.4vw, 1.3rem); }
.project {
  position: relative; border-radius: var(--radius-m); overflow: hidden; display: block;
  color: #fff; aspect-ratio: 4 / 3; background: var(--mist);
}
.project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.project:hover img { transform: scale(1.045); }
.project::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(16,40,30,0) 52%, rgba(16,40,30,.72) 100%);
}
.project__label { position: absolute; z-index: 1; left: 1.1rem; right: 1.1rem; bottom: .95rem; }
.project__label small { display: block; font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.8); margin-bottom: .3em; }
.project__label strong { font-weight: 500; font-size: .98rem; line-height: 1.3; display: block; color: #fff; }
.project__count {
  position: absolute; z-index: 1; top: .8rem; right: .8rem;
  font-size: .68rem; font-weight: 500; color: #fff;
  background: rgba(16,40,30,.55); backdrop-filter: blur(4px);
  padding: .35em .8em; border-radius: 999px;
}

/* Galería de detalle */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.7rem, 1.2vw, 1.1rem); }
.gallery a { display: block; border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 1 / 1; background: var(--mist); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out), opacity .3s; }
.gallery a:hover img { transform: scale(1.04); }
.proj-nav { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.6rem; margin-top: var(--space-block); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(16, 40, 30, .92); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 3.5rem 1rem 1rem;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(100%, 68rem); max-height: 88vh; width: auto; height: auto; border-radius: 10px; box-shadow: var(--shadow-l); }
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  color: #fff; border-radius: 999px; cursor: pointer; font-size: 1rem; line-height: 1;
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  transition: background .25s;
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: rgba(255,255,255,.22); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- Cards servicios ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.9rem, 1.5vw, 1.4rem); }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden;
  text-decoration: none; color: var(--ink);
  transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: transparent; color: var(--ink); }
.card__media { overflow: hidden; aspect-ratio: 16 / 10; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 1.15rem 1.25rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.card__num { font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-text); margin: 0 0 .55rem; }
.card h3 { font-size: 1.02rem; margin-bottom: .4em; }
.card p { color: var(--text-soft); font-size: .84rem; margin-bottom: 1em; line-height: 1.6; }
.card .link-more { margin-top: auto; font-size: .8rem; }

/* ---------- Proceso ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(1.1rem, 1.8vw, 1.8rem); }
.process--4 { grid-template-columns: repeat(4, 1fr); }
.process__item { position: relative; padding-top: .6rem; }
.process__num {
  font-weight: 600; font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.8rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.2px var(--brand);
  display: block; margin-bottom: .4em;
}
.process__item h3 { font-size: .98rem; }
.process__item p { font-size: .82rem; color: var(--text-soft); line-height: 1.6; }
.section--dark .process__item h3 { color: #fff; }
.section--dark .process__item p { color: var(--cream-faint); }
.section--dark .process__num { -webkit-text-stroke-color: var(--brand-bright); }
.process__hint { font-size: .74rem; color: var(--brand-text); display: inline-flex; align-items: center; gap: .4em; margin-top: .3em; font-weight: 500; }
.process__hint svg { width: 12px; height: 12px; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius-l); aspect-ratio: 4 / 4.6; object-fit: cover; width: 100%; box-shadow: var(--shadow-m); }
.split__media--square img { aspect-ratio: 1 / 1; }
.split__badge {
  position: absolute; left: -1rem; bottom: 1.6rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m);
  box-shadow: var(--shadow-m); padding: .9rem 1.2rem;
  display: flex; align-items: center; gap: .8rem; max-width: 80%;
}
.split__badge svg { width: 26px; height: 26px; color: var(--brand); flex: none; }
.split__badge strong { display: block; font-size: .86rem; font-weight: 600; line-height: 1.3; color: var(--brand-deep); }
.split__badge small { font-size: .74rem; color: var(--text-faint); line-height: 1.45; display: block; }
.blockquote {
  font-weight: 500; font-size: clamp(1.05rem, 1rem + .5vw, 1.3rem); line-height: 1.5;
  color: var(--brand-deep); border-left: 3px solid var(--brand);
  padding-left: 1.2em; margin: 1.5em 0;
}

/* ---------- Checklist ---------- */
.check-list { list-style: none; padding: 0; margin: 1.3rem 0; display: grid; gap: .75rem; }
.check-list li { display: flex; gap: .7em; align-items: flex-start; font-size: .9rem; }
.check-list svg { width: 17px; height: 17px; color: var(--brand); flex: none; margin-top: .2em; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 1.6vw, 1.5rem); align-items: stretch; }
.pricing--4 { grid-template-columns: repeat(4, 1fr); }
.price-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: clamp(1.3rem, 1.8vw, 1.8rem);
  display: flex; flex-direction: column; position: relative;
  transition: box-shadow .3s, transform .3s;
}
.price-card:hover { box-shadow: var(--shadow-m); transform: translateY(-3px); }
.price-card--featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow-s); }
.price-card--media { padding-top: 0; overflow: hidden; }
.price-card__media { margin: 0 calc(-1 * clamp(1.3rem, 1.8vw, 1.8rem)) clamp(1.1rem, 1.6vw, 1.5rem); aspect-ratio: 16 / 10; overflow: hidden; }
.price-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.price-card--media.price-card--featured .price-card__flag { top: .9rem; }
.price-card__flag {
  position: absolute; top: -0.85em; left: 1.4rem;
  background: var(--brand); color: #fff; font-size: .62rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; padding: .4em 1em; border-radius: 999px;
}
.price-card h3 { font-size: 1.02rem; margin-bottom: .2em; }
.price-card__price { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); font-weight: 600; color: var(--brand-deep); line-height: 1; margin: 0 0 .2em; }
.price-card__price small { font-size: .78rem; font-weight: 400; color: var(--text-faint); }
.price-card__desc { font-size: .8rem; color: var(--text-faint); margin: .3em 0 .9em; }
.price-from { display: block; font-size: .46em; font-weight: 400; color: var(--text-faint); letter-spacing: .02em; margin-bottom: .15em; }

/* ---- Ejemplos de packs entregados (página de diseño) ---- */
.ex-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 1.6vw, 1.5rem); }
.ex-card {
  position: relative; display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden;
  background: var(--paper); box-shadow: var(--shadow-s);
  transition: box-shadow .3s, transform .3s;
}
.ex-card:hover { box-shadow: var(--shadow-m); transform: translateY(-3px); color: inherit; }
.ex-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: var(--mist); }
.ex-card__tag {
  position: absolute; top: .75rem; left: .75rem; z-index: 1;
  background: rgba(20, 30, 24, .82); color: #fff; font-size: .6rem; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase; padding: .4em .95em; border-radius: 999px;
}
.ex-card__caption { display: block; padding: .85rem 1.1rem 1.05rem; font-size: .85rem; color: var(--text-soft); }
@media (max-width: 900px) { .ex-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ex-grid { grid-template-columns: 1fr; } }

/* ---- Garantía: el diseño se descuenta al 100 % ---- */
.guarantee {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.4rem, 3vw, 3rem);
  align-items: center; background: var(--brand-soft);
  border: 1px solid rgba(6, 156, 97, .22); border-radius: var(--radius-l);
  padding: clamp(1.6rem, 3vw, 2.8rem);
}
.guarantee h2 { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 2rem); margin-bottom: .35em; }
.guarantee .lead { margin: 0; }
.guarantee__figure {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  width: clamp(7.5rem, 12vw, 10rem); aspect-ratio: 1; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--brand); flex: none;
}
.guarantee__figure span { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem); font-weight: 700; color: var(--brand-deep); line-height: 1; }
.guarantee__figure small { font-size: .58rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); margin-top: .35em; padding: 0 .9em; line-height: 1.35; }
.guarantee__note { display: flex; gap: .5em; align-items: center; font-size: .82rem; color: var(--brand-deep); margin: 1rem 0 0; font-weight: 500; }
.guarantee__note svg { width: 15px; height: 15px; flex: none; }
@media (max-width: 700px) { .guarantee { grid-template-columns: 1fr; justify-items: center; text-align: center; } .guarantee__note { justify-content: center; } }

/* ---- Antes y después (página de diseño) ---- */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 2vw, 2rem); }
.ba-pair { margin: 0; }
.ba-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.ba-img { position: relative; border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 4 / 3; }
.ba-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-tag {
  position: absolute; top: .6rem; left: .6rem; z-index: 1;
  background: rgba(20, 30, 24, .78); color: #fff; font-size: .62rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; padding: .35em .9em; border-radius: 999px;
}
.ba-tag--after { background: var(--brand); }
.ba-pair figcaption { font-size: .85rem; color: var(--text-soft); margin-top: .6rem; }
@media (max-width: 820px) { .ba-grid { grid-template-columns: 1fr; } }
.price-card__deduct { display: flex; gap: .5em; align-items: center; font-size: .78rem; font-weight: 500; color: var(--brand); margin: 0 0 .9rem; }
.price-card__deduct svg { width: 14px; height: 14px; flex: none; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 1.3rem; display: grid; gap: .45rem; flex: 1; }
.price-card ul li { display: flex; gap: .55em; font-size: .82rem; color: var(--text-soft); align-items: flex-start; line-height: 1.5; }
.price-card ul li::before { content: "✓"; color: var(--brand); font-weight: 600; flex: none; }
.price-card .btn + .btn { margin-top: .5rem; }
.pricing-note { font-size: .78rem; color: var(--text-faint); margin-top: 1.2rem; max-width: 44rem; }

/* ---------- Valores / contacto ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.9rem, 1.4vw, 1.3rem); }
.values__item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.4rem 1.3rem; }
.values__item svg { width: 24px; height: 24px; color: var(--brand); margin-bottom: .8rem; }
.values__item h3 { font-size: .96rem; margin-bottom: .35em; }
.values__item p { font-size: .82rem; color: var(--text-soft); margin: 0; line-height: 1.6; }
.section--mist .values__item { border-color: transparent; box-shadow: var(--shadow-s); }

/* ---------- Equipo ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 1.8vw, 1.7rem); }
.team-card { text-align: center; }
.team-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius-arch); box-shadow: var(--shadow-m); margin-bottom: .9rem; }
.team-card h3 { font-size: 1rem; margin-bottom: .1em; }
.team-card p { font-size: .8rem; color: var(--text-soft); margin: 0 0 .3em; }
.team-card small { font-size: .68rem; color: var(--text-faint); letter-spacing: .03em; }

/* ---------- Testimonios ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 1.6vw, 1.5rem); }
.testimonial {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 1.5rem 1.5rem 1.3rem; display: flex; flex-direction: column; gap: .9rem;
}
.testimonial__stars { color: #E9B949; display: flex; gap: .2em; }
.testimonial__stars svg { width: 13px; height: 13px; }
.testimonial p { font-size: .88rem; line-height: 1.65; color: var(--ink); margin: 0; flex: 1; }
.testimonial footer { font-size: .76rem; color: var(--text-faint); }
.testimonial footer strong { color: var(--brand-deep); font-weight: 500; display: block; font-size: .82rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 48rem; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.05rem .2rem; }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.25rem;
  font-weight: 500; font-size: .95rem; color: var(--brand-deep);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 1.3rem; color: var(--brand); transition: transform .3s var(--ease-out); flex: none; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-top: .7rem; color: var(--text-soft); font-size: .88rem; max-width: 42rem; line-height: 1.65; }
.section--dark .faq summary { color: #fff; }
.section--dark .faq details { border-color: var(--line-dark); }
.section--dark .faq details > div { color: var(--cream-faint); }

/* ---------- Formulario ---------- */
.form-section { position: relative; overflow: hidden; }
.form-section::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50rem 26rem at 88% -12%, rgba(6,156,97,.16), transparent 60%);
  pointer-events: none;
}
.form-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 3.5vw, 4rem); align-items: start; position: relative; }
.form-aside__list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.form-aside__list li { display: flex; gap: .8em; align-items: flex-start; font-size: .88rem; color: var(--cream-soft); }
.form-aside__list svg { width: 16px; height: 16px; color: var(--brand-bright); flex: none; margin-top: .2em; }
.form-aside__contact { margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line-dark); font-size: .84rem; color: var(--cream-faint); }
.form-aside__contact a { color: #fff; font-weight: 400; }
.form-aside__contact a:hover { color: var(--brand-bright); }

.lead-form {
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius-l); box-shadow: var(--shadow-l);
  padding: clamp(1.4rem, 2.2vw, 2.2rem);
}
.lead-form__progress { display: flex; gap: .4rem; margin-bottom: 1.4rem; }
.lead-form__progress span { height: 3px; flex: 1; border-radius: 3px; background: var(--line); transition: background .4s; }
.lead-form__progress span.is-active { background: var(--brand); }
.lead-form__step-label { font-size: .68rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--brand-text); margin-bottom: .4rem; }
.lead-form h2, .lead-form h3 { color: var(--brand-deep); }
.lead-form h3 { font-size: 1.2rem; margin-bottom: 1.1rem; }
.lead-form fieldset { border: 0; padding: 0; margin: 0; }
.lead-form [data-step] { display: none; }
.lead-form [data-step].is-active { display: block; animation: stepIn .4s var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }

.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem; margin-bottom: 1.1rem; }
.choice-grid--3 { grid-template-columns: repeat(3, 1fr); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice label {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 2.9rem; padding: .55em .9em; border-radius: var(--radius-s);
  border: 1.5px solid var(--line); font-size: .82rem; font-weight: 400; line-height: 1.3;
  cursor: pointer; transition: border-color .25s, background .25s, box-shadow .25s;
}
.choice input:checked + label { border-color: var(--brand); background: var(--brand-soft); font-weight: 500; box-shadow: 0 0 0 1px var(--brand); }
.choice input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 2px; }

.field { margin-bottom: .95rem; }
.field label { display: block; font-size: .8rem; font-weight: 500; margin-bottom: .4em; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: .9rem; font-weight: 300;
  padding: .8em 1em; border-radius: var(--radius-s);
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(6,156,97,.12); }
.field textarea { resize: vertical; min-height: 5em; }
.field--error input, .field--error textarea { border-color: #C4443C; }
.field__error { display: none; font-size: .72rem; color: #C4443C; margin-top: .35em; }
.field--error .field__error { display: block; }

.lead-form__nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.3rem; }
.lead-form__back { background: none; border: 0; cursor: pointer; font-family: var(--font-body); font-size: .82rem; color: var(--text-faint); padding: .5em .2em; }
.lead-form__back:hover { color: var(--ink); }
.lead-form__note { display: flex; align-items: center; gap: .5em; font-size: .72rem; color: var(--text-faint); margin-top: 1rem; }
.lead-form__note svg { width: 13px; height: 13px; color: var(--brand); flex: none; }
.consent { display: flex; gap: .65em; align-items: flex-start; font-size: .72rem; color: var(--text-soft); margin: .9rem 0; line-height: 1.5; }
.consent input { margin-top: .25em; accent-color: var(--brand); width: .95rem; height: .95rem; flex: none; }
.consent a { text-decoration: underline; text-underline-offset: 2px; }
.lead-form__spinner { display: none; }
.lead-form.is-submitting .lead-form__spinner { display: inline-block; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Acabado del formulario */
.lead-form { position: relative; overflow: hidden; }
.lead-form::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--brand-deep), var(--brand) 45%, var(--brand-bright));
}
.choice label:hover { border-color: var(--brand); transform: translateY(-1px); box-shadow: var(--shadow-s); }
.choice label { transition: border-color .25s, background .25s, box-shadow .25s, transform .25s; }

/* ---------- Acceso prioritario (dentro del formulario) ---------- */
.priority {
  margin: 1.2rem 0 .4rem; padding: 1rem 1.1rem 1.1rem;
  background: linear-gradient(180deg, var(--brand-soft), #fff 130%);
  border: 1.5px solid rgba(6, 156, 97, .35); border-radius: var(--radius-m);
}
.priority__title { font-size: .82rem; font-weight: 600; color: var(--brand-deep); margin: 0 0 .7rem; display: flex; align-items: center; flex-wrap: wrap; gap: .5em; }
.priority__title small { font-weight: 400; color: var(--text-faint); }
.badge-bonus {
  display: inline-block; background: var(--brand-deep); color: #fff;
  font-size: .66rem; font-weight: 600; letter-spacing: .06em;
  padding: .35em .8em; border-radius: 999px; white-space: nowrap;
}
.pack-select { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.pack-select .choice label { background: #fff; min-height: 3.4rem; font-size: .78rem; line-height: 1.35; }
.pack-select .choice input:checked + label { background: var(--brand-soft); }
.priority__note { font-size: .74rem; color: var(--text-soft); margin: .8rem 0 0; line-height: 1.55; }

/* ---------- Upsell y compra confirmada (gracias) ---------- */
.upsell { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(1.5rem, 3vw, 3rem); align-items: center; }
.upsell__note { font-size: .74rem; color: var(--text-faint); }
.upsell__packs { display: grid; gap: .6rem; }
.upsell__packs .btn { width: 100%; }
.purchase-ok {
  background: linear-gradient(135deg, var(--brand-deep), #1B5A42);
  color: #fff; border-radius: var(--radius-l); padding: clamp(1.5rem, 2.5vw, 2.2rem);
  box-shadow: var(--shadow-m); margin-bottom: .5rem;
}
.purchase-ok h2 { color: #fff; margin-bottom: .3em; font-size: 1.3rem; }
.purchase-ok p { color: rgba(255,255,255,.88); margin: 0; font-size: .92rem; }
.purchase-ok strong { color: #fff; }

/* ---------- Reserva de videollamada ---------- */
.booking { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(1.4rem, 2.2vw, 2.2rem); }
.booking iframe { width: 100%; height: 640px; border: 0; border-radius: var(--radius-m); }
.booking__fallback { text-align: center; padding: 2rem 1rem; }

/* ---------- Zona ---------- */
.area-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.1rem; padding: 0; list-style: none; }
.area-chips li { font-size: .76rem; padding: .45em 1em; border-radius: 999px; border: 1px solid var(--line); color: var(--text-soft); background: var(--paper); }
.area-chips li a { color: inherit; }

/* ---------- CTA banner ---------- */
.cta-banner { text-align: center; background: var(--mist); }
.cta-banner h2 { max-width: 20em; margin-inline: auto; }
.cta-banner .btn { margin-top: 1.1rem; }

/* ---------- Footer ---------- */
.footer { background: var(--pine); color: var(--cream-faint); padding: 3.5rem 0 1.8rem; font-size: .84rem; }
.footer .logo img { filter: brightness(0) invert(1); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2rem; margin-bottom: 2.4rem; }
.footer h4 { font-family: var(--font-body); font-size: .7rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--brand-bright); margin-bottom: .9rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer a { color: var(--cream-faint); }
.footer a:hover { color: #fff; }
.footer__brand p { max-width: 26em; font-size: .8rem; margin-top: .9rem; line-height: 1.65; }
.footer__social { display: flex; gap: .7rem; margin-top: 1.1rem; }
.footer__social a {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-dark);
  display: flex; align-items: center; justify-content: center; color: var(--cream-soft);
  transition: background .25s, color .25s, border-color .25s;
}
.footer__social a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.footer__social svg { width: 15px; height: 15px; }
.footer__legal { border-top: 1px solid var(--line-dark); padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .7rem 1.8rem; justify-content: space-between; font-size: .72rem; }
.footer__legal ul { display: flex; flex-wrap: wrap; gap: 1.2rem; }

/* ---------- Flotantes ---------- */
.wa-float {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 80;
  width: 50px; height: 50px; border-radius: 50%;
  background: #17954B; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -6px rgba(23, 149, 75, .5);
  transition: transform .3s var(--ease-out);
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); color: #fff; }
.wa-float svg { width: 25px; height: 25px; }

.mobile-bar {
  position: fixed; inset: auto 0 0 0; z-index: 85;
  display: none; grid-template-columns: 1fr 1fr 1.35fr;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: .5rem .5rem calc(.5rem + env(safe-area-inset-bottom));
  gap: .45rem;
}
.mobile-bar a {
  display: flex; align-items: center; justify-content: center; gap: .45em;
  font-size: .76rem; font-weight: 500; color: var(--ink);
  padding: .8em .4em; border-radius: 10px; border: 1px solid var(--line);
}
.mobile-bar a svg { width: 15px; height: 15px; flex: none; }
.mobile-bar a.is-primary { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Cookies (sutil) ---------- */
.cookie-banner {
  position: fixed; z-index: 100; left: 1rem; bottom: 1rem;
  max-width: 21rem;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-m);
  box-shadow: var(--shadow-m); padding: .9rem 1rem;
  display: none; font-size: .74rem; line-height: 1.5;
}
.cookie-banner.is-visible { display: block; animation: stepIn .5s var(--ease-out); }
.cookie-banner p { margin-bottom: .7rem; color: var(--text-soft); }
.cookie-banner__actions { display: flex; gap: .45rem; }
.cookie-banner .btn { padding: .55em 1.1em; font-size: .74rem; }

/* ---------- Page hero (interior, claro) ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(2.2rem, 5vh, 3.5rem)) 0 clamp(1.8rem, 3.5vh, 2.6rem); background: var(--paper); }
.page-hero h1 { max-width: 18em; }
.page-hero .lead { max-width: 46rem; }
.breadcrumbs { font-size: .72rem; color: var(--text-faint); margin: 0 0 1.1rem; display: flex; flex-wrap: wrap; gap: .45em; list-style: none; padding: 0; }
.breadcrumbs a { color: var(--text-faint); }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs li + li::before { content: "/"; margin-right: .45em; opacity: .5; }
.page-banner { border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-m); }
.page-banner img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; }

/* ---------- Funnel (claro) ---------- */
.funnel-header { position: absolute; inset: 0 0 auto 0; z-index: 10; height: var(--header-h); display: flex; align-items: center; background: transparent; }
.funnel-header .header__inner { justify-content: space-between; }
.funnel-header .funnel-contact { font-size: .8rem; color: var(--text-soft); display: flex; align-items: center; gap: 1.1rem; }
.funnel-header .funnel-contact a { color: var(--brand-deep); font-weight: 500; }
.funnel-hero {
  background: linear-gradient(180deg, var(--mist) 0%, #fff 100%);
  padding: calc(var(--header-h) + clamp(2rem, 5vh, 3.5rem)) 0 clamp(3rem, 6vh, 5rem);
}
.funnel-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 3.5vw, 4rem); align-items: start; }
.funnel-hero .lead-form { border: 1px solid var(--line); box-shadow: var(--shadow-m); }
.funnel-trust { list-style: none; padding: 1.3rem 0 0; margin: 1.3rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .8rem; }
.funnel-trust li { display: flex; gap: .7em; font-size: .88rem; color: var(--text-soft); align-items: flex-start; }
.funnel-trust svg { width: 16px; height: 16px; color: var(--brand); flex: none; margin-top: .15em; }
.funnel-quote { margin: 1.6rem 0 0; padding: 1.1rem 1.3rem; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 0 12px 12px 0; }
.funnel-quote p { font-size: .86rem; color: var(--ink); margin: 0 0 .4em; line-height: 1.6; }
.funnel-quote footer { font-size: .72rem; color: var(--text-faint); }
.funnel-clients { margin-top: 1.8rem; }
.funnel-clients .clients__label { text-align: left; }
.funnel-clients .clients__row { justify-content: flex-start; gap: 1.4rem; }
.funnel-clients img { height: 28px; }
.funnel-footer { background: var(--paper); border-top: 1px solid var(--line); color: var(--text-faint); font-size: .72rem; padding: 1.3rem 0; }
.funnel-footer .container { display: flex; flex-wrap: wrap; gap: .7rem 1.8rem; justify-content: space-between; }
.funnel-footer a { color: var(--text-faint); }
.funnel-footer a:hover { color: var(--brand); }

/* ---------- Prosa legal ---------- */
.prose { max-width: 46rem; font-size: .9rem; }
.prose h2 { font-size: 1.25rem; margin-top: 1.9em; }
.prose h3 { font-size: 1rem; margin-top: 1.5em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .8rem; margin: 1em 0; }
.prose th, .prose td { text-align: left; padding: .5em .7em; border: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--mist); font-weight: 500; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .08s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .24s; }

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .process, .process--4 { grid-template-columns: repeat(3, 1fr); row-gap: 1.8rem; }
  .values, .team { grid-template-columns: repeat(2, 1fr); }
  .pricing, .pricing--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .form-grid, .funnel-grid { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr 1fr; }
  .testimonials > :last-child { grid-column: span 2; }
  .proj-grid, .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  :root { --header-h: 62px; }
  .logo img { height: 28px; }
  /* El blur del header creaba un "containing block" y encerraba el menú fijo
     dentro de los 62px del header (se cortaba y transparentaba). En móvil,
     fondo sólido sin blur para que .nav se posicione respecto a la pantalla. */
  .header { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }

  .nav {
    position: fixed; inset: 0; z-index: 100;
    flex-direction: column; justify-content: flex-start; align-items: center; gap: 1.15rem;
    /* fondo 100% opaco: el contenido de la página nunca debe transparentarse */
    background: var(--paper);
    /* deja libre el header y respeta el notch: nunca se corta por arriba/abajo */
    padding: calc(var(--header-h) + 1.4rem) 1.5rem calc(2.5rem + env(safe-area-inset-bottom, 0px));
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    opacity: 0; pointer-events: none; transition: opacity .35s;
  }
  .nav.is-open { opacity: 1; pointer-events: auto; }
  /* si sobra espacio, el bloque queda ópticamente centrado */
  .nav > :first-child { margin-top: auto; }
  .nav > :last-child { margin-bottom: auto; }
  .nav a { font-size: 1.15rem; font-weight: 500; color: var(--brand-deep); }
  .nav .btn { font-size: .95rem; margin-top: .8rem; color: #fff; }
  .nav-toggle { display: block; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__menu { position: static; opacity: 1; visibility: visible; transform: none; background: none; border: 0; box-shadow: none; padding: 0; min-width: 0; text-align: center; }
  .nav__group > a { display: none; }
  .nav__menu a { font-size: 1rem !important; padding: .3em; }
  .nav .lang-switch { margin-top: .9rem; }
  .nav .lang-switch a { font-size: .85rem; }

  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; }
  .split__media img { aspect-ratio: 4 / 3.2; }
  .hero { min-height: 78svh; }
  .stats { grid-template-columns: 1fr; }
  .mobile-bar { display: grid; }
  .wa-float { display: none; }
  body { padding-bottom: 62px; }
  .footer { padding-bottom: 2.6rem; }
  .cookie-banner { left: .8rem; right: .8rem; max-width: none; bottom: calc(68px + env(safe-area-inset-bottom)); }
  .process, .process--4 { grid-template-columns: 1fr 1fr; }
  .booking iframe { height: 560px; }
}

@media (max-width: 820px) {
  .pack-select { grid-template-columns: 1fr 1fr; }
  .upsell { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .cards, .pricing, .pricing--4, .values, .testimonials, .proj-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .team { grid-template-columns: 1fr 1fr; gap: .9rem; }
  .process, .process--4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .testimonials > :last-child { grid-column: span 1; }
  .choice-grid, .choice-grid--3 { grid-template-columns: 1fr 1fr; }
  .hero__cta .btn { width: 100%; }
  .split__badge { left: .7rem; right: .7rem; max-width: none; }
}

/* ---- Checkout embebido de Stripe (modal) ---- */
.checkout-modal {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(12, 31, 22, .55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.checkout-modal__box {
  position: relative; width: min(100%, 34rem); max-height: 92svh; overflow: auto;
  background: #fff; border-radius: var(--radius-l); box-shadow: var(--shadow-l);
  padding: 2.4rem .4rem .6rem;
}
.checkout-modal__close {
  position: absolute; top: .55rem; right: .65rem; z-index: 1;
  border: 0; background: none; font-size: 1.05rem; line-height: 1;
  cursor: pointer; color: #667; padding: .4rem .5rem;
}
.checkout-modal__mount { min-height: 380px; }
.checkout-modal__spinner {
  width: 34px; height: 34px; margin: 8rem auto;
  border: 3px solid var(--brand-soft); border-top-color: var(--brand);
  border-radius: 50%; animation: checkout-spin .9s linear infinite;
}
@keyframes checkout-spin { to { transform: rotate(360deg); } }
