/* ==========================================================================
   Cami Funes · Abogada
   Tokens de marca (Manual de marca)
   ========================================================================== */

/* Bizantheum Regular — tipografía de títulos.
   Colocar los archivos en assets/fonts/ (woff2 recomendado). */
@font-face {
  font-family: "Bizantheum";
  src: url("../fonts/Bizantheum-Regular.woff2") format("woff2"),
       url("../fonts/Bizantheum-Regular.woff") format("woff"),
       url("../fonts/Bizantheum-Regular.otf") format("opentype"),
       url("../fonts/Bizantheum-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Paleta cromática */
  --green-900: #293d33;
  --green-950: #1f2f27;
  --green-600: #516058;
  --cream: #f2f2e9;
  --cream-70: rgba(242, 242, 233, .7);
  --cream-40: rgba(242, 242, 233, .4);
  --cream-15: rgba(242, 242, 233, .15);
  --grey: #d9dbd8;

  /* Tipografías */
  --font-title: "Bizantheum", "Cormorant Garamond", "Didot", serif;
  --font-body: "Raleway", system-ui, sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.77, 0, .18, 1);

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --nav-h: 88px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--cream);
  background: var(--green-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   Preloader
   ========================================================================== */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--green-900);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.25s var(--ease-in-out);
}

.preloader::after { /* textura sutil */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(81, 96, 88, .35) 0%, transparent 65%);
  pointer-events: none;
}

.preloader__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 1.25s var(--ease-in-out), opacity .9s ease;
}

.preloader__mono { width: clamp(96px, 14vw, 150px); height: auto; overflow: visible; }
.preloader__text { width: clamp(180px, 24vw, 260px); height: auto; margin-top: clamp(1.25rem, 2.5vw, 1.75rem); overflow: visible; }

.preloader path {
  fill: var(--cream);
  fill-opacity: 0;
  stroke: var(--cream);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: var(--len, 4000);
  stroke-dashoffset: var(--len, 4000);
  transition: fill-opacity 1s ease, stroke-opacity 1s ease;
}

.preloader__mono path { stroke-width: 2.6; }
.preloader__text path { stroke-width: 1.6; }

.preloader.is-drawing .preloader__mono path {
  animation: draw 2.4s var(--ease-in-out) forwards;
}

.preloader.is-drawing .preloader__text path {
  animation: draw 1.5s var(--ease-in-out) forwards;
  animation-delay: calc(.85s + var(--i) * 45ms);
}

.preloader.is-filled path {
  fill-opacity: 1;
  stroke-opacity: 0;
}

@keyframes draw { to { stroke-dashoffset: 0; } }

.preloader__progress {
  position: absolute;
  left: 50%;
  bottom: clamp(2.5rem, 7vh, 4.5rem);
  z-index: 1;
  width: min(220px, 50vw);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .68rem;
  letter-spacing: .35em;
  color: var(--cream-70);
  transition: opacity .6s ease;
}

.preloader__bar {
  position: relative;
  flex: 1;
  height: 1px;
  background: var(--cream-15);
  overflow: hidden;
}

.preloader__bar span {
  position: absolute;
  inset: 0;
  background: var(--cream);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
  transition: transform .5s var(--ease-out);
}

.preloader__count { min-width: 3ch; text-align: right; font-variant-numeric: tabular-nums; }

/* Salida */
.preloader.is-leaving { clip-path: inset(0 0 100% 0); }
.preloader.is-leaving .preloader__inner { transform: translateY(-14vh); opacity: 0; }
.preloader.is-leaving .preloader__progress { opacity: 0; }
.preloader.is-done { display: none; }

/* ==========================================================================
   Navbar
   ========================================================================== */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
  transition: background-color .5s ease, height .5s var(--ease-out), backdrop-filter .5s ease, transform .6s var(--ease-out);
}

.nav::after { /* línea fina inferior */
  content: "";
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 0;
  height: 1px;
  background: var(--cream-15);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s var(--ease-out) .6s;
}

.is-loaded .nav::after { transform: scaleX(1); }

.nav.is-scrolled {
  --nav-h: 72px;
  background: rgba(31, 47, 39, .82);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
}

.nav.is-scrolled::after { left: 0; right: 0; }

.nav.is-hidden { transform: translateY(-100%); }

.nav__inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__brand { display: block; flex-shrink: 0; }
.nav__brand img { height: 62px; width: auto; transition: height .5s var(--ease-out); }
.nav.is-scrolled .nav__brand img { height: 52px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  position: relative;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--cream-70);
  transition: color .3s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease-out);
}

.nav__link:hover,
.nav__link.is-active { color: var(--cream); }

.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }

/* Botón */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  padding: 1rem 1.9rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  border: 1px solid var(--cream);
  isolation: isolate;
  transition: color .5s var(--ease-out), border-color .5s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--cream);
  clip-path: inset(100% 0 0 0);
  transition: clip-path .55s var(--ease-out);
}

.btn:hover { color: var(--green-900); }
.btn:hover::before { clip-path: inset(0 0 0 0); }

.btn--solid { background: var(--cream); color: var(--green-900); }
.btn--solid::before { background: var(--green-600); }
.btn--solid:hover { color: var(--cream); border-color: var(--green-600); }

.btn--sm { padding: .8rem 1.4rem; font-size: .66rem; }

.btn--dark { background: var(--green-900); color: var(--cream); border-color: var(--green-900); }
.btn--dark::before { background: var(--green-600); }
.btn--dark:hover { color: var(--cream); }
.btn--dark.btn--glow,
.btn--dark.btn--glow:hover { border-color: var(--green-900); }

/* Glow caminante: una luz verde salvia recorre el borde */
@property --glow-angle {
  syntax: "<angle>";
  inherits: true;
  initial-value: 0deg;
}

.btn--glow {
  --glow: 150, 190, 165;            /* verde de marca aclarado para que se lea sobre el fondo */
  --glow-core: 214, 236, 222;
  border-color: rgba(242, 242, 233, .45);
  --glow-ring: conic-gradient(from var(--glow-angle),
    transparent 0deg 250deg,
    rgba(var(--glow), .25) 290deg,
    rgba(var(--glow), .9) 335deg,
    rgba(var(--glow-core), 1) 350deg,
    transparent 360deg);
  animation: glow-orbit 6s linear infinite;
}

.hero__actions .btn--glow + .btn--glow { animation-delay: -3s; }

/* Anillo nítido sobre el borde */
.btn--glow::after,
.btn__glow::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  background: var(--glow-ring);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

/* Halo difuminado detrás del anillo */
.btn__glow {
  position: absolute;
  inset: 0;
  z-index: -2;
  filter: blur(6px);
  opacity: .85;
  pointer-events: none;
}

.btn__glow::before { padding: 2px; }

.btn--glow:hover { border-color: var(--cream); }
.btn--solid.btn--glow { --glow: 120, 165, 138; --glow-core: 160, 200, 175; border-color: var(--cream); }
.btn--solid.btn--glow:hover { border-color: var(--green-600); }

@keyframes glow-orbit { to { --glow-angle: 360deg; } }

.btn__arrow { width: 18px; height: auto; transition: transform .5s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* Hamburguesa */
.nav__toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
}

.nav__toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1px;
  background: var(--cream);
  transition: transform .5s var(--ease-out), top .5s var(--ease-out), width .5s var(--ease-out);
}

.nav__toggle span:nth-child(1) { top: 17px; }
.nav__toggle span:nth-child(2) { top: 26px; left: auto; width: 14px; }

.nav.is-open .nav__toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { top: 22px; width: 24px; transform: rotate(-45deg); }

/* Menú mobile */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--nav-h) + 3rem) var(--gutter) 2.5rem;
  background: var(--green-900);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .9s var(--ease-in-out), visibility 0s linear .9s;
}

.menu.is-open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path .9s var(--ease-in-out), visibility 0s;
}

.menu__links { list-style: none; margin: 0; padding: 0; }

.menu__links li { overflow: hidden; border-bottom: 1px solid var(--cream-15); }

.menu__links a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem 0;
  font-family: var(--font-title);
  font-size: clamp(2rem, 9vw, 3rem);
  line-height: 1.1;
  transform: translateY(110%);
  transition: transform .8s var(--ease-out);
}

.menu__links a small {
  font-family: var(--font-body);
  font-size: .65rem;
  letter-spacing: .25em;
  color: var(--cream-40);
}

.menu.is-open .menu__links a { transform: none; transition-delay: calc(.3s + var(--i) * 70ms); }

.menu__foot {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  opacity: 0;
  transition: opacity .6s ease;
}

.menu.is-open .menu__foot { opacity: 1; transition-delay: .7s; }

.menu__tagline {
  margin: 0;
  font-size: .68rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--cream-40);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--green-950);
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  filter: saturate(.75) contrast(1.02);
  transition: transform 2.8s var(--ease-out);
  will-change: transform;
}

