@charset "UTF-8";
/* =========================================================================
   Carpintería Valor — hoja de estilos principal
   HTML5 + CSS + JavaScript vanilla. Sin Bootstrap, sin Mobirise.
   Los valores cromáticos y tipográficos proceden de la web original.
   ========================================================================= */

/* ------------------------------------------------------------- 1. Fuentes */
@font-face {
  font-family: 'Jost';
  src: url('../fonts/jost-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('../fonts/jost-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('../fonts/jost-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('../fonts/jost-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('../fonts/jost-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* -------------------------------------------------------------- 2. Tokens */
:root {
  /* Paleta corporativa (extraída del CSS original) */
  --verde: #2e5125;
  --verde-osc: #0c150a;
  --verde-med: #406836;
  --verde-salvia: #909e7e;
  --verde-claro: #cfe0ba;
  --lima: #b7c72c;
  --crema: #f1f5eb;
  --crema-2: #e6eddf;
  --naranja: #f7770a;
  --naranja-osc: #a54f05;
  --naranja-osc2: #8a4104;
  --naranja-link: #964805;
  /* variante oscura del naranja corporativo para TEXTO sobre fondos claros:
     mantiene la identidad y alcanza el contraste AA (4,6:1 sobre blanco) */
  --naranja-txt: #a54f05;
  --blanco: #ffffff;
  --negro: #000000;
  --texto: #232323;
  --texto-suave: #4a4a4a;
  --footer-bg: #000000;
  --footer-texto: #d8d7d7;
  --contacto-texto: #d1e0be;

  /* Tipografía */
  --fuente: 'Jost', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --fs-xxl: clamp(2.26rem, 1.35rem + 4.1vw, 4.6rem);
  --fs-xl: clamp(1.7rem, 1.24rem + 2.3vw, 3rem);
  --fs-l: clamp(1.35rem, 1.12rem + 1.15vw, 2rem);
  --fs-m: clamp(1.105rem, 1.03rem + 0.35vw, 1.3rem);
  --fs-s: clamp(1.035rem, 1.01rem + 0.12vw, 1.1rem);
  --lh-titulo: 1.3;
  --lh-texto: 1.7;

  /* Espaciado */
  --e-1: 0.5rem;
  --e-2: 1rem;
  --e-3: 1.5rem;
  --e-4: 2rem;
  --e-5: 3rem;
  --e-6: 4rem;
  --e-7: 6rem;
  --e-8: 9rem;

  /* Medidas */
  --contenedor: 1320px;
  --contenedor-txt: 1180px;
  --alto-nav: 106px;
  --alto-nav-corto: 70px;
  --alto-nav-movil: 84px;

  /* Radios y sombras */
  --radio: 4px;
  --radio-lg: 8px;
  --radio-circ: 50%;
  --sombra-1: 0 2px 2px 0 rgba(0, 0, 0, .2);
  --sombra-2: 0 2px 5px 0 rgba(0, 0, 0, .2);
  --sombra-3: 0 10px 30px rgba(0, 0, 0, .12);

  --transicion: .3s ease;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* la cabecera fija no debe tapar los títulos al usar anclas */
  scroll-padding-top: calc(var(--alto-nav) + 12px);
}

body {
  margin: 0;
  font-family: var(--fuente);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--texto);
  background: var(--blanco);
  overflow-x: hidden;
}

img,
picture,
svg,
iframe { max-width: 100%; }

img { height: auto; display: block; border: 0; }

h1, h2, h3, h4, h5, h6 { margin: 0 0 var(--e-2); font-weight: 700; line-height: var(--lh-titulo); }
p { margin: 0 0 var(--e-2); }
ul, ol { margin: 0 0 var(--e-2); padding-left: 1.25rem; }

a {
  color: var(--naranja-txt);
  text-decoration: none;
  transition: color .4s;
}
a:hover { color: var(--naranja-link); text-decoration: underline; }

/* Los enlaces dentro de un bloque de texto se subrayan siempre: así se
   distinguen del texto que los rodea sin depender solo del color (WCAG 1.4.1). */
p a:not(.btn),
li a:not(.btn),
.legal a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}
/* la navegación y las tarjetas no llevan subrayado: ahí el enlace ya se
   distingue por su posición y su tratamiento visual */
.nav li a:not(.btn),
.nav__submenu li a,
.pie__legales li a,
.tarjeta-servicio a:not(.btn),
.galeria li a,
.banner a { text-decoration: none; }

hr { border: 0; border-top: 2px solid currentColor; opacity: 1; margin: 0; }

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

::selection { background: var(--naranja); color: #fff; }

/* Utilidades */
.contenedor {
  width: 100%;
  max-width: var(--contenedor);
  margin-inline: auto;
  padding-inline: var(--e-3);
}
.contenedor--ancho { max-width: 1600px; }
.contenedor--estrecho { max-width: var(--contenedor-txt); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.saltar-al-contenido {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 2000;
  background: var(--naranja);
  color: #fff;
  padding: .75rem 1.5rem;
  border-radius: 0 0 var(--radio) var(--radio);
  font-weight: 600;
  transition: transform .2s;
}
.saltar-al-contenido:focus { transform: translate(-50%, 0); color: #fff; text-decoration: none; }

/* Escalas tipográficas reutilizables */
.t-xxl { font-size: var(--fs-xxl); line-height: 1.1; }
.t-xl  { font-size: var(--fs-xl);  line-height: var(--lh-titulo); }
.t-l   { font-size: var(--fs-l);   line-height: 1.4; }
.t-m   { font-size: var(--fs-m);   line-height: var(--lh-texto); }
.t-s   { font-size: var(--fs-s);   line-height: 1.5; }

/* ------------------------------------------------------------- 4. Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .7rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--radio);
  font-family: inherit;
  font-size: var(--fs-s);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--transicion), border-color var(--transicion),
              color var(--transicion), box-shadow var(--transicion);
}
.btn:hover { text-decoration: none; }

/* El relleno usa la variante oscura del naranja corporativo (--naranja-osc,
   ya presente en la paleta original): con texto blanco alcanza 5,4:1 y cumple
   WCAG AA, cosa que el naranja claro no logra. El naranja vivo #f7770a se
   mantiene en iconos, numeración, titulares y detalles. */
.btn--naranja {
  background: var(--naranja-osc);
  border-color: var(--naranja-osc);
  color: #fff;
  box-shadow: var(--sombra-1);
}
.btn--naranja:hover,
.btn--naranja:focus-visible {
  background: var(--naranja-osc2);
  border-color: var(--naranja-osc2);
  color: #fff;
  box-shadow: var(--sombra-2);
}

.btn--verde {
  background: var(--verde);
  border-color: var(--verde);
  color: #fff;
  box-shadow: var(--sombra-1);
}
.btn--verde:hover,
.btn--verde:focus-visible {
  background: var(--verde-osc);
  border-color: var(--verde-osc);
  color: #fff;
  box-shadow: var(--sombra-2);
}

.btn--verde-linea {
  background: transparent;
  border-color: var(--verde);
  color: var(--verde);
}
.btn--verde-linea:hover,
.btn--verde-linea:focus-visible {
  border-color: var(--verde-osc);
  color: var(--verde-osc);
  background: rgba(46, 81, 37, .07);
}

.btn--blanco-linea {
  background: transparent;
  border-color: #fafafa;
  color: #fafafa;
}
.btn--blanco-linea:hover,
.btn--blanco-linea:focus-visible { background: rgba(255, 255, 255, .14); color: #fff; }

/* ---------------------------------------------------------- 5. Cabecera */
.cabecera {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  /* negro con un bisel muy tenue: luz arriba, sombra abajo */
  background:
    linear-gradient(180deg, rgba(28, 28, 28, .94) 0%, rgba(10, 10, 10, .9) 55%, rgba(0, 0, 0, .88) 100%);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .09),
    inset 0 -1px 0 rgba(0, 0, 0, .8),
    0 12px 32px rgba(0, 0, 0, .34);
  transition: background var(--transicion), box-shadow var(--transicion);
}
/* filete de acento inferior: da borde al bloque sin cargarlo */
.cabecera::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--naranja) 0%, var(--lima) 38%, rgba(183, 199, 44, 0) 78%);
  opacity: .75;
}
.cabecera.is-corta,
.cabecera.is-abierta {
  background: linear-gradient(180deg, #1c1c1c 0%, #050505 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .11),
    inset 0 -1px 0 rgba(0, 0, 0, .9),
    0 16px 38px rgba(0, 0, 0, .5);
}

.cabecera__barra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--e-2);
  min-height: var(--alto-nav);
  /* aire extra entre el logotipo y el filete naranja inferior */
  padding-bottom: .6rem;
  transition: min-height var(--transicion);
}
.cabecera.is-corta .cabecera__barra { min-height: var(--alto-nav-corto); }

.cabecera__logo { display: flex; align-items: center; flex-shrink: 0; }
.cabecera__logo img {
  height: 4.7rem;              /* mismo tamaño que en la web original */
  width: auto;
  transition: height var(--transicion);
}
.cabecera.is-corta .cabecera__logo img { height: 3rem; }

@media (max-width: 991.98px) {
  .cabecera__barra { min-height: var(--alto-nav-movil); }
  .cabecera__logo img { height: 3.4rem; }
  .cabecera.is-corta .cabecera__logo img { height: 2.8rem; }
}
@media (max-width: 400px) {
  .cabecera__logo img { height: 2.9rem; }
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.nav-toggle span {
  position: absolute;
  left: 9px;
  width: 30px;
  height: 2px;
  background: #fff;
  transition: transform .25s, opacity .2s, top .25s;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2),
.nav-toggle span:nth-child(3) { top: 23px; }
.nav-toggle span:nth-child(4) { top: 30px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1),
.nav-toggle[aria-expanded="true"] span:nth-child(4) { top: 23px; opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--e-3);
  flex: 1 1 auto;
}
.nav__lista {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__item { position: relative; }
.nav__enlace {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 44px;
  padding: .4rem .9rem;
  color: #fff;
  font-size: var(--fs-m);
  font-weight: 400;
  border-radius: var(--radio);
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  position: relative;
}
.nav__enlace::before {
  content: "";
  position: absolute;
  inset: .25rem .35rem;
  border-radius: var(--radio);
  background: rgba(255, 255, 255, .1);
  opacity: 0;
  transform: scale(.9);
  transition: opacity .25s, transform .25s;
}
.nav__enlace::after {
  content: "";
  position: absolute;
  left: .9rem;
  right: .9rem;
  bottom: .28rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--naranja), var(--lima));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s cubic-bezier(.25, .6, .3, 1);
}
.nav__enlace > * { position: relative; z-index: 1; }
.nav__enlace:hover,
.nav__enlace:focus-visible { color: #fff; text-decoration: none; }
.nav__enlace:hover::before,
.nav__enlace[aria-expanded="true"]::before { opacity: 1; transform: none; }
.nav__enlace:hover::after,
.nav__enlace[aria-current="page"]::after,
.nav__enlace[aria-current="true"]::after,
.nav__enlace[aria-expanded="true"]::after { transform: scaleX(1); }

.nav__flecha {
  width: .55em;
  height: .55em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .25s;
}
.nav__enlace[aria-expanded="true"] .nav__flecha { transform: rotate(-135deg) translateY(-2px); }

.nav__submenu {
  position: absolute;
  top: calc(100% - .1rem);
  left: 0;
  min-width: 21rem;
  margin: 0;
  padding: .5rem;
  list-style: none;
  background: linear-gradient(180deg, #24401d 0%, #1c3316 100%);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--radio-lg);
  box-shadow: 0 22px 44px rgba(0, 0, 0, .42), 0 2px 0 rgba(255, 255, 255, .06) inset;
  display: none;
  z-index: 20;
}
.nav__submenu.is-abierto {
  display: block;
  animation: submenuEntra .26s cubic-bezier(.25, .6, .3, 1) both;
}
@keyframes submenuEntra {
  from { opacity: 0; transform: translateY(-8px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
/* pico que une el submenú con su disparador */
.nav__submenu::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 2rem;
  width: 12px;
  height: 12px;
  background: #24401d;
  border-left: 1px solid rgba(255, 255, 255, .09);
  border-top: 1px solid rgba(255, 255, 255, .09);
  transform: rotate(45deg);
}
.nav__submenu a {
  position: relative;
  display: block;
  padding: .72rem 1rem .72rem 1.55rem;
  color: #eef3e8;
  font-size: var(--fs-s);
  line-height: 1.35;
  border-radius: var(--radio);
  transition: background-color .22s, color .22s, transform .22s;
}
.nav__submenu a::before {
  content: "";
  position: absolute;
  left: .55rem;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 2px;
  background: var(--naranja);
  transform: translateY(-50%);
  transition: height .25s cubic-bezier(.25, .6, .3, 1);
}
.nav__submenu a:hover,
.nav__submenu a:focus-visible {
  background: rgba(255, 255, 255, .09);
  color: #fff;
  text-decoration: none;
  transform: translateX(2px);
}
.nav__submenu a:hover::before,
.nav__submenu a:focus-visible::before { height: 58%; }
.nav__submenu a[aria-current="page"] { background: rgba(247, 119, 10, .16); color: #fff; }
.nav__submenu a[aria-current="page"]::before { height: 58%; }

.nav__cta { flex-shrink: 0; }
.nav__cta .btn {
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28), 0 0 0 1px rgba(255, 255, 255, .12) inset;
}
.nav__cta .btn::after {
  content: "";
  position: absolute;
  inset: -60% -140%;
  background: linear-gradient(74deg, transparent 40%, rgba(255, 255, 255, .38) 50%, transparent 60%);
  transform: translateX(-42%);
  animation: destello 6.5s ease-in-out 1.5s infinite;
  pointer-events: none;
}
@keyframes destello {
  0%, 70% { transform: translateX(-42%); }
  94%, 100% { transform: translateX(42%); }
}

@media (max-width: 991.98px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--e-2) var(--e-3) var(--e-4);
    background: var(--verde);
    max-height: calc(100vh - var(--alto-nav-movil));
    overflow-y: auto;
    display: none;
  }
  .nav.is-abierta { display: flex; }
  .nav__lista { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__enlace { width: 100%; justify-content: space-between; padding: .8rem .5rem; }
  .nav__enlace::after { left: .5rem; right: .5rem; bottom: .5rem; }
  .nav__submenu {
    position: static;
    min-width: 0;
    box-shadow: none;
    background: rgba(0, 0, 0, .18);
    border-radius: var(--radio);
    margin: 0 0 .5rem;
  }
  .nav__cta { margin-top: var(--e-2); }
  .nav__cta .btn { width: 100%; }
}

/* --------------------------------------------------- 6. Secciones comunes */
.seccion { position: relative; padding-block: var(--e-6); }
.seccion--blanca { background: var(--blanco); }
.seccion--crema { background: var(--crema); }
.seccion--crema2 { background: var(--crema-2); }
.seccion--verde { background: var(--verde); color: #fff; }

.fondo-fijo {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
  .fondo-fijo { background-attachment: fixed; }
}

.velo {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #000;
  pointer-events: none;
}
/* todo lo que va detrás del velo se dibuja por encima de él */
.velo ~ * { position: relative; z-index: 2; }

.seccion > .contenedor,
.seccion > .contenedor--ancho { position: relative; z-index: 2; }

.centrado { text-align: center; }

/* --------------------------------------------------------- 7. Hero inicio */
.hero {
  position: relative;
  overflow: visible;
  isolation: isolate;
  padding-top: calc(var(--alto-nav) + var(--e-5));
  padding-bottom: var(--e-2);
  color: #fff;
  background-color: var(--verde-osc);
}
@media (min-width: 768px) {
  .hero { padding-top: calc(var(--alto-nav) + var(--e-7)); }
}
.hero .velo {
  opacity: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.5) 45%, rgba(0,0,0,.62) 100%);
}

/* --- pase de fotografías con Ken Burns --- */
.hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--verde-osc); }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity 1.4s ease;
}
.hero__slide.is-on { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); }
.hero__slide.is-on img { animation: kenburns 13s ease-out forwards; }
.hero__slide:nth-child(even).is-on img { animation-name: kenburns-alt; }
@keyframes kenburns {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-1.4%, -1.2%, 0); }
}
@keyframes kenburns-alt {
  from { transform: scale(1.14) translate3d(1.2%, -1%, 0); }
  to   { transform: scale(1.03) translate3d(0, 0, 0); }
}
.no-js .hero__slide:first-child { opacity: 1; }

