/* =============================================================
   PARADIS NATURAL — Osvi Paradis Natural S.L.
   Archetype: Editorial Light Cream (adaptado a marca verde/terracota)
   =============================================================
   1. Tokens
   2. Reset & base
   3. Utilidades
   4. Tipografía
   5. Componentes (botones, placeholders, cursor, marquee)
   6. Secciones
   7. Efectos
   8. Responsive
   9. Reduced-motion (solo lo intrusivo)
   ============================================================= */


/* =============================================================
   1. TOKENS
   ============================================================= */
:root {
  /* Marca */
  --forest:      #1B3A2F;   /* verde bosque */
  --forest-2:    #142B23;
  --forest-3:    #0E1F19;
  --sage:        #8A9A7B;   /* verde salvia */
  --sage-soft:   #B4C0A6;
  --terra:       #C1663F;   /* terracota — acento (botones, trazos grandes) */
  --terra-texto: #9A4A28;   /* version oscura para textos pequeños: cumple contraste */
  --terra-2:     #A8542F;
  --cream:       #F5F1E8;   /* fondo crema */
  --cream-2:     #EBE5D6;   /* arena */
  --paper:       #FDFBF6;

  /* Semánticos */
  --bg:          var(--cream);
  --ink:         #16261F;
  --ink-soft:    #35473D;
  --ink-mute:    #586559;   /* oscurecido: con #6B7A70 no llegaba al contraste minimo */
  --on-dark:     #F2EEE2;
  --on-dark-mute:rgba(242,238,226,.62);
  --line:        rgba(27,58,47,.14);
  --line-light:  rgba(242,238,226,.16);

  /* Tipografía */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Easings */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce:cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --wrap:   1280px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --nav-h:  76px;
}


/* =============================================================
   2. RESET & BASE
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p  { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.02em; font-weight: 500; }
ul, ol { list-style: none; padding: 0; }

::selection { background: var(--terra); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 3px;
  border-radius: 4px;
}


/* =============================================================
   3. UTILIDADES
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .7rem 1.1rem; background: var(--forest); color: var(--on-dark);
  z-index: 10001; border-radius: 8px; font-weight: 500; font-size: .9rem;
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grain {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 3;
  opacity: .35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.42 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}


/* =============================================================
   4. TIPOGRAFÍA
   ============================================================= */
.kicker {
  /* tono oscuro: en 12px y mayusculas el terracota claro no se lee bien */
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--terra-texto);
  display: flex; align-items: center; gap: .8rem;
}
.kicker::before {
  content: ""; width: 32px; height: 1px; background: currentColor; opacity: .6;
  flex: none;
}
.kicker-light { color: var(--sage-soft); }

.h2 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5.2vw, 4rem);
  line-height: 1.04;
  font-weight: 500;
  color: var(--forest);
  max-width: 18ch;
  margin-top: 1.2rem;
}
.h2 em { font-style: italic; color: var(--terra); }
.h2-light { color: var(--on-dark); }
.h2-light em { color: var(--sage-soft); }

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.62;
  color: var(--ink-soft);
}

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .92rem; font-weight: 500;
  color: var(--terra-texto);
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(193,102,63,.35);
  transition: gap .4s var(--ease-out), border-color .4s var(--ease-out);
}
.link-arrow span { transition: transform .4s var(--ease-out); }
.link-arrow:hover { gap: .85rem; border-color: var(--terra); }
.link-arrow:hover span { transform: translateX(3px); }


/* =============================================================
   5. COMPONENTES
   ============================================================= */

/* ---------- Botones ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem 1.9rem;
  border-radius: 999px;
  font-size: .95rem; font-weight: 500; letter-spacing: .01em;
  line-height: 1;
  white-space: nowrap;
  transition: transform .45s var(--ease-soft),
              box-shadow .45s var(--ease-soft),
              background-color .4s var(--ease-out),
              color .4s var(--ease-out),
              border-color .4s var(--ease-out);
}
.btn-sm { padding: .72rem 1.3rem; font-size: .87rem; }

.btn-primary {
  background: var(--terra);
  color: #FFF8F2;
  box-shadow: 0 6px 18px rgba(193,102,63,.24), 0 1px 3px rgba(22,38,31,.1);
}
.btn-primary:hover {
  background: var(--terra-2);
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(193,102,63,.34), 0 8px 18px rgba(22,38,31,.14);
}
.btn-primary:active { transform: translateY(-1px); transition-duration: .12s; }

.btn-ghost {
  color: var(--on-dark);
  border: 1px solid rgba(242,238,226,.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  background: rgba(242,238,226,.12);
  border-color: rgba(242,238,226,.75);
  transform: translateY(-3px);
}

.btn-wa-inline {
  margin-top: 2rem;
  background: rgba(242,238,226,.08);
  border: 1px solid rgba(242,238,226,.28);
  color: var(--on-dark);
  padding: .95rem 1.6rem;
}
.btn-wa-inline svg { width: 20px; height: 20px; fill: #6EE39F; }
.btn-wa-inline:hover {
  background: rgba(110,227,159,.14);
  border-color: rgba(110,227,159,.5);
  transform: translateY(-3px);
}

/* ---------- Marcos de foto ----------
   Cada figura recorta su imagen al hueco sin deformarla. El fondo crema
   evita cualquier destello blanco mientras la foto termina de cargar. */
.serv-img, .testi-img, .card-img, .hero-media {
  position: relative;
  overflow: hidden;
  background: var(--cream-2);
}
.serv-img img, .testi-img img, .card-img img, .hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ---------- Cursor: tijeras de podar ----------
   Cada trazo se dibuja dos veces (contorno oscuro debajo, color encima) para
   que las tijeras se lean igual sobre el crema claro que sobre el verde oscuro. */