.is-loaded .hero__video { transform: scale(1); }

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(31, 47, 39, .7) 0%, rgba(31, 47, 39, .15) 28%, rgba(31, 47, 39, .25) 55%, rgba(31, 47, 39, .95) 100%),
    linear-gradient(90deg, rgba(31, 47, 39, .9) 0%, rgba(31, 47, 39, .78) 32%, rgba(31, 47, 39, .45) 52%, rgba(31, 47, 39, .08) 78%);
}

.hero__overlay::after { /* grano fino: disimula la compresión del video */
  content: "";
  position: absolute;
  inset: 0;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hero__content {
  width: 100%;
  max-width: calc(1440px + var(--gutter) * 2); /* misma línea que la navbar */
  margin: 0 auto;
  padding: calc(var(--nav-h) + clamp(1.5rem, 5vh, 4rem)) var(--gutter) clamp(2rem, 5vh, 3.5rem);
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 clamp(1.25rem, 3vh, 2rem);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: rgba(242, 242, 233, .85);
}

.hero__eyebrow::before {
  content: "";
  width: 48px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease-out) .2s;
}

.is-loaded .hero__eyebrow::before { transform: scaleX(1); }

.hero__title {
  margin: 0;
  max-width: 21ch;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(2.15rem, min(4.2vw, 7.2vh), 4.6rem);
  line-height: 1.08;
  text-shadow: 0 2px 24px rgba(20, 30, 25, .35);
  letter-spacing: -.005em;
}

.hero__title em { font-style: normal; color: #dfe3db; }

.hero__lead {
  max-width: 58ch;
  margin: clamp(1.25rem, 3vh, 2rem) 0 0;
  font-size: clamp(.92rem, 1.05vw, 1.04rem);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(242, 242, 233, .9);
}

.hero__lead p { margin: 0; text-shadow: 0 1px 14px rgba(20, 30, 25, .55); }
.hero__lead p + p { margin-top: .9em; }

.hero__lead-strong {
  font-weight: 500;
  color: var(--cream);
  letter-spacing: .02em;
}

.btn__icon { width: 17px; height: 17px; flex-shrink: 0; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: clamp(1.5rem, 3.5vh, 2.5rem);
}

.hero__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(1.75rem, 5vh, 4.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--cream-15);
}

.hero__values {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .68rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--cream-70);
}

.hero__values li { display: flex; align-items: center; gap: 1rem; }
.hero__values li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--cream-40); }

.hero__scroll {
  margin-right: 5.5rem; /* deja lugar al botón flotante de WhatsApp */
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .66rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--cream-70);
}

.hero__scroll-line {
  position: relative;
  width: 1px;
  height: 48px;
  background: var(--cream-15);
  overflow: hidden;
}

.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cream);
  animation: scroll-line 2.2s var(--ease-in-out) infinite;
}

@keyframes scroll-line {
  0% { transform: translateY(-100%); }
  55%, 100% { transform: translateY(100%); }
}

/* Revelados de entrada: hero con body.is-loaded, el resto al entrar en pantalla (.is-inview) */
.reveal-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.reveal-line > span { display: block; transform: translateY(105%); transition: transform 1.3s var(--ease-out); transition-delay: calc(var(--d, 0) * 1s); }
.is-loaded .reveal-line > span { transform: none; }

/* Título partido en palabras (JS: [data-split]) */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split-word > span { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease-out); transition-delay: calc(.15s + var(--i) * 40ms); }
.is-loaded .hero .split-word > span,
.is-inview .split-word > span { transform: none; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.1s ease, transform 1.3s var(--ease-out); transition-delay: calc(var(--d, 0) * 1s); }
.is-loaded .hero .reveal,
.reveal.is-inview { opacity: 1; transform: none; }

.nav__inner > * { opacity: 0; transform: translateY(-12px); transition: opacity 1s ease .35s, transform 1.2s var(--ease-out) .35s; }
.is-loaded .nav__inner > * { opacity: 1; transform: none; }


/* ==========================================================================
   Sobre mí
   ========================================================================== */

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--green-600);
}

.section-eyebrow span {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: .05em;
  color: var(--green-900);
}

.section-eyebrow span::after {
  content: "";
  width: 40px;
  height: 1px;
  background: currentColor;
  opacity: .4;
}

.about {
  --ink: #293d33;
  --ink-soft: #56655c;
  --line: rgba(41, 61, 51, .16);
  position: relative;
  overflow: hidden;
  padding: clamp(6rem, 12vw, 11rem) var(--gutter);
  color: var(--ink);
  background: var(--cream);
}

.about__watermark {
  position: absolute;
  top: 6%;
  right: -6%;
  width: clamp(320px, 42vw, 640px);
  height: auto;
  opacity: .045;
  pointer-events: none;
}

.about__inner {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: center;
}

/* Imágenes */
.about__media {
  position: relative;
  padding: 0 14% 16% 0;
}

.about__outline { /* marco fino desplazado detrás de la foto principal */
  position: absolute;
  top: 2.25rem;
  left: 2.25rem;
  right: calc(14% - 2.25rem);
  bottom: calc(16% - 2.25rem);
  border: 1px solid var(--line);
  pointer-events: none;
}

.about__frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #dcdcd2;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.6s var(--ease-in-out);
}

.about__media.is-inview .about__frame { clip-path: inset(0 0 0 0); }

.about__frame--main { aspect-ratio: 4 / 5; }

.about__frame--sub {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42%;
  aspect-ratio: 640 / 820;
  border: clamp(8px, 1vw, 14px) solid var(--cream);
  transition-delay: .35s;
}

.about__parallax { position: absolute; inset: -11% 0; will-change: transform; }

.about__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.25);
  transition: transform 2.2s var(--ease-out);
}

.about__frame--main img { object-position: 50% 40%; }
.about__media.is-inview .about__frame img { transform: scale(1); }
.about__media.is-inview .about__frame--sub img { transition-delay: .35s; }

.about__badge {
  position: absolute;
  left: 0;
  bottom: 4%;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.about__badge-line { width: 48px; height: 1px; background: currentColor; }

/* Texto */
.about__title {
  margin: 0;
  max-width: 16ch;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(2.2rem, 3.9vw, 4rem);
  line-height: 1.1;
  color: var(--ink);
}

.about__title em { font-style: normal; color: var(--green-600); }

.about__text {
  max-width: 52ch;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-size: clamp(.95rem, 1.05vw, 1.04rem);
  font-weight: 400;
  line-height: 1.8;
  color: var(--ink-soft);
}

.about__text p { margin: 0; }
.about__text p + p { margin-top: 1em; }

.about__pillars {
  margin: clamp(2.25rem, 4vw, 3.25rem) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.about__pillars li {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  align-items: baseline;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  transition: opacity 1.1s ease, transform 1.3s var(--ease-out), padding-left .6s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 1s), calc(var(--d, 0) * 1s), 0s;
}

.about__pillars li:hover { padding-left: .75rem; }

.about__pillar-num {
  font-family: var(--font-title);
  font-size: 1rem;
  color: var(--green-600);
}

.about__pillars h3 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1.15rem, 1.4vw, 1.35rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink);
}

.about__pillars p {
  margin: .4rem 0 0;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--ink-soft);
}


.about__lead {
  max-width: 34ch;
  margin: clamp(1.25rem, 2.5vw, 1.75rem) 0 0;
  font-family: var(--font-title);
  font-size: clamp(1.3rem, 1.75vw, 1.65rem);
  line-height: 1.4;
  color: var(--green-600);
}

.about__focus { margin-top: clamp(2rem, 3.5vw, 2.75rem); }