/* --- constelación de círculos sobre la fotografía --- */
.hero__circulos { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.hc-w { position: absolute; display: block; aspect-ratio: 1; }
.hc-w svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hc {
  fill: none;
  stroke: rgba(255, 255, 255, .34);
  stroke-width: 1.3;
  stroke-linecap: round;
  transform-box: fill-box;
  transform-origin: center;
}
.hc--traza { stroke-dasharray: 100; stroke-dashoffset: 100; animation: hcTraza 13s cubic-bezier(.5, 0, .5, 1) infinite; }
@keyframes hcTraza {
  0%       { stroke-dashoffset: 100; }
  42%, 58% { stroke-dashoffset: 0; }
  100%     { stroke-dashoffset: -100; }
}
.hc--punt { stroke-dasharray: 1.7 3.6; animation: hcGiro 34s linear infinite; }
@keyframes hcGiro { to { transform: rotate(360deg); } }
.hc-pt { fill: rgba(247, 119, 10, .85); animation: hcNodo 4.6s ease-in-out infinite; }
@keyframes hcNodo { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.hc--a { animation-duration: 12s; }
.hc--b { animation-duration: 29s; animation-direction: reverse; }
.hc--c { animation-duration: 17s; animation-delay: -4s; }
.hc--d { animation-duration: 40s; }
.hc--e { animation-duration: 23s; animation-delay: -7s; }
.hc--f { animation-duration: 31s; animation-direction: reverse; }
.hc-w--g1 { width: clamp(92px, 13vw, 196px); left: -3%; top: 12%; }
.hc-w--g2 { width: clamp(70px, 9vw, 132px); right: 6%; top: 16%; }
.hc-w--g3 { width: clamp(120px, 17vw, 250px); right: -4%; bottom: 6%; }
.hc-w--g4 { width: clamp(56px, 7vw, 96px); left: 22%; bottom: 14%; }
@media (max-width: 900px) {
  .hc-w--g1 { left: -14%; top: 6%; }
  .hc-w--g2 { right: -6%; top: 10%; }
  .hc-w--g4 { display: none; }
}

/* --- numeración vertical con barra de avance --- */
.hero__nums {
  position: absolute;
  right: clamp(.75rem, 2.6vw, 2.6rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
}
.hero__num {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  min-width: 44px;
  min-height: 44px;
  padding: .2rem;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, .62);
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: color .3s;
}
.hero__num:hover { color: #fff; }
.hero__num[aria-current="true"] { color: #fff; }
.hero__num-n {
  display: block;
  font-size: 1.05rem;
  line-height: 1;
  transition: font-size .45s cubic-bezier(.34, 1.4, .64, 1);
}
.hero__num[aria-current="true"] .hero__num-n {
  font-size: 2.1rem;
  color: var(--naranja);
  animation: numEntra .5s cubic-bezier(.34, 1.4, .64, 1) both;
}
@keyframes numEntra {
  0%   { opacity: 0; transform: translateY(14px) scale(.7); filter: blur(4px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: none; }
}
.hero__num-track {
  display: block;
  width: 2px;
  height: 14px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .3);
  overflow: hidden;
  transition: height .45s cubic-bezier(.34, 1.4, .64, 1);
}
.hero__num[aria-current="true"] .hero__num-track { height: 46px; }
.hero__num-fill { display: block; width: 100%; height: 0; background: var(--naranja); }
.hero__num[aria-current="true"] .hero__num-fill { animation: numAvance 6.8s linear forwards; }
.hero__nums.is-paused .hero__num[aria-current="true"] .hero__num-fill { animation: none; height: 100%; }
@keyframes numAvance { from { height: 0; } to { height: 100%; } }
/* En pantallas pequeñas la columna se mantiene fija a la derecha, más
   compacta: si pasara al flujo del documento provocaría un salto de
   maquetación al crecer el número activo. */
@media (max-width: 760px) {
  .hero__nums { right: .25rem; gap: .1rem; }
  .hero__num { min-width: 34px; padding: .1rem; }
  .hero__num-n { font-size: .8rem; }
  .hero__num[aria-current="true"] .hero__num-n { font-size: 1.3rem; }
  .hero__num-track { height: 10px; }
  .hero__num[aria-current="true"] .hero__num-track { height: 26px; }
}

/* --- indicador de desplazamiento --- */
.hero__scroll {
  position: absolute;
  left: clamp(1rem, 5vw, 4.5rem);
  bottom: 1.2rem;
  z-index: 6;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  padding: .5rem .8rem;
  color: #fff;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  border-radius: var(--radio);
  transition: color .25s;
}
@media (min-width: 992px) { .hero__scroll { display: flex; } }
.hero__scroll:hover { color: var(--naranja); text-decoration: none; }
.hero__raton {
  position: relative;
  width: 24px;
  height: 38px;
  border: 2px solid currentColor;
  border-radius: 14px;
  opacity: .85;
}
.hero__raton::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: currentColor;
  animation: ratonRueda 1.9s cubic-bezier(.25, .6, .3, 1) infinite;
}
@keyframes ratonRueda {
  0%   { transform: translateY(0); opacity: 0; }
  25%  { opacity: 1; }
  70%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(12px); opacity: 0; }
}
.hero__scroll svg { width: 16px; height: 16px; animation: bajaFlecha 1.9s ease-in-out infinite; }
@keyframes bajaFlecha {
  0%, 100% { transform: translateY(-2px); opacity: .55; }
  50%      { transform: translateY(3px); opacity: 1; }
}

.hero__texto { max-width: 66rem; margin-inline: auto; text-align: center; text-shadow: 0 2px 12px rgba(0, 0, 0, .55); }
.hero__antetitulo {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: #fff;
  margin-bottom: .6rem;
  text-wrap: balance;
}
.hero__titulo {
  font-size: var(--fs-l);
  color: var(--naranja);
  margin-bottom: 1.1rem;
  text-wrap: balance;
}
.hero__entradilla {
  font-size: var(--fs-l);
  font-weight: 400;
  line-height: 1.54;
  margin-bottom: var(--e-3);
  color: #fff;
}
.hero__maquinaria {
  max-width: 805px;
  margin: var(--e-4) auto -100px;
  position: relative;
  z-index: 5;
}
@media (min-width: 992px) {
  .hero__maquinaria { margin-top: 60px; margin-bottom: -160px; }
}

/* ------------------------------------------------ 8. Bloques de titulares */
.titular {
  padding-top: 11rem;
  padding-bottom: 0;
  background: var(--blanco);
}
.titular__titulo { font-size: var(--fs-xl); color: var(--verde); margin-bottom: var(--e-3); text-wrap: balance; }
.titular__subtitulo { font-size: var(--fs-l); color: var(--naranja-txt); margin-bottom: var(--e-3); text-wrap: balance; }

.bloque-texto { padding-block: var(--e-4) var(--e-5); background: var(--blanco); }
.bloque-texto__linea { border-top: 1px solid #dcdcdc; }
.bloque-texto p {
  font-size: var(--fs-m);
  line-height: var(--lh-texto);
  text-align: center;
  margin-block: var(--e-3);
  color: var(--texto);
}

/* Bloque de reclamo con fondo crema (header13) */
.reclamo { background: var(--crema); padding-top: var(--e-7); padding-bottom: var(--e-2); text-align: center; }
.reclamo__titulo { font-size: var(--fs-l); color: var(--naranja-txt); margin-bottom: .8rem; text-wrap: balance; }
.reclamo__titulo--grande { font-size: var(--fs-xl); }
.reclamo__subtitulo { font-size: var(--fs-m); color: var(--verde); margin-bottom: .8rem; font-weight: 700; }
.reclamo__subtitulo--grande { font-size: var(--fs-xl); }
.reclamo__texto { font-size: var(--fs-m); color: var(--texto); margin-bottom: .8rem; }

/* --------------------------------------- 9. Compromiso (dos columnas + BG) */
.compromiso { position: relative; overflow: hidden; padding-block: var(--e-8); background-color: var(--verde-osc); }
.compromiso .velo { opacity: .28; background: #0c150a; }
.compromiso__rejilla {
  display: grid;
  gap: var(--e-4);
  grid-template-columns: 1fr;
}
@media (min-width: 992px) {
  .compromiso__rejilla { grid-template-columns: 1fr 1fr; gap: var(--e-5); align-items: center; }
}
.compromiso__caja {
  background: rgba(255, 255, 255, .92);
  padding: var(--e-4);
  border-radius: var(--radio-lg);
}
.compromiso__titulo { font-size: var(--fs-xl); color: var(--verde); margin-bottom: var(--e-2); }
.compromiso__caja p { font-size: var(--fs-m); color: #111; line-height: var(--lh-texto); }

.ventaja { position: relative; display: flex; align-items: center; gap: var(--e-2); margin-bottom: var(--e-3); }
.ventaja__icono {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  border-radius: var(--radio-circ);
  background: var(--naranja);
  display: grid;
  place-items: center;
  color: #fff;
}
.ventaja__icono svg { width: 26px; height: 26px; }
.ventaja__titulo { font-size: var(--fs-l); color: var(--verde); margin-bottom: .25rem; }
.ventaja__texto { font-size: var(--fs-s); color: #111; margin: 0; line-height: 1.5; }
/* Tarjetas de ventaja sobre la fotografía: vidrio esmerilado, filete de acento
   que crece al pasar el ratón y una leve elevación. Más transparentes que antes
   pero con desenfoque de fondo, para que el texto siga leyéndose con holgura. */
.compromiso--sobre-foto .ventaja {
  overflow: hidden;
  padding: var(--e-2) var(--e-3) var(--e-2) var(--e-2);
  border-radius: var(--radio-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, .66) 0%, rgba(255, 255, 255, .5) 100%);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  backdrop-filter: blur(14px) saturate(1.25);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .7),
    inset 0 0 0 1px rgba(255, 255, 255, .3),
    0 14px 32px rgba(12, 21, 10, .22);
  transition: transform .45s cubic-bezier(.25, .6, .3, 1), box-shadow .45s ease, background-color .45s ease;
}
/* filete vertical de acento */
.compromiso--sobre-foto .ventaja::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--naranja), var(--lima));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .5s cubic-bezier(.25, .6, .3, 1);
}
.compromiso--sobre-foto .ventaja:hover,
.compromiso--sobre-foto .ventaja:focus-within {
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .8),
    inset 0 0 0 1px rgba(255, 255, 255, .38),
    0 22px 44px rgba(12, 21, 10, .3);
}
.compromiso--sobre-foto .ventaja:hover::before,
.compromiso--sobre-foto .ventaja:focus-within::before { transform: scaleY(1); }
.compromiso--sobre-foto .ventaja__icono {
  background: linear-gradient(150deg, #ff8f2c 0%, var(--naranja) 55%, var(--naranja-osc) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 8px 18px rgba(165, 79, 5, .35);
  transition: transform .45s cubic-bezier(.34, 1.4, .64, 1);
}
.compromiso--sobre-foto .ventaja:hover .ventaja__icono { transform: translateX(3px); }
.compromiso--sobre-foto .ventaja__texto { color: #262626; }

/* ------------------------------------------------ 10. Carrusel servicios */
.carrusel { padding-block: var(--e-5); background: var(--blanco); overflow: hidden; }
.carrusel__pista-wrap { position: relative; overflow: hidden; }
.carrusel__pista {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: var(--e-2);
  scrollbar-width: none;
}
.carrusel__pista::-webkit-scrollbar { display: none; }
.carrusel__slide {
  flex: 0 0 86%;
  min-width: 0;
  scroll-snap-align: center;
}
.tarjeta-servicio__img picture { display: block; }
@media (min-width: 768px) { .carrusel__slide { flex-basis: 46%; } }
@media (min-width: 1200px) { .carrusel__slide { flex-basis: 31.5%; } }

.tarjeta-servicio {
  height: 100%;
  background: var(--crema);
  border-radius: var(--radio-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transicion), box-shadow var(--transicion);
}
.tarjeta-servicio:hover,
.tarjeta-servicio:focus-within { transform: translateY(-4px); box-shadow: var(--sombra-3); }
.tarjeta-servicio__img { display: block; overflow: hidden; }
.tarjeta-servicio__img img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .5s;
}
.tarjeta-servicio:hover .tarjeta-servicio__img img { transform: scale(1.04); }
.tarjeta-servicio__cuerpo { padding: var(--e-3); display: flex; flex-direction: column; gap: .6rem; }
.tarjeta-servicio__titulo { font-size: var(--fs-l); color: var(--verde); margin: 0; }
.tarjeta-servicio__titulo a { color: inherit; }
.tarjeta-servicio__titulo a:hover { color: var(--naranja-txt); text-decoration: none; }
.tarjeta-servicio p { font-size: var(--fs-s); color: var(--texto); margin: 0; }

.carrusel__controles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--e-2);
  margin-top: var(--e-2);
}
.carrusel__btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radio-circ);
  border: 2px solid var(--verde);
  background: #fff;
  color: var(--verde);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color var(--transicion), color var(--transicion);
}
.carrusel__btn:hover:not(:disabled) { background: var(--verde); color: #fff; }
.carrusel__btn:disabled { opacity: .4; cursor: default; }
.carrusel__btn svg { width: 18px; height: 18px; }
.carrusel__puntos { display: flex; gap: .5rem; }
.carrusel__punto {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.carrusel__punto::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: var(--radio-circ);
  background: var(--verde-salvia);
  transition: background-color var(--transicion), transform var(--transicion);
}
.carrusel__punto[aria-current="true"]::before { background: var(--naranja); transform: scale(1.35); }

/* ------------------------------------------------------ 11. Proceso (4 pasos) */
/* =========================================================================
   11 bis. Proceso — recorrido técnico de las cuatro fases
   Línea de cota inspirada en un plano de carpintería: base translúcida,
   referencias de medición, trazo naranja que se dibuja y un rombo que
   avanza mecanizando el recorrido. La secuencia se dispara una sola vez
   desde main.js (clase .is-on) cuando entra el 30 % de la sección.
   ========================================================================= */
.proceso {
  --pr-ini: .28s;          /* retardo de la primera fase */
  --pr-gap: .62s;          /* separación entre fases */
  --pr-curva: cubic-bezier(.22, .7, .3, 1);
  position: relative;
  overflow: hidden;
  padding-block: var(--e-8) var(--e-7);
  background-color: var(--verde-osc);
  color: #fff;
}
/* la fotografía va en su propia capa: nada de background-attachment: fixed */
.proceso__foto {
  position: absolute;
  inset: -3% 0;
  z-index: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: translate3d(0, var(--pr-par, 0px), 0) scale(1.04);
  transform-origin: center;
  opacity: 0;
  will-change: transform;
}
.no-js .proceso__foto { opacity: 1; transform: none; }
.js .proceso__foto { transition: opacity 1s ease, transform 1.2s var(--pr-curva); }
.proceso.is-on .proceso__foto { opacity: 1; transform: translate3d(0, var(--pr-par, 0px), 0) scale(1); }

/* degradado oscuro controlado: garantiza la lectura sin desenfocar la foto */
.proceso .velo {
  opacity: 1;
  background: linear-gradient(180deg,
    rgba(5, 9, 4, .84) 0%,
    rgba(5, 9, 4, .6) 38%,
    rgba(5, 9, 4, .66) 66%,
    rgba(5, 9, 4, .86) 100%);
}
.proceso__cabecera { position: relative; z-index: 2; text-align: center; max-width: 70rem; margin: 0 auto var(--e-5); text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.proceso__titulo { font-size: var(--fs-xl); color: #fff; margin-bottom: var(--e-2); text-wrap: balance; }
.proceso__texto { font-size: var(--fs-m); color: #fff; margin-bottom: var(--e-3); }
.proceso__caja { position: relative; z-index: 2; }
.proceso__pasos {
  display: grid;
  gap: var(--e-3);
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 46rem;
}
@media (min-width: 992px) {
  .proceso__pasos { grid-template-columns: repeat(4, 1fr); max-width: none; }
}

.paso { position: relative; padding: var(--e-3); text-align: center; border-radius: var(--radio-lg); }
.paso:focus { outline: none; }
.paso:focus-visible { outline: 2px solid var(--naranja); outline-offset: 2px; }
.paso__numero {
  position: relative;
  z-index: 2;
  width: 60px;
  height: 60px;
  margin: 0 auto var(--e-2);
  border-radius: var(--radio-circ);
  background: linear-gradient(155deg, #ff8f2c 0%, var(--naranja) 55%, var(--naranja-osc) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: var(--fs-l);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 10px 22px rgba(0, 0, 0, .4);
  transition: transform .4s var(--pr-curva), box-shadow .4s ease, filter .4s ease;
}
/* aro exterior que se expande y se desvanece al activarse la fase */
.paso__numero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radio-circ);
  border: 1px solid rgba(247, 119, 10, .85);
  opacity: 0;
  pointer-events: none;
}
/* aro fino permanente al señalar la fase */
.paso__numero::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: var(--radio-circ);
  border: 1px solid rgba(247, 119, 10, .45);
  opacity: 0;
  transform: scale(.85);
  transition: opacity .35s, transform .35s;
}
.paso__titulo { font-size: var(--fs-m); color: #fff; margin-bottom: .4rem; }
.paso__texto { font-size: var(--fs-s); color: #eaeaea; margin: 0; }

/* --- línea de cota (solo escritorio) --- */
.proceso__flujo {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--e-3) + 10px);
  height: 40px;
  display: none;
  pointer-events: none;
  /* por encima del fondo translúcido que aparece al señalar una fase,
     pero por debajo de los círculos numerados (z-index 2) */
  z-index: 1;
}
@media (min-width: 992px) { .proceso__flujo { display: block; } }
.proceso__flujo svg { width: 100%; height: 100%; display: block; overflow: visible; }
.pr-base { fill: none; stroke: rgba(255, 255, 255, .2); stroke-width: 1; }
.pr-cotas path { fill: none; stroke: rgba(255, 255, 255, .18); stroke-width: 1; }
.pr-seg { fill: none; stroke: rgba(247, 119, 10, 0); stroke-width: 2; transition: stroke .35s ease; }
.pr-seg.is-activo { stroke: rgba(247, 119, 10, .9); }
.pr-trazo {
  fill: none;
  stroke: var(--naranja);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
}
/* rombo que avanza trazando el recorrido */
.proceso__cursor {
  position: absolute;
  left: 12.5%;
  top: 20px;
  width: 75%;
  height: 0;
}
/* el envoltorio mide justo el recorrido: al desplazarlo un 100 % recorre
   exactamente de la fase 1 a la fase 4, sin necesidad de medir nada en JS */
.proceso__cursor i { position: absolute; inset: 0; display: block; opacity: 0; }
.proceso__cursor i::before {
  content: "";
  position: absolute;
  left: -4.5px;
  top: -4.5px;
  width: 9px;
  height: 9px;
  background: var(--naranja);
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px rgba(247, 119, 10, .18), 0 0 12px rgba(247, 119, 10, .85);
}

.paso__flecha {
  position: absolute;
  top: calc(var(--e-3) + 22px);
  left: -8px;
  z-index: 3;
  color: rgba(247, 119, 10, .55);
  display: none;
}
@media (min-width: 992px) { .paso__flecha { display: block; } }
.paso__flecha svg { width: 14px; height: 14px; display: block; }

/* --- recorrido vertical por debajo de 992 px --- */
@media (max-width: 991.98px) {
  /* sin separación entre elementos: el raíl queda continuo */
  .proceso__pasos { gap: 0; }
  .paso {
    display: grid;
    grid-template-columns: 60px 1fr;
    column-gap: 1.1rem;
    text-align: left;
    padding: 0 0 var(--e-4);
  }
  .paso:last-child { padding-bottom: 0; }
  .paso__numero { grid-column: 1; grid-row: 1 / span 2; margin: 0; }
  .paso__titulo { grid-column: 2; grid-row: 1; align-self: center; margin-top: .35rem; }
  .paso__texto { grid-column: 2; grid-row: 2; }
  /* raíl base y tramo naranja que desciende */
  .paso::before,
  .paso::after {
    content: "";
    position: absolute;
    left: 29.5px;
    top: 60px;
    bottom: 0;
    width: 1px;
  }
  .paso::before { background: rgba(255, 255, 255, .2); }
  .paso::after { background: var(--naranja); transform: scaleY(0); transform-origin: top; }
  .paso:last-child::before,
  .paso:last-child::after { display: none; }
}

/* ===================== estados de entrada (solo con JavaScript) ========== */
.js .proceso .pr-trazo { stroke-dashoffset: 100; }
.js .proceso .paso__numero { opacity: 0; transform: scale(.85); }
.js .proceso .paso__titulo,
.js .proceso .paso__texto { opacity: 0; transform: translateY(14px); }

/* ============================== secuencia (.is-on, una sola vez) ========= */
.proceso.is-on .pr-trazo {
  transition: stroke-dashoffset calc(3 * var(--pr-gap)) linear var(--pr-ini);
  stroke-dashoffset: 0;
}
.proceso.is-on .proceso__cursor i {
  animation: prCursor calc(3 * var(--pr-gap)) linear var(--pr-ini) both;
}
@keyframes prCursor {
  0% { opacity: 0; transform: translateX(0); }
  6% { opacity: 1; }
  92% { opacity: 1; }
  100% { opacity: 0; transform: translateX(100%); }
}
.proceso.is-on .paso__numero {
  opacity: 1;
  transform: none;
  transition: opacity .4s ease, transform .5s var(--pr-curva), box-shadow .4s ease, filter .4s ease;
  transition-delay: calc(var(--pr-ini) + var(--k) * var(--pr-gap));
}
.proceso.is-on .paso__numero::before {
  animation: prAro .9s ease-out both;
  animation-delay: calc(var(--pr-ini) + var(--k) * var(--pr-gap));
}
@keyframes prAro {
  0% { opacity: .9; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.85); }
}
.proceso.is-on .paso__titulo,
.proceso.is-on .paso__texto {
  opacity: 1;
  transform: none;
  transition: opacity .45s ease, transform .5s var(--pr-curva);
}
.proceso.is-on .paso__titulo { transition-delay: calc(var(--pr-ini) + .12s + var(--k) * var(--pr-gap)); }
.proceso.is-on .paso__texto { transition-delay: calc(var(--pr-ini) + .24s + var(--k) * var(--pr-gap)); }
@media (max-width: 991.98px) {
  .proceso.is-on .paso::after {
    transform: scaleY(1);
    transition: transform var(--pr-gap) linear calc(var(--pr-ini) + var(--k) * var(--pr-gap));
  }
}

/* ------------------------------------------------------------ interacción */
.paso::marker { content: none; }
.proceso .paso:hover,
.proceso .paso:focus-visible {
  background: rgba(0, 0, 0, .28);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.proceso .paso:hover .paso__numero,
.proceso .paso:focus-visible .paso__numero {
  transform: translateY(-4px);
  filter: saturate(1.25) brightness(1.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 16px 28px rgba(0, 0, 0, .5);
  transition-delay: 0s;
}
.proceso .paso:hover .paso__numero::after,
.proceso .paso:focus-visible .paso__numero::after { opacity: 1; transform: none; }
.proceso .paso:hover .paso__titulo,
.proceso .paso:focus-visible .paso__titulo { color: #ffb06a; transition-delay: 0s; }

/* ---------------------------------------------------- 12. Listas ventajas */
.listas { padding-block: var(--e-4); background: var(--blanco); }
.listas__rejilla { display: grid; gap: var(--e-5); grid-template-columns: 1fr; }
@media (min-width: 992px) { .listas__rejilla { grid-template-columns: 1fr 1fr; } }
.lista-check__titulo {
  font-size: var(--fs-m);
  font-weight: 700;
  color: var(--verde);
  text-transform: uppercase;
  letter-spacing: .02em;
  margin-bottom: .5rem;
}
.lista-check__titulo + hr { border-top: 2px solid var(--crema-2); margin-bottom: var(--e-3); }
.lista-check { list-style: none; margin: 0; padding: 0; }
.lista-check li {
  position: relative;
  padding-left: 3.4rem;
  margin-bottom: var(--e-3);
  font-size: var(--fs-m);
  line-height: 1.5;
  min-height: 40px;
}
.lista-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -2px;
  width: 40px;
  height: 40px;
  border-radius: var(--radio-circ);
  background: var(--naranja);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  line-height: 1;
}

/* --------------------------------------------------- 13. Bandas inclinadas */
.bandas { padding-block: var(--e-5); overflow: hidden; background: var(--blanco); }
.banda { padding-block: 20px; overflow: hidden; }
.banda--1 { transform: rotate(2deg); background: var(--lima); }
.banda--2 { transform: rotate(-2deg); margin-top: -1.5rem; background: var(--verde-med); }
.banda__pista {
  display: flex;
  width: max-content;
  will-change: transform;
}
.banda--1 .banda__pista { animation: desplazar-izq 38s linear infinite; }
.banda--2 .banda__pista { animation: desplazar-der 38s linear infinite; }
.banda__texto {
  font-size: var(--fs-xl);
  font-weight: 500;
  white-space: nowrap;
  padding-right: 1rem;
}
.banda--1 .banda__texto { color: var(--verde-med); }
.banda--2 .banda__texto { color: var(--lima); }

@keyframes desplazar-izq {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@keyframes desplazar-der {
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

/* ------------------------------------------- 14. Bloque foto + dos imágenes */
.satisfaccion {
  position: relative;
  overflow: hidden;
  padding-block: var(--e-7);
  background-color: var(--verde-osc);
  color: #fff;
  min-height: 90vh;
  display: flex;
  align-items: center;
}
.satisfaccion .velo { opacity: .58; }
.satisfaccion__rejilla { display: grid; gap: var(--e-4); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 992px) { .satisfaccion__rejilla { grid-template-columns: 1fr 1fr; gap: var(--e-5); } }
.satisfaccion__antetitulo {
  font-size: var(--fs-xl);
  color: var(--verde-claro);
  letter-spacing: .06em;
  margin-bottom: 22px;
}
.satisfaccion__texto { font-size: var(--fs-l); color: #fff; font-weight: 400; line-height: 1.5; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.satisfaccion__texto strong { font-weight: 700; }

.par-fotos { display: flex; justify-content: center; gap: var(--e-2); position: relative; }
.par-fotos img {
  width: 240px;
  height: 275px;
  object-fit: cover;
  border: 8px solid #fafafa;
  transition: transform .4s ease;
}
@media (min-width: 992px) {
  .par-fotos img { width: 320px; height: 380px; transform: rotate(5deg); }
  .par-fotos:hover img { transform: rotate(0deg); }
}
@media (min-width: 1200px) {
  .par-fotos img { width: 372px; height: 427px; }
}

/* ---------------------------------------------------- 15. Onda + contacto */
.onda { position: relative; background: var(--crema); padding-top: var(--e-4); }
.onda__svg {
  position: absolute;
  left: 0;
  top: -49px;
  width: 100%;
  height: 50px;
  display: block;
  fill: var(--crema);
}
.onda__titulo { font-size: var(--fs-xl); color: var(--verde); text-align: center; margin: 0; }

.contacto { background: var(--crema); padding-block: var(--e-3) var(--e-4); }
.contacto__intro {
  font-size: var(--fs-l);
  text-align: center;
  color: #353535;
  margin-bottom: var(--e-4);
  text-wrap: balance;
}
.contacto__rejilla { display: grid; gap: var(--e-3); grid-template-columns: 1fr; }
@media (min-width: 768px) { .contacto__rejilla { grid-template-columns: 1fr 1fr; } }
.dato {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--e-3);
  padding: var(--e-3) var(--e-4);
  background: linear-gradient(158deg, #1e1e1e 0%, #0d0d0d 52%, #030303 100%);
  border-radius: var(--radio-lg);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  /* bisel: luz en el canto superior, sombra en el inferior */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1),
    inset 0 -1px 0 rgba(0, 0, 0, .9),
    inset 0 0 0 1px rgba(255, 255, 255, .06),
    0 14px 30px rgba(0, 0, 0, .28);
  transition: transform .45s cubic-bezier(.25, .6, .3, 1), box-shadow .45s ease;
}
/* filete de acento que crece al pasar el ratón */
.dato::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--naranja), var(--lima));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .5s cubic-bezier(.25, .6, .3, 1);
}
/* destello diagonal que barre la tarjeta */
.dato::after {
  content: "";
  position: absolute;
  inset: -60% -130%;
  z-index: -1;
  background: linear-gradient(74deg, transparent 42%, rgba(255, 255, 255, .12) 50%, transparent 58%);
  transform: translateX(-46%);
  transition: transform .9s cubic-bezier(.25, .6, .3, 1);
}
.dato:hover,
.dato:focus-within {
  transform: translateY(-5px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    inset 0 -1px 0 rgba(0, 0, 0, .9),
    inset 0 0 0 1px rgba(247, 119, 10, .22),
    0 26px 50px rgba(0, 0, 0, .42);
}
.dato:hover::before,
.dato:focus-within::before { transform: scaleY(1); }
.dato:hover::after,
.dato:focus-within::after { transform: translateX(46%); }

.dato__icono {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: var(--radio-circ);
  color: var(--naranja);
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 0 0 1px rgba(247, 119, 10, .3) inset;
  transition: transform .45s cubic-bezier(.34, 1.4, .64, 1), background-color .45s, color .45s;
}
.dato__icono svg { width: 30px; height: 30px; }
.dato:hover .dato__icono,
.dato:focus-within .dato__icono {
  transform: scale(1.08) rotate(-6deg);
  background: var(--naranja);
  color: #fff;
}
.dato__titulo { font-size: var(--fs-l); color: #fff; margin: 0 0 .2rem; letter-spacing: .01em; }
.dato p { font-size: var(--fs-m); color: #cfcfcf; margin: 0; }
.dato a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .45); }
.dato a:hover { color: var(--naranja); text-decoration-color: currentColor; }

/* aparición escalonada de las tarjetas */
.js .contacto__rejilla .dato { opacity: 0; transform: translateY(26px); }
.js .contacto__rejilla.is-visible .dato {
  animation: datoEntra .7s cubic-bezier(.25, .6, .3, 1) both;
}
.js .contacto__rejilla.is-visible .dato:nth-child(2) { animation-delay: .1s; }
.js .contacto__rejilla.is-visible .dato:nth-child(3) { animation-delay: .2s; }
.js .contacto__rejilla.is-visible .dato:nth-child(4) { animation-delay: .3s; }
@keyframes datoEntra {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

/* El mapa ocupa todo el ancho. El tratamiento visual se apoya en tres capas
   que no interceptan el ratón: filete superior e inferior, viñeta interior y
   escuadras romboidales en las esquinas, en la misma familia geométrica que
   el bloque «Cómo trabajamos». */
.mapa { background: var(--crema); }
.mapa__marco {
  position: relative;
  height: clamp(24rem, 38vw, 34rem);
  background: #e9e5dc;
  overflow: hidden;
  isolation: isolate;
}
.mapa__marco iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: saturate(.88) contrast(1.03);
  transition: filter .6s ease;
}
.mapa__marco:hover iframe,
.mapa__marco:focus-within iframe { filter: none; }

/* viñeta + filetes; nunca captura clics para no romper el mapa */
.mapa__marco-deco {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  box-shadow:
    inset 0 1px 0 rgba(46, 81, 37, .28),
    inset 0 -1px 0 rgba(46, 81, 37, .28),
    inset 0 26px 44px -28px rgba(12, 21, 10, .55),
    inset 0 -26px 44px -28px rgba(12, 21, 10, .55);
}
/* escuadras de encuadre en dos esquinas opuestas */
.mapa__marco-deco::before,
.mapa__marco-deco::after {
  content: "";
  position: absolute;
  width: clamp(38px, 5vw, 68px);
  height: clamp(38px, 5vw, 68px);
  border: 0 solid rgba(255, 255, 255, .9);
  filter: drop-shadow(0 1px 2px rgba(12, 21, 10, .35));
}
.mapa__marco-deco::before {
  top: clamp(1rem, 2.4vw, 2rem);
  left: clamp(1rem, 2.4vw, 2rem);
  border-top-width: 1.5px;
  border-left-width: 1.5px;
}
.mapa__marco-deco::after {
  bottom: clamp(1rem, 2.4vw, 2rem);
  right: clamp(1rem, 2.4vw, 2rem);
  border-bottom-width: 1.5px;
  border-right-width: 1.5px;
}

/* enlace de respaldo: mantiene el acceso a Google Maps sin texto bajo el mapa */
.mapa__abrir {
  position: absolute;
  z-index: 3;
  right: clamp(1rem, 3vw, 2.5rem);
  top: clamp(1rem, 3vw, 2.5rem);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .6rem 1.05rem;
  font-size: var(--fs-s);
  font-weight: 500;
  text-decoration: none;
  color: var(--verde);
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(46, 81, 37, .16);
  box-shadow: 0 10px 26px rgba(12, 21, 10, .16);
  transition: color var(--transicion), transform var(--transicion), box-shadow var(--transicion);
}
.mapa__abrir svg { width: 18px; height: 18px; flex: 0 0 auto; }
.mapa__abrir:hover,
.mapa__abrir:focus-visible {
  color: var(--naranja-txt);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(12, 21, 10, .22);
}
@media (max-width: 560px) {
  .mapa__abrir { right: 1rem; left: 1rem; top: 1rem; justify-content: center; }
  .mapa__marco-deco::before,
  .mapa__marco-deco::after { display: none; }
}

/* --------------------------------------------------------------- 16. Pie */
.pie { background: var(--footer-bg); color: var(--footer-texto); padding-block: 60px 45px; }
.pie__redes { display: flex; justify-content: center; gap: .75rem; margin-bottom: var(--e-4); }
/* Botón cuadrado de esquinas suaves: superficie oscura con canto de luz y un
   relleno naranja que sube desde abajo al pasar el ratón o al recibir foco. */
.pie__red {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: linear-gradient(160deg, rgba(247, 119, 10, .2) 0%, rgba(247, 119, 10, .06) 100%);
  color: #ffb06a;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    inset 0 0 0 1px rgba(247, 119, 10, .42),
    0 6px 18px rgba(0, 0, 0, .6);
  transition: transform .35s cubic-bezier(.25, .6, .3, 1), color .35s ease, box-shadow .35s ease;
}
.pie__red::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(160deg, #ff8f2c 0%, var(--naranja) 55%, var(--naranja-osc) 100%);
  transform: translateY(101%);
  transition: transform .4s cubic-bezier(.25, .6, .3, 1);
}
.pie__red svg { width: 20px; height: 20px; transition: transform .35s cubic-bezier(.34, 1.4, .64, 1); }
.pie__red:hover,
.pie__red:focus-visible {
  color: #fff;
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .3),
    inset 0 0 0 1px rgba(247, 119, 10, .5),
    0 12px 26px rgba(165, 79, 5, .42);
}
.pie__red:hover::before,
.pie__red:focus-visible::before { transform: translateY(0); }
.pie__red:hover svg,
.pie__red:focus-visible svg { transform: scale(1.1); }
.pie__texto { text-align: center; font-size: var(--fs-m); color: var(--footer-texto); line-height: 2; }
.pie__texto a { color: var(--naranja); }
.pie__sep { padding-inline: .6rem; color: #666; }

/* ------------------------------------------------ 17. Páginas interiores */
.hero-interior {
  position: relative;
  min-height: 60vh;
  display: grid;
  place-items: center;
  padding-top: calc(var(--alto-nav) + var(--e-5));
  padding-bottom: var(--e-7);
  color: #fff;
  background-color: var(--verde-osc);
  text-align: center;
}
.hero-interior .velo { opacity: .5; }
.hero-interior__titulo { font-size: var(--fs-xl); color: #fff; margin-bottom: .6rem; text-wrap: balance; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.hero-interior__subtitulo { font-size: var(--fs-m); color: var(--crema); margin: 0; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }

/* Ruta de navegación: vive dentro del hero, bajo el título. Sin fondo propio,
   en versalitas finas sobre la fotografía. */
.migas { font-size: .78rem; margin-top: var(--e-3); }
.migas ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .3rem .55rem;
  list-style: none;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: rgba(255, 255, 255, .72);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
}
.migas li { display: inline-flex; align-items: center; gap: .55rem; }
.migas li::after {
  content: "";
  width: 14px;
  height: 1px;
  background: rgba(247, 119, 10, .7);
}
.migas li:last-child::after { content: none; }
.migas a { color: rgba(255, 255, 255, .9); text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid rgba(255, 255, 255, .28); transition: color var(--transicion), border-color var(--transicion); }
.migas a:hover,
.migas a:focus-visible { color: var(--naranja); border-color: var(--naranja); }
.migas [aria-current="page"] { color: rgba(255, 255, 255, .62); }

.articulo { padding-block: var(--e-6) var(--e-2); background: var(--blanco); }
.articulo__titulo { font-size: var(--fs-xl); color: var(--verde); margin-bottom: var(--e-2); text-wrap: balance; }
.articulo__subtitulo { font-size: var(--fs-l); color: var(--naranja-txt); margin-bottom: var(--e-3); }
.articulo p,
.articulo li { font-size: var(--fs-m); line-height: var(--lh-texto); color: var(--texto); }
/* el texto justificado solo a partir de tablet: en móvil crea calles y
   separaciones irregulares que dificultan la lectura */
@media (min-width: 768px) {
  .articulo p,
  .articulo__lista li,
  .presentacion p { text-align: justify; }
}
.articulo h3 { font-size: var(--fs-l); color: var(--verde); margin-top: var(--e-4); }
.articulo__lista { list-style: none; padding: 0; }
.articulo__lista li { position: relative; padding-left: 1.8rem; margin-bottom: var(--e-2); }
.articulo__lista li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: .7rem;
  height: .7rem;
  border-radius: var(--radio-circ);
  background: var(--naranja);
}

.frase { padding-block: 0 45px; background: var(--blanco); }
.frase__linea { border-top: 2px solid var(--verde); }
.frase p {
  margin: 0;
  padding: var(--e-4) 0;
  font-size: var(--fs-l);
  color: var(--verde);
  text-align: center;
  font-weight: 500;
  text-wrap: balance;
}

/* Banda verde con collage */
.collage { background: var(--verde); padding-top: var(--e-5); padding-bottom: 0; position: relative; }
.collage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: var(--blanco); }
.collage__cabecera { max-width: 1180px; margin: 0 auto var(--e-4); text-align: center; position: relative; z-index: 2; }
.collage__titulo { font-size: var(--fs-xl); color: var(--naranja); margin-bottom: var(--e-2); text-wrap: balance; }
.collage__texto { font-size: var(--fs-m); color: #fff; }
.collage__img { position: relative; z-index: 2; }
.collage__img img { width: 100%; border-radius: var(--radio); }

.banner { padding-block: var(--e-4); background: var(--blanco); }
.banner img { width: 100%; border-radius: var(--radio); }

/* ------------------------------------------------------ 18. Galería + lightbox */
.galeria { padding-block: var(--e-4) 45px; background: var(--blanco); }
.galeria__cabecera { text-align: center; max-width: 1180px; margin: 0 auto var(--e-3); }
.galeria__titulo { font-size: var(--fs-xl); color: var(--verde); margin-bottom: .6rem; }
.galeria__subtitulo { font-size: var(--fs-l); color: var(--naranja-txt); margin-bottom: .8rem; }
.galeria__texto { font-size: var(--fs-m); }

.galeria__filtros { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-bottom: var(--e-3); }
.galeria__filtro {
  min-height: 44px;
  padding: .5rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 100px;
  background: transparent;
  color: var(--verde);
  font-family: inherit;
  font-size: var(--fs-s);
  cursor: pointer;
  transition: border-color var(--transicion), background-color var(--transicion);
}
.galeria__filtro:hover { border-color: var(--verde-salvia); }
.galeria__filtro[aria-pressed="true"] { border-color: var(--verde); background: var(--crema); font-weight: 600; }

.galeria__rejilla {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) {
  .galeria__rejilla { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
.galeria__item { margin: 0; }
.galeria__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: var(--radio);
}
.galeria__btn img {
  width: 100%;
  aspect-ratio: 980 / 716;
  object-fit: cover;
  transition: transform .4s ease;
}
.galeria--vertical .galeria__btn img { aspect-ratio: 700 / 716; }
.galeria__btn::after {
  content: "+";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: #fff;
  background: linear-gradient(180deg, rgba(144, 144, 144, .55), rgba(0, 0, 0, .8));
  opacity: 0;
  transition: opacity .25s;
}
.galeria__btn:hover::after,
.galeria__btn:focus-visible::after { opacity: 1; }
.galeria__btn:hover img { transform: scale(1.03); }

.lightbox {
  border: 0;
  padding: 0;
  width: min(96vw, 1400px);
  max-width: 96vw;
  max-height: 96vh;
  background: transparent;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(0, 0, 0, .9); }
.lightbox__cuerpo { position: relative; display: grid; place-items: center; }
.lightbox__img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  border-radius: var(--radio);
  background: #111;
}
.lightbox__pie { color: #fff; font-size: var(--fs-s); text-align: center; padding-top: .8rem; min-height: 2rem; }
.lightbox__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: var(--radio-circ);
  border: 0;
  background: rgba(27, 27, 27, .85);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.lightbox__btn:hover { background: var(--naranja); }
.lightbox__btn--prev { left: -6px; }
.lightbox__btn--next { right: -6px; }
@media (min-width: 992px) {
  .lightbox__btn--prev { left: -64px; }
  .lightbox__btn--next { right: -64px; }
}
.lightbox__cerrar {
  position: absolute;
  top: -52px;
  right: -6px;
  width: 48px;
  height: 48px;
  border-radius: var(--radio-circ);
  border: 0;
  background: rgba(27, 27, 27, .85);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.lightbox__cerrar:hover { background: var(--naranja); }
.lightbox svg { width: 20px; height: 20px; }

/* --------------------------------------------- 19. Página nuestra empresa */
.presentacion { background: var(--blanco); padding-block: var(--e-5); }
.presentacion__rejilla { display: grid; gap: var(--e-4); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 992px) { .presentacion__rejilla { grid-template-columns: 1fr 1fr; gap: var(--e-6); } }
.presentacion__titulo { font-size: var(--fs-xl); color: var(--verde); margin-bottom: var(--e-2); }
.presentacion p { font-size: var(--fs-m); line-height: var(--lh-texto); }
.presentacion img { width: 100%; border-radius: var(--radio); object-fit: cover; }

.duo { background: var(--crema-2); padding-block: var(--e-7) var(--e-2); }
.duo__titulo { font-size: var(--fs-xl); color: var(--verde); text-align: center; margin-bottom: var(--e-5); }
.duo__item {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--blanco);
  margin-bottom: 4px;
  border-radius: var(--radio);
  overflow: hidden;
}
@media (min-width: 992px) {
  .duo__item { grid-template-columns: 1fr 1fr; }
  .duo__item--invertido .duo__media { order: -1; }
}
.duo__texto { padding: var(--e-4); }
@media (min-width: 992px) { .duo__texto { padding: 64px; } }
.duo__texto h3 { font-size: var(--fs-l); color: var(--verde); margin-bottom: .9rem; }
.duo__texto p { font-size: var(--fs-s); color: #555; line-height: var(--lh-texto); }
.duo__media { padding: 0 var(--e-3) var(--e-3); }
@media (min-width: 992px) { .duo__media { padding: 64px; } }
.duo__media img { width: 100%; height: 300px; object-fit: cover; border-radius: var(--radio); }
@media (min-width: 992px) { .duo__media img { height: 400px; } }

/* --------------------------------------------------- 20. Páginas legales */
.legal { background: #fffefe; padding-block: var(--e-6) var(--e-7); }
.legal h1 { font-size: var(--fs-xl); color: var(--verde); margin-bottom: var(--e-4); }
.legal h2 { font-size: var(--fs-l); color: var(--verde); margin-top: var(--e-5); margin-bottom: var(--e-2); }
.legal h3 { font-size: var(--fs-m); color: var(--naranja-txt); margin-top: var(--e-3); }
.legal p,
.legal li { font-size: 1.05rem; line-height: 1.75; color: #1c1c1c; }
.legal ul { padding-left: 1.4rem; }
.legal ol { padding-left: 1.4rem; }
.legal a { word-break: break-word; }
.legal__datos {
  background: var(--crema);
  border-left: 4px solid var(--verde);
  padding: var(--e-3);
  border-radius: var(--radio);
  margin-bottom: var(--e-3);
}
.legal__datos p { margin: 0 0 .3rem; }

/* ---------------------------------------------------------- 21. Error 404 */
.error404 { text-align: center; padding-block: var(--e-8); background: var(--crema); }
.error404 h1 { font-size: var(--fs-xxl); color: var(--verde); }
.error404 p { font-size: var(--fs-m); max-width: 46rem; margin-inline: auto; }
.error404__acciones { display: flex; flex-wrap: wrap; gap: var(--e-2); justify-content: center; margin-top: var(--e-3); }

/* ------------------------------------------------------- 22. Volver arriba */
.arriba {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 900;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: var(--radio-circ);
  background: var(--verde);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s, visibility .3s, background-color .3s;
}
.arriba.is-visible { opacity: 1; visibility: visible; transform: none; }
.arriba:hover { background: var(--naranja); }
.arriba svg { width: 20px; height: 20px; }

/* ----------------------------------------------------- 23. Animaciones UI */
.js .aparece {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.js .aparece.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js .aparece { opacity: 1; transform: none; }
  .fondo-fijo { background-attachment: scroll; }
  .banda__pista { animation: none !important; }
  .carrusel__pista { scroll-behavior: auto; }

  /* No basta con apagar la animación: hay que fijar el estado final,
     porque varias de ellas dejan el elemento invisible en su estado inicial. */
  .hero__slide.is-on img { animation: none; transform: scale(1.05); }
  .hero__circulos { display: none; }
  .hero__num[aria-current="true"] .hero__num-fill { animation: none; height: 100%; width: 100%; }
  .hero__scroll .hero__raton::after,
  .hero__scroll svg { animation: none; opacity: 1; }
  /* Proceso: estado final directo, sin recorrido ni parallax */
  .js .proceso__foto { opacity: 1 !important; transform: none !important; }
  .js .proceso .pr-trazo { stroke-dashoffset: 0 !important; }
  .js .proceso .paso__numero { opacity: 1 !important; transform: none !important; }
  .js .proceso .paso__numero::before { animation: none !important; opacity: 0 !important; }
  .js .proceso .paso__titulo,
  .js .proceso .paso__texto { opacity: 1 !important; transform: none !important; }
  .proceso__cursor i { animation: none !important; opacity: 0 !important; }
  .proceso.is-on .paso::after { transform: scaleY(1) !important; transition: none !important; }
  /* Diamante: se muestra directamente el estado final, sin secuencia. */
  .js .diamante__nucleo { opacity: 1 !important; transform: none !important; }
  .js .diamante .dm-arista--ext { stroke-dashoffset: 0 !important; }
  .js .diamante .dm-arista--eco,
  .js .diamante .dm-eje,
  .js .diamante .dm-plano { opacity: 1 !important; }
  .js .diamante .dm-arista--int { opacity: .62 !important; }
  .js .diamante .dm-faceta { opacity: 1 !important; transform: none !important; }
  .js .diamante .dm-linea { stroke-dashoffset: 0 !important; }
  .js .diamante .dm-pulso { animation: none !important; opacity: 0 !important; }
  .js .diamante__paso { opacity: 1 !important; filter: none !important; transform: none !important; }
  .js .diamante__ico { opacity: 1 !important; }
  .diamante__brillo,
  .diamante__brillo::before { animation: none !important; opacity: 0 !important; }
  .diamante.is-on .dm-arista--int { animation: none !important; }
  .diamante.is-on .diamante__nodo { border-color: var(--dm-acento); }
  .js .contacto__rejilla .dato { opacity: 1; transform: none; animation: none !important; }
  .nav__cta .btn::after,
  .arriba svg { animation: none !important; }
  .nav__submenu.is-abierto { animation: none; }
  .dato::after { display: none; }
}

/* Sin JavaScript nada queda oculto: el estado por defecto es abierto y legible */
.no-js .hero__nums,
.no-js .cookies { display: none; }
.no-js .contacto__rejilla .dato { opacity: 1; transform: none; }

/* ------------------------------------------------------------ 24. Print */
@media print {
  .cabecera, .arriba, .carrusel__controles, .galeria__filtros, .mapa, .bandas { display: none !important; }
  body { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}

/* Anclas heredadas de la versión anterior: no ocupan espacio pero permiten
   que los enlaces antiguos (#header3-36, #gallery1-7l, #contacts2-4d…)
   sigan funcionando sin que la cabecera fija tape el título. */
.ancla-legado {
  display: block;
  position: absolute;
  width: 0;
  height: 0;
  scroll-margin-top: calc(var(--alto-nav) + 12px);
}

/* =========================================================================
   25. Diamante facetado — «Cómo trabajamos»
   Composición angular y simétrica: un rombo central con facetas y un segundo
   marco desplazado, seis fases enlazadas por recorridos quebrados y una
   señal luminosa que las activa en orden. La entrada se dispara una sola vez
   desde el observador de main.js (clase .is-on); en reposo la sección queda
   prácticamente estática. Sin órbitas ni rotaciones continuas.
   ========================================================================= */
.diamante {
  /* tokens propios del bloque, derivados de la paleta corporativa */
  --dm-fondo: var(--crema);
  --dm-texto: var(--verde);
  --dm-texto-2: var(--texto-suave);
  --dm-acento: var(--naranja);
  --dm-linea: rgba(46, 81, 37, .34);
  --dm-linea-fuerte: rgba(46, 81, 37, .55);
  --dm-superficie: rgba(46, 81, 37, .055);
  --dm-superficie-2: rgba(247, 119, 10, .07);
  --dm-sombra: 0 22px 48px rgba(12, 21, 10, .13);
  --dm-dur: .62s;
  --dm-paso: .15s;
  --dm-t-nucleo: .1s;
  --dm-t-aristas: .3s;
  --dm-t-facetas: .62s;
  --dm-t-trazos: .95s;
  --dm-t-contenido: 1.2s;
  --dm-curva: cubic-bezier(.22, .7, .3, 1);

  position: relative;
  padding-block: var(--e-7);
  background: var(--dm-fondo);
  overflow: hidden;
}
.diamante::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 52% at 50% 44%, rgba(46, 81, 37, .06) 0%, transparent 72%),
    repeating-linear-gradient(118deg, rgba(46, 81, 37, .03) 0 2px, transparent 2px 24px);
}
.diamante__cabecera { position: relative; text-align: center; max-width: 62rem; margin: 0 auto var(--e-6); }
.diamante__titulo { font-size: var(--fs-xl); color: var(--dm-texto); margin-bottom: var(--e-2); text-wrap: balance; }
.diamante__texto { font-size: var(--fs-m); color: var(--texto); }
.diamante__cta { margin-top: var(--e-5); position: relative; }

/* ------------------------------------------------------------- escenario */
.diamante__escena {
  --dm-hub: clamp(230px, 22.5vw, 344px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--dm-hub) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 5.5rem);
  align-items: center;
}
.diamante__trazos {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

/* --------------------------------------------------------------- fases */
.diamante__col {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1.6rem, 2.8vw, 3rem);
  /* filas de igual altura en ambos lados: la composición queda simétrica
     aunque los textos tengan longitudes distintas */
  align-self: stretch;
  grid-auto-rows: 1fr;
  align-content: center;
}
.diamante__col--i { text-align: right; }

.diamante__paso {
  position: relative;
  display: flex;
  align-items: flex-start;
  align-self: start;   /* la fila mide igual en ambos lados; el bloque, solo lo que ocupa */
  gap: 1rem;
  padding: .5rem .1rem;
}
.diamante__col--i .diamante__paso { flex-direction: row-reverse; }
.diamante__paso:focus { outline: none; }
.diamante__paso:focus-visible { outline: 2px solid var(--dm-acento); outline-offset: 6px; }

.diamante__ico {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: clamp(48px, 4.4vw, 62px);
  aspect-ratio: 1;
  background: #fff;
  color: var(--dm-texto);
  box-shadow: 0 8px 20px rgba(12, 21, 10, .09), 0 0 0 1px rgba(46, 81, 37, .13) inset;
  transition: color var(--transicion), box-shadow var(--transicion);
}
/* pequeño rombo de esquina: mismo lenguaje geométrico que el núcleo */
.diamante__ico::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  width: 8px;
  height: 8px;
  background: var(--dm-acento);
  transform: rotate(45deg) scale(0);
  transition: transform .4s var(--dm-curva);
}
.diamante__col--i .diamante__ico::before { left: auto; right: -4px; }
.diamante__ico svg { width: 45%; height: 45%; }

.diamante__cont h3 { font-size: var(--fs-m); color: var(--dm-texto); margin-bottom: .3rem; }
.diamante__cont p { font-size: var(--fs-s); color: var(--dm-texto-2); margin: 0; line-height: 1.55; }

/* nodo de conexión: rombo, nunca un círculo */
.diamante__nodo {
  position: absolute;
  top: calc(.5rem + clamp(24px, 2.2vw, 31px) - 7px);
  width: 14px;
  height: 14px;
  background: #fff;
  border: 1px solid var(--dm-linea);
  transform: rotate(45deg);
  transition: border-color .35s ease, box-shadow .35s ease, background .35s ease;
}
.diamante__col--i .diamante__nodo { right: -1.4rem; }
.diamante__col--d .diamante__nodo { left: -1.4rem; }

/* ---------------------------------------------------------- núcleo/rombo */
.diamante__nucleo {
  position: relative;
  width: var(--dm-hub);
  aspect-ratio: 1;
  margin-inline: auto;
}
/* profundidad: una sombra amplia y muy suave por detrás de la figura */
.diamante__nucleo::before {
  content: "";
  position: absolute;
  inset: -14%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(12, 21, 10, .14) 0%, rgba(12, 21, 10, .05) 55%, transparent 78%);
  filter: blur(6px);
}
.diamante__figura { position: relative; z-index: 1; width: 100%; height: 100%; display: block; }

.dm-plano { fill: rgba(255, 255, 255, .62); }
.dm-faceta--a { fill: rgba(46, 81, 37, .085); }
.dm-faceta--b { fill: rgba(46, 81, 37, .042); }
.dm-faceta--c { fill: rgba(247, 119, 10, .085); }

.dm-arista {
  fill: none;
  stroke: var(--dm-linea-fuerte);
  stroke-width: 1.3;
  stroke-linejoin: miter;
}
/* rombo exterior: dos interrupciones intencionadas en las aristas */
.dm-arista--ext { stroke-dasharray: 47.4 3 46.6 3; }
/* segundo marco, incompleto y ligeramente desplazado */
.dm-arista--eco {
  stroke: rgba(46, 81, 37, .2);
  stroke-width: 1;
  stroke-dasharray: 96 34 62 26 84 42;
}
/* rombo interior de acento */
.dm-arista--int {
  stroke: var(--dm-acento);
  stroke-width: 1.1;
  opacity: .62;
  stroke-dasharray: 74 22 96 18 62 30;
}
.dm-eje {
  fill: none;
  stroke: rgba(46, 81, 37, .22);
  stroke-width: 1;
  stroke-dasharray: 1.6 6;
}

/* panel legible para el logotipo */
.diamante__panel {
  position: absolute;
  z-index: 2;
  left: 19%;
  right: 19%;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  padding: .7rem .85rem;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(46, 81, 37, .12), var(--dm-sombra);
}
.diamante__panel img { width: 100%; height: auto; }

/* banda diagonal de luz, recortada dentro del rombo y por detrás del panel */
.diamante__brillo {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  clip-path: polygon(50% 3%, 97% 50%, 50% 97%, 3% 50%);
}
.diamante__brillo::before {
  content: "";
  position: absolute;
  top: -45%;
  left: -55%;
  width: 34%;
  height: 190%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .85), rgba(255, 255, 255, 0));
  transform: translateX(0) rotate(20deg);
}