.cursor {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity .25s var(--ease-out);
  will-change: transform;
}
.cursor.is-ready { opacity: 1; }
.cursor.is-hidden { opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
}

.cursor-shears {
  width: 44px; height: 44px;
  display: block; overflow: visible;
  /* la punta de la hoja (≈5,5 de 64) cae justo en el puntero */
  margin: -4px 0 0 -4px;
  transition: transform .3s var(--ease-out);
}
.cursor.is-interactive .cursor-shears { transform: scale(1.1); }

/* Contorno oscuro debajo de cada pieza: da contraste sobre cualquier fondo */
.cursor-shears .hoja-out {
  fill: #0E1F19; fill-opacity: .5;
  stroke: #0E1F19; stroke-opacity: .5; stroke-width: 4.6; stroke-linejoin: round;
}
.cursor-shears .mango-out {
  fill: none; stroke: #0E1F19; stroke-opacity: .5; stroke-width: 11; stroke-linecap: round;
}
.cursor-shears .hoja { fill: #EDF1EA; stroke: #EDF1EA; stroke-width: .6; stroke-linejoin: round; }
.cursor-shears .hoja-contra { fill: #9AA69A; stroke: #9AA69A; }
.cursor-shears .mango { fill: none; stroke: var(--terra); stroke-width: 7; stroke-linecap: round; }
.cursor-shears .mango-b { stroke: var(--terra-2); }
.cursor-shears .pivot-out { fill: #0E1F19; fill-opacity: .5; }
.cursor-shears .pivot-in  { fill: #EDF1EA; }

/* Abiertas en reposo; se cierran al pasar por algo pulsable y dan el
   tijeretazo al hacer clic. */
.cursor-shears .shear-a {
  transform-box: view-box;
  transform-origin: 33px 34px;
  transform: rotate(-16deg);
  transition: transform .3s var(--ease-bounce);
}
.cursor.is-interactive .cursor-shears .shear-a { transform: rotate(0deg); }
.cursor.is-snip .cursor-shears .shear-a { transform: rotate(6deg); transition-duration: .09s; }

/* Ocultamos el puntero del sistema, pero NO en los campos del formulario:
   ahí hace falta el cursor de texto para poder escribir con comodidad. */
.has-cursor, .has-cursor * { cursor: none; }
.has-cursor input, .has-cursor textarea, .has-cursor select { cursor: auto; }

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 0;
  background: var(--forest);
  color: var(--on-dark);
  border-block: 1px solid rgba(242,238,226,.1);
  display: flex; flex-wrap: nowrap;
}
.marquee-track {
  display: flex; flex: none; align-items: center; gap: 2.2rem;
  white-space: nowrap; will-change: transform;
  padding-right: 2.2rem;
}
.marquee-track span {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2vw, 1.6rem);
  font-style: italic;
  font-weight: 400;
  color: rgba(242,238,226,.9);
}
.marquee-track i { color: var(--terra); font-style: normal; font-size: .8rem; }

/* ---------- Splash ---------- */
.splash {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--forest);
  display: grid; place-items: center;
  transition: opacity .9s var(--ease-out), clip-path 1.1s var(--ease-soft);
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
@keyframes splashSafety {
  to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
}
.splash-inner { display: grid; justify-items: center; gap: 1.1rem; }
.splash-mark {
  width: 56px; height: 56px;
  fill: none; stroke: var(--sage-soft); stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
  animation: splashPulse 2.4s var(--ease-soft) infinite;
}
@keyframes splashPulse {
  0%, 100% { opacity: .55; transform: scale(.96); }
  50%      { opacity: 1;   transform: scale(1.04); }
}
.splash-word {
  font-family: var(--serif);
  font-size: 1.15rem; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(242,238,226,.8);
}
.splash-line {
  width: 120px; height: 1px; background: rgba(242,238,226,.2);
  position: relative; overflow: hidden;
}
.splash-line::after {
  content: ""; position: absolute; inset: 0;
  background: var(--terra);
  transform: translateX(-100%);
  animation: splashBar 2.2s var(--ease-soft) infinite;
}
@keyframes splashBar {
  0%   { transform: translateX(-100%); }
  55%  { transform: translateX(0); }
  100% { transform: translateX(100%); }
}


/* =============================================================
   6. SECCIONES
   ============================================================= */

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .45s var(--ease-out),
              box-shadow .45s var(--ease-out),
              backdrop-filter .45s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(245,241,232,.9);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 1px 0 var(--line), 0 8px 30px rgba(22,38,31,.06);
}
.nav-inner {
  width: 100%; max-width: var(--wrap);
  margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}

.brand { display: flex; align-items: center; gap: .7rem; }
.brand-mark {
  width: 30px; height: 30px; flex: none;
  fill: none; stroke: var(--sage-soft); stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .45s var(--ease-out), transform .6s var(--ease-out);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); }
.brand-text { display: grid; line-height: 1.15; }
.brand-text strong {
  font-family: var(--serif); font-size: 1.08rem; font-weight: 600;
  letter-spacing: .01em; color: var(--on-dark);
  transition: color .45s var(--ease-out);
}
.brand-text em {
  font-style: normal; font-size: .6rem; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(242,238,226,.55);
  transition: color .45s var(--ease-out);
}
.nav.is-scrolled .brand-mark   { stroke: var(--forest); }
.nav.is-scrolled .brand-text strong { color: var(--forest); }
.nav.is-scrolled .brand-text em     { color: var(--ink-mute); }