.about__focus-intro {
  margin: 0 0 1.1rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .3em;
  line-height: 1.8;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.about__focus .about__pillars { margin-top: 0; }

.about__quote {
  position: relative;
  margin: clamp(2rem, 3.5vw, 2.75rem) 0 0;
  padding: .25rem 0 .25rem 1.75rem;
  border-left: 1px solid var(--green-900);
}

.about__quote p {
  max-width: 52ch;
  margin: 0;
  font-size: .95rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

.about__quote .about__quote-main {
  margin-bottom: .75rem;
  font-family: var(--font-title);
  font-size: clamp(1.2rem, 1.5vw, 1.4rem);
  line-height: 1.45;
  color: var(--ink);
}

/* Con más texto, las fotos acompañan el scroll en desktop */
@media (min-width: 961px) {
  .about__inner { align-items: start; }
  .about__media { position: sticky; top: calc(var(--nav-h) + 3rem); }
}

.about__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem 2rem;
  margin-top: clamp(2.25rem, 4vw, 3rem);
}

.about__sign { display: flex; flex-direction: column; gap: .3rem; }

.about__sign-name {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
  line-height: 1;
  color: var(--ink);
}

.about__sign-role {
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ==========================================================================
   Áreas de práctica
   ========================================================================== */

.section-eyebrow--light { color: var(--cream-70); }
.section-eyebrow--light span { color: var(--cream); }

.services {
  position: relative;
  padding: clamp(6rem, 12vw, 11rem) var(--gutter);
  background:
    radial-gradient(ellipse 60% 40% at 85% 0%, rgba(81, 96, 88, .35), transparent 70%),
    var(--green-900);
}

.services__inner { max-width: 1440px; margin: 0 auto; }

.services__head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2rem clamp(3rem, 8vw, 8rem);
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.services__title {
  margin: 0;
  max-width: 17ch;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(2.2rem, 3.9vw, 4rem);
  line-height: 1.1;
}

.services__title em { font-style: normal; color: #b9c7bd; }

.services__intro p {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(.95rem, 1.05vw, 1.04rem);
  line-height: 1.8;
  color: var(--cream-70);
}

.services__places {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.services__places a {
  display: inline-block;
  padding: .5rem .95rem;
  color: inherit;
  border: 1px solid var(--cream-15);
  border-radius: 100px;
  transition: background-color .4s ease, color .3s ease, border-color .3s ease;
}

.services__places a:hover { color: var(--green-900); background: var(--cream); border-color: var(--cream); }

.services__places li {
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--cream);
}

/* Grilla */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.9rem, 1.4vw, 1.25rem);
}

/* Card */
.service {
  --mx: 50%;
  --my: 0%;
  position: relative;
  min-height: 380px;
  display: flex;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(160deg, rgba(242, 242, 233, .055), rgba(242, 242, 233, .015));
  border: 1px solid rgba(242, 242, 233, .1);
  transition: border-color .5s ease, opacity 1.1s ease, transform 1.3s var(--ease-out);
  transition-delay: 0s, calc(var(--d, 0) * 1s), calc(var(--d, 0) * 1s);
}

.service::before { /* luz que sigue al mouse */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(143, 168, 152, .16), transparent 65%);
  opacity: 0;
  transition: opacity .5s ease;
}

.service::after { /* línea superior que se dibuja en hover */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(185, 199, 189, .9), transparent);
  transform: scaleX(0);
  transition: transform .9s var(--ease-out);
}

.service:hover { border-color: rgba(242, 242, 233, .2); }
.service:hover::before { opacity: 1; }
.service:hover::after { transform: scaleX(1); }

.service__body {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: clamp(1.6rem, 2.4vw, 2.25rem);
}

.service__num {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-title);
  font-size: 1rem;
  color: #b9c7bd;
}

.service__num::after {
  content: "";
  flex: 0 0 32px;
  height: 1px;
  background: currentColor;
  opacity: .45;
  transition: flex-basis .7s var(--ease-out);
}

.service:hover .service__num::after { flex-basis: 64px; }

.service__title {
  margin: auto 0 0;
  padding-top: 3rem;
  max-width: 18ch;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(1.45rem, 1.75vw, 1.85rem);
  line-height: 1.18;
  color: var(--cream);
}

.service__desc {
  margin: .9rem 0 0;
  max-width: 40ch;
  font-size: .92rem;
  line-height: 1.7;
  color: var(--cream-70);
}

.service__more {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  align-self: flex-start;
  margin-top: 1.75rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--cream);
}

.service__more-icon {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid var(--cream-40);
  border-radius: 50%;
  transition: background-color .5s var(--ease-out), border-color .5s ease, transform .6s var(--ease-out);
}

.service__more-icon::before,
.service__more-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1px;
  background: var(--cream);
  transform: translate(-50%, -50%);
  transition: background-color .4s ease;
}

.service__more-icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.service__more:hover .service__more-icon,
.service__more:focus-visible .service__more-icon {
  background: var(--cream);
  border-color: var(--cream);
  transform: rotate(90deg);
}

.service__more:hover .service__more-icon::before,
.service__more:hover .service__more-icon::after,
.service__more:focus-visible .service__more-icon::before,
.service__more:focus-visible .service__more-icon::after { background: var(--green-900); }

/* Panel de zonas: drop down que baja sobre la card (no mueve la grilla) */
.service__panel {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 2.2vw, 2rem);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(81, 96, 88, .55), transparent 70%),
    #22342b;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .85s var(--ease-in-out);
}

.service.is-open .service__panel { clip-path: inset(0 0 0 0); }

.service__panel-title {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1rem;
  padding: .55rem 3rem 0 0;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: #b9c7bd;
}

.service__panel-title svg { width: 18px; height: 18px; flex-shrink: 0; }

.service__zones {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service__zones li {
  border-top: 1px solid var(--cream-15);
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity .4s ease, transform .6s var(--ease-out);
}

.service__zones li:last-child { border-bottom: 1px solid var(--cream-15); }

.service.is-open .service__zones li { opacity: 1; transform: none; }
.service.is-open .service__zones li:nth-child(1) { transition-delay: .3s; }
.service.is-open .service__zones li:nth-child(2) { transition-delay: .37s; }
.service.is-open .service__zones li:nth-child(3) { transition-delay: .44s; }
.service.is-open .service__zones li:nth-child(4) { transition-delay: .51s; }

.service__zone {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 1rem;
  padding: .8rem .25rem;
  overflow: hidden;
  isolation: isolate;
  transition: padding-left .5s var(--ease-out);
}

.service__zone::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(242, 242, 233, .09), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease-out);
}

.service__zone:hover,
.service__zone:focus-visible { padding-left: .9rem; }

.service__zone:hover::before,
.service__zone:focus-visible::before { transform: scaleX(1); }

.service__zone-name {
  font-family: var(--font-title);
  font-size: 1.3rem;
  line-height: 1.15;
  color: var(--cream);
}

.service__zone-region {
  grid-row: 2;
  margin-top: .2rem;
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--cream-40);
}

.service__zone-arrow {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--cream-15);
  border-radius: 50%;
  color: var(--cream);
  transition: background-color .5s var(--ease-out), border-color .5s ease, color .4s ease;
}

.service__zone-arrow svg { width: 14px; height: auto; transition: transform .5s var(--ease-out); }

.service__zone:hover .service__zone-arrow,
.service__zone:focus-visible .service__zone-arrow { background: var(--cream); border-color: var(--cream); color: var(--green-900); }

.service__zone:hover .service__zone-arrow svg,
.service__zone:focus-visible .service__zone-arrow svg { transform: translateX(2px); }

.service__close {
  position: absolute;
  top: clamp(1rem, 1.8vw, 1.5rem);
  right: clamp(1rem, 1.8vw, 1.5rem);
  width: 38px;
  height: 38px;
  border: 1px solid var(--cream-40);
  border-radius: 50%;
  transition: background-color .5s var(--ease-out), border-color .5s ease, transform .6s var(--ease-out);
}

.service__close span::before,
.service__close span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 1px;
  background: var(--cream);
  transform: translate(-50%, -50%) rotate(45deg);
  transition: background-color .4s ease;
}

.service__close span::after { transform: translate(-50%, -50%) rotate(-45deg); }

.service__close:hover { background: var(--cream); border-color: var(--cream); transform: rotate(90deg); }
.service__close:hover span::before,
.service__close:hover span::after { background: var(--green-900); }

/* Card que es un enlace directo (páginas de zona) */
.service--link { color: inherit; }

.service__go {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--cream-40);
  border-radius: 50%;
  transition: background-color .5s var(--ease-out), border-color .5s ease, color .4s ease;
}

.service__go svg { width: 13px; height: auto; transition: transform .5s var(--ease-out); }
.service--link:hover .service__go { background: var(--cream); border-color: var(--cream); color: var(--green-900); }
.service--link:hover .service__go svg { transform: translateX(2px); }
.service--link:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }

/* Card destacada */
.service--featured { grid-column: span 2; }

.service--featured .service__media {
  position: absolute;
  inset: 0 0 0 40%;
  z-index: -2;
  overflow: hidden; /* la foto tiene zoom: que no asome por fuera del degradé */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
}

.service--featured .service__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(41, 61, 51, .6) 0%, rgba(41, 61, 51, .25) 55%, rgba(41, 61, 51, .5) 100%),
    linear-gradient(0deg, rgba(41, 61, 51, .5), transparent 40%);
}

.service--featured .service__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
  filter: saturate(.55) contrast(1.05);
  transform: scale(1.04);
  transition: transform 1.6s var(--ease-out), filter 1s ease;
}

.service--featured:hover .service__media img { transform: scale(1.09); filter: saturate(.75) contrast(1.05); }

.service--featured .service__body { max-width: 60%; }
.service--featured .service__title { font-size: clamp(1.9rem, 2.6vw, 2.7rem); max-width: 14ch; }
.service--featured .service__zones { max-width: 520px; }

.service--featured .service__panel {
  background:
    linear-gradient(90deg, #22342b 0%, #22342b 52%, rgba(34, 52, 43, .55) 78%, rgba(34, 52, 43, .25) 100%);
}

/* Card CTA */
.service--cta {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--green-900);
}