/* --------------------------------------------------- recorridos angulares */
.dm-linea {
  fill: none;
  stroke: var(--dm-linea);
  stroke-width: 1;
  stroke-linejoin: miter;
}
.dm-pulso {
  fill: none;
  stroke: var(--dm-acento);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 10 90;
  stroke-dashoffset: 10;
  opacity: 0;
}

/* =============================== estados de entrada (solo con JavaScript) */
.js .diamante__nucleo {
  opacity: 0;
  transform: scale(.96);
  transition: opacity .7s ease var(--dm-t-nucleo), transform .7s var(--dm-curva) var(--dm-t-nucleo);
}
.js .diamante .dm-arista--ext {
  stroke-dashoffset: 100;
  transition: stroke-dashoffset .95s cubic-bezier(.4, 0, .2, 1) var(--dm-t-aristas);
}
.js .diamante .dm-arista--eco,
.js .diamante .dm-arista--int,
.js .diamante .dm-eje,
.js .diamante .dm-plano {
  opacity: 0;
  transition: opacity .6s ease var(--dm-t-facetas);
}
.js .diamante .dm-faceta {
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .5s ease, transform .5s var(--dm-curva);
}
.js .diamante .dm-linea {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset .8s cubic-bezier(.4, 0, .2, 1);
}
.js .diamante__paso {
  opacity: 0;
  filter: blur(5px);
  transition: opacity var(--dm-dur) ease, transform var(--dm-dur) var(--dm-curva), filter var(--dm-dur) ease;
}
.js .diamante__col--i .diamante__paso { transform: translateX(-18px); }
.js .diamante__col--d .diamante__paso { transform: translateX(18px); }
.js .diamante__ico { opacity: 0; transition: opacity .45s ease, color var(--transicion), box-shadow var(--transicion); }