.nav-links { display: none; gap: 1.4rem; }
.nav-link {
  position: relative; padding: .3rem 0;
  font-size: .88rem; font-weight: 400;
  white-space: nowrap;
  color: rgba(242,238,226,.85);
  transition: color .45s var(--ease-out);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1px; background: var(--terra);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-soft);
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav.is-scrolled .nav-link { color: var(--ink-soft); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-phone {
  display: none;
  white-space: nowrap;
  font-size: .88rem; font-weight: 500; color: rgba(242,238,226,.85);
  transition: color .45s var(--ease-out);
}
.nav.is-scrolled .nav-phone { color: var(--forest); }
.nav-actions .btn-primary { display: none; }

.nav-burger {
  width: 42px; height: 42px;
  display: grid; place-content: center; gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(242,238,226,.28);
  transition: border-color .4s var(--ease-out), background-color .4s var(--ease-out);
}
.nav-burger span {
  display: block; width: 17px; height: 1.5px; background: var(--on-dark);
  border-radius: 2px;
  transition: transform .45s var(--ease-soft), background-color .4s var(--ease-out), opacity .3s;
}
.nav.is-scrolled .nav-burger { border-color: var(--line); }
.nav.is-scrolled .nav-burger span { background: var(--forest); }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- MENÚ MÓVIL ---------- */
.menu-movil {
  position: fixed; inset: 0; z-index: 150;
  background: var(--forest);
  display: flex; flex-direction: column; justify-content: center; gap: 3rem;
  padding: var(--nav-h) var(--gutter) 3rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease-soft);
  visibility: hidden;
}
.menu-movil[aria-hidden="false"] { clip-path: inset(0); visibility: visible; }
.menu-movil nav { display: grid; gap: .4rem; }
.menu-movil nav a {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 9vw, 2.8rem);
  color: var(--on-dark);
  padding: .3rem 0;
  border-bottom: 1px solid rgba(242,238,226,.1);
  transition: color .35s var(--ease-out), padding-left .45s var(--ease-out);
}
.menu-movil nav a:hover { color: var(--sage-soft); padding-left: .6rem; }
.menu-movil-foot { display: grid; gap: .5rem; }
.menu-movil-foot a { color: var(--sage-soft); font-size: .95rem; letter-spacing: .05em; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 4rem) 0 3.5rem;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: -10% 0 -10%; z-index: 0;
  will-change: transform;
}
.hero-media { position: absolute; inset: 0; display: block; }
.hero-tint {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(14,31,25,.72) 0%, rgba(14,31,25,.38) 32%, rgba(14,31,25,.55) 62%, rgba(14,31,25,.92) 100%),
    linear-gradient(100deg, rgba(27,58,47,.82) 0%, rgba(27,58,47,.28) 60%, transparent 100%);
}
/* Mesh animado por transform (compositado por GPU): mismo efecto,
   sin repintar el desenfoque en cada fotograma. */
.hero-mesh {
  position: absolute; inset: -35%; z-index: 2;
  background:
    radial-gradient(38% 34% at 30% 32%, rgba(193,102,63,.5), transparent 66%),
    radial-gradient(34% 30% at 72% 62%, rgba(138,154,123,.42), transparent 68%),
    radial-gradient(30% 26% at 54% 88%, rgba(27,58,47,.5), transparent 70%);
  filter: blur(70px) saturate(120%);
  opacity: .72;
  mix-blend-mode: screen;
  animation: meshDrift 32s var(--ease-soft) infinite;
  will-change: transform;
  pointer-events: none;
}
@keyframes meshDrift {
  0%, 100% { transform: translate3d(-3%, -2%, 0) scale(1.02) rotate(0deg); }
  33%      { transform: translate3d(4%, 3%, 0)  scale(1.12) rotate(6deg); }
  66%      { transform: translate3d(-2%, 4%, 0) scale(1.06) rotate(-5deg); }
}

.hero-inner {
  position: relative; z-index: 5;
  width: 100%; max-width: var(--wrap);
  margin-inline: auto; padding-inline: var(--gutter);
  color: var(--on-dark);
  will-change: transform, opacity;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7.4vw, 6rem);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-top: 1.4rem;
  max-width: 16ch;
  color: var(--on-dark);
  text-shadow: 0 2px 30px rgba(14,31,25,.5);
}
.hero-title em { font-style: italic; color: var(--sage-soft); }

.hero-sub {
  margin-top: 1.6rem;
  max-width: 46ch;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.68;
  color: rgba(242,238,226,.84);
}
.hero-claim {
  margin-top: 1.1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  color: var(--terra);
  filter: brightness(1.28);
}
.hero-actions {
  margin-top: 2.4rem;
  display: flex; flex-wrap: wrap; gap: .9rem;
}
.hero-marks {
  margin-top: 3rem;
  display: flex; flex-wrap: wrap; gap: 2rem;
  border-top: 1px solid rgba(242,238,226,.16);
  padding-top: 1.4rem;
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(242,238,226,.6);
}
.hero-marks li { display: flex; align-items: baseline; gap: .55rem; }
.hero-marks span { font-family: var(--serif); font-size: .78rem; color: var(--terra); filter: brightness(1.3); }

.hero-scroll {
  position: absolute; z-index: 6;
  right: var(--gutter); bottom: 3.5rem;
  display: none; flex-direction: column; align-items: center; gap: .8rem;
  font-size: .62rem; letter-spacing: .26em; text-transform: uppercase;
  color: rgba(242,238,226,.55);
  writing-mode: vertical-rl;
}
.hero-scroll-line {
  width: 1px; height: 64px; background: rgba(242,238,226,.24);
  position: relative; overflow: hidden;
}
.hero-scroll-line::after {
  content: ""; position: absolute; inset-inline: 0; height: 22px;
  background: var(--terra);
  animation: scrollCue 2.4s var(--ease-soft) infinite;
}
@keyframes scrollCue {
  0%   { transform: translateY(-24px); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: translateY(64px); opacity: 0; }
}