.service--cta::before { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(81, 96, 88, .14), transparent 65%); }
.service--cta::after { display: none; }
.service--cta:hover { border-color: var(--cream); }
.service--cta .service__num { color: var(--green-600); font-size: 1.3rem; }
.service--cta .service__title { color: var(--green-900); }
.service--cta .service__desc { color: #56655c; }
.service--cta .btn { align-self: flex-start; margin-top: 1.75rem; }

/* ==========================================================================
   Preguntas frecuentes
   ========================================================================== */

.faq {
  --ink: #293d33;
  --ink-soft: #56655c;
  --line: rgba(41, 61, 51, .16);
  padding: clamp(6rem, 12vw, 11rem) var(--gutter);
  color: var(--ink);
  background: var(--cream);
}

.faq__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.faq__aside { align-self: stretch; } /* alto completo de la fila: recorrido para el sticky */

.faq__sticky {
  position: sticky;
  top: calc(var(--nav-h) + 2.5rem);
}

.faq__title {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(2.2rem, 3.9vw, 4rem);
  line-height: 1.1;
}

.faq__title em { font-style: normal; color: var(--green-600); }

.faq__intro {
  max-width: 42ch;
  margin: clamp(1.25rem, 2.5vw, 1.75rem) 0 0;
  font-size: clamp(.95rem, 1.05vw, 1.04rem);
  line-height: 1.8;
  color: var(--ink-soft);
}

/* Card de contacto */
.faq__card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  max-width: 440px;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.75rem, 2.6vw, 2.25rem);
  color: var(--cream);
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, rgba(81, 96, 88, .6), transparent 70%),
    var(--green-900);
}

.faq__card-mark {
  position: absolute;
  right: -8%;
  bottom: -18%;
  z-index: -1;
  width: 46%;
  height: auto;
  opacity: .07;
}

.faq__card-title {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  line-height: 1.15;
}

.faq__card-text {
  margin: .6rem 0 1.5rem;
  font-size: .92rem;
  line-height: 1.7;
  color: var(--cream-70);
}

/* Acordeón */
.faq__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.faq__item {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.faq__item::before { /* línea que se dibuja sobre la pregunta abierta */
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--green-900);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .9s var(--ease-out);
}

.faq__item.is-open::before { transform: scaleX(1); }

.faq__q { margin: 0; }

.faq__btn {
  display: grid;
  grid-template-columns: 3.25rem 1fr auto;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: clamp(1.35rem, 2vw, 1.75rem) 0;
  text-align: left;
  color: var(--ink);
}

.faq__num {
  font-family: var(--font-title);
  font-size: 1rem;
  color: var(--green-600);
  transition: color .4s ease;
}

.faq__text {
  font-family: var(--font-title);
  font-size: clamp(1.2rem, 1.6vw, 1.55rem);
  line-height: 1.25;
  transition: transform .6s var(--ease-out), color .4s ease;
}

.faq__btn:hover .faq__text { transform: translateX(6px); }

.faq__icon {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background-color .5s var(--ease-out), border-color .5s ease, transform .7s var(--ease-out);
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform .6s var(--ease-out), background-color .4s ease;
}

.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq__btn:hover .faq__icon { border-color: var(--green-900); }

.faq__item.is-open .faq__icon {
  background: var(--green-900);
  border-color: var(--green-900);
  transform: rotate(180deg);
}

.faq__item.is-open .faq__icon::before,
.faq__item.is-open .faq__icon::after { background: var(--cream); }

.faq__item.is-open .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .7s var(--ease-in-out);
}

.faq__item.is-open .faq__a { grid-template-rows: 1fr; }

.faq__a-inner {
  min-height: 0;
  overflow: hidden;
  padding-left: calc(3.25rem + 1rem);
  padding-right: 3.5rem;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .4s ease, transform .6s var(--ease-out);
}

.faq__item.is-open .faq__a-inner {
  opacity: 1;
  transform: none;
  transition-delay: .2s;
}

.faq__a-inner p {
  max-width: 60ch;
  margin: 0;
  font-size: .98rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

.faq__a-inner p + p { margin-top: .9em; }
.faq__a-inner p:last-child { padding-bottom: clamp(1.5rem, 2.2vw, 2rem); }

/* ==========================================================================
   CTA / Contacto
   ========================================================================== */

.cta {
  --mx: 50%;
  --my: 50%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(7rem, 14vw, 12rem) var(--gutter);
  text-align: center;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(81, 96, 88, .45), transparent 75%),
    var(--green-900);
}

/* Trama de monogramas: se desvanece hacia el centro para que el texto respire */
.cta__pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/patron-isotipo.svg") 0 0 / 150px 150px repeat;
  opacity: .065;
  -webkit-mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, transparent 38%, #000 92%);
  mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, transparent 38%, #000 92%);
  animation: cta-drift 60s linear infinite;
}

/* Misma trama, más clara, visible solo alrededor del cursor */
.cta__pattern--lit {
  opacity: 0;
  -webkit-mask-image: radial-gradient(260px circle at var(--mx) var(--my), #000, transparent 75%);
  mask-image: radial-gradient(260px circle at var(--mx) var(--my), #000, transparent 75%);
  transition: opacity .6s ease;
}

.cta:hover .cta__pattern--lit { opacity: .22; }

@keyframes cta-drift { to { background-position: 150px 150px; } }

.cta__inner {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Monograma que se dibuja al entrar en pantalla */
.cta__mono {
  width: clamp(54px, 6vw, 72px);
  height: auto;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  overflow: visible;
}

.cta__mono path {
  fill: var(--cream);
  fill-opacity: 0;
  stroke: var(--cream);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: var(--len, 4000);
  stroke-dashoffset: var(--len, 4000);
  transition: stroke-dashoffset 2.4s var(--ease-in-out), fill-opacity 1s ease 2s, stroke-opacity 1s ease 2s;
}

.cta__mono.is-inview path {
  stroke-dashoffset: 0;
  fill-opacity: 1;
  stroke-opacity: 0;
}

.cta__eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 clamp(1.25rem, 2.5vw, 1.75rem);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--cream-70);
}

.cta__eyebrow::before,
.cta__eyebrow::after {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}

.cta__title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(2.5rem, 5.6vw, 5.5rem);
  line-height: 1.05;
}

.cta__title em { font-style: normal; color: #b9c7bd; white-space: nowrap; }

.cta__text {
  max-width: 48ch;
  margin: clamp(1.25rem, 2.5vw, 1.75rem) 0 0;
  font-size: clamp(.98rem, 1.15vw, 1.1rem);
  line-height: 1.8;
  color: rgba(242, 242, 233, .82);
}

.cta__actions { margin-top: clamp(2rem, 4vw, 2.75rem); }

.cta__actions .btn { padding: 1.15rem 2.2rem; }

.cta__notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem 1rem;
  margin: clamp(2rem, 4vw, 2.75rem) 0 0;
  padding: 0;
  list-style: none;
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--cream-40);
}

.cta__notes li { display: flex; align-items: center; gap: 1rem; }
.cta__notes li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--cream-40); }

/* ==========================================================================
   Contacto
   ========================================================================== */

.contact {
  --ink: #293d33;
  --ink-soft: #56655c;
  --line: rgba(41, 61, 51, .16);
  padding: clamp(6rem, 12vw, 11rem) var(--gutter);
  color: var(--ink);
  background: var(--cream);
}

.contact__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.contact__title {
  margin: 0;
  max-width: 15ch;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(2.2rem, 3.9vw, 4rem);
  line-height: 1.1;
}

.contact__title em { font-style: normal; color: var(--green-600); }

.contact__intro {
  max-width: 44ch;
  margin: clamp(1.25rem, 2.5vw, 1.75rem) 0 0;
  font-size: clamp(.95rem, 1.05vw, 1.04rem);
  line-height: 1.8;
  color: var(--ink-soft);
}

.contact__label {
  margin: 0 0 1rem;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--green-600);
}

/* Canal WhatsApp */
.contact__channels { margin-top: clamp(2rem, 4vw, 2.75rem); max-width: 440px; }

.contact__channel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}

.contact__channel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(41, 61, 51, .06), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--ease-out);
}

.contact__channel:hover::before { transform: scaleX(1); }
.contact__channel + .contact__channel { border-top: 0; }

.contact__channel-icon--line { background: transparent; color: var(--green-900); border: 1px solid var(--line); }
.contact__channel:hover .contact__channel-icon--line { background: var(--green-900); color: var(--cream); border-color: var(--green-900); }

.contact__channel-icon,
.contact__channel-arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  transition: background-color .5s var(--ease-out), color .4s ease, border-color .4s ease, transform .6s var(--ease-out);
}

.contact__channel-icon { background: var(--green-900); color: var(--cream); }
.contact__channel-arrow { width: 40px; height: 40px; border: 1px solid var(--line); color: var(--ink); }

.contact__channel-icon .contact__svg { width: 20px; height: 20px; }
.contact__channel-arrow .contact__svg { width: 15px; height: auto; }