/* ============================================ secuencia (.is-on una vez) */
.diamante.is-on .diamante__nucleo { opacity: 1; transform: none; }
.diamante.is-on .dm-arista--ext { stroke-dashoffset: 0; }
.diamante.is-on .dm-arista--eco,
.diamante.is-on .dm-eje,
.diamante.is-on .dm-plano { opacity: 1; }
.diamante.is-on .dm-arista--int { opacity: .62; }
.diamante.is-on .dm-faceta {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--dm-t-facetas) + var(--f) * .09s);
}
.diamante.is-on .dm-linea {
  stroke-dashoffset: 0;
  transition-delay: calc(var(--dm-t-trazos) + var(--i) * var(--dm-paso));
}
.diamante.is-on .dm-pulso {
  animation: dmPulso .9s cubic-bezier(.35, 0, .25, 1) forwards;
  animation-delay: calc(var(--dm-t-trazos) + .2s + var(--i) * var(--dm-paso));
}
@keyframes dmPulso {
  0% { opacity: 0; stroke-dashoffset: 10; }
  14% { opacity: 1; }
  86% { opacity: 1; }
  100% { opacity: 0; stroke-dashoffset: -90; }
}
.diamante.is-on .diamante__paso {
  opacity: 1;
  filter: none;
  transform: none;
  transition-delay: calc(var(--dm-t-contenido) + var(--i) * var(--dm-paso));
}
.diamante.is-on .diamante__ico {
  opacity: 1;
  transition-delay: calc(var(--dm-t-contenido) + .05s + var(--i) * var(--dm-paso));
}
.diamante.is-on .diamante__nodo {
  border-color: var(--dm-acento);
  box-shadow: 0 0 0 4px rgba(247, 119, 10, .12);
  transition-delay: calc(var(--dm-t-contenido) - .1s + var(--i) * var(--dm-paso));
}
.diamante.is-on .diamante__brillo { animation: dmDestello 1.4s ease-out 2.45s 1; }
.diamante.is-on .diamante__brillo::before { animation: dmBanda 1.4s ease-out 2.45s 1 both; }
@keyframes dmDestello { 0% { opacity: 0; } 18% { opacity: .5; } 100% { opacity: 0; } }
@keyframes dmBanda {
  from { transform: translateX(0) rotate(20deg); }
  to { transform: translateX(430%) rotate(20deg); }
}
/* reposo: solo una variación de luminosidad muy suave sobre la arista interior */
.diamante.is-on .dm-arista--int { animation: dmLatido 9s ease-in-out 4.2s infinite; }
@keyframes dmLatido { 0%, 82%, 100% { opacity: .62; } 91% { opacity: .22; } }