/* ---------- MANIFIESTO ---------- */
.manifiesto { padding: clamp(4.5rem, 10vw, 9rem) 0; }
.manifiesto-grid { display: grid; gap: 2rem; }
.manifiesto-left { display: grid; gap: 1.5rem; align-content: start; }
.big-num {
  font-family: var(--serif);
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: .8;
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px rgba(27,58,47,.22);
}
.manifiesto-right p + p { margin-top: 1.2rem; }
.manifiesto-right .lead { margin-top: 2rem; }
.manifiesto-right p { color: var(--ink-soft); }
.manifiesto-right strong { color: var(--forest); font-weight: 600; }

.stats {
  margin-top: 3rem;
  display: grid; gap: 1.6rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
.stats li { display: grid; gap: .3rem; }
.stats strong {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 500; line-height: 1;
  color: var(--terra);
}
.stats span {
  font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------- SERVICIOS ---------- */
.servicios {
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(5rem, 11vw, 10rem);
  background:
    linear-gradient(180deg, var(--cream) 0%, var(--paper) 22%, var(--paper) 78%, var(--cream) 100%);
}
.sec-head { max-width: 46rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.sec-head-sub { margin-top: 1.4rem; color: var(--ink-mute); max-width: 48ch; font-size: 1.02rem; }
.sec-head-center { margin-inline: auto; text-align: center; }
.sec-head-center .kicker { justify-content: center; }
.sec-head-center .h2 { margin-inline: auto; }

.serv-list { display: grid; gap: clamp(3rem, 7vw, 6rem); }
.serv { display: grid; gap: 2rem; align-items: start; }

.serv-media { position: relative; }
.serv-img {
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  box-shadow: 0 30px 70px -30px rgba(22,38,31,.35);
}
.serv-index {
  position: absolute; top: -.6rem; left: -.4rem; z-index: 3;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1;
  color: var(--cream);
  text-shadow: 0 2px 20px rgba(22,38,31,.28);
}

.serv-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  color: var(--forest);
  font-weight: 500;
}
.serv-lead { margin-top: 1rem; color: var(--ink-soft); max-width: 46ch; }
.serv-items {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}
.serv-items li {
  display: grid; gap: .18rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .5s var(--ease-out), border-color .5s var(--ease-out);
}
.serv-items li:hover { padding-left: .7rem; border-color: rgba(193,102,63,.4); }
.serv-items span {
  font-size: 1rem; font-weight: 500; color: var(--forest);
}
.serv-items em {
  font-style: normal; font-size: .86rem; color: var(--ink-mute);
}
.serv .link-arrow { margin-top: 1.8rem; }

/* ---------- VENTAJAS ---------- */
.ventajas {
  position: relative;
  padding: clamp(4.5rem, 10vw, 9rem) 0;
  background: var(--forest);
  color: var(--on-dark);
  isolation: isolate;
}
.ventajas-halo {
  position: absolute; inset: -40% -10% -30% -10%; z-index: -1;
  background:
    radial-gradient(40% 32% at 22% 28%, rgba(138,154,123,.34), transparent 70%),
    radial-gradient(38% 30% at 80% 72%, rgba(193,102,63,.3), transparent 72%);
  filter: blur(110px);
  pointer-events: none;
}
.vent-grid {
  display: grid; gap: 1px;
  background: rgba(242,238,226,.12);
  border: 1px solid rgba(242,238,226,.12);
  border-radius: 6px;
  overflow: hidden;
}
.vent {
  background: var(--forest);
  padding: clamp(1.8rem, 3.4vw, 2.6rem);
  display: grid; gap: .7rem; align-content: start;
  transition: background-color .55s var(--ease-out);
}
.vent:hover { background: var(--forest-2); }
.vent-num {
  font-family: var(--serif); font-style: italic;
  font-size: 1.6rem; color: var(--terra);
  filter: brightness(1.25);
}
.vent h3 {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 500;
  color: var(--on-dark);
}
.vent p { font-size: .95rem; color: var(--on-dark-mute); line-height: 1.62; }

/* ---------- ANTES Y DESPUÉS ---------- */
.antesdespues {
  padding: clamp(4.5rem, 10vw, 9rem) 0;
  background: var(--paper);
}
.ad-grid { display: grid; gap: clamp(2rem, 4vw, 3rem); }

.ad-media {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 4px;
  overflow: hidden;
  background: var(--cream-2);
  box-shadow: 0 30px 70px -32px rgba(22,38,31,.4);
  cursor: pointer;
}
.ad-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .55s var(--ease-out);
}
/* Al entrar se ve el resultado; el "antes" espera debajo */
.ad-antes   { opacity: 0; }
.ad-despues { opacity: 1; }
.ad.ver-antes .ad-antes   { opacity: 1; }
.ad.ver-antes .ad-despues { opacity: 0; }

.ad-sello {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  padding: .4rem .9rem;
  border-radius: 999px;
  font-size: .68rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--on-dark);
  background: rgba(14,31,25,.72);
  transition: background-color .4s var(--ease-out);
}
.ad.ver-antes .ad-sello { background: rgba(193,102,63,.9); }

.ad-pie {
  margin-top: 1.3rem;
  display: flex; flex-wrap: wrap; align-items: flex-start;
  justify-content: space-between; gap: 1rem;
}
.ad-pie h3 {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 500;
  color: var(--forest);
}
.ad-pie p { margin-top: .25rem; font-size: .92rem; color: var(--ink-mute); max-width: 40ch; }