.contact__channel:hover .contact__channel-icon { transform: scale(1.06); }
.contact__channel:hover .contact__channel-arrow { background: var(--green-900); border-color: var(--green-900); color: var(--cream); }

.contact__channel-text { display: flex; flex-direction: column; gap: .2rem; }

.contact__channel-label {
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.contact__channel-value {
  font-family: var(--font-title);
  font-size: 1.3rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

/* Zonas */
.contact__zones { margin-top: clamp(2rem, 4vw, 2.75rem); max-width: 440px; }

.contact__zones ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact__zones li {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.contact__zone-name { font-family: var(--font-title); font-size: 1.2rem; line-height: 1.2; transition: color .3s ease; }
a.contact__zone-name:hover { color: var(--green-600); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

.contact__zone-region {
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Formulario */
.contact__form {
  position: relative;
  padding: clamp(1.75rem, 3.5vw, 3.25rem);
  background: #f9f9f4;
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(41, 61, 51, .28);
}

.contact__form::before { /* filete superior verde */
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--green-900), var(--green-600));
}

.contact__form-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.contact__form-title {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 2.1vw, 2rem);
  line-height: 1.15;
}

.contact__form-note {
  margin: 0;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--green-600);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.9rem 1.75rem;
}

/* Campo con label flotante */
.field { position: relative; }
.field--full { grid-column: 1 / -1; }

.field__input {
  width: 100%;
  padding: 1.35rem 0 .6rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(41, 61, 51, .25);
  border-radius: 0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.field__input--area { resize: vertical; min-height: 110px; line-height: 1.6; }

.field--select .field__input { padding-right: 1.75rem; cursor: pointer; }
.field--select select:invalid { color: transparent; }
.field--select option { color: var(--ink); }

.field__label {
  position: absolute;
  left: 0;
  top: 1.35rem;
  font-size: 1rem;
  color: var(--ink-soft);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .45s var(--ease-out), color .3s ease, letter-spacing .45s var(--ease-out);
}

.field__input:focus + .field__label,
.field:not(.field--select) .field__input:not(:placeholder-shown) + .field__label,
.field--select .field__input:valid + .field__label {
  transform: translateY(-1.35rem) scale(.68);
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--green-600);
}

.field__chev {
  position: absolute;
  right: .25rem;
  top: 1.75rem;
  width: 12px;
  height: auto;
  color: var(--ink-soft);
  pointer-events: none;
  transition: transform .4s var(--ease-out);
}

.field--select:focus-within .field__chev { transform: rotate(180deg); }

.field__line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--green-900);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease-out);
}

.field--area .field__line,
.field__input--area ~ .field__line { bottom: 6px; }

.field__input:focus ~ .field__line { transform: scaleX(1); }

.field.is-invalid .field__input { border-bottom-color: #9b4a3c; }
.field.is-invalid .field__label { color: #9b4a3c; }

/* Checkbox de urgencia */
.urgent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  margin-top: 1.9rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color .4s ease, background-color .4s ease;
}

.urgent:hover { border-color: rgba(41, 61, 51, .35); }

.urgent__input { position: absolute; opacity: 0; pointer-events: none; }

.urgent__box {
  position: relative;
  width: 22px;
  height: 22px;
  margin-top: .1rem;
  border: 1px solid rgba(41, 61, 51, .4);
  transition: background-color .35s ease, border-color .35s ease;
}

.urgent__box::after { /* tilde */
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 11px;
  border: solid var(--cream);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .35s var(--ease-out);
}

.urgent__input:checked + .urgent__box { background: var(--green-900); border-color: var(--green-900); }
.urgent__input:checked + .urgent__box::after { transform: rotate(45deg) scale(1); }
.urgent:has(.urgent__input:checked) { border-color: var(--green-900); background: rgba(41, 61, 51, .04); }
.urgent__input:focus-visible + .urgent__box { outline: 2px solid var(--green-600); outline-offset: 3px; }

.urgent__text { display: flex; flex-direction: column; gap: .2rem; }
.urgent__text strong { font-size: .7rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; }
.urgent__text span { font-size: .9rem; color: var(--ink-soft); }

.contact__submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}

.contact__error { margin: 0; font-size: .85rem; color: #9b4a3c; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 9vw, 8rem) var(--gutter) 0;
  color: var(--cream);
  background:
    radial-gradient(ellipse 60% 50% at 15% 0%, rgba(81, 96, 88, .3), transparent 70%),
    var(--green-950);
}

.footer__inner { position: relative; z-index: 1; max-width: 1440px; margin: 0 auto; }

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr);
  gap: clamp(3rem, 7vw, 7rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.footer__brand img { height: 84px; width: auto; }

.footer__tagline {
  max-width: 26ch;
  margin: 1.5rem 0 2rem;
  font-family: var(--font-title);
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  line-height: 1.35;
  color: rgba(242, 242, 233, .85);
}

.footer__col .footer__label--sub { margin-top: 2.5rem; }

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__contact li { display: flex; flex-direction: column; gap: .2rem; }

.footer__contact span {
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--cream-40);
}

.footer__contact a {
  font-size: .9rem;
  color: rgba(242, 242, 233, .85);
  transition: color .3s ease;
}

.footer__contact a:hover { color: #b9c7bd; }

.footer__cols {
  display: grid;
  grid-template-columns: .8fr 1.3fr .9fr;
  gap: 2.5rem;
}

.footer__label {
  margin: 0 0 1.4rem;
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: #b9c7bd;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__col a {
  position: relative;
  font-size: .92rem;
  color: var(--cream-70);
  transition: color .3s ease;
}

.footer__col a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease-out);
}

.footer__col a:hover { color: var(--cream); }
.footer__col a:hover::after { transform: scaleX(1); transform-origin: left; }

.footer__more {
  font-size: .66rem !important;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--cream) !important;
}

.footer__zones li {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  font-family: var(--font-title);
  font-size: 1.15rem;
  line-height: 1.2;
}

.footer__zones a { transition: color .3s ease; }
.footer__zones a:hover { color: #b9c7bd; }

.footer__zones li span {
  font-family: var(--font-body);
  font-size: .56rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--cream-40);
}

.footer__bottom {
  padding: 2rem 0 clamp(2.5rem, 4vw, 3.5rem);
  border-top: 1px solid var(--cream-15);
}

.footer__legal {
  max-width: 70ch;
  margin: 0 0 1.25rem;
  font-size: .78rem;
  line-height: 1.7;
  color: var(--cream-40);
}

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  font-size: .66rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cream-70);
}

.footer__meta p { margin: 0; }

.footer__top-btn {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  font-weight: 600;
  color: var(--cream);
}

.footer__top-btn span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--cream-40);
  border-radius: 50%;
  transition: background-color .5s var(--ease-out), border-color .4s ease, color .4s ease;
}

.footer__top-btn svg { width: 9px; height: auto; transition: transform .5s var(--ease-out); }
.footer__top-btn:hover span { background: var(--cream); border-color: var(--cream); color: var(--green-900); }
.footer__top-btn:hover svg { transform: translateY(-3px); }

.footer__credits a {
  color: var(--cream);
  border-bottom: 1px solid var(--cream-40);
  padding-bottom: 2px;
  transition: border-color .3s ease, color .3s ease;
}

.footer__credits a:hover { color: #b9c7bd; border-color: #b9c7bd; }

/* ==========================================================================
   Página de servicio (generada por _build/build.py)
   ========================================================================== */

.is-loaded .sp-hero .reveal { opacity: 1; transform: none; }
.is-loaded .sp-hero .split-word > span { transform: none; }

/* Hero */
.sp-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: calc(var(--nav-h) + clamp(3rem, 8vh, 6rem)) var(--gutter) clamp(2.5rem, 5vh, 3.5rem);
  background:
    radial-gradient(ellipse 55% 70% at 85% 30%, rgba(81, 96, 88, .5), transparent 70%),
    var(--green-900);
}

.sp-hero__pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/patron-isotipo.svg") 0 0 / 150px 150px repeat;
  opacity: .06;
  -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 85%);
  mask-image: linear-gradient(90deg, transparent 35%, #000 85%);
  animation: cta-drift 60s linear infinite;
}

.sp-hero__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  column-gap: clamp(3rem, 7vw, 7rem);
  align-items: end;
}

.sp-hero__main { min-width: 0; }

/* Retrato con marco desplazado */
.sp-hero__media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
}

.sp-hero__media::before {
  content: "";
  position: absolute;
  inset: 1.5rem -1.5rem -1.5rem 1.5rem;
  border: 1px solid var(--cream-15);
}

.sp-hero__media picture,
.sp-hero__media img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-hero__media img { filter: saturate(.7) contrast(1.03); }

.sp-hero__media::after { /* velo verde para integrar la foto */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(41, 61, 51, .55));
  pointer-events: none;
}

.sp-zones { grid-column: 1 / -1; }

.sp-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  margin-bottom: clamp(2rem, 5vh, 3rem);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--cream-40);
}