/* -------------------------------------------------------------- hover/foco */
.diamante .diamante__paso:hover,
.diamante .diamante__paso:focus-visible { transform: translateY(-3px); transition-delay: 0s; }
.diamante__paso:hover .diamante__ico,
.diamante__paso:focus-visible .diamante__ico {
  color: var(--dm-acento);
  box-shadow: 0 14px 26px rgba(12, 21, 10, .15), 0 0 0 1px rgba(247, 119, 10, .35) inset;
}
.diamante__paso:hover .diamante__ico::before,
.diamante__paso:focus-visible .diamante__ico::before { transform: rotate(45deg) scale(1); }
.diamante__paso:hover .diamante__cont h3,
.diamante__paso:focus-visible .diamante__cont h3 { color: var(--naranja-txt); }
.diamante__paso:hover .diamante__nodo,
.diamante__paso:focus-visible .diamante__nodo {
  background: var(--dm-acento);
  box-shadow: 0 0 0 5px rgba(247, 119, 10, .16);
  transition-delay: 0s;
}
/* el recorrido de la fase enfocada se ilumina */
.diamante__escena:has(.diamante__paso:hover) .dm-linea:not(.is-activa),
.diamante__escena:has(.diamante__paso:focus-visible) .dm-linea:not(.is-activa) { stroke: rgba(46, 81, 37, .16); }
.diamante__escena:has(.diamante__paso:hover) .diamante__col .diamante__paso:not(:hover),
.diamante__escena:has(.diamante__paso:focus-visible) .diamante__col .diamante__paso:not(:focus-visible) { opacity: .78; }
.dm-linea.is-activa { stroke: var(--dm-acento); stroke-width: 1.4; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1023.98px) {
  .diamante__escena { grid-template-columns: 1fr; justify-items: center; gap: var(--e-4); }
  .diamante__escena { --dm-hub: clamp(190px, 34vw, 250px); }
  .diamante__trazos { display: none; }
  .diamante__nucleo { order: -1; margin-bottom: var(--e-3); }
  .diamante__col { grid-template-columns: 1fr 1fr; width: 100%; }
  .diamante__col--i { text-align: left; }
  .diamante__col--i .diamante__paso { flex-direction: row; }
  .diamante__col--i .diamante__ico::before { left: -4px; right: auto; }
  .diamante__nodo { display: none; }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
  /* tres fases por fila en cada lista: rejilla de 3 x 2 sin huecos */
  .diamante__col { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem clamp(1rem, 2.4vw, 2rem); }
  .diamante__col,
  .diamante__col--i { text-align: center; }
  .diamante__paso,
  .diamante__col--i .diamante__paso { flex-direction: column; align-items: center; gap: .75rem; }
  .diamante__col--i .diamante__ico::before { left: -4px; right: auto; }
  .diamante__col--d { margin-top: .6rem; }
}