.ad-botones { display: flex; flex: none; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.ad-botones button {
  padding: .55rem 1.1rem;
  font-size: .82rem; font-weight: 500;
  color: var(--ink-mute);
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out);
}
.ad-botones button.is-activo { background: var(--forest); color: var(--on-dark); }
.ad-botones button:not(.is-activo):hover { background: rgba(27,58,47,.07); color: var(--forest); }

/* ---------- NUESTROS TRABAJOS ---------- */
.proyectos { padding: clamp(4.5rem, 10vw, 9rem) 0; }

.bento { display: grid; grid-template-columns: 1fr; gap: 1rem; }

.card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  isolation: isolate;
  --rx: 0deg; --ry: 0deg;
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .6s var(--ease-soft), box-shadow .6s var(--ease-soft);
  box-shadow: 0 8px 24px -12px rgba(22,38,31,.25);
  min-height: 260px;
}
.card:hover {
  transition-duration: .2s;
  box-shadow:
    0 46px 90px -26px rgba(193,102,63,.36),
    0 26px 54px -20px rgba(22,38,31,.34),
    0 0 0 1px rgba(193,102,63,.22);
}
.card-img { position: absolute; inset: 0; z-index: 0; }
.card-img img {
  transition: transform .9s var(--ease-soft), filter .55s var(--ease-out);
}
.card:hover .card-img img {
  transform: scale(1.07);
  filter: saturate(1.12) brightness(1.03);
}
.card::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 30%, rgba(14,31,25,.28) 58%, rgba(14,31,25,.88) 100%);
  transition: opacity .55s var(--ease-out);
  pointer-events: none;
}
/* Sin translateZ: dentro de la perspectiva del tilt escalaba el bloque
   y el texto se salía de la tarjeta. */
.card-meta {
  position: relative; z-index: 2;
  padding: clamp(1.2rem, 2.4vw, 1.8rem);
  display: grid; gap: .3rem;
  color: var(--on-dark);
}
.card { display: flex; flex-direction: column; justify-content: flex-end; }
.card-tag {
  font-size: .64rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--sage-soft);
}
.card-meta h3 {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 500;
  color: var(--on-dark);
}
.card-meta p { font-size: .84rem; color: rgba(242,238,226,.62); }

.proyectos-foot {
  margin-top: 3rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem;
  color: var(--ink-mute);
  font-size: 1rem;
}

/* ---------- TESTIMONIOS ---------- */
.testimonios {
  padding: clamp(4.5rem, 10vw, 9rem) 0;
  background: var(--cream-2);
}
.testi-grid { display: grid; gap: 2.5rem; align-items: center; }
.testi-img {
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  box-shadow: 0 40px 80px -34px rgba(22,38,31,.4);
}
.testi-body .h2 { margin-bottom: 2.2rem; }

.testi-stage { position: relative; min-height: 15rem; }
.testi {
  position: absolute; inset: 0;
  opacity: 0; transform: translateY(14px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-soft);
  pointer-events: none;
}
.testi.is-active { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.testi p {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.1vw, 1.6rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--forest);
  position: relative;
  padding-left: 2rem;
}
.testi p::before {
  content: "“";
  position: absolute; left: -.2rem; top: -1.4rem;
  font-family: var(--serif);
  font-size: 5rem; line-height: 1;
  color: rgba(193,102,63,.28);
}
.testi footer {
  margin-top: 1.6rem; padding-left: 2rem;
  display: grid; gap: .15rem;
}
.testi footer strong { font-size: .95rem; font-weight: 600; color: var(--forest); }
.testi footer span { font-size: .82rem; color: var(--ink-mute); }

.testi-nav {
  margin-top: 2.4rem;
  display: flex; align-items: center; gap: 1.2rem;
}
.testi-nav button {
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--forest); font-size: 1rem;
  transition: background-color .4s var(--ease-out), border-color .4s var(--ease-out), transform .4s var(--ease-out);
}
.testi-nav button:hover {
  background: var(--forest); border-color: var(--forest); color: var(--on-dark);
  transform: translateY(-2px);
}
.testi-dots { display: flex; gap: .5rem; }
.testi-dots button {
  width: 8px; height: 8px; min-width: 8px; padding: 0;
  border-radius: 999px; border: 0;
  background: rgba(27,58,47,.24);
  transition: width .45s var(--ease-out), background-color .45s var(--ease-out);
}
.testi-dots button.is-active { width: 26px; background: var(--terra); }
.testi-dots button:hover { background: var(--terra); transform: none; }

/* ---------- CONTACTO ---------- */
.contacto {
  position: relative;
  padding: clamp(4.5rem, 10vw, 9rem) 0;
  background: var(--forest-2);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}
.contacto-mesh {
  position: absolute; inset: -40%; z-index: -1;
  background:
    radial-gradient(34% 30% at 26% 34%, rgba(193,102,63,.4), transparent 68%),
    radial-gradient(32% 28% at 74% 66%, rgba(138,154,123,.34), transparent 70%);
  filter: blur(80px) saturate(115%);
  opacity: .8;
  animation: meshDrift 38s var(--ease-soft) infinite;
  will-change: transform;
  pointer-events: none;
}
.cta-grid { display: grid; gap: 3rem; align-items: start; }
.cta-lead { margin-top: 1.6rem; color: var(--on-dark-mute); max-width: 42ch; }