.sp-crumbs a { color: var(--cream-70); transition: color .3s ease; }
.sp-crumbs a:hover { color: var(--cream); }
.sp-crumbs [aria-current] { color: var(--cream); }

.sp-hero__title {
  margin: 0;
  max-width: 24ch;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(2rem, min(3.7vw, 6.6vh), 3.9rem);
  line-height: 1.1;
}

.sp-hero__lead {
  max-width: 58ch;
  margin: clamp(1.25rem, 3vh, 2rem) 0 0;
  font-size: clamp(.98rem, 1.15vw, 1.1rem);
  font-weight: 300;
  line-height: 1.8;
  color: rgba(242, 242, 233, .88);
}

.sp-zones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: clamp(2.5rem, 7vh, 4.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--cream-15);
}

.sp-zones p {
  margin: 0;
  font-size: .68rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--cream-70);
}

.sp-zones strong { font-weight: 600; color: var(--cream); }
.sp-zones p a { border-bottom: 1px solid var(--cream-40); transition: border-color .3s ease; }
.sp-zones p a:hover { border-color: var(--cream); }

.sp-zones ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }

.sp-zones a {
  display: inline-block;
  padding: .55rem 1rem;
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cream-70);
  border: 1px solid var(--cream-15);
  border-radius: 100px;
  transition: color .3s ease, border-color .3s ease, background-color .4s ease;
}

.sp-zones a:hover { color: var(--cream); border-color: var(--cream-40); }
.sp-zones a.is-current { color: var(--green-900); background: var(--cream); border-color: var(--cream); }

/* Cuerpo */
.sp-body {
  --ink: #293d33;
  --ink-soft: #56655c;
  --line: rgba(41, 61, 51, .16);
  padding: clamp(5rem, 10vw, 9rem) var(--gutter);
  color: var(--ink);
  background: var(--cream);
}

.sp-body__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr);
  gap: clamp(3rem, 7vw, 7rem);
}

/* Índice lateral */
.sp-toc { align-self: stretch; }
.sp-toc__sticky { position: sticky; top: calc(var(--nav-h) + 2.5rem); }

.sp-toc__label {
  margin: 0 0 1.25rem;
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--green-600);
}

.sp-toc ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }

.sp-toc li { border-bottom: 1px solid var(--line); }

.sp-toc a {
  position: relative;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  align-items: baseline;
  padding: .95rem 0;
  font-size: .9rem;
  line-height: 1.45;
  color: var(--ink-soft);
  transition: color .3s ease, padding-left .5s var(--ease-out);
}

.sp-toc a span { font-family: var(--font-title); font-size: .95rem; color: var(--green-600); }

.sp-toc a::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 100%;
  height: 1px;
  background: var(--green-900);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--ease-out);
}

.sp-toc a:hover { color: var(--ink); padding-left: .4rem; }
.sp-toc a.is-active { color: var(--ink); }
.sp-toc a.is-active::before { transform: scaleX(1); }

.sp-toc__cta {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1.75rem;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink);
}

.sp-toc__icon { width: 18px; height: 18px; color: var(--green-600); }
.sp-toc__cta span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 3px; transition: background-size .5s var(--ease-out); }
.sp-toc__cta:hover span { background-size: 100% 1px; }

/* Contenido */
.sp-content { max-width: 780px; }

.sp-intro p {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1.35rem, 1.9vw, 1.75rem);
  line-height: 1.5;
  color: var(--ink);
}

.sp-intro p + p {
  margin-top: 1.25rem;
  font-family: var(--font-body);
  font-size: clamp(.98rem, 1.1vw, 1.05rem);
  line-height: 1.85;
  color: var(--ink-soft);
}

.sp-section {
  position: relative;
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-top: clamp(2rem, 3.5vw, 2.75rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-h) + 1.5rem);
}

.sp-section__num {
  display: block;
  margin-bottom: .9rem;
  font-family: var(--font-title);
  font-size: 1rem;
  color: var(--green-600);
}

.sp-section h2 {
  margin: 0 0 1.5rem;
  max-width: 24ch;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  line-height: 1.15;
}

.sp-section > p {
  max-width: 66ch;
  margin: 0;
  font-size: clamp(.98rem, 1.1vw, 1.05rem);
  line-height: 1.85;
  color: var(--ink-soft);
}

.sp-section > p + p,
.sp-section > * + p { margin-top: 1.1rem; }

/* Frase destacada */
.sp-section > .sp-callout {
  margin: 1.75rem 0;
  padding: .25rem 0 .25rem 1.75rem;
  border-left: 1px solid var(--green-900);
  font-family: var(--font-title);
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
  line-height: 1.45;
  color: var(--ink);
}

/* Figuras numeradas */
.sp-figs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 1.75rem 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

.sp-figs li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  font-family: var(--font-title);
  font-size: clamp(1.1rem, 1.35vw, 1.3rem);
  background: var(--cream);
  transition: background-color .5s ease;
}

.sp-figs li:hover { background: #f9f9f4; }
.sp-figs span { font-size: .9rem; color: var(--green-600); }

/* Píldoras */
.sp-chips { margin: 1.75rem 0; }

.sp-chips p {
  margin: 0 0 .9rem;
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--green-600);
}

.sp-chips ul { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0; padding: 0; list-style: none; }

.sp-chips li {
  padding: .6rem 1.05rem;
  font-size: .82rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 100px;
  background: #f9f9f4;
}

/* Lista con título y descripción */
.sp-items { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }

.sp-items li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .6s var(--ease-out);
}

.sp-items li:hover { padding-left: .6rem; }

.sp-items__num { font-family: var(--font-title); font-size: 1rem; color: var(--green-600); padding-top: .2rem; }

.sp-items h3 {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(1.2rem, 1.5vw, 1.4rem);
  line-height: 1.3;
}

.sp-items p {
  margin: .5rem 0 0;
  max-width: 62ch;
  font-size: .95rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.sp-faq .faq__list { margin-top: .5rem; }
.sp-faq .faq__text { font-size: clamp(1.1rem, 1.4vw, 1.3rem); }

/* CTA: variante con título más largo y nota */
.cta__title--sm { font-size: clamp(2.1rem, 4.2vw, 4rem); }

.cta__note {
  max-width: 56ch;
  margin: clamp(1.75rem, 3.5vw, 2.5rem) 0 0;
  font-size: .82rem;
  line-height: 1.7;
  color: var(--cream-40);
}

/* Otras áreas */
.sp-others {
  --ink: #293d33;
  --line: rgba(41, 61, 51, .16);
  padding: clamp(5rem, 10vw, 8rem) var(--gutter);
  color: var(--ink);
  background: var(--cream);
}

.sp-others__inner { max-width: 1440px; margin: 0 auto; }

.sp-others__head h2 {
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  line-height: 1.1;
}

.sp-others__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 2rem; }
.sp-others__head > p { flex-basis: 100%; }

.sp-others__all {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--green-900);
}

.sp-others__all svg { width: 14px; height: auto; transition: transform .5s var(--ease-out); }
.sp-others__all:hover svg { transform: translateX(4px); }

.sp-others__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 3vw, 3rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.sp-others__list li { border-top: 1px solid var(--line); }

.sp-others__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  font-family: var(--font-title);
  font-size: 1.15rem;
  line-height: 1.3;
  transition: padding-left .5s var(--ease-out);
}

.sp-others__list a:hover { padding-left: .5rem; }

.sp-others__arrow {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background-color .5s var(--ease-out), border-color .4s ease, color .4s ease;
}

.sp-others__arrow svg { width: 13px; height: auto; }
.sp-others__list a:hover .sp-others__arrow { background: var(--green-900); border-color: var(--green-900); color: var(--cream); }

/* ==========================================================================
   Blog (blog/index.php y blog/nota.php)
   ========================================================================== */

.bl-hero__inner { grid-template-columns: minmax(0, 1fr); }
.bl-hero .sp-hero__title { max-width: 20ch; }

/* Filtros por categoría */
.bl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: clamp(2rem, 5vh, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--cream-15);
}

.bl-chips a {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .6rem 1.05rem;
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cream-70);
  border: 1px solid var(--cream-15);
  border-radius: 100px;
  transition: color .3s ease, border-color .3s ease, background-color .4s ease;
}

.bl-chips small { font-size: .62rem; letter-spacing: 0; color: var(--cream-40); }
.bl-chips a:hover { color: var(--cream); border-color: var(--cream-40); }
.bl-chips a.is-current { color: var(--green-900); background: var(--cream); border-color: var(--cream); }
.bl-chips a.is-current small { color: var(--green-600); }

/* Listado */
.bl-list {
  --ink: #293d33;
  --ink-soft: #56655c;
  --line: rgba(41, 61, 51, .16);
  padding: clamp(4rem, 8vw, 7rem) var(--gutter);
  color: var(--ink);
  background: var(--cream);
}

.bl-list__inner { max-width: 1440px; margin: 0 auto; }