@media (max-width: 767.98px) {
  .diamante__escena { --dm-hub: clamp(180px, 52vw, 230px); gap: 1.9rem; }
  .diamante__nucleo { margin-bottom: var(--e-4); }
  /* la barra vertical arranca en el diamante */
  .diamante__col--i { position: relative; }
  .diamante__col--i::before {
    content: "";
    position: absolute;
    left: .4rem;
    top: -1.9rem;
    height: 1.9rem;
    width: 1px;
    background: rgba(46, 81, 37, .25);
  }
  .diamante__col { grid-template-columns: 1fr; gap: 1.9rem; }
  /* recorrido vertical quebrado: raíl fino, nodo romboidal y acometida en ángulo */
  .diamante__col { padding-left: 1.6rem; }
  .diamante__paso { padding-left: 0; }
  .diamante__paso::before {
    content: "";
    position: absolute;
    left: -1.2rem;
    top: 0;
    bottom: -1.9rem;
    width: 1px;
    background: rgba(46, 81, 37, .25);
  }
  .diamante__col--d .diamante__paso:last-child::before { bottom: 50%; }
  .diamante__nodo {
    display: block;
    left: calc(-1.2rem - 6px);
    right: auto;
    top: calc(.5rem + clamp(24px, 2.2vw, 31px) - 7px);
    width: 12px;
    height: 12px;
    border-color: var(--dm-acento);
  }
  .diamante__nodo::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    width: .85rem;
    height: 1px;
    background: rgba(46, 81, 37, .25);
    transform: rotate(-45deg);
    transform-origin: left center;
  }
  .diamante__paso:hover, .diamante__paso:focus-visible { transform: none; }
}