.cta-contact {
  margin-top: 2.4rem;
  display: grid; gap: 0;
  border-top: 1px solid var(--line-light);
}
.cta-contact li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .8rem;
  padding: .95rem 0;
  border-bottom: 1px solid var(--line-light);
}
.cta-contact-label {
  min-width: 5.5rem;
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--sage-soft);
}
.cta-contact a, .cta-contact li > span:last-child {
  font-size: 1.02rem; color: var(--on-dark);
  transition: color .35s var(--ease-out);
}
.cta-contact a:hover { color: var(--terra); filter: brightness(1.3); }

/* Formulario */
.cta-formwrap {
  position: relative;
  background: rgba(253,251,246,.05);
  border: 1px solid var(--line-light);
  border-radius: 8px;
  padding: clamp(1.6rem, 3.5vw, 2.6rem);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@supports not (backdrop-filter: blur(10px)) {
  .cta-formwrap { background: rgba(14,31,25,.7); }
}
.cta-form { display: grid; gap: 1.1rem; transition: opacity .55s var(--ease-out), transform .55s var(--ease-soft); }
.cta-form.is-sent { opacity: 0; transform: translateY(-12px); pointer-events: none; }
.cta-form-title {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 500;
  color: var(--on-dark); margin-bottom: .4rem;
}

.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 1.5rem .95rem .6rem;
  font: inherit; font-size: .95rem;
  color: var(--on-dark);
  background: rgba(242,238,226,.05);
  border: 1px solid var(--line-light);
  border-radius: 6px;
  transition: border-color .35s var(--ease-out), background-color .35s var(--ease-out);
  appearance: none;
}
.field textarea { resize: vertical; min-height: 6.5rem; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--terra);
  background: rgba(242,238,226,.09);
}
.field label {
  position: absolute; left: .95rem; top: 1.05rem;
  pointer-events: none;
  font-size: .95rem;
  color: rgba(242,238,226,.5);
  transition: top .28s var(--ease-out), font-size .28s var(--ease-out),
              letter-spacing .28s var(--ease-out), color .28s var(--ease-out);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field select:focus + label,
.field select:valid + label {
  top: .48rem; font-size: .62rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--sage-soft);
}
.field-select::after {
  content: ""; position: absolute; right: 1.1rem; top: 50%;
  width: 7px; height: 7px; margin-top: -2px;
  border-right: 1.5px solid var(--sage-soft);
  border-bottom: 1.5px solid var(--sage-soft);
  transform: rotate(45deg);
  pointer-events: none;
}
.field select option { background: var(--forest); color: var(--on-dark); }
.field-row { display: grid; gap: 1.1rem; }

