/*
Theme Name: Vaciamos Pro
Description: Tema hijo de LGD2 Theme para Vaciamos Pro, vaciados de pisos y recogida de muebles en Pontevedra y Ourense. Lleva el diseño y las plantillas de cada página; la cabecera, el footer, los datos de contacto y los CTAs salen del tema padre y del personalizador.
Template: lgd2-theme
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: vaciamospro
*/

/* =================================================================
   Variables y base
   ================================================================= */
:root {
  color-scheme: light;
  --paper: #f6f7f3;
  --ink: #001a35;
  --muted: #46546b;
  --navy: #003156;
  --navy-pale: #e9eef4;
  --navy-line: #cfd8e4;
  --orange: #fb7306;
  --orange-dark: #e05e00;
  --orange-ink: #b34700;
  --orange-light: #ff8a2b;
  --orange-pale: #fff0e3;
  --orange-line: #f7cfae;
  --line: #cfd5e2;
  --white: #fff;
  --wa: #0b7a4f;
  --wa-dark: #075c3b;
  --rail: min(100% - 7rem, 82rem);
  --radius: 1rem;
  accent-color: var(--orange);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  margin: 0;
  min-width: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
}
.lgd2-main h1, .lgd2-main h2, .lgd2-main h3, .lgd2-main p, .lgd2-main figure, .lgd2-main ul, .lgd2-main ol, .lgd2-main fieldset { margin: 0; }
.lgd2-main a, .lgd2-footer a, .pie-cta a { color: inherit; }
/* Con :where() no pesa nada: las imágenes de los plugins (galería de Trabajos, etc.) conservan su recorte */
:where(.lgd2-main, .lgd2-footer) img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--orange-dark); outline-offset: 4px; }
section[id], [id="cuanto-cuesta"], [id="resultado"] { scroll-margin-top: 7rem; }
.shell { width: var(--rail); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }

/* ---------- Iconos (máscaras que toman el color del texto) ---------- */
.icon, .wa-icon, .chat-icon {
  display: inline-block;
  width: 1.3rem;
  height: 1.3rem;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.wa-icon { --icon: url('assets/icons/whatsapp.svg'); }
.chat-icon { --icon: url('assets/icons/chat.svg'); width: 1.7rem; height: 1.7rem; }
.icon-phone { --icon: url('assets/icons/telefono.svg'); }
.icon-house { --icon: url('assets/icons/casa.svg'); }
.icon-office { --icon: url('assets/icons/oficina.svg'); }
.icon-sofa { --icon: url('assets/icons/sofa.svg'); }
.icon-headset { --icon: url('assets/icons/auriculares.svg'); }
.icon-euro { --icon: url('assets/icons/euro.svg'); }
.icon-recycle { --icon: url('assets/icons/reciclaje.svg'); }
.icon-mail { --icon: url('assets/icons/correo.svg'); }
.icon-pin { --icon: url('assets/icons/ubicacion.svg'); }

/* =================================================================
   Cabecera (la del tema padre, con el aspecto de la maqueta)
   ================================================================= */
.lgd2-header {
  --lgd2-header-bg: #fff;
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.lgd2-header__inner {
  width: var(--rail);
  max-width: none;
  min-height: 5.25rem;
  margin-inline: auto;
  padding: 0;
  gap: 1rem;
}
.lgd2-header__brand .custom-logo-link { display: block; }
.lgd2-header__brand img { width: auto; height: 4.4rem; max-height: none; }
.lgd2-header__site-title { font-size: 1.4rem; font-weight: 820; letter-spacing: -.03em; }
.lgd2-nav__submenu-toggle { color: var(--ink); }

/* Botones redondos: teléfono (naranja) y WhatsApp (verde), como en la maqueta */
.lgd2-header .lgd2-header__ctas { flex-wrap: nowrap; gap: .6rem; }
.lgd2-header .lgd2-header__cta {
  position: relative;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border-radius: 50%;
  font-size: 0;
  line-height: 0;
  box-shadow: none;
  transition: transform .2s, background-color .2s;
}
.lgd2-header .lgd2-header__cta:hover { opacity: 1; transform: translateY(-2px); }
/* Centrado absoluto: el texto oculto del CTA (font-size 0) no debe desplazar el icono */
.lgd2-header .lgd2-header__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1.35rem;
  height: 1.35rem;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.lgd2-header .lgd2-header__cta--telefono { order: -1; --icon: url('assets/icons/telefono.svg'); background: var(--orange); color: var(--ink); box-shadow: none; }
.lgd2-header .lgd2-header__cta--telefono:hover { background: var(--orange-dark); }
.lgd2-header .lgd2-header__cta--telefono .lgd2-icon { display: none; }
.lgd2-header .lgd2-header__cta--telefono span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.lgd2-header .lgd2-cta--cabecera { --icon: url('assets/icons/whatsapp.svg'); background: var(--wa); color: #fff; }
.lgd2-header .lgd2-cta--cabecera:hover { background: var(--wa-dark); }

/* Botón del menú móvil: tres barras gruesas, como en la maqueta */
.lgd2-header__toggle { width: 3rem; height: 3rem; color: var(--ink); }
.lgd2-header__toggle-bars, .lgd2-header__toggle-bars::before, .lgd2-header__toggle-bars::after {
  width: 1.8rem;
  height: 3px;
  border-radius: 2px;
}
.lgd2-header__toggle-bars::before { top: -.55rem; }
.lgd2-header__toggle-bars::after { top: .55rem; }
.lgd2-header__toggle[aria-expanded="true"] .lgd2-header__toggle-bars::before { transform: translateY(.55rem) rotate(45deg); }
.lgd2-header__toggle[aria-expanded="true"] .lgd2-header__toggle-bars::after { transform: translateY(-.55rem) rotate(-45deg); }

/* Menú: el del tema padre (en línea con desplegables en escritorio, panel en móvil), con los colores de la web */
.lgd2-nav__list > li > a { font-weight: 650; color: var(--ink); }
.lgd2-nav__list a { transition: color .2s, background-color .2s; }
.lgd2-nav__list a:hover { opacity: 1; color: var(--orange-ink); }
.lgd2-nav__list a[aria-current="page"] { font-weight: 650; }
/* Página actual en naranja, solo en páginas de verdad: WordPress también marca como actuales los enlaces
   a secciones de la portada (/#servicios, /#cobertura…) cuando se está en la portada. */
.lgd2-nav__list .menu-item-type-post_type.current-menu-item > a,
.lgd2-nav__list .current-menu-ancestor > a { color: var(--orange-ink); }

@media (min-width: 60em) {
  .lgd2-header__menu { gap: 1.6rem; }
  .lgd2-nav__list { gap: .25rem 1.4rem; }
  .lgd2-nav .sub-menu {
    width: max-content;
    max-width: 27rem;
    padding: .5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 18px 40px #001a3526;
  }
  .lgd2-nav .sub-menu a { padding: .7rem 1rem; border-radius: .6rem; font-weight: 650; }
  .lgd2-nav .sub-menu a:hover { background: var(--orange-pale); }
}
/* Entre 60em y 72em el menú en línea va justo de sitio: algo más apretado */
@media (min-width: 60em) and (max-width: 72em) {
  .lgd2-header__menu { gap: 1rem; }
  .lgd2-nav__list { column-gap: .9rem; }
  .lgd2-nav__list > li > a { font-size: .95rem; }
}

/* Móvil y tablet: el panel del tema padre a todo el ancho bajo la cabecera; los botones redondos de
   llamar y WhatsApp siguen a la vista en la barra, junto a la hamburguesa, como en la maqueta. */
@media (max-width: 59.99em) {
  .lgd2-header__brand { order: 0; }
  .lgd2-header__menu {
    order: 1;
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: .6rem;
    margin-left: auto;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: none;
    border: 0;
  }
  .lgd2-header__toggle { order: 2; }
  .lgd2-header__ctas { align-self: center; }
  .lgd2-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    max-height: calc(100vh - var(--lgd2-menu-top, 5rem));
    max-height: calc(100dvh - var(--lgd2-menu-top, 5rem));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: .5rem calc((100% - var(--rail)) / 2) 1.5rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px #001a3526;
  }
  .lgd2-header.is-menu-open .lgd2-nav { display: block; }
  .lgd2-nav__list > li { border-color: var(--line); }
  .lgd2-nav__list > li > a { padding-block: 1rem; }
  .lgd2-nav__submenu-toggle { width: 2.75rem; height: 2.75rem; }
  .lgd2-nav .sub-menu a { padding-block: .65rem; color: var(--muted); font-weight: 600; }
  .lgd2-nav .sub-menu .current-menu-item > a { color: var(--orange-ink); }
}

/* =================================================================
   Botones
   ================================================================= */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3.4rem;
  padding: .8rem 1.3rem;
  border: 1.5px solid transparent;
  border-radius: .6rem;
  text-decoration: none;
  text-align: center;
  font: inherit;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.25;
  cursor: pointer;
  transition: transform .2s, color .2s, background-color .2s, box-shadow .2s, border-color .2s;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-primary { background: var(--orange); color: var(--ink); box-shadow: 0 6px 16px #fb730640; }
.button-primary:hover { background: var(--orange-dark); }
.button-outline { border-color: var(--line); background: white; color: var(--ink); }
.button-outline:hover { border-color: var(--ink); }
.button-wa { background: var(--wa); color: white; }
.button-wa:hover { background: var(--wa-dark); }
.button-light { background: white; color: var(--ink); }
.button-light:hover { background: var(--orange-pale); }
.button-wide { width: 100%; font-size: 1.2rem; }
.arrow { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: #ffffff59; }
/* Los enlaces de .lgd2-main heredan el color: los botones lo recuperan (si no, el claro sale blanco sobre blanco en la banda oscura). */
.lgd2-main .button-primary, .pie-cta .button-primary,
.lgd2-main .button-outline, .lgd2-main .button-light { color: var(--ink); }
.lgd2-main .button-wa, .pie-cta .button-wa { color: white; }

/* Email como imagen (opción del tema padre): la máscara se escala por el ancho de su caja y no con «contain».
   Con «contain», el alto de la caja (1,2em = 19,19px) se redondea a píxeles enteros y el email se encoge un 1 %. */
.lgd2-email--imagen { -webkit-mask-size: 100% auto; mask-size: 100% auto; }

/* =================================================================
   Tipografía
   ================================================================= */
.lgd2-main h1, .lgd2-main h2 { font-weight: 820; letter-spacing: -.05em; text-wrap: balance; }
.lgd2-main h1 { font-size: clamp(2.6rem, 5.4vw, 4.9rem); line-height: 1.02; }
/* El H1 de la portada es largo: algo más pequeño que el resto para que no llene la pantalla */
.lgd2-main .hero h1 { font-size: clamp(2.2rem, 4.5vw, 4.1rem); }
.lgd2-main h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: 1.04; }
.lgd2-main h3 { font-size: clamp(1.25rem, 1.8vw, 1.55rem); line-height: 1.2; letter-spacing: -.03em; }
.accent { color: var(--orange-dark); }
.underlined { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: .1em; text-underline-offset: .14em; }
.eyebrow { color: var(--orange-ink); font-size: .95rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; margin-bottom: .6rem; }
.lgd2-main .eyebrow { margin-bottom: .6rem; }
.centered { text-align: center; }
.hero-description { max-width: 36rem; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.6; }
.lgd2-main .hero-description { margin: 1.3rem 0 1.5rem; }
.hero-description strong { color: var(--ink); }
.section-heading .lead { max-width: 44rem; margin: 1.2rem auto 0; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.6; }

/* =================================================================
   Portada
   ================================================================= */
.hero, .page-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4.5rem);
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.page-hero { padding-top: 1.5rem; }
.hero-copy { animation: copy-in .8s cubic-bezier(.2, .7, .25, 1) both; }
.hero-media, .page-figure { animation: figure-in 1s .15s cubic-bezier(.2, .7, .25, 1) both; }
html.intro-on .hero-copy { animation-delay: 2.9s; }
html.intro-on .hero-media, html.intro-on .page-figure { animation-delay: 3.05s; }
.checklist { padding: 0; list-style: none; display: grid; gap: 1rem; font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.45; }
.lgd2-main .checklist { padding: 0; }
.checklist li { display: flex; gap: .9rem; }
.checklist li::before {
  content: "";
  flex: none;
  width: 1.3rem;
  height: 1.3rem;
  margin-top: .15rem;
  background: var(--orange-dark);
  -webkit-mask: url('assets/icons/check.svg') center / contain no-repeat;
  mask: url('assets/icons/check.svg') center / contain no-repeat;
}
.hero-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 2rem; max-width: 30rem; }
.page-image { width: 100%; max-height: 34rem; object-fit: cover; border-radius: 1.5rem; box-shadow: 0 24px 50px #001a3522; }
.page-figure figcaption { margin-top: .8rem; color: var(--muted); font-size: .95rem; text-align: center; }

/* ---------- Antes y después (plugin Trabajos Realizados, con el aspecto de la maqueta) ---------- */
.comparador { --trabajos-radio: 0; --trabajos-ad-min: 14rem; width: 100%; }
.comparador .trabajos-ad { gap: 1.5rem; }
.comparador .trabajos-ad__item {
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--navy);
  box-shadow: 0 24px 50px #001a3526;
}
.comparador .trabajos-ad__marco { border-radius: 0; }
.comparador .trabajos-ad__img--antes { filter: saturate(.85); }
.comparador .trabajos-ad__linea { width: 4px; margin-left: -2px; box-shadow: none; }
.comparador .trabajos-ad__tirador {
  width: 3.4rem;
  height: 3.4rem;
  border: 4px solid white;
  background: var(--orange);
  color: var(--ink);
  box-shadow: 0 4px 14px #0006;
}
/* Las flechas rellenas de la maqueta en lugar del icono del plugin */
.comparador .trabajos-ad__tirador svg { display: none; }
.comparador .trabajos-ad__tirador::after { content: "◀ ▶"; color: var(--ink); font-size: .8rem; line-height: 1; letter-spacing: -.05em; white-space: nowrap; }
.comparador .trabajos-ad__marco:has(.trabajos-ad__control:focus-visible) .trabajos-ad__tirador { outline: 3px solid var(--orange-dark); }
.comparador .trabajos-ad__etiqueta {
  top: auto;
  bottom: 1rem;
  padding: .45rem .95rem;
  border-radius: .6rem;
  background: white;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 0 4px 12px #0003;
}
.comparador .trabajos-ad__etiqueta--antes { left: 1rem; }
.comparador .trabajos-ad__etiqueta--despues { right: 1rem; }
.comparador .trabajos-ad__titulo { margin: 0; padding: 1rem; color: white; font-size: 1.1rem; font-weight: 750; letter-spacing: 0; line-height: 1.3; }
.comparador--vertical { max-width: 28rem; margin-inline: auto; }

/* ---------- Ventajas ---------- */
.features { padding-block: 0 clamp(3rem, 6vw, 5rem); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.feature { display: flex; gap: 1.2rem; align-items: flex-start; padding: 1.6rem; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.feature p { margin-top: .4rem; color: var(--muted); line-height: 1.5; font-size: 1.05rem; }
.lgd2-main .feature p { margin-top: .4rem; }
.feature-icon { display: grid; place-items: center; flex: none; width: 4.2rem; height: 4.2rem; border-radius: .9rem; background: var(--orange-pale); color: var(--orange-dark); }
.feature-icon .icon, .feature-icon .wa-icon { width: 2rem; height: 2rem; }
.feature-icon.wa-bg { background: #dff3ea; color: var(--wa); }

/* ---------- Servicios (cuadrícula del plugin Servicios Grid) ---------- */
.services { background: var(--navy-pale); border-block: 1px solid var(--navy-line); }
.services .servicios-grid {
  --servicios-grid-hueco: 1.2rem;
  --servicios-grid-relleno: clamp(1.5rem, 3vw, 2.4rem);
  --servicios-grid-borde: 1px solid var(--navy-line);
  --servicios-grid-radio: var(--radius);
  --servicios-grid-icono-caja: 4.2rem;
  --servicios-grid-icono-tamano: 2rem;
  --servicios-grid-espacio-marca: 1.6rem;
  --servicios-grid-espacio-titulo: 0;
  --servicios-grid-espacio-enlace: 0;
  margin-top: 2.6rem;
}
.services .servicios-grid__lista { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.services .servicios-grid__item {
  align-items: center;
  text-align: center;
  background: white;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.services .servicios-grid__item:hover { transform: translateY(-4px); box-shadow: 0 18px 36px #001a351f; border-color: var(--orange); }
.services .servicios-grid__icono { display: grid; place-items: center; border-radius: .9rem; background: var(--orange-pale); color: var(--orange-dark); }
.services .servicios-grid__svg { stroke-width: 2.4; }
.services .servicios-grid__titulo { margin: 0; font-size: clamp(1.25rem, 1.8vw, 1.55rem); font-weight: 700; line-height: 1.2; letter-spacing: -.03em; }
.services .servicios-grid__texto { flex: 1; margin: .9rem 0 1.6rem; color: var(--muted); font-size: 1.05rem; line-height: 1.65; }
.services .servicios-grid__pie { width: 100%; }
.services .servicios-grid__enlace {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: 100%;
  min-height: 3.4rem;
  padding: .8rem 1.3rem;
  border-radius: .6rem;
  background: var(--orange);
  color: var(--ink);
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
  box-shadow: 0 6px 16px #fb730640;
  transition: transform .2s, background-color .2s;
}
.services .servicios-grid__enlace::after { content: "→"; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: #ffffff59; }
.services .servicios-grid__enlace:hover { transform: translateY(-2px); background: var(--orange-dark); }
.more-services { margin-top: 2rem; text-align: center; font-size: 1.1rem; color: var(--muted); }
.lgd2-main .more-services { margin-top: 2rem; }
.more-services a { color: var(--orange-ink); font-weight: 750; }

/* ---------- Trabajos (portada y páginas) ---------- */
.teaser-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); margin-top: 2.6rem; }
.teaser-copy p { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.65; color: var(--muted); margin-bottom: 1.6rem; }
.lgd2-main .teaser-copy p { margin-bottom: 1.6rem; }

/* ---------- Dónde trabajamos (plugin Zonas de trabajo) ---------- */
.zonas {
  color: white;
  background-color: var(--navy);
  background-image: repeating-linear-gradient(90deg, transparent 0 79px, #ffffff15 80px), repeating-linear-gradient(0deg, transparent 0 79px, #ffffff15 80px);
}
.zonas .eyebrow { color: var(--orange-light); }
.zonas__cabecera { max-width: 66rem; }
.zonas .underlined { text-decoration-color: var(--orange); }
.zonas__intro { max-width: 46rem; margin-top: 1.4rem; font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.6; color: #e3e9f1; }
.lgd2-main .zonas__intro { margin-top: 1.4rem; }
.zonas__intro a { color: var(--orange-light); font-weight: 750; }
.zonas__buscador { display: flex; max-width: 40rem; margin-top: 2rem; border: 2px solid var(--orange); border-radius: .7rem; overflow: hidden; background: white; }
.zonas__buscador input {
  flex: 1;
  min-width: 0;
  padding: 1rem 1.1rem;
  border: 0;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
}
.zonas__buscador input::placeholder { color: #6b778c; }
.zonas__buscador input:focus { outline: none; }
.zonas__buscador:focus-within { box-shadow: 0 0 0 3px #ff8a2b66; }
.zonas__buscador button {
  flex: none;
  padding: 0 1.6rem;
  border: 0;
  background: var(--orange);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background-color .2s;
}
.zonas__buscador button:hover { background: var(--orange-light); }
.zonas__estado { margin-top: 1.5rem; color: var(--orange-light); font-weight: 750; font-size: 1.05rem; line-height: 1.5; }
.lgd2-main .zonas__estado { margin-top: 1.5rem; }
.zonas__lista-envoltorio { position: relative; margin-top: 1rem; }
.zonas__lista { display: flex; flex-wrap: wrap; gap: .55rem; padding: 0; list-style: none; }
.lgd2-main .zonas__lista { padding: 0; }
.zonas__lista li { display: block; }
.zonas__lista [hidden] { display: none !important; }
.zonas__lista a, .zonas__lista span {
  display: block;
  padding: .55rem .85rem;
  border: 1px solid #ffffff38;
  border-radius: .5rem;
  background: #ffffff0d;
  color: white;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}
.zonas__lista a:hover { border-color: var(--orange-light); color: var(--orange-light); }
.zonas__lista li.is-coincide a, .zonas__lista li.is-coincide span { border-color: var(--orange); background: var(--orange); color: var(--ink); }
/* Lista plegada: unas filas a la vista y el resto al pulsar «Ver todos» (o al buscar) */
.zonas__lista-envoltorio.is-plegada .zonas__lista { max-height: 12.5rem; overflow: hidden; }
.zonas__lista-envoltorio.is-plegada::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4rem;
  background: linear-gradient(transparent, var(--navy));
  pointer-events: none;
}
.zonas__ver-todas {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1rem;
  padding: .7rem 1.1rem;
  border: 1.5px solid #ffffff66;
  border-radius: .6rem;
  background: transparent;
  color: white;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.zonas__ver-todas:hover { border-color: var(--orange-light); color: var(--orange-light); }
.zonas__ver-todas[hidden] { display: none; }
.zonas__nota { margin-top: 1.8rem; color: #e3e9f1; font-size: 1.1rem; font-weight: 700; line-height: 1.5; }
.lgd2-main .zonas__nota { margin-top: 1.8rem; }
.zonas__nota a { color: var(--orange-light); text-decoration: none; white-space: nowrap; }
.zonas__nota a:hover { text-decoration: underline; }

/* =================================================================
   Calculadora
   ================================================================= */
.calculator { max-width: 52rem; margin-inline: auto; padding: clamp(1.5rem, 4vw, 3.5rem); background: white; border: 1px solid var(--line); border-radius: 1.5rem; }
.calculator h2 { text-align: center; }
.calculator-intro { max-width: 40rem; text-align: center; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.6; }
.lgd2-main .calculator-intro { margin: 1.3rem auto 0; }
.steps { padding: 0; list-style: none; counter-reset: paso; display: grid; gap: 1.8rem; }
.lgd2-main .steps { padding: 0; margin-block: 2.5rem; }
.steps li { position: relative; padding-left: 4rem; counter-increment: paso; }
.steps li::before {
  content: counter(paso);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border-radius: 50%;
  background: var(--orange-pale);
  color: var(--orange-ink);
  font-weight: 800;
  font-size: 1.1rem;
}
.steps p { color: var(--muted); line-height: 1.55; font-size: 1.05rem; }
.lgd2-main .steps p { margin-top: .4rem; }
.steps-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lgd2-main .steps-row { margin-bottom: 0; }
.quiz { display: grid; gap: 1.4rem; padding: clamp(1.2rem, 3vw, 2rem); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.quiz fieldset { border: 0; padding: 0; display: grid; gap: .6rem; min-width: 0; }
.quiz legend { padding: 0; margin-bottom: .8rem; font-weight: 760; font-size: 1.15rem; line-height: 1.4; }
.quiz label { position: relative; display: block; cursor: pointer; }
.quiz input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.quiz label span {
  display: block;
  padding: .85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: .6rem;
  background: white;
  text-align: center;
  font-weight: 700;
  transition: background-color .15s, color .15s, border-color .15s;
}
.quiz label:hover span { border-color: var(--orange); }
.quiz input:checked + span { background: var(--navy); border-color: var(--navy); color: white; }
.quiz input:focus-visible + span { outline: 3px solid var(--orange-dark); outline-offset: 3px; }
.quiz-result { padding: 1.3rem; border-radius: .8rem; background: var(--orange-pale); border: 1px solid var(--orange-line); line-height: 1.6; }
.lgd2-main .quiz-result h3 { margin-bottom: .4rem; }
.lgd2-main .quiz-result p + p { margin-top: .6rem; }
.quiz-result .button { margin-top: 1rem; }

/* =================================================================
   Páginas interiores
   ================================================================= */
.breadcrumbs { padding-top: 1.5rem; color: var(--muted); font-size: .95rem; }
.breadcrumbs a { color: var(--orange-ink); }
.page-intro { padding-block: 1.5rem clamp(2rem, 5vw, 3.5rem); max-width: 52rem; margin-left: max((100% - var(--rail)) / 2, 1rem); }
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.split .lead { margin-top: 1.2rem; color: var(--muted); font-size: 1.1rem; line-height: 1.6; }
.checklist-cards { grid-template-columns: 1fr 1fr; }
.checklist-cards li { padding: 1.1rem 1.2rem; background: white; border: 1px solid var(--navy-line); border-radius: .8rem; font-size: 1.05rem; }
.checklist-cards li strong { display: block; }
.faq { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.5rem, 5vw, 4rem); }
.questions details { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.questions details:first-child { border-top: 1px solid var(--line); }
.questions summary { cursor: pointer; font-weight: 740; font-size: 1.15rem; line-height: 1.38; }
.questions summary::marker { color: var(--orange-dark); }
.questions .respuesta { color: var(--muted); line-height: 1.6; font-size: 1.05rem; }
.lgd2-main .questions .respuesta { margin-top: .7rem; }
.lgd2-main .questions .respuesta p + p { margin-top: .7rem; }
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding: clamp(1.6rem, 4vw, 3.4rem);
  border-radius: 1.5rem;
  background: var(--ink);
  color: white;
}
.lgd2-main .cta-band h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.cta-band p { color: #d6dee9; line-height: 1.6; max-width: 38rem; font-size: 1.08rem; }
.lgd2-main .cta-band p { margin-top: .7rem; }
.cta-buttons { display: grid; gap: .7rem; flex: none; min-width: 15rem; }
.texto-seo { max-width: 52rem; margin-inline: auto; }
.texto-seo__aviso { margin-bottom: 1rem; color: var(--muted); font-size: .9rem; }
.equipo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.equipo__media img, .equipo__media .ps-media { border-radius: 1.5rem; overflow: hidden; }

/* ---------- Página de trabajos ---------- */
.compare-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; align-items: start; }
.compare-grid .comparador--vertical { max-width: none; }
.galeria-trabajos { margin-top: 2.6rem; --trabajos-radio: var(--radius); --trabajos-hueco: 1.2rem; --trabajos-hueco-movil: .8rem; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.5rem; align-items: start; }
.contact-cards { display: grid; gap: 1rem; }
.contact-card { display: flex; align-items: center; gap: 1.1rem; padding: 1.2rem; background: white; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; overflow-wrap: anywhere; transition: border-color .2s, transform .2s; }
a.contact-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.contact-card strong { display: block; font-size: 1.1rem; margin-bottom: .15rem; }
.contact-card__valor { color: var(--muted); }
.contact-card__valor a { text-decoration: none; }
.contact-form { display: grid; gap: 1rem; padding: clamp(1.4rem, 3vw, 2.4rem); background: white; border: 1px solid var(--line); border-radius: 1.5rem; }
.lgd2-main .contact-form h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.contact-form__intro { color: var(--muted); line-height: 1.6; }
.notfound { text-align: left; }

/* =================================================================
   Blog y páginas de texto (contenido del editor)
   ================================================================= */
.prosa { max-width: 46rem; color: var(--ink); font-size: 1.08rem; line-height: 1.7; }
.prosa > * + * { margin-top: 1.1em; }
.lgd2-main .prosa h2 { margin-top: 2.2em; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.03em; line-height: 1.15; }
.lgd2-main .prosa h3 { margin-top: 1.8em; font-size: clamp(1.25rem, 2vw, 1.5rem); }
.lgd2-main .prosa h4 { margin-top: 1.6em; font-size: 1.15rem; }
.lgd2-main .prosa ul, .lgd2-main .prosa ol { padding-left: 1.4em; }
.lgd2-main .prosa li + li { margin-top: .4em; }
.prosa a { color: var(--orange-ink); font-weight: 650; }
.prosa strong { font-weight: 750; }
.prosa table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.prosa th, .prosa td { padding: .7rem .8rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prosa th { background: var(--navy-pale); }
.prosa .wp-block-table { overflow-x: auto; }
.prosa img { border-radius: var(--radius); }
.prosa blockquote { margin-inline: 0; padding-left: 1.2rem; border-left: 4px solid var(--orange); color: var(--muted); }
.pagina-texto { padding-block: 1.5rem clamp(3.5rem, 8vw, 6rem); }
.pagina-texto .prosa { margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.pagina-texto__fecha { margin-top: 1rem; color: var(--muted); font-size: .95rem; }
.lgd2-main .pagina-texto__fecha { margin-top: 1rem; }
.entrada-portada { margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.entrada-portada img { width: 100%; max-height: 32rem; object-fit: cover; border-radius: 1.5rem; }
.entradas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.entrada-tarjeta { display: flex; flex-direction: column; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .25s, box-shadow .25s, border-color .25s; }
.entrada-tarjeta:hover { transform: translateY(-4px); box-shadow: 0 18px 36px #001a351f; border-color: var(--orange); }
.entrada-tarjeta__imagen img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.entrada-tarjeta__cuerpo { display: flex; flex-direction: column; flex: 1; gap: .7rem; padding: 1.4rem; }
.entrada-tarjeta__fecha { color: var(--muted); font-size: .9rem; }
.lgd2-main .entrada-tarjeta h2 { font-size: 1.35rem; letter-spacing: -.03em; line-height: 1.25; }
.entrada-tarjeta h2 a { text-decoration: none; }
.entrada-tarjeta h2 a:hover { color: var(--orange-ink); }
.entrada-tarjeta__resumen { color: var(--muted); line-height: 1.6; }
.entrada-tarjeta__mas { margin-top: auto; color: var(--orange-ink); font-weight: 750; text-decoration: none; }
.entradas-vacio { color: var(--muted); font-size: 1.1rem; }
.paginacion { margin-top: 2.5rem; }
.paginacion .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.paginacion .page-numbers { display: grid; place-items: center; min-width: 2.8rem; height: 2.8rem; padding: 0 .8rem; border: 1px solid var(--line); border-radius: .6rem; background: white; font-weight: 700; text-decoration: none; }
.paginacion .page-numbers.current { background: var(--navy); border-color: var(--navy); color: white; }
.entrada-navegacion { display: flex; justify-content: space-between; gap: 1rem; max-width: 46rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.entrada-navegacion a { color: var(--orange-ink); font-weight: 700; text-decoration: none; }

/* =================================================================
   Franja de contacto del final de cada página y footer (el del tema padre)
   ================================================================= */
.pie-cta { padding-top: 3rem; background: white; border-top: 1px solid var(--line); }
.pie-cta__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; width: var(--rail); margin-inline: auto; }
.lgd2-footer { background: white; color: var(--ink); font-size: 1rem; }
.lgd2-footer__inner { width: var(--rail); max-width: none; margin-inline: auto; padding: 3rem 0 7rem; }
.lgd2-footer__columnas { gap: 2.5rem; padding-bottom: 2.5rem; }
.lgd2-footer__brand .custom-logo-link, .lgd2-footer__logo-link { display: block; width: 100%; max-width: 17rem; }
.lgd2-footer__brand img { width: 100%; max-width: 17rem; height: auto; max-height: none; }
.lgd2-footer__texto { max-width: 22rem; margin-top: 1rem; color: var(--muted); line-height: 1.6; opacity: 1; }
.lgd2-footer__titulo { margin-bottom: 1rem; color: var(--ink); font-size: 1.05rem; font-weight: 820; letter-spacing: .12em; opacity: 1; }
.lgd2-footer__menu { gap: .3rem; }
.lgd2-footer__menu a { display: inline-block; padding-block: .35rem; color: var(--muted); font-size: 1.05rem; }
.lgd2-footer a:hover { color: var(--orange-ink); }
.lgd2-footer .lgd2-datos { gap: .9rem; color: var(--muted); line-height: 1.5; }
.lgd2-footer .lgd2-datos .lgd2-icon { color: var(--orange-dark); }
.lgd2-footer .lgd2-datos__etiqueta { color: var(--ink); font-size: .9rem; font-weight: 700; opacity: 1; }
.lgd2-footer .lgd2-redes__link { border-color: var(--line); color: var(--wa); }
.lgd2-footer .lgd2-redes__link:hover { background: var(--wa); color: white; }
.lgd2-footer__legal { border-top-color: var(--line); color: var(--muted); font-size: .95rem; }
.lgd2-footer__copyright { opacity: 1; }
.lgd2-footer__legal-menu a { color: var(--muted); }

/* ---------- Botón flotante de WhatsApp ---------- */
.chat-flotante {
  position: fixed;
  z-index: 90;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink);
  box-shadow: 0 0 0 .5rem #fb730633, 0 8px 22px #001a3555;
  transition: transform .2s, background-color .2s;
}
.chat-flotante:hover { background: var(--orange-dark); transform: translateY(-3px); }

/* ---------- Aparición al hacer scroll ---------- */
.reveal { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1); }
.reveal-pending { opacity: 0; transform: translateY(1.6rem); }
@keyframes copy-in { from { opacity: 0; transform: translateY(1.4rem); } }
@keyframes figure-in { from { opacity: 0; transform: translateY(1.2rem) scale(.97); } }

/* =================================================================
   INTRO: el camión entra frenando, se dibujan las curvas del logo,
   aparece la web y el logo vuela a su sitio en la cabecera.
   ================================================================= */
.intro { display: none; }
html.intro-on { overflow: hidden; animation: intro-unlock 0s 7s forwards; }
html.intro-on .intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 45%, #fff 0%, #fff 72%, #eef1f5 100%);
  /* Red de seguridad si el script no llega a ejecutarse */
  animation: intro-failsafe .01s 7s forwards;
}
html.intro-on .lgd2-header__brand img { opacity: 0; animation: intro-show 0s 7s forwards; }
/* Si el script no llega a ejecutarse, a los 7 s se recupera el scroll y el logo de la cabecera */
@keyframes intro-unlock { to { overflow: visible; } }
@keyframes intro-show { to { opacity: 1; } }
.intro-stage { position: relative; width: min(86vw, 40rem); display: grid; justify-items: center; }
.intro-logo { position: relative; width: 100%; aspect-ratio: 1218 / 1044; transform-origin: 0 0; }
.intro-logo img, .intro-part, .intro-truck { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-truck {
  transform-origin: 8% 92%;
  animation: truck-drive 1.35s .25s cubic-bezier(.16, .84, .3, 1) both, truck-brake .55s 1.42s cubic-bezier(.3, .6, .4, 1) both;
}
/* Las cuatro capas usan la misma imagen: cada una muestra su zona (furgoneta, curvas de arriba, de abajo y cápsula) */
.intro-truck img { clip-path: polygon(14.943% 25.096%, 18.227% 22.126%, 21.511% 19.54%, 24.795% 17.337%, 28.079% 15.421%, 31.363% 13.602%, 34.647% 12.069%, 37.931% 10.536%, 38.424% 10.92%, 39.573% 11.782%, 42.857% 10.728%, 46.141% 9.866%, 49.425% 9.195%, 52.709% 8.716%, 55.993% 8.429%, 59.278% 8.333%, 62.562% 8.429%, 65.846% 8.716%, 69.13% 9.483%, 72.414% 10.441%, 75.698% 11.686%, 78.982% 13.314%, 82.266% 15.421%, 85.55% 18.199%, 87.192% 19.828%, 88.834% 21.743%, 90.476% 24.042%, 90.805% 24.713%, 91.379% 25.67%, 91.872% 26.628%, 92.775% 28.544%, 93.514% 30.46%, 94.171% 32.375%, 94.745% 34.291%, 95.074% 36.207%, 95.402% 38.123%, 95.649% 40.038%, 95.731% 41.954%, 95.731% 45.785%, 95.32% 47.701%, 95.156% 48.659%, 96.223% 50.096%, 97.044% 54.406%, 97.044% 55.364%, 97.537% 56.513%, 97.373% 57.28%, 96.223% 59.195%, 94.91% 61.111%, 93.432% 63.027%, 91.79% 64.943%, 90.887% 65.9%, 90.558% 66.475%, 89.655% 67.05%, 88.752% 67.816%, 87.685% 68.774%, 87.192% 69.061%, 5.911% 68.966%, 3.941% 68.199%, 2.627% 66.379%, 2.381% 61.111%, 2.381% 55.364%, 2.463% 54.215%, 2.545% 53.448%, 2.463% 51.533%, 2.545% 49.617%, 2.709% 47.701%, 2.956% 45.785%, 3.448% 43.87%, 4.023% 41.954%, 4.762% 40.038%, 5.583% 38.123%, 6.568% 36.207%, 7.718% 34.291%, 8.949% 32.375%, 10.263% 30.46%, 11.823% 28.544%, 13.465% 26.628%, 14.368% 25.67%); }
.intro-dust {
  position: absolute;
  left: 50%;
  bottom: 29%;
  width: 44%;
  height: 12%;
  border-radius: 50%;
  background: radial-gradient(closest-side, #b9b3abaa, #b9b3ab00);
  filter: blur(6px);
  opacity: 0;
  animation: dust 1s 1.3s ease-out both;
}
.intro-top { clip-path: inset(0 100% 0 0); animation: wipe-right .65s 1.5s cubic-bezier(.6, 0, .2, 1) forwards; }
.intro-top img { mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1218 1044' preserveAspectRatio='none'%3E%3Cmask id='m'%3E%3Crect width='1218' height='570' fill='%23fff'/%3E%3Cpolygon points='182,262 222,231 262,204 302,181 342,161 382,142 422,126 462,110 468,114 482,123 522,112 562,103 602,96 642,91 682,88 722,87 762,88 802,91 842,99 882,109 922,122 962,139 1002,161 1042,190 1062,207 1082,227 1102,251 1106,258 1113,268 1119,278 1130,298 1139,318 1147,338 1154,358 1158,378 1162,398 1165,418 1166,438 1166,478 1161,498 1159,508 1172,523 1182,568 1182,578 1188,590 1186,598 1172,618 1156,638 1138,658 1118,678 1107,688 1103,694 1092,700 1081,708 1068,718 1062,721 72,720 48,712 32,693 29,638 29,578 30,566 31,558 30,538 31,518 33,498 36,478 42,458 49,438 58,418 68,398 80,378 94,358 109,338 125,318 144,298 164,278 175,268'/%3E%3C/mask%3E%3Crect width='1218' height='1044' mask='url(%23m)'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
.intro-bottom { clip-path: inset(0 0 0 100%); animation: wipe-left .65s 1.62s cubic-bezier(.6, 0, .2, 1) forwards; }
.intro-bottom img { mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1218 1044' preserveAspectRatio='none'%3E%3Cmask id='m'%3E%3Crect y='570' width='1218' height='474' fill='%23fff'/%3E%3Cpolygon points='182,262 222,231 262,204 302,181 342,161 382,142 422,126 462,110 468,114 482,123 522,112 562,103 602,96 642,91 682,88 722,87 762,88 802,91 842,99 882,109 922,122 962,139 1002,161 1042,190 1062,207 1082,227 1102,251 1106,258 1113,268 1119,278 1130,298 1139,318 1147,338 1154,358 1158,378 1162,398 1165,418 1166,438 1166,478 1161,498 1159,508 1172,523 1182,568 1182,578 1188,590 1186,598 1172,618 1156,638 1138,658 1118,678 1107,688 1103,694 1092,700 1081,708 1068,718 1062,721 72,720 48,712 32,693 29,638 29,578 30,566 31,558 30,538 31,518 33,498 36,478 42,458 49,438 58,418 68,398 80,378 94,358 109,338 125,318 144,298 164,278 175,268'/%3E%3Crect x='94' y='722' width='998' height='128' rx='64'/%3E%3C/mask%3E%3Crect width='1218' height='1044' mask='url(%23m)'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
.intro-extra { display: grid; justify-items: center; width: 100%; transition: opacity .3s; }
.intro-pill { clip-path: inset(0 50% 0 50%); animation: wipe-center .6s 1.95s cubic-bezier(.6, 0, .2, 1) forwards; }
.intro-pill img { clip-path: inset(69.157% 10.345% 18.582% 7.718% round 5.255% / 6.13%); }
.intro-tagline {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: clamp(.85rem, 2.2vw, 1.05rem);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
  opacity: 0;
  animation: rise .6s 2.2s ease-out forwards;
}
.intro-lines { position: absolute; inset: 0; pointer-events: none; }
.intro-lines i {
  position: absolute;
  right: -40vw;
  height: 3px;
  width: 38vw;
  border-radius: 3px;
  background: linear-gradient(90deg, #fb730600, #fb7306 40%, #003156);
  opacity: 0;
  animation: streak .8s cubic-bezier(.3, 0, .2, 1) forwards;
}
.intro-lines i:nth-child(1) { top: 34%; animation-delay: .2s; }
.intro-lines i:nth-child(2) { top: 44%; animation-delay: .32s; width: 52vw; }
.intro-lines i:nth-child(3) { top: 52%; animation-delay: .26s; height: 2px; }
.intro-lines i:nth-child(4) { top: 60%; animation-delay: .4s; width: 46vw; }
.intro-lines i:nth-child(5) { top: 39%; animation-delay: .5s; height: 2px; width: 30vw; }
.intro-lines i:nth-child(6) { top: 66%; animation-delay: .46s; width: 26vw; }
.intro-skip {
  position: absolute;
  right: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  padding: .55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: #ffffffcc;
  color: var(--muted);
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
}
/* Salida: la escena se desvanece y el logo vuela a la cabecera (lo mueve el script) */
.intro.is-leaving { background: transparent; transition: background-color .7s; animation: none; }
.intro.is-leaving::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 45%, #fff 0%, #fff 72%, #eef1f5 100%);
  animation: curtain .8s cubic-bezier(.7, 0, .2, 1) forwards;
}
.intro.is-leaving .intro-extra, .intro.is-leaving .intro-skip, .intro.is-leaving .intro-lines { opacity: 0; transition: opacity .3s; }
.intro.is-leaving .intro-logo { transition: transform .85s cubic-bezier(.65, 0, .25, 1); }
.intro.is-leaving .intro-logo * { animation-play-state: paused; }

@keyframes truck-drive {
  0% { transform: translateX(120vw) skewX(12deg); filter: blur(8px); }
  55% { filter: blur(1px); }
  100% { transform: translateX(0) skewX(0); filter: blur(0); }
}
@keyframes truck-brake {
  0% { rotate: 0deg; translate: 0 0; }
  35% { rotate: -2.2deg; translate: -1.2% 0; }
  70% { rotate: .8deg; translate: .3% 0; }
  100% { rotate: 0deg; translate: 0 0; }
}
@keyframes dust { 0% { opacity: 0; transform: scale(.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateX(18%) scale(1.5); } }
@keyframes wipe-right { to { clip-path: inset(0 0 0 0); } }
@keyframes wipe-left { to { clip-path: inset(0 0 0 0); } }
@keyframes wipe-center { to { clip-path: inset(0 0 0 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(.6rem); } to { opacity: 1; transform: none; } }
@keyframes streak { 0% { opacity: 0; transform: translateX(0); } 20% { opacity: .9; } 100% { opacity: 0; transform: translateX(-170vw); } }
@keyframes curtain { to { clip-path: circle(0% at 50% 50%); opacity: .2; } }
@keyframes intro-failsafe { to { opacity: 0; visibility: hidden; } }
/* Por encima de la cabecera fija del tema padre (z-index 100) */
html.intro-on .intro { z-index: 1000; }

/* =================================================================
   Responsive
   ================================================================= */
@media (max-width: 65rem) {
  :root { --rail: calc(100% - 4rem); }
  .feature-grid, .services .servicios-grid__lista, .entradas { grid-template-columns: 1fr; max-width: 40rem; margin-inline: auto; }
  .steps-row { grid-template-columns: 1fr; }
}
@media (max-width: 52rem) {
  .hero, .page-hero, .teaser-grid, .split, .faq, .compare-grid, .contact-grid, .equipo { grid-template-columns: 1fr; }
  .lgd2-footer__columnas { grid-template-columns: 1fr 1fr; }
  .lgd2-footer__col--marca { grid-column: 1 / -1; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .cta-buttons { width: 100%; }
}
@media (max-width: 43rem) {
  :root { --rail: calc(100% - 2rem); }
  .lgd2-header__inner { min-height: 4.6rem; }
  .lgd2-header__brand img { height: 3.7rem; }
  .lgd2-header__menu, .lgd2-header .lgd2-header__ctas { gap: .45rem; }
  .lgd2-header .lgd2-header__cta, .lgd2-header__toggle { width: 2.8rem; height: 2.8rem; }
  .hero-buttons, .pie-cta__inner, .lgd2-footer__columnas, .checklist-cards { grid-template-columns: 1fr; }
  .feature { padding: 1.25rem; }
  .comparador .trabajos-ad__tirador { width: 2.9rem; height: 2.9rem; }
  .zonas__buscador { flex-direction: column; }
  .zonas__buscador button { min-height: 3.2rem; }
  .zonas__lista-envoltorio.is-plegada .zonas__lista { max-height: 15rem; }
  .chat-flotante { width: 3.8rem; height: 3.8rem; right: max(.9rem, env(safe-area-inset-right)); bottom: max(.9rem, env(safe-area-inset-bottom)); }
}
@media (max-width: 23rem) {
  .lgd2-header__brand img { height: 3.1rem; }
  .lgd2-header .lgd2-header__cta, .lgd2-header__toggle { width: 2.5rem; height: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-pending { opacity: 1; transform: none; }
  html.intro-on .intro { display: none; }
}