/* Portadas */
.bl-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--green-900);
}

.bl-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.bl-cover--marca {
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 70% 80% at 80% 20%, rgba(81, 96, 88, .6), transparent 70%),
    url("../img/patron-isotipo.svg") 0 0 / 120px 120px,
    var(--green-900);
  background-blend-mode: normal, soft-light, normal;
}

.bl-cover--marca::before { /* la trama, apenas visible */
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(41, 61, 51, .82);
}

.bl-cover .bl-cover__mono {
  position: relative;
  width: auto;
  height: 46%;
  object-fit: contain;
  opacity: .9;
}

.bl-cover__tag {
  position: absolute;
  left: 1.25rem;
  bottom: 1.1rem;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--cream-70);
}

/* Meta (categoría · fecha · lectura) */
.bl-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem 1rem;
  margin: 0;
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.bl-meta__cat { font-weight: 600; color: var(--green-600); }
.bl-meta > * + *::before { content: "·"; margin-right: 1rem; color: var(--line); }

/* Nota destacada */
.bl-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.bl-featured__media { display: block; }
.bl-featured__media:hover .bl-cover img { transform: scale(1.04); }

.bl-featured__title {
  margin: 1.1rem 0 0;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.12;
}

.bl-featured__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease-out); }
.bl-featured__title a:hover { background-size: 100% 1px; }

.bl-featured__excerpt {
  max-width: 50ch;
  margin: 1.1rem 0 1.9rem;
  font-size: clamp(.98rem, 1.1vw, 1.05rem);
  line-height: 1.8;
  color: var(--ink-soft);
}

/* Grilla de tarjetas */
.bl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 3.5vw, 3rem) clamp(1.25rem, 2.5vw, 2.25rem);
}

.bl-card__link { display: flex; flex-direction: column; height: 100%; }
.bl-card .bl-cover { margin-bottom: 1.25rem; }
.bl-card__link:hover .bl-cover img { transform: scale(1.05); }

.bl-card__title {
  margin: .8rem 0 0;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(1.3rem, 1.6vw, 1.6rem);
  line-height: 1.22;
  color: var(--ink);
}

.bl-card__excerpt {
  margin: .7rem 0 0;
  font-size: .92rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.bl-card__more {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-top: auto;
  padding-top: 1.25rem;
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink);
}

.bl-card__more svg { width: 16px; height: auto; transition: transform .5s var(--ease-out); }
.bl-card__link:hover .bl-card__more svg { transform: translateX(5px); }

/* Vacío y paginación */
.bl-empty { max-width: 520px; margin: 0 auto; padding: clamp(2rem, 6vw, 4rem) 0; text-align: center; }
.bl-empty img { width: 64px; height: auto; margin: 0 auto 1.75rem; opacity: .85; }
.bl-empty h2 { margin: 0; font-family: var(--font-title); font-weight: 400; font-size: clamp(1.8rem, 2.6vw, 2.4rem); }
.bl-empty p { margin: .9rem 0 0; color: var(--ink-soft); line-height: 1.75; }

.bl-pager { display: flex; justify-content: center; gap: .5rem; margin-top: clamp(3rem, 6vw, 4.5rem); }

.bl-pager a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-family: var(--font-title);
  font-size: 1.05rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background-color .4s ease, color .3s ease, border-color .3s ease;
}

.bl-pager a:hover { border-color: var(--green-900); }
.bl-pager a.is-current { background: var(--green-900); border-color: var(--green-900); color: var(--cream); }

/* ---------- Nota ---------- */

.bl-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  height: 2px;
  pointer-events: none;
}

.bl-progress span {
  display: block;
  height: 100%;
  background: #b9c7bd;
  transform: scaleX(0);
  transform-origin: left;
}

.bl-hero--nota { padding-bottom: clamp(7rem, 14vw, 11rem); }
.bl-nota__title { max-width: 24ch; }

.bl-nota__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.5rem;
  margin: clamp(1.75rem, 4vh, 2.5rem) 0 0;
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cream-70);
}

.bl-nota__autor { display: inline-flex; align-items: center; gap: .8rem; color: var(--cream); }
.bl-nota__autor img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 1px solid var(--cream-40); }

/* Portada montada entre el verde y el crema */
.bl-nota__cover {
  padding: 0 var(--gutter);
  background: linear-gradient(180deg, var(--green-900) 0 50%, var(--cream) 50% 100%);
  margin-top: clamp(-6rem, -10vw, -4rem);
  position: relative;
}

.bl-nota__cover .bl-cover { max-width: 1100px; margin: 0 auto; box-shadow: 0 40px 80px -40px rgba(20, 30, 25, .55); }

.bl-nota__body { padding-top: clamp(3.5rem, 7vw, 6rem); }

/* Tipografía del contenido */
.bl-prose { max-width: 740px; }

.bl-prose > p,
.bl-prose li {
  font-size: clamp(1rem, 1.12vw, 1.08rem);
  line-height: 1.9;
  color: var(--ink-soft);
}

.bl-prose > p { margin: 0 0 1.4em; }
.bl-prose > p:first-child { font-family: var(--font-title); font-size: clamp(1.3rem, 1.8vw, 1.6rem); line-height: 1.55; color: var(--ink); }

.bl-prose h2 {
  margin: 2.4em 0 .7em;
  padding-top: 1.6em;
  border-top: 1px solid var(--line);
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(1.75rem, 2.6vw, 2.4rem);
  line-height: 1.18;
  color: var(--ink);
  scroll-margin-top: calc(var(--nav-h) + 1.5rem);
}

.bl-prose h3 {
  margin: 1.9em 0 .5em;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(1.35rem, 1.9vw, 1.7rem);
  line-height: 1.25;
  color: var(--ink);
  scroll-margin-top: calc(var(--nav-h) + 1.5rem);
}

.bl-prose strong { font-weight: 600; color: var(--ink); }

.bl-prose a {
  color: var(--green-900);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(41, 61, 51, .35);
  transition: text-decoration-color .3s ease;
}

.bl-prose a:hover { text-decoration-color: var(--green-900); }

.bl-prose ul, .bl-prose ol { margin: 0 0 1.4em; padding-left: 1.3em; }
.bl-prose li { margin-bottom: .5em; }
.bl-prose li::marker { color: var(--green-600); }

.bl-prose blockquote {
  margin: 2em 0;
  padding: .25rem 0 .25rem 1.75rem;
  border-left: 1px solid var(--green-900);
  font-family: var(--font-title);
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  line-height: 1.5;
  color: var(--ink);
}

.bl-prose blockquote p { margin: 0; }
.bl-prose img { width: 100%; height: auto; margin: 2em 0; }
.bl-prose figure { margin: 2em 0; }
.bl-prose figcaption { margin-top: .6rem; font-size: .82rem; color: var(--ink-soft); }
.bl-prose hr { margin: 2.6em 0; border: 0; border-top: 1px solid var(--line); }
.bl-prose table { width: 100%; margin: 2em 0; border-collapse: collapse; font-size: .95rem; }
.bl-prose th, .bl-prose td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.bl-prose th { font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--green-600); }

/* Área relacionada */
.bl-area {
  margin: 3em 0 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--cream);
  background:
    radial-gradient(ellipse 80% 70% at 100% 0%, rgba(81, 96, 88, .55), transparent 70%),
    var(--green-900);
}

.bl-area__label { margin: 0; font-family: var(--font-title); font-size: clamp(1.3rem, 1.8vw, 1.6rem); line-height: 1.3; }
.bl-area__text { margin: .5rem 0 1.25rem; font-size: .9rem; color: var(--cream-70); }
.bl-area ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }

.bl-prose .bl-area a {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem 1.1rem;
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  border: 1px solid var(--cream-40);
  border-radius: 100px;
  transition: background-color .4s ease, color .3s ease, border-color .3s ease;
}

.bl-area a svg { width: 13px; height: auto; }
.bl-prose .bl-area a:hover { background: var(--cream); border-color: var(--cream); color: var(--green-900); }

/* Firma */
.bl-firma {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 3em;
  padding-top: 2em;
  border-top: 1px solid var(--line);
}