.checkbox {
  display: flex; align-items: flex-start; gap: .7rem;
  font-size: .82rem; line-height: 1.5; color: var(--on-dark-mute);
  cursor: pointer;
}
.checkbox input {
  appearance: none;
  width: 18px; height: 18px; flex: none; margin-top: .12rem;
  border: 1px solid var(--line-light); border-radius: 4px;
  background: rgba(242,238,226,.05);
  transition: background-color .3s, border-color .3s;
  position: relative;
}
.checkbox input:checked { background: var(--terra); border-color: var(--terra); }
.checkbox input:checked::after {
  content: ""; position: absolute; left: 5.5px; top: 2px;
  width: 4px; height: 8px;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.btn-submit { width: 100%; margin-top: .4rem; }
.cta-form-spinner, .cta-form-check {
  position: absolute; inset: 0; display: grid; place-items: center;
  opacity: 0; pointer-events: none;
}
.cta-form.is-sending .cta-form-label   { opacity: 0; }
.cta-form.is-sending .cta-form-spinner { opacity: 1; }
.cta-form-spinner::after {
  content: ""; width: 18px; height: 18px;
  border: 1.6px solid rgba(255,255,255,.3); border-top-color: #fff;
  border-radius: 50%; animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cta-form-check { width: 22px; height: 22px; margin: auto; }
.cta-form-check path {
  stroke: #fff; stroke-width: 2.4; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset .55s var(--ease-out);
}
.cta-form-note {
  font-size: .76rem; color: var(--on-dark-mute); text-align: center;
}

/* Trampa antispam: invisible para las personas, tentadora para los robots */
.trampa {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; opacity: 0;
  pointer-events: none;
}

/* Aviso cuando el envío no ha salido. Nunca decimos "recibido" sin serlo. */
.cta-error {
  display: none;
  margin-top: .4rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(193,102,63,.55);
  border-left-width: 3px;
  border-radius: 0 6px 6px 0;
  background: rgba(193,102,63,.12);
}
.cta-error.is-visible { display: block; }
.cta-error strong { display: block; font-size: .95rem; color: #F2C9B2; margin-bottom: .3rem; }
.cta-error p { font-size: .84rem; color: var(--on-dark-mute); line-height: 1.55; }
.cta-error-acciones { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.cta-error-acciones a {
  padding: .45rem .9rem;
  border: 1px solid rgba(242,238,226,.32);
  border-radius: 999px;
  font-size: .82rem; font-weight: 500; color: var(--on-dark);
  transition: background-color .35s var(--ease-out), border-color .35s var(--ease-out);
}
.cta-error-acciones a:hover { background: rgba(242,238,226,.12); border-color: rgba(242,238,226,.6); }

.cta-success {
  position: absolute; left: 50%; top: 50%;
  width: min(90%, 26rem);
  transform: translate(-50%, -40%);
  text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity .8s var(--ease-out) .25s, transform .9s var(--ease-soft) .25s;
}
.cta-success.is-visible { opacity: 1; transform: translate(-50%, -50%); pointer-events: auto; }
.cta-success svg {
  width: 64px; height: 64px; margin: 0 auto 1.2rem;
  fill: none; stroke: var(--sage-soft); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.cta-success svg circle, .cta-success svg path {
  stroke-dasharray: 200; stroke-dashoffset: 200;
}
.cta-success.is-visible svg circle { animation: drawIn .9s var(--ease-out) .3s forwards; }
.cta-success.is-visible svg path   { animation: drawIn .6s var(--ease-out) .9s forwards; }
@keyframes drawIn { to { stroke-dashoffset: 0; } }
.cta-success h3 {
  font-family: var(--serif); font-size: 1.7rem; font-weight: 500;
  color: var(--on-dark); margin-bottom: .6rem;
}
.cta-success p { color: var(--on-dark-mute); font-size: .95rem; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--forest-3);
  color: var(--on-dark);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem;
}
.footer-grid { display: grid; gap: 2.8rem; }
.footer-brand .brand-mark { width: 34px; height: 34px; stroke: var(--sage-soft); margin-bottom: .9rem; }
.footer-brand strong {
  display: block;
  font-family: var(--serif); font-size: 1.3rem; font-weight: 600;
  margin-bottom: .6rem;
}
.footer-brand p { font-size: .9rem; color: var(--on-dark-mute); line-height: 1.7; }
.footer-claim {
  margin-top: 1rem;
  font-family: var(--serif); font-style: italic;
  color: var(--terra) !important; filter: brightness(1.3);
}
.footer-col { display: grid; gap: .55rem; align-content: start; }
.footer-col h4 {
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--sage-soft); margin-bottom: .5rem; font-weight: 500;
}
.footer-col a {
  font-size: .9rem; color: var(--on-dark-mute);
  transition: color .35s var(--ease-out), padding-left .4s var(--ease-out);
}
.footer-col a:hover { color: var(--on-dark); padding-left: .3rem; }

.footer-bottom {
  margin-top: 3rem; padding-top: 1.6rem;
  border-top: 1px solid rgba(242,238,226,.1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.4rem;
  font-size: .78rem; color: rgba(242,238,226,.62);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; align-items: center; }
.footer-legal a {
  color: rgba(242,238,226,.78);
  border-bottom: 1px solid rgba(242,238,226,.22);
  padding-bottom: 1px;
  transition: color .35s var(--ease-out), border-color .35s var(--ease-out);
}
.footer-legal a:hover { color: var(--on-dark); border-color: var(--on-dark); }

/* ---------- PÁGINAS LEGALES ---------- */
.legal-nav {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
  background: var(--paper);
}
.legal-nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.legal-nav .brand-mark   { stroke: var(--forest); }
.legal-nav .brand-text strong { color: var(--forest); }
.legal-nav .brand-text em     { color: var(--ink-mute); }

.legal { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3.5rem, 8vw, 6rem); }
.legal .wrap { max-width: 50rem; }
.legal h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 500; color: var(--forest);
  margin-top: 1rem;
}
.legal .legal-fecha { margin-top: .7rem; font-size: .85rem; color: var(--ink-mute); }
.legal h2 {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 500; color: var(--forest);
  margin-top: 2.6rem; margin-bottom: .7rem;
}
.legal p { color: var(--ink-soft); margin-bottom: .9rem; }
.legal a { color: var(--terra-texto); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--forest); }

.legal-datos { margin: 1rem 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.legal-datos li {
  display: flex; flex-wrap: wrap; gap: .3rem 1rem;
  padding: .8rem 0; border-bottom: 1px solid var(--line);
}
.legal-datos span {
  flex: 0 0 11rem;
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-mute); padding-top: .2rem;
}
.legal-datos strong { font-weight: 500; color: var(--ink); }

.legal-lista { margin: .4rem 0 1rem; display: grid; gap: .5rem; }
.legal-lista li {
  position: relative; padding-left: 1.1rem;
  color: var(--ink-soft); font-size: .97rem;
}
.legal-lista li::before {
  content: ""; position: absolute; left: 0; top: .6rem;
  width: 5px; height: 5px; border-radius: 50%; background: var(--terra);
}

.pendiente {
  margin-top: 2rem; padding: 1.1rem 1.3rem;
  border-left: 3px solid var(--terra);
  background: rgba(193,102,63,.08);
  border-radius: 0 6px 6px 0;
}
.pendiente strong { display: block; color: var(--terra-texto); margin-bottom: .35rem; font-size: .95rem; }
.pendiente p { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.pendiente code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: .85em; background: rgba(27,58,47,.1); padding: .1rem .35rem; border-radius: 3px;
}

.legal-vuelta { margin-top: 3rem; }
.pagina-legal .footer { padding-block: 2rem; }
.pagina-legal .footer-bottom { margin-top: 0; padding-top: 0; border-top: 0; }
.pagina-legal .footer a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- WHATSAPP FLOTANTE ---------- */
.wa-float {
  position: fixed; z-index: 300;
  right: clamp(1rem, 3vw, 1.8rem);
  bottom: clamp(1rem, 3vw, 1.8rem);
  display: inline-flex; align-items: center; gap: 0;
  height: 56px; padding: 0 16px;
  border-radius: 999px;
  background: #1FA855;
  color: #fff;
  box-shadow: 0 10px 30px rgba(31,168,85,.36), 0 3px 10px rgba(22,38,31,.2);
  overflow: hidden;
  transition: gap .5s var(--ease-out), padding .5s var(--ease-out),
              transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft);
}
.wa-float svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.wa-float-label {
  max-width: 0; opacity: 0;
  font-size: .9rem; font-weight: 500; white-space: nowrap;
  transition: max-width .5s var(--ease-out), opacity .35s var(--ease-out);
}
.wa-float:hover {
  gap: .6rem; padding-right: 22px;
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(31,168,85,.44), 0 6px 16px rgba(22,38,31,.22);
}
.wa-float:hover .wa-float-label { max-width: 9rem; opacity: 1; }
.wa-float::after {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(31,168,85,.55);
  animation: waPulse 2.6s var(--ease-out) infinite;
  pointer-events: none;
}
@keyframes waPulse {
  0%   { transform: scale(1);    opacity: .7; }
  70%  { transform: scale(1.28); opacity: 0; }
  100% { transform: scale(1.28); opacity: 0; }
}