/* =========================================================================
   26. Aviso de cookies
   ========================================================================= */
.cookies {
  position: fixed;
  left: 50%;
  bottom: .75rem;
  transform: translateX(-50%) translateY(140%);
  z-index: 1200;
  width: min(96vw, 62rem);
  padding: var(--e-3) var(--e-3) 1.1rem;
  background: #fff;
  border: 1px solid rgba(46, 81, 37, .16);
  border-radius: var(--radio-lg);
  box-shadow: 0 24px 60px rgba(12, 21, 10, .3);
  transition: transform .5s cubic-bezier(.25, .6, .3, 1), opacity .4s ease;
  opacity: 0;
  visibility: hidden;
}
.cookies.is-visible { transform: translateX(-50%); opacity: 1; visibility: visible; }
.cookies::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  border-radius: var(--radio-lg) var(--radio-lg) 0 0;
  background: linear-gradient(90deg, var(--naranja), var(--lima) 60%, var(--verde));
}
.cookies__titulo { font-size: var(--fs-m); color: var(--verde); margin-bottom: .35rem; }
.cookies p { font-size: .98rem; line-height: 1.6; color: var(--texto); margin-bottom: var(--e-2); }
.cookies__acciones { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookies__acciones .btn[data-cookies="guardar"] { display: none; }
.cookies.is-configurando .cookies__acciones .btn[data-cookies="guardar"] { display: inline-flex; }
.cookies__acciones .btn { flex: 1 1 auto; min-width: 12rem; }
.cookies__detalle {
  margin: var(--e-2) 0;
  padding: var(--e-2);
  background: var(--crema);
  border-radius: var(--radio);
}
.cookies__detalle[hidden] { display: none; }
.cookies__opcion { display: flex; gap: .75rem; align-items: flex-start; padding: .5rem 0; }
.cookies__opcion + .cookies__opcion { border-top: 1px solid rgba(46, 81, 37, .12); }
.cookies__opcion input { width: 20px; height: 20px; margin-top: .2rem; accent-color: var(--verde); flex: 0 0 auto; }
.cookies__opcion label { font-weight: 600; color: var(--verde); font-size: .98rem; }
.cookies__opcion p { font-size: .9rem; margin: .15rem 0 0; color: var(--texto-suave); }
@media (min-width: 768px) {
  .cookies { display: grid; grid-template-columns: 1fr auto; gap: var(--e-3); align-items: center; }
  .cookies__texto { grid-column: 1 / -1; }
  .cookies__detalle { grid-column: 1 / -1; margin: 0; }
  .cookies__acciones { grid-column: 1 / -1; justify-content: flex-end; }
  .cookies__acciones .btn { flex: 0 0 auto; }
}

/* aviso que sustituye al mapa mientras no hay consentimiento */
.mapa__aviso[hidden] { display: none; }
.mapa__aviso {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-content: center;
  gap: .8rem;
  justify-items: center;
  text-align: center;
  padding: var(--e-3);
  background: linear-gradient(150deg, #3a6330 0%, var(--verde) 55%, #24401d 100%);
  color: #fff;
}
.mapa__aviso p { max-width: 34rem; font-size: var(--fs-s); color: var(--contacto-texto); margin: 0; }
.mapa__aviso strong { color: #fff; font-size: var(--fs-m); }

/* =========================================================================
   27. Pie de página
   ========================================================================= */
.pie__legales {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .4rem 1.9rem;
  list-style: none;
  margin: 0 0 var(--e-3);
  padding: 0;
}
.pie__legales a,
.pie__legales button {
  display: inline-block;
  padding: .45rem .1rem;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: var(--fs-s);
  color: #e6ece2;
  cursor: pointer;
  text-decoration: none;
  transition: color .25s;
}
.pie__legales a:hover,
.pie__legales button:hover,
.pie__legales a:focus-visible,
.pie__legales button:focus-visible { color: var(--naranja); text-decoration: underline; text-underline-offset: .25em; }

.pie__linea {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .5rem 1rem;
  font-size: .98rem;
  color: #9aa596;
  text-align: center;
}
.pie__linea .pie__sep { color: #545c50; padding: 0; }
.pie__marca { color: #d8d7d7; font-weight: 600; }

.pie__artemovil {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radio-pill, 999px);
  color: #e6ece2;
  font-size: .95rem;
  text-decoration: none;
  background: rgba(255, 255, 255, .04);
  transition: border-color .3s, background-color .3s, color .3s, transform .3s;
}
.pie__artemovil b { font-weight: 700; color: #fff; }
.pie__artemovil svg { width: 15px; height: 15px; color: var(--naranja); transition: transform .5s cubic-bezier(.34, 1.4, .64, 1); }
.pie__artemovil:hover,
.pie__artemovil:focus-visible {
  border-color: var(--naranja);
  background: rgba(247, 119, 10, .12);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}
.pie__artemovil:hover svg { transform: rotate(90deg) scale(1.12); }

.pie__separador {
  height: 1px;
  margin: 0 0 var(--e-3);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16) 20%, rgba(255, 255, 255, .16) 80%, transparent);
}

/* flecha de volver arriba con movimiento */
.arriba svg { animation: subeFlecha 2.4s ease-in-out infinite; }
@keyframes subeFlecha {
  0%, 100% { transform: translateY(2px); }
  50%      { transform: translateY(-3px); }
}
.arriba:hover svg { animation-duration: 1s; }

/* enlace de apertura del aviso de cookies dentro de un texto legal */
.legal__enlace {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--naranja-txt);
  text-decoration: underline;
  text-underline-offset: .18em;
  cursor: pointer;
}
.legal__enlace:hover { color: var(--naranja-link); }