.bl-firma img { flex-shrink: 0; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.bl-firma__nombre { margin: 0; font-family: var(--font-title); font-size: 1.5rem; line-height: 1.1; }
.bl-firma__rol { margin: .3rem 0 0; font-size: .62rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.bl-prose .bl-firma__wa { display: inline-block; margin-top: .6rem; font-size: .85rem; font-weight: 500; }

.bl-disclaimer { margin: 2.5em 0 0 !important; font-size: .8rem !important; line-height: 1.7 !important; color: var(--ink-soft); opacity: .8; }

/* Compartir */
.bl-share { margin-top: 2rem; }
.bl-share .sp-toc__label { margin-bottom: .75rem; }

.bl-share a,
.bl-share button {
  display: block;
  width: 100%;
  padding: .7rem 0;
  font: inherit;
  font-size: .88rem;
  text-align: left;
  color: var(--ink-soft);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: color .3s ease, padding-left .5s var(--ease-out);
}

.bl-share a:hover,
.bl-share button:hover { color: var(--ink); padding-left: .4rem; }

/* Relacionadas */
.bl-related { border-top: 1px solid var(--line); }

.bl-related__title {
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  line-height: 1.1;
}

/* ==========================================================================
   Botón flotante de WhatsApp (lo crea main.js en todas las páginas)
   ========================================================================== */

@property --wa-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.wa-float {
  position: fixed;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .9rem;
  opacity: 0;
  transform: translateY(24px) scale(.9);
  pointer-events: none;
  transition: opacity .8s ease, transform 1s var(--ease-out);
}

.wa-float.is-ready { opacity: 1; transform: none; pointer-events: auto; }

/* Con el menú mobile abierto no estorba */
.menu.is-open ~ .wa-float { opacity: 0; pointer-events: none; }

.wa-float__btn {
  position: relative;
  display: flex;
  align-items: center;
  height: 62px;
  padding: 0 19px;
  color: var(--cream);
  background:
    radial-gradient(circle at 30% 25%, rgba(185, 199, 189, .22), transparent 60%),
    var(--green-900);
  border-radius: 100px;
  box-shadow:
    0 18px 40px -14px rgba(15, 25, 20, .65),
    inset 0 0 0 1px rgba(242, 242, 233, .14);
  isolation: isolate;
  transition: box-shadow .5s ease, transform .5s var(--ease-out), background-color .4s ease;
}

/* Luz que recorre el borde, como el glow de los botones del sitio */
.wa-float__btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--wa-angle), transparent 0deg 260deg, rgba(185, 199, 189, .95) 330deg, rgba(242, 242, 233, 1) 350deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: wa-orbit 5s linear infinite;
  pointer-events: none;
}

@keyframes wa-orbit { to { --wa-angle: 360deg; } }

/* Pulso suave cada tanto */
.wa-float__ring {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  border: 1px solid rgba(185, 199, 189, .55);
  animation: wa-pulse 3.6s var(--ease-out) infinite;
}

@keyframes wa-pulse {
  0% { transform: scale(1); opacity: .9; }
  60%, 100% { transform: scale(1.45); opacity: 0; }
}

.wa-float__icon { display: grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; }
.wa-float__icon svg { width: 24px; height: 24px; }

/* La etiqueta aparece al pasar el mouse */
.wa-float__label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  opacity: 0;
  transition: max-width .7s var(--ease-out), opacity .4s ease, margin .7s var(--ease-out);
}

.wa-float__btn:hover,
.wa-float__btn:focus-visible {
  transform: translateY(-3px);
  box-shadow:
    0 24px 50px -16px rgba(15, 25, 20, .75),
    inset 0 0 0 1px rgba(242, 242, 233, .25);
}

.wa-float__btn:hover .wa-float__label,
.wa-float__btn:focus-visible .wa-float__label { max-width: 140px; margin-left: .8rem; opacity: 1; }

/* Burbuja de mensaje */
.wa-float__bubble {
  position: relative;
  width: min(280px, calc(100vw - 2rem));
  padding: 1.1rem 2.6rem 1.1rem 1.25rem;
  color: var(--green-900);
  background: var(--cream);
  border: 1px solid rgba(41, 61, 51, .12);
  box-shadow: 0 24px 50px -20px rgba(15, 25, 20, .5);
  opacity: 0;
  transform: translateY(10px) scale(.96);
  transform-origin: bottom right;
  transition: opacity .5s ease, transform .6s var(--ease-out);
}

.wa-float__bubble.is-visible { opacity: 1; transform: none; }

.wa-float__bubble::after { /* piquito hacia el botón */
  content: "";
  position: absolute;
  right: 24px;
  bottom: -7px;
  width: 12px;
  height: 12px;
  background: var(--cream);
  border-right: 1px solid rgba(41, 61, 51, .12);
  border-bottom: 1px solid rgba(41, 61, 51, .12);
  transform: rotate(45deg);
}

.wa-float__bubble-title { margin: 0; font-family: var(--font-title); font-size: 1.25rem; line-height: 1.2; }
.wa-float__bubble-text { margin: .35rem 0 0; font-size: .82rem; line-height: 1.55; color: #56655c; }

.wa-float__close {
  position: absolute;
  top: .6rem;
  right: .6rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: background-color .3s ease;
}

.wa-float__close:hover { background: rgba(41, 61, 51, .08); }

.wa-float__close span::before,
.wa-float__close span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1px;
  background: var(--green-900);
  transform: translate(-50%, -50%) rotate(45deg);
}

.wa-float__close span::after { transform: translate(-50%, -50%) rotate(-45deg); }

@media (max-width: 768px) {
  .wa-float__btn { height: 56px; padding: 0 16px; }
  .wa-float__icon, .wa-float__icon svg { width: 24px; height: 24px; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
}

@media (max-width: 960px) {
  .about__inner { grid-template-columns: 1fr; }
  .about__media { max-width: 560px; width: 100%; margin: 0 auto; }
  .about__title { max-width: 18ch; }
}

@media (max-width: 1100px) {
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service--cta { grid-column: span 2; min-height: 0; }
}

@media (max-width: 960px) {
  .services__head { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 680px) {
  .services__grid { grid-template-columns: 1fr; }
  .service--featured,
  .service--cta { grid-column: auto; }
  .service { min-height: 340px; }
  .service--cta { min-height: 0; }
  .service--featured { min-height: 400px; }
  .service--featured .service__media { inset: 0; -webkit-mask-image: none; mask-image: none; }
  .service--featured .service__media::after { background: linear-gradient(0deg, #2b3f35 30%, rgba(41, 61, 51, .55) 100%); }
  .service--featured .service__body { max-width: none; }
  .service--featured .service__panel { background: #22342b; }
  .service__title { padding-top: 1.5rem; }
}

@media (max-width: 960px) {
  /* una sola columna: encabezado → preguntas → card de contacto */
  .faq__inner { display: flex; flex-direction: column; gap: 0; }
  .faq__aside,
  .faq__sticky { display: contents; }
  .faq__list { order: 2; margin-top: 2.5rem; }
  .faq__card { order: 3; max-width: none; }
}

@media (max-width: 600px) {
  .faq__btn { grid-template-columns: 2.25rem 1fr auto; gap: .75rem; }
  .faq__icon { width: 34px; height: 34px; }
  .faq__a-inner { padding-left: 0; padding-right: 0; }
}

@media (max-width: 1024px) {
  .contact__inner { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__submit .btn { width: 100%; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__cols .footer__col:nth-child(2) { grid-column: 1 / -1; order: -1; }
  .footer__meta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 1024px) {
  .sp-body__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .sp-hero__inner { grid-template-columns: 1fr; }
  .sp-hero__media { display: none; }
  .sp-toc__sticky { position: static; }
  .sp-others__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .sp-figs { grid-template-columns: 1fr; }
  .sp-toc { display: none; }
  .sp-others__list { grid-template-columns: 1fr; }
  .sp-zones { flex-direction: column; align-items: flex-start; }
  .sp-items li { grid-template-columns: 2.25rem 1fr; }
}

@media (max-width: 1024px) {
  .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bl-featured { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .bl-grid { grid-template-columns: 1fr; }
  .bl-nota__body .sp-toc { display: block; order: 2; }
  .bl-nota__body .sp-toc ol { display: none; }
  .bl-nota__body .sp-toc .sp-toc__label:first-child { display: none; }
  .bl-nota__body .sp-body__inner { display: flex; flex-direction: column; }
}

@media (max-width: 768px) {
  .cta__notes { flex-direction: column; align-items: center; gap: .7rem; }
  .cta__notes li { justify-content: center; text-align: center; }
  .cta__notes li + li::before { display: none; }
  .hide-sm { display: none; }
  :root { --nav-h: 72px; }
  .nav__brand img { height: 50px; }
  .nav.is-scrolled { --nav-h: 64px; }
  .nav.is-scrolled .nav__brand img { height: 44px; }

  .hero__overlay {
    background: linear-gradient(180deg, rgba(31, 47, 39, .75) 0%, rgba(31, 47, 39, .35) 20%, rgba(31, 47, 39, .72) 45%, rgba(31, 47, 39, .97) 80%);
  }

  .hero__eyebrow { letter-spacing: .3em; font-size: .64rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__foot { margin-top: 2.25rem; }
  .hero__values { gap: .5rem .75rem; font-size: .6rem; letter-spacing: .25em; }
  .hero__values li { gap: .75rem; }
  .hero__scroll { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float__ring, .wa-float__btn::before { animation: none; }

  .sp-hero__pattern { animation: none; }

  .cta__pattern { animation: none; }

  .about__frame { clip-path: none; }
  .about__parallax { transform: none !important; }

  .btn--glow::after, .btn__glow { display: none; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}