/* =============================================================
   7. EFECTOS
   ============================================================= */
[data-reveal] {
  opacity: 0; transform: translateY(36px);
  transition: opacity .9s var(--ease-soft), transform .9s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* Defensa A.4.5: nunca ocultar un elemento que además usa split-text */
[data-reveal][data-split] { opacity: 1; transform: none; }

.split-word, .split-char { display: inline-block; will-change: transform, opacity; }

/* Escalonado en rejillas */
.vent-grid [data-reveal]:nth-child(2),  .bento [data-reveal]:nth-child(2)  { transition-delay: .07s; }
.vent-grid [data-reveal]:nth-child(3),  .bento [data-reveal]:nth-child(3)  { transition-delay: .14s; }
.vent-grid [data-reveal]:nth-child(4),  .bento [data-reveal]:nth-child(4)  { transition-delay: .21s; }
.vent-grid [data-reveal]:nth-child(5),  .bento [data-reveal]:nth-child(5)  { transition-delay: .28s; }
.vent-grid [data-reveal]:nth-child(6),  .bento [data-reveal]:nth-child(6)  { transition-delay: .35s; }
.bento [data-reveal]:nth-child(7) { transition-delay: .42s; }
.bento [data-reveal]:nth-child(8) { transition-delay: .49s; }

/* Bloqueo de scroll con el menú abierto. En móvil no basta con overflow:hidden
   (iOS lo ignora), así que fijamos el body y JS recuerda la posición. */
html.is-locked { overflow: hidden; }
html.is-locked body {
  position: fixed;
  inset-inline: 0;
  width: 100%;
  overflow: hidden;
}


/* =============================================================
   8. RESPONSIVE
   ============================================================= */
@media (min-width: 540px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
}

@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .vent-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
  .nav-phone { display: block; }
  .testi-stage { min-height: 13rem; }
}

@media (min-width: 720px) {
  .ad-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  :root { --nav-h: 84px; }

  .nav-links { display: flex; }
  .nav-burger { display: none; }
  .nav-actions .btn-primary { display: inline-flex; }
  .menu-movil { display: none; }
  /* Entre 960 y 1280 no cabe todo: el teléfono cede el sitio a los enlaces
     (el botón de presupuesto ya lleva al mismo contacto). */
  .nav-phone { display: none; }

  .hero-scroll { display: flex; }

  .manifiesto-grid { grid-template-columns: 3fr 7fr; gap: 4rem; }
  .manifiesto-left { position: sticky; top: calc(var(--nav-h) + 2rem); }

  .serv { grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
  .serv-alt .serv-media { order: 2; }
  .serv-alt .serv-body  { order: 1; }

  .vent-grid { grid-template-columns: repeat(3, 1fr); }

  .testi-grid { grid-template-columns: 5fr 7fr; gap: clamp(3rem, 6vw, 5rem); }

  .cta-grid { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 5rem); }
}

@media (min-width: 1280px) {
  .nav-phone { display: block; }
  .nav-links { gap: 2rem; }

  .bento {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 300px;
    gap: 1.1rem;
  }
  .bento .card:nth-child(1) { grid-column: span 7; grid-row: span 2; }
  .bento .card:nth-child(2) { grid-column: span 5; }
  .bento .card:nth-child(3) { grid-column: span 5; }
  .bento .card:nth-child(4) { grid-column: span 5; }
  .bento .card:nth-child(5) { grid-column: span 7; }
  .bento .card:nth-child(6) { grid-column: span 4; }
  .bento .card:nth-child(7) { grid-column: span 4; }
  .bento .card:nth-child(8) { grid-column: span 4; }
}


/* =============================================================
   8.b MÓVIL — aligerado de efectos caros
   Un teléfono no mueve igual que un ordenador los desenfoques grandes, las
   mezclas de capas ni los fondos translúcidos. Aquí se sustituyen por versiones
   sólidas: se ve prácticamente igual y el scroll va suave.
   ============================================================= */
@media (max-width: 959px) {
  /* Fondos difuminados: se quedan quietos (siguen dando color, sin repintar) */
  .hero-mesh, .contacto-mesh {
    animation: none;
    will-change: auto;
    filter: blur(50px) saturate(115%);
  }

  /* La textura de grano usa mezcla de capas: cara y casi invisible en móvil */
  .grain { display: none; }

  /* Translúcidos con desenfoque -> colores sólidos */
  .nav.is-scrolled {
    background: var(--cream);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .cta-formwrap {
    background: rgba(14,31,25,.55);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .btn-ghost { backdrop-filter: none; -webkit-backdrop-filter: none; }

  /* Las sombras enormes también cuestan al desplazar */
  .card { box-shadow: 0 6px 18px -10px rgba(22,38,31,.3); }
}

/* =============================================================
   9. REDUCED-MOTION — solo lo intrusivo
   (NO desactivamos hovers, fades, tilt ni mesh: Windows lo trae
    activado por defecto y dejaría la web muerta)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-scroll-line::after { animation: none; opacity: .6; }
  .wa-float::after { animation: none; opacity: 0; }
  .splash-mark { animation: none; }
  .splash-line::after { animation: none; transform: none; }
}
