/* =========================================================
   A Plus Roofing · Bonita Springs
   Paleta del tablero de marca
   ========================================================= */
:root {
  --navy-900: #0F2740;   /* Azul petróleo oscuro: confianza, solidez */
  --navy-700: #1E3A5F;   /* Azul secundario: estabilidad */
  --orange:   #F97316;   /* Naranja de acento: energía, acción */
  --orange-d: #EA580C;
  --orange-l: #FDBA74;
  --mist:     #F3F5F7;   /* Gris claro: fondo */
  --white:    #FFFFFF;
  --ink:      #111827;   /* Texto oscuro */
  --muted:    #667085;   /* Texto secundario */
  --line:     #E4E8EE;

  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 39, 64, .06), 0 8px 24px rgba(15, 39, 64, .08);
  --shadow-lg: 0 24px 60px rgba(15, 39, 64, .18);
  --container: 1200px;
  --header-h: 76px;
  --pb-h: 36px;          /* altura de la barra superior (idioma, sitio principal) */

  /* Movimiento */
  --ease-out: cubic-bezier(.16, 1, .3, 1);      /* entradas: rápido al inicio, frena suave */
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-fast: .18s;
  --dur: .3s;
  --dur-reveal: .9s;
  --stagger: 70ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; interpolate-size: allow-keywords; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--orange); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 6px; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Texto rotativo (inspirado en RotatingText de React Bits) */
.rotator {
  position: relative; display: inline-flex; vertical-align: bottom; overflow: hidden; white-space: nowrap;
  color: var(--orange-l); transition: width .55s var(--ease-out);
}
.rotator__word { display: inline-flex; flex: none; }
.rotator__word.is-leaving { position: absolute; left: 0; top: 0; }
.rotator__char { display: inline-block; }
.rotator__word.is-entering .rotator__char { animation: rot-in .6s var(--ease-out) calc(var(--i) * 24ms) both; }
.rotator__word.is-leaving .rotator__char { animation: rot-out .45s var(--ease-in-out) calc(var(--i) * 14ms) both; }

/* Foco de luz que sigue al ratón (inspirado en SpotlightCard de React Bits) */
[data-spotlight]::before, [data-spotlight]::after {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .4s;
}
[data-spotlight]::after { background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(249, 115, 22, .13), transparent 65%); }
/* Borde que se ilumina solo cerca del cursor */
[data-spotlight]::before {
  padding: 1.5px;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(249, 115, 22, .9), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.care__item--urgent[data-spotlight]::after { background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(253, 186, 116, .2), transparent 65%); }
@media (hover: hover) and (pointer: fine) {
  [data-spotlight]:hover::before, [data-spotlight]:hover::after { opacity: 1; }
}
.text-accent { color: var(--orange); }
/* Los teléfonos nunca se parten en dos líneas. :where() deja especificidad 0 para poder hacer excepciones */
:where(a[href^="tel:"]), .nowrap { white-space: nowrap; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast),
              transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.btn svg { transition: transform var(--dur) var(--ease-out); }
.btn:active { transform: scale(.97); transition-duration: .08s; }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--pill { border-radius: 999px; }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(249, 115, 22, .3); }
.btn--navy { background: var(--navy-700); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; background: rgba(255, 255, 255, .06); }
.btn--outline { border-color: #C9D1DB; color: var(--navy-900); background: #fff; }

.link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; text-decoration: none; color: var(--navy-900); transition: color var(--dur-fast); }
.link--light { color: #fff; }
.link svg { transition: transform var(--dur) var(--ease-out); }

@media (hover: hover) {
  .btn:hover svg:last-child, .link:hover svg { transform: translateX(4px); }
  .btn--primary:hover { background: var(--orange-d); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(249, 115, 22, .38); }
  .btn--navy:hover { background: var(--navy-900); }
  .btn--ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
  .link:hover { color: var(--orange); }
}

/* ---------- Kicker / títulos ---------- */
.kicker {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--orange); flex-shrink: 0; }
.section__head--center .kicker { justify-content: center; }
.kicker--light { color: rgba(255, 255, 255, .78); }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy-900); color: #fff; }
.section__head { margin-bottom: clamp(36px, 5vw, 56px); }
.section__head--center { text-align: center; max-width: 720px; margin-inline: auto; }
.section__head--split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: end; }
.section__title { font-size: clamp(30px, 4vw, 44px); font-weight: 700; color: var(--navy-900); text-wrap: balance; }
.section--navy .section__title, .quote-section .section__title { color: #fff; }
.section__intro { color: var(--muted); padding-left: 24px; border-left: 2px solid var(--line); margin: 0; }
.section__note { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.subhead { font-size: 22px; color: var(--navy-900); margin: 56px 0 22px; display: flex; align-items: center; gap: 16px; }
.subhead::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Barra de la web principal ---------- */
.parentbar { background: var(--ink); color: rgba(255, 255, 255, .75); font-size: 13px; }
.parentbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.parentbar strong { color: #fff; font-weight: 600; }
.parentbar__inner > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.parentbar a { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; transition: color var(--dur-fast); }
.parentbar a:hover { color: var(--orange); }

/* ---------- Barra superior + header (fijos arriba) ----------
   Al bajar, .site-top sube la altura de la barra superior (queda solo el header);
   al subir vuelve a aparecer con el selector de idioma. */
.site-top { position: sticky; top: 0; z-index: 50; transition: top .35s var(--ease-out); }
.site-top.is-collapsed { top: calc(-1 * var(--pb-h)); }
.header {
  position: relative; isolation: isolate; color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: box-shadow var(--dur);
}
/* El fondo (y el desenfoque) van en un pseudo-elemento: un backdrop-filter en el propio header
   atraparía el menú móvil (position: fixed) dentro de la cabecera */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(15, 39, 64, .97); transition: background-color var(--dur);
}
.header.is-scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
@supports (backdrop-filter: blur(1px)) {
  .header.is-scrolled::before { background: rgba(15, 39, 64, .86); backdrop-filter: blur(14px) saturate(140%); }
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; flex-shrink: 0; }
.brand__logo { width: auto; height: 50px; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 4px; }
.nav__link {
  position: relative; display: block; padding: 10px; text-decoration: none; white-space: nowrap;
  font-size: 14.5px; font-weight: 500; color: rgba(255, 255, 255, .85);
  transition: color var(--dur-fast);
}
.nav__link::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-out);
}
.nav__link:hover, .nav__link.is-active { color: #fff; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__phone { display: none; }

.header__actions { display: flex; align-items: center; gap: 14px; }
.header__phone { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 600; font-family: var(--font-head); }
.header__phone svg { color: var(--orange); }
.header__phone { white-space: nowrap; }

/* Selector de idioma EN / ES (en la barra superior): el indicador naranja se desliza al idioma elegido */
.parentbar__actions { display: flex; align-items: center; gap: 18px; }
.lang-switch {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; flex-shrink: 0;
  border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); isolation: isolate;
}
.lang-switch::before {
  content: ""; position: absolute; z-index: -1; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
  border-radius: 999px; background: var(--orange); box-shadow: 0 4px 12px rgba(249, 115, 22, .45);
  transition: translate .4s var(--ease-out);
}
.lang-switch[data-active="es"]::before { translate: 100% 0; }
.lang-switch__opt {
  min-width: 38px; padding: 4px 9px; border-radius: 999px; text-align: center; text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: 11.5px; letter-spacing: .06em; line-height: 1.2;
  color: rgba(255, 255, 255, .7); transition: color var(--dur);
}
.lang-switch__opt:hover { color: #fff; }
.lang-switch__opt.is-current, .lang-switch__opt[aria-current="true"] { color: #fff; }
.lang-switch__opt:focus-visible { outline-offset: 1px; border-radius: 999px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Submenús (Services, Service Areas) */
.nav__item--has-sub { position: relative; display: flex; align-items: center; }
.nav__sub-toggle { display: grid; place-items: center; width: 28px; height: 28px; margin-left: -6px; border: 0; background: none; color: rgba(255, 255, 255, .8); cursor: pointer; border-radius: 6px; transition: transform var(--dur) var(--ease-out); }
.nav__sub-toggle[aria-expanded="true"] { transform: rotate(180deg); }
.nav__sub {
  position: absolute; top: calc(100% + 14px); left: -24px; z-index: 60;
  display: grid; grid-template-columns: repeat(3, max-content); column-gap: 36px; row-gap: 8px;
  padding: 24px 28px; background: #fff; color: var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); border-top: 3px solid var(--orange);
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.98); transform-origin: top left;
  transition: opacity .2s, transform var(--dur) var(--ease-out), visibility 0s linear .2s;
}
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.nav__item--has-sub:hover .nav__sub, .nav__item--has-sub:focus-within .nav__sub, .nav__sub.is-open {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.nav__item--has-sub.is-suppressed .nav__sub:not(.is-open) { opacity: 0; visibility: hidden; }
.nav__sub--areas { grid-template-columns: auto auto; left: -40px; }
.nav__sub-col--split { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; align-content: start; }
.nav__sub-col--split .nav__sub-title { grid-column: 1 / -1; }
.nav__sub-title { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; white-space: nowrap; }
.nav__sub a { display: block; padding: 7px 0; font-size: 14.5px; font-weight: 500; color: var(--navy-900); text-decoration: none; white-space: nowrap; transition: color var(--dur-fast), transform var(--dur) var(--ease-out); }
.nav__sub a:hover { color: var(--orange); transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy-900); color: #fff; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0 0 0 30%; z-index: -2; overflow: hidden; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; } /* la casa está a la derecha de la foto: así asoma entre el texto y el formulario */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, var(--navy-900) 28%, rgba(15, 39, 64, .88) 46%, rgba(15, 39, 64, .35) 70%, rgba(15, 39, 64, .15) 100%),
    linear-gradient(0deg, rgba(15, 39, 64, .7), transparent 40%);
}
.hero__inner {
  position: relative; min-height: min(760px, 88vh); padding: 72px 0 80px;
  display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero__copy { max-width: 600px; container-type: inline-size; }
.hero__title { font-size: min(clamp(46px, 6.2vw, 84px), 15cqi); /* "Bonita Springs" mide ~6,5em: con 15% del ancho de la columna nunca se parte */ font-weight: 800; line-height: .98; letter-spacing: -.025em; margin-bottom: 26px; }
.hero__title span { display: block; }
.hero__accent { color: var(--orange); }
.hero__lead { font-size: 17px; color: rgba(255, 255, 255, .82); max-width: 540px; margin-bottom: 32px; }
.hero__lead strong { display: block; font-family: var(--font-head); font-size: clamp(20px, 2.2vw, 24px); line-height: 1.25; color: #fff; font-weight: 600; margin-bottom: 10px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 28px; }
.hero__trust li { display: flex; align-items: center; gap: 12px; font-size: 13px; line-height: 1.35; color: rgba(255, 255, 255, .85); }
.hero__trust svg { color: var(--orange-l); }

/* ---------- Formulario ---------- */
.quote { background: #fff; color: var(--ink); border-radius: 18px; padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-lg); display: grid; gap: 16px; }
.quote__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote__head { margin-bottom: 2px; }
.quote__badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
  background: rgba(249, 115, 22, .12); color: var(--orange-d);
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.quote__title { font-size: clamp(26px, 2.4vw, 32px); font-weight: 800; color: var(--navy-900); margin: 12px 0 6px; }
.quote__sub { font-size: 14.5px; color: var(--muted); margin: 0; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--navy-900); }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field select {
  width: 100%; font: inherit; font-weight: 400; font-size: 15px; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--mist);
  transition: border-color var(--dur-fast), background-color var(--dur-fast), box-shadow var(--dur) var(--ease-out);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--navy-700); background: #fff; box-shadow: 0 0 0 4px rgba(30, 58, 95, .12); }
.field.has-error input { border-color: #DC2626; background: #FEF2F2; animation: shake .4s var(--ease-out); }
.field__error { font-size: 12.5px; font-weight: 500; color: #DC2626; }
.field__error:empty { display: none; }
.quote__note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--muted); margin: 0; }
.quote__status { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; animation: rv-up .5s var(--ease-out); }
.quote__status[data-type="success"] { background: #ECFDF3; color: #067647; }
.quote__status[data-type="error"] { background: #FEF2F2; color: #B42318; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.quote.is-sending .btn { opacity: .7; pointer-events: none; }
.quote.is-sending .btn svg { animation: nudge .8s var(--ease-in-out) infinite; }

/* Formulario del hero: efecto glass */
.quote--hero {
  position: relative; gap: 14px; padding: 30px 30px 24px; border-radius: 22px; overflow: hidden; color: #fff;
  background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(15, 39, 64, .42));
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 30px 70px rgba(4, 16, 30, .4), inset 0 1px 0 rgba(255, 255, 255, .25);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .quote--hero { background: rgba(15, 39, 64, .9); }
}
.quote--hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--orange), var(--orange-l) 55%, var(--navy-700)); }
.quote--hero .quote__badge { background: rgba(249, 115, 22, .2); color: var(--orange-l); }
.quote--hero .quote__title { color: #fff; }
.quote--hero .quote__sub { color: rgba(255, 255, 255, .78); }
.quote--hero .quote__row { gap: 14px; }
.quote--hero .field { font-size: 13.5px; font-weight: 500; color: rgba(255, 255, 255, .9); gap: 5px; }
.quote--hero .field small { color: rgba(255, 255, 255, .6); }
.quote--hero .field input, .quote--hero .field select {
  padding: 11px 13px; border-radius: 10px;
  background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); color: #fff;
}
.quote--hero .field input::placeholder { color: rgba(255, 255, 255, .55); }
.quote--hero .field select { color-scheme: dark; }
.quote--hero .field select option { background: var(--navy-900); color: #fff; }
.quote--hero .field input:focus, .quote--hero .field select:focus {
  background: rgba(255, 255, 255, .16); border-color: var(--orange); box-shadow: 0 0 0 4px rgba(249, 115, 22, .2);
}
.quote--hero .field.has-error input { background: rgba(220, 38, 38, .15); border-color: #F87171; }
.quote--hero .field__error { color: #FCA5A5; }
.quote--hero .btn--primary { margin-top: 6px; padding-block: 15px; }
.quote--hero .quote__note { color: rgba(255, 255, 255, .65); }
.quote--hero .quote__status[data-type="success"] { background: rgba(16, 185, 129, .18); color: #A7F3D0; }
.quote--hero .quote__status[data-type="error"] { background: rgba(220, 38, 38, .2); color: #FECACA; }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service {
  position: relative; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.service__media { aspect-ratio: 16 / 10; overflow: hidden; }
.service__img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.service__icon {
  position: absolute; left: 20px; top: 0;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--navy-900);
  box-shadow: 0 6px 16px rgba(15, 39, 64, .18);
  transform: translateY(-50%);
  transition: background-color var(--dur), color var(--dur), transform .45s var(--ease-out);
}
.service__body { position: relative; padding: 36px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.service__title { font-size: 19px; font-weight: 700; color: var(--navy-900); margin-bottom: 8px; }
.service__body p { color: var(--muted); font-size: 14.5px; flex: 1; }
.service__link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: var(--navy-900); text-decoration: none; transition: color var(--dur-fast); }
.service__link svg { transition: transform var(--dur) var(--ease-out); }

.care { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.care__item {
  position: relative; display: flex; flex-direction: column; padding: 24px 20px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: border-color var(--dur), transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.care__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--mist); color: var(--navy-900); margin-bottom: 16px; transition: background-color var(--dur), color var(--dur); }
.care__item h4 { font-size: 17px; color: var(--navy-900); margin: 0 0 8px; line-height: 1.2; }
.care__item p { font-size: 14px; color: var(--muted); flex: 1; margin-bottom: 16px; }
.care__link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--navy-900); text-decoration: none; transition: color var(--dur-fast); white-space: normal; }
.care__link svg { transition: transform var(--dur) var(--ease-out); }
.care__item--urgent { background: var(--navy-900); border-color: var(--navy-900); }
.care__item--urgent h4 { color: #fff; }
.care__item--urgent p { color: rgba(255, 255, 255, .75); }
.care__item--urgent .care__icon { background: var(--orange); color: #fff; }
.care__item--urgent .care__link { color: var(--orange); }
.care__badge { position: absolute; top: 20px; right: 16px; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.care__badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 2s ease-out 4; }

/* Lista de servicios adicionales (sin caja, columna abierta en páginas de áreas) */
.care-more {
  display: flex;
  flex-direction: column;
  padding: 6px 0;
  background: transparent;
}
.care-more__head { margin-bottom: 12px; }
.care-more__head h4 {
  font-size: 16.5px;
  color: var(--navy-900);
  margin: 0 0 4px;
  line-height: 1.25;
}
.care-more__desc {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}
.care-more__list {
  display: flex;
  flex-direction: column;
  gap: 3.5px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  flex: 1;
}
.care-more__link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--navy-900);
  text-decoration: none;
  padding: 2.5px 0;
  line-height: 1.35;
  transition: color var(--dur-fast), transform var(--dur-fast);
}
.care-more__link svg {
  color: var(--orange);
  flex-shrink: 0;
  transition: transform var(--dur-fast);
}
.care-more__link:hover {
  color: var(--orange);
  transform: translateX(3px);
}
.care-more__link:hover svg {
  transform: translateX(2px);
}
.care-more__footer {
  margin-top: auto;
  padding-top: 10px;
}
.care-more__all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--navy-900);
  text-decoration: none;
  transition: color var(--dur-fast);
}
.care-more__all:hover {
  color: var(--orange);
}
.care-more__all svg {
  transition: transform var(--dur) var(--ease-out);
}
.care-more__all:hover svg {
  transform: translateX(3px);
}


@media (hover: hover) {
  .service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
  .service:hover .service__img { transform: scale(1.06); }
  .service:hover .service__icon { background: var(--orange); color: #fff; transform: translateY(-50%) rotate(-8deg); }
  .service__link:hover, .care__link:hover { color: var(--orange); }
  .service__link:hover svg, .care__link:hover svg { transform: translateX(4px); }
  .care__item:hover { border-color: var(--navy-700); transform: translateY(-4px); box-shadow: var(--shadow); }
  .care__item:not(.care__item--urgent):hover .care__icon { background: var(--navy-900); color: #fff; }
  .care__item--urgent .care__link:hover { color: #fff; }
}

/* ---------- Stats: banda oscura con números grandes ---------- */
.stats { position: relative; background: var(--navy-900); color: #fff; overflow: hidden; }
.stats::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px 260px at 12% 120%, rgba(249, 115, 22, .22), transparent 70%),
              radial-gradient(600px 300px at 95% -40%, rgba(30, 58, 95, .9), transparent 70%);
}
.stats__inner { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { display: flex; align-items: flex-start; gap: 16px; padding: clamp(32px, 4vw, 48px) 28px; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, .1); }
.stat__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--orange-l); }
.stat__icon svg { width: 22px; height: 22px; }
.stat > span:last-child { flex: 1; min-width: 0; align-self: stretch; container-type: inline-size; }
.stat__num { display: block; font-family: var(--font-head); font-size: clamp(34px, 3.6vw, 46px); font-weight: 800; color: #fff; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-bottom: 6px; white-space: nowrap; }
/* Texto en lugar de cifra ("Con licencia"): tamaño normal si cabe; si no, se reduce al ancho de la columna (--fit lo calcula PHP) */
.stat__num--text { font-size: min(clamp(34px, 3.6vw, 46px), var(--fit, 16cqi)); line-height: clamp(34px, 3.6vw, 46px); }
.stat__label { font-size: 13.5px; color: rgba(255, 255, 255, .7); }

/* ---------- Why us ---------- */
.why { display: grid; grid-template-columns: 1.15fr 1fr; background: #fff; }
.why__media { position: relative; min-height: 560px; overflow: hidden; }
.why__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.why__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15, 39, 64, .55), transparent 55%); pointer-events: none; }
.why__chip {
  position: absolute; left: 32px; bottom: 32px; z-index: 1;
  display: inline-flex; align-items: center; gap: 14px; padding: 10px 22px 10px 10px;
  background: rgba(15, 39, 64, .55); backdrop-filter: blur(8px); border-radius: 999px;
  color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: 17px; white-space: nowrap;
  transition: background-color var(--dur);
}
.why__play { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); transition: transform var(--dur) var(--ease-out); }
.why__chip:hover { background: rgba(15, 39, 64, .85); }
.why__chip:hover .why__play { transform: rotate(-45deg); }
.why__copy { padding: clamp(48px, 6vw, 88px) clamp(24px, 5vw, 72px); align-self: center; }
.why__copy > p { color: var(--muted); }
.why__copy .section__title { margin-bottom: 18px; }
.why__list { display: grid; gap: 18px; margin: 28px 0 32px; }
.why__list li { display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; font-size: 14.5px; color: var(--muted); }
.why__list li span { grid-row: span 2; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--mist); color: var(--navy-900); }
.why__list strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: 16px; }

/* ---------- Tipos de techo: panel editorial en columnas ---------- */
.types {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: 20px; box-shadow: var(--shadow); overflow: hidden;
}
.type { position: relative; display: flex; flex-direction: column; padding: 36px 28px 30px; transition: background-color var(--dur); }
.type + .type { border-left: 1px solid var(--line); }
.type::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out);
}
.type__head { display: flex; justify-content: space-between; align-items: flex-start; }
.type__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--mist); color: var(--navy-900); transition: background-color var(--dur), color var(--dur); }
.type__num {
  font-family: var(--font-head); font-weight: 800; font-size: 56px; line-height: .8; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1.5px #CBD3DD; transition: -webkit-text-stroke-color var(--dur);
}
.type h3 { font-size: 22px; color: var(--navy-900); margin: 26px 0 8px; }
.type p { color: var(--muted); font-size: 14.5px; flex: 1; margin: 0 0 18px; }
@media (hover: hover) {
  .type:hover { background: #FBFCFD; }
  .type:hover::before { transform: scaleX(1); }
  .type:hover .type__icon { background: var(--navy-900); color: #fff; }
  .type:hover .type__num { -webkit-text-stroke-color: var(--orange); }
}
.brands { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 48px; }
.brands > span { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* Banda de marcas en bucle (inspirada en LogoLoop de React Bits).
   Sin JS o con movimiento reducido se queda como lista centrada. */
.logoloop { position: relative; width: 100%; overflow: hidden; }
.logoloop__track { display: flex; flex-wrap: wrap; justify-content: center; }
.logoloop__track li {
  flex: none; display: inline-flex; align-items: center; gap: 28px; padding-right: 28px;
  font-family: var(--font-head); font-weight: 700; font-size: clamp(18px, 2vw, 22px); color: var(--navy-700);
  opacity: .55; transition: opacity var(--dur), color var(--dur); white-space: nowrap;
}
.logoloop__track li::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); opacity: .7; }
.logoloop__track li:hover { opacity: 1; color: var(--navy-900); }
.logoloop.is-ready {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.logoloop.is-ready .logoloop__track { flex-wrap: nowrap; justify-content: flex-start; width: max-content; animation: loop var(--loop-dur, 30s) linear infinite; }
.logoloop.is-ready:hover .logoloop__track { animation-play-state: paused; }

/* ---------- Proceso: línea de tiempo ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps::before {
  content: ""; position: absolute; left: 28px; right: 28px; top: 28px; height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--navy-700));
  transform-origin: left;
}
.step { position: relative; padding-right: 8px; }
.step__icon {
  position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy-900); color: #fff; margin-bottom: 22px;
  box-shadow: 0 0 0 8px #fff;
}
.step:last-child .step__icon { background: var(--orange); }
.step__num { display: block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--orange); font-weight: 600; margin-bottom: 6px; }
.step h3 { font-size: 20px; color: var(--navy-900); margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; margin: 0; max-width: 30ch; }

/* ---------- Proyectos: carrusel en arco (inspirado en CircularGallery de React Bits) ----------
   JS escribe en cada tarjeta --d (distancia al centro, en tarjetas), --ad (|d|, máx. 2) y --d2 (d², máx. 4).
   Sin JS el carrusel es una fila plana que se desliza con scroll-snap. */
.carousel { --card-w: clamp(260px, 32vw, 440px); --gap: clamp(14px, 2vw, 24px); position: relative; }
.carousel__track {
  position: relative; display: flex; gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 24px max(16px, calc(50% - var(--card-w) / 2)) 88px;
  cursor: grab; user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline-offset: -3px; }
.carousel__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel__item { flex: none; width: var(--card-w); margin: 0; scroll-snap-align: center; }
.carousel__card {
  position: relative; aspect-ratio: 10 / 9; border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .35);
  transform: translateY(calc(var(--d2, 0) * 16px)) rotate(calc(var(--d, 0) * 5deg)) scale(calc(1 - var(--ad, 0) * .07));
  transform-origin: 50% 100%;
}
.carousel__card::after { content: ""; position: absolute; inset: 0; background: var(--navy-900); opacity: calc(var(--ad, 0) * .28); pointer-events: none; }
.carousel__img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; pointer-events: none; }
.carousel__card figcaption {
  position: absolute; inset: auto 0 0 0; z-index: 1; padding: 48px 20px 18px;
  background: linear-gradient(0deg, rgba(15, 39, 64, .92), transparent);
  font-size: 14px; color: rgba(255, 255, 255, .92);
  opacity: calc(1 - var(--ad, 0) * 1.4);
}
.carousel__card figcaption span { display: inline-block; background: var(--orange); color: #fff; font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; margin-right: 8px; }
.carousel__nav { display: flex; justify-content: center; gap: 12px; margin-top: -40px; position: relative; }
.carousel__btn {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); color: #fff;
  transition: background-color var(--dur-fast), border-color var(--dur-fast), opacity var(--dur), transform var(--dur) var(--ease-out);
}
.carousel__btn--prev svg { transform: scaleX(-1); }
.carousel__btn:hover:not(:disabled) { background: var(--orange); border-color: var(--orange); }
.carousel__btn:active:not(:disabled) { transform: scale(.92); }
.carousel__btn:disabled { opacity: .35; cursor: default; }
/* Botón de pausa: muestra el icono de la acción disponible */
.carousel__play { margin-left: 8px; }
.carousel__play[hidden] { display: none; }
.carousel__play-icon { display: grid; place-items: center; }
.carousel__play[data-state="playing"] .carousel__play-icon--play,
.carousel__play[data-state="paused"] .carousel__play-icon--pause { display: none; }

/* ---------- Reseñas ---------- */
.reviews { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; }
.review { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.review blockquote { margin: 0 0 22px; flex: 1; }
.review p { color: var(--ink); margin: 0; }
.review__mark { color: var(--orange); margin-bottom: 12px; }
.review figcaption { display: flex; flex-direction: column; gap: 6px; }
.review figcaption strong { font-family: var(--font-head); color: var(--navy-900); }
.stars { display: inline-flex; gap: 2px; color: var(--orange); }
.stars svg { fill: currentColor; }
.review--featured { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.review--featured p { color: #fff; font-family: var(--font-head); font-size: 20px; line-height: 1.45; font-weight: 500; }
.review--featured figcaption strong { color: #fff; }
.review__tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: rgba(249, 115, 22, .15); color: var(--orange); font-weight: 600; font-size: 13px; padding: 6px 12px; border-radius: 999px; margin-bottom: 20px; }
@media (hover: hover) { .review:hover { transform: translateY(-4px); box-shadow: var(--shadow); } }

/* ---------- Áreas ---------- */
.areas { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.areas__copy > p { color: var(--muted); }
.areas__copy .section__title { margin-bottom: 18px; }
.areas__nearby-title { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 8px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.chips--nearby { margin-top: 12px; }
.chips li {
  display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--navy-900);
  scroll-margin-top: calc(var(--header-h) + 120px);
  transition: background-color var(--dur), border-color var(--dur), color var(--dur), transform var(--dur) var(--ease-out);
}
.chips li:hover { border-color: var(--orange); transform: translateY(-2px); }
.chips svg { color: var(--orange); }
.chips li.is-flash { animation: chipFlash 1.8s ease; }
.chips li.is-flash svg { color: #fff; }
.areas__map {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3.4;
  background: linear-gradient(110deg, #dfe5ec 30%, #eef2f6 50%, #dfe5ec 70%) 0 0 / 300% 100%;
  animation: shimmer 1.6s linear infinite;
}
.areas__map.is-loaded { animation: none; }
.areas__map iframe { width: 100%; height: 100%; border: 0; display: block; }

.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 32px; }
.area-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
  scroll-margin-top: calc(var(--header-h) + 60px);
  box-shadow: 0 2px 8px rgba(15, 39, 64, .04);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur), border-color var(--dur);
}
.area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(249, 115, 22, .3); }
.area-card.is-flash { animation: chipFlash 1.8s ease; }
.area-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.area-card__title { font-family: var(--font-head); font-size: 19px; font-weight: 700; color: var(--navy-900); margin: 0; display: flex; align-items: center; gap: 8px; }
.area-card__title svg { color: var(--orange); flex-shrink: 0; }
.area-card__tag { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy-700); background: var(--mist); padding: 4px 10px; border-radius: 999px; }
.area-card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55; }
.area-card__cta { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 600; color: var(--navy-900); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: color var(--dur-fast); }
.area-card__cta:hover { color: var(--orange); }
.area-card__cta svg { color: var(--orange); }

.area-overview__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  width: 100%;
}
.area-overview__img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}


/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); }
.faq > div:first-child p { color: var(--muted); margin-top: 18px; }
.faq > div:first-child a { color: var(--orange); font-weight: 600; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--navy-900);
  transition: color var(--dur-fast);
}
.faq__item summary:hover { color: var(--orange-d); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__toggle { position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--mist); flex-shrink: 0; transition: background-color var(--dur), transform var(--dur) var(--ease-out); }
.faq__toggle::before, .faq__toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--navy-900); transform: translate(-50%, -50%); transition: transform var(--dur) var(--ease-out), background-color var(--dur); }
.faq__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__toggle { background: var(--orange); transform: rotate(180deg); }
.faq__item[open] .faq__toggle::before, .faq__item[open] .faq__toggle::after { background: #fff; }
.faq__item[open] .faq__toggle::after { transform: translate(-50%, -50%) rotate(0); }
.faq__item p { color: var(--muted); padding-bottom: 22px; margin: 0; max-width: 62ch; }
/* Apertura suave donde el navegador lo soporta (Chrome 131+, Safari 18.4+) */
@supports selector(::details-content) {
  .faq__item::details-content {
    block-size: 0; overflow: hidden; opacity: 0;
    transition: block-size .4s var(--ease-out), opacity .3s, content-visibility .4s allow-discrete;
  }
  .faq__item[open]::details-content { block-size: auto; opacity: 1; }
}

/* ---------- CTA final ---------- */
.quote-section { position: relative; background: var(--navy-900); color: #fff; padding: clamp(64px, 9vw, 112px) 0; overflow: hidden; }
.quote-section::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 400px at 0% 100%, rgba(249, 115, 22, .16), transparent 70%),
              radial-gradient(700px 500px at 100% 0%, rgba(30, 58, 95, .9), transparent 70%);
}
.quote-grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.quote-copy > p { color: rgba(255, 255, 255, .8); margin: 18px 0 28px; max-width: 46ch; }
.quote-section .hero__ctas { margin-bottom: 0; }
.quote-contact { display: grid; gap: 14px; }
.quote-contact li { display: flex; align-items: center; gap: 12px; font-weight: 500; min-width: 0; }
.quote-contact a[href^="mailto:"] { min-width: 0; overflow-wrap: anywhere; }
.quote-contact svg { color: var(--orange); }
.quote-contact a { text-decoration: none; font-family: var(--font-head); font-size: 20px; font-weight: 700; transition: color var(--dur-fast); }
.quote-contact a:hover { color: var(--orange); }
.quote-contact--card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; padding: 28px; gap: 18px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding: 72px 0 0; font-size: 14.5px; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 2fr .9fr; gap: 40px; }
.footer .brand__logo { height: auto; max-height: 58px; max-width: 100%; } /* se reduce entero si la columna es estrecha, sin deformarse */
.footer__col p { margin: 14px 0 0; }
.footer__col a { color: #fff; }
.footer__col--services { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; align-content: start; }
.footer__col--services .footer__title { grid-column: 1 / -1; }
.footer__col--services .footer__link { font-size: 14px; white-space: nowrap; }
.footer__license { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; }
.footer__license svg { color: var(--orange); }
.footer__small { font-size: 13px; }
.footer__title { font-family: var(--font-body); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .5); font-weight: 600; margin-bottom: 16px; }
.footer__title--spaced { margin-top: 28px; }
.footer__link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: rgba(255, 255, 255, .85) !important; margin: 0 0 10px !important; transition: color var(--dur-fast); }
.footer__link svg { color: var(--orange); }
.footer__link:hover { color: var(--orange) !important; }
.footer__link--big { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: #fff !important; }
.footer address { font-style: normal; color: rgba(255, 255, 255, .85); }
.footer__social { display: flex; gap: 16px; flex-wrap: wrap; }
.footer__social a { text-decoration: none; transition: color var(--dur-fast); }
.footer__social a:hover { color: var(--orange); }
.footer__tagline { margin-top: 56px; padding-top: 40px; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer__tagline p { font-family: var(--font-head); letter-spacing: .28em; text-transform: uppercase; font-size: 13px; color: rgba(255, 255, 255, .55); }
.footer__tagline strong { color: #fff; font-size: 15px; }
.footer__tagline p::after { content: ""; display: block; width: 52px; height: 3px; background: var(--orange); margin-top: 14px; }
.footer__legal { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 24px 0 32px; font-size: 13px; color: rgba(255, 255, 255, .5); }
.footer__copy { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer__links { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer__dot { color: rgba(255, 255, 255, .3); user-select: none; }
.footer__legal a { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .7); text-decoration: none; transition: color var(--dur-fast); }
.footer__legal a:hover { color: #fff; }
.footer__dev a { color: rgba(255, 255, 255, .8); font-weight: 500; }
.footer__dev a:hover { color: var(--orange); }

.mobile-bar { display: none; }
.placeholder { display: grid; place-items: center; background: #dfe5ec; color: var(--muted); text-align: center; font-size: 13px; min-height: 160px; }
.placeholder small { display: block; }

/* =========================================================
   Páginas internas (Blog)
   ========================================================= */
.page-hero { position: relative; background: var(--navy-900); color: #fff; padding: clamp(64px, 9vw, 110px) 0 clamp(56px, 7vw, 88px); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 360px at 90% 0%, rgba(30, 58, 95, .95), transparent 70%), radial-gradient(500px 300px at 0% 100%, rgba(249, 115, 22, .14), transparent 70%); }
.page-hero .container { position: relative; }
.page-hero__title { font-size: clamp(36px, 5vw, 60px); font-weight: 800; max-width: 820px; }
.page-hero__lead { color: rgba(255, 255, 255, .8); font-size: 18px; max-width: 620px; margin: 18px 0 0; }
.section__intro--plain { border: 0; padding: 0; margin-top: 16px; }
.section__intro--plain a { color: var(--orange); font-weight: 600; }

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.post__media { aspect-ratio: 16 / 10; overflow: hidden; }
.post__img { width: 100%; height: 100%; object-fit: cover; }
.post__body { padding: 22px; }
.post__tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-d); }
.post__title { font-size: 21px; color: var(--navy-900); margin: 8px 0 10px; line-height: 1.25; }
.post time { font-size: 13px; color: var(--muted); }
.post--upcoming { position: relative; padding: 28px 26px; border: 1px dashed #C9D1DB; box-shadow: none; display: flex; flex-direction: column; min-height: 220px; }
.post__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--mist); color: var(--navy-900); margin-bottom: 18px; }
.post__soon { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--muted); }

.blog-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 56px; padding: 36px 40px; border-radius: 20px; background: var(--navy-900); color: #fff; }
.blog-cta h2 { font-size: clamp(22px, 2.6vw, 30px); }
.blog-cta p { margin: 8px 0 0; color: rgba(255, 255, 255, .75); }

/* =========================================================
   Páginas Legales (Privacidad y Cookies)
   ========================================================= */
.legal-page { padding: clamp(48px, 6vw, 80px) 0 clamp(64px, 8vw, 100px); background: #fff; }
.legal-card { max-width: 860px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow-sm); }
.legal-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.legal-prose { color: #374151; font-size: 16px; line-height: 1.75; }
.legal-prose h2 { font-size: clamp(20px, 2.2vw, 24px); color: var(--navy-900); margin: 36px 0 14px; font-weight: 700; }
.legal-prose h2:first-of-type { margin-top: 0; }
.legal-prose h3 { font-size: 17px; color: var(--navy-900); margin: 24px 0 10px; font-weight: 600; }
.legal-prose p { margin: 0 0 16px; }
.legal-prose ul { margin: 0 0 18px 20px; list-style: disc; }
.legal-prose li { margin-bottom: 8px; }
.legal-prose a { color: var(--navy-900); font-weight: 600; text-decoration: underline; text-decoration-color: var(--orange); }
.legal-prose a:hover { color: var(--orange); }
.legal-contact-box { margin-top: 36px; padding: 24px 28px; background: var(--mist); border-radius: 14px; border-left: 4px solid var(--orange); }
.legal-contact-box p { margin: 0 0 8px; }
.legal-contact-box p:last-child { margin: 0; }

/* =========================================================
   Banner de consentimiento de Cookies
   ========================================================= */
.cookie-banner {
  position: fixed; left: 24px; bottom: 24px; z-index: 999;
  max-width: 480px; width: calc(100% - 48px);
  background: rgba(15, 39, 64, .97); color: #fff;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px; padding: 22px 24px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .32);
  transform: translateY(120%); opacity: 0; pointer-events: none;
  transition: transform .45s var(--ease-out), opacity .3s ease;
}
@supports (backdrop-filter: blur(1px)) {
  .cookie-banner { background: rgba(15, 39, 64, .92); backdrop-filter: blur(16px); }
}
.cookie-banner.is-visible {
  transform: translateY(0); opacity: 1; pointer-events: auto;
}
.cookie-banner__inner { display: flex; flex-direction: column; gap: 16px; }
.cookie-banner__icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(249, 115, 22, .18); color: var(--orange);
  flex-shrink: 0;
}
.cookie-banner__title { font-size: 17px; font-weight: 700; color: #fff; margin: 0 0 6px; }
.cookie-banner__text { font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, .8); margin: 0; }
.cookie-banner__text a { color: var(--orange-l); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__text a:hover { color: #fff; }
.cookie-banner__actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.btn--sm { padding: 9px 18px; font-size: 13.5px; }
.btn--outline-dark { border-color: rgba(255, 255, 255, .25); color: rgba(255, 255, 255, .85); background: transparent; }
.btn--outline-dark:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }

@media (max-width: 640px) {
  .cookie-banner {
    left: 14px; right: 14px; bottom: 82px; /* Espacio para la barra de llamada móvil si está activa */
    width: auto; max-width: none; padding: 18px; border-radius: 16px;
  }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1; }
}

/* =========================================================
   Páginas de servicio (service.php)
   ========================================================= */
/* Títulos de tarjeta que enlazan a la página del servicio */
.service__title a, .care__item h4 a, .type h3 a { color: inherit; text-decoration: none; transition: color var(--dur-fast); }
.service__title a:hover, .care__item h4 a:hover, .type h3 a:hover { color: var(--orange); }
.care__item--urgent h4 a:hover { color: var(--orange-l); }

.svc-hero { position: relative; background: var(--navy-900); color: #fff; overflow: hidden; isolation: isolate; }
.svc-hero__media { position: absolute; inset: 0 0 0 40%; z-index: -2; }
.svc-hero__img { width: 100%; height: 100%; object-fit: cover; }
.svc-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, var(--navy-900) 38%, rgba(15, 39, 64, .85) 55%, rgba(15, 39, 64, .35) 80%, rgba(15, 39, 64, .2)),
    linear-gradient(0deg, rgba(15, 39, 64, .6), transparent 45%);
}
.svc-hero__inner { padding: clamp(36px, 5vw, 64px) 0 clamp(56px, 8vw, 96px); }
.svc-hero__inner > * { max-width: 680px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 28px; font-size: 13px; color: rgba(255, 255, 255, .65); }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: rgba(255, 255, 255, .35); }
.breadcrumb a { color: rgba(255, 255, 255, .85); text-decoration: none; transition: color var(--dur-fast); }
.breadcrumb a:hover { color: var(--orange-l); }
.breadcrumb [aria-current] { color: #fff; font-weight: 600; }
.svc-hero__title { font-size: clamp(34px, 5vw, 60px); font-weight: 800; line-height: 1.04; letter-spacing: -.02em; margin-bottom: 18px; text-wrap: balance; }
.svc-hero__lead { font-size: clamp(17px, 1.6vw, 20px); color: rgba(255, 255, 255, .85); margin-bottom: 30px; }
.svc-hero .hero__ctas { margin-bottom: 24px; }
.svc-hero__note { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, .75); }
.svc-hero__note svg { color: var(--orange-l); }

.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: clamp(32px, 5vw, 64px); align-items: start; }
/* El formulario acompaña la lectura en escritorio */
.svc-aside { position: sticky; top: calc(var(--header-h) + var(--pb-h) + 20px); }
.quote--page { border: 1px solid var(--line); }
.quote--page .quote__title { font-size: clamp(24px, 2.2vw, 28px); }
.svc-intro p { font-size: 18px; line-height: 1.7; color: #344054; }
.svc-block { margin-top: clamp(48px, 6vw, 72px); }
.svc-block__title { font-size: clamp(26px, 3vw, 34px); margin-bottom: 24px; }
.svc-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.svc-checks li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; line-height: 1.45; color: var(--ink); }
.svc-checks__icon { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(249, 115, 22, .12); color: var(--orange-d); margin-top: -1px; }
.svc-why { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.svc-why__item { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color var(--dur), transform .45s var(--ease-out); }
.svc-why__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-900); color: #fff; margin-bottom: 14px; }
.svc-why__item h3 { font-size: 18px; color: var(--navy-900); margin-bottom: 6px; }
.svc-why__item p { margin: 0; font-size: 14.5px; color: var(--muted); }
@media (hover: hover) { .svc-why__item:hover { border-color: var(--orange); transform: translateY(-3px); } }
.section--mist .step__icon { box-shadow: 0 0 0 8px var(--mist); }
.services.services--3 { grid-template-columns: repeat(3, 1fr); }
.svc-cta { position: relative; max-width: 720px; text-align: center; }
.svc-cta p { margin: 16px auto 28px; color: rgba(255, 255, 255, .8); }
.svc-cta .hero__ctas { justify-content: center; margin-bottom: 0; }
.svc-nf__ctas { margin: 28px 0 0; }

@media (max-width: 1100px) {
  .svc-layout { grid-template-columns: minmax(0, 1fr) 380px; }
}
@media (max-width: 960px) {
  .svc-layout { grid-template-columns: 1fr; }
  .svc-aside { position: static; }
  .svc-hero__media { inset: 0; }
  .svc-hero::before { background: linear-gradient(180deg, rgba(15, 39, 64, .82), rgba(15, 39, 64, .94)); }
}
@media (max-width: 760px) {
  .services.services--3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .svc-checks, .svc-why { grid-template-columns: 1fr; }
  .svc-intro p { font-size: 17px; }
}

/* =========================================================
   Página de contacto (contact.php)
   ========================================================= */
.page-hero .breadcrumb ol { margin-bottom: 22px; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-info__title { margin-bottom: 24px; }
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.contact-card {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-content: start;
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: border-color var(--dur), box-shadow .45s var(--ease-out);
}
.contact-card__icon { grid-row: span 3; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--mist); color: var(--navy-900); }
.contact-card__label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-card__value { margin-top: 2px; font-family: var(--font-head); font-size: 17px; font-weight: 700; font-style: normal; color: var(--navy-900); text-decoration: none; overflow-wrap: anywhere; }
a.contact-card__value { transition: color var(--dur-fast); }
a.contact-card__value:hover { color: var(--orange); }
.contact-card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--orange-d); text-decoration: none; }
.contact-card__link:hover { text-decoration: underline; }
/* El teléfono ocupa toda la fila y destaca */
.contact-card--phone { grid-column: 1 / -1; background: var(--navy-900); border-color: var(--navy-900); }
.contact-card--phone .contact-card__icon { background: var(--orange); color: #fff; }
.contact-card--phone .contact-card__label { color: rgba(255, 255, 255, .65); }
.contact-card--phone .contact-card__value { font-size: clamp(24px, 3vw, 32px); color: #fff; }
.contact-card--phone a.contact-card__value:hover { color: var(--orange-l); }
@media (hover: hover) { .contact-card:not(.contact-card--phone):hover { border-color: var(--navy-700); box-shadow: var(--shadow); } }
.contact-urgent {
  display: flex; gap: 16px; margin-top: 24px; padding: 24px;
  border-radius: var(--radius); background: rgba(249, 115, 22, .08); border: 1px solid rgba(249, 115, 22, .3);
}
.contact-urgent__icon { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--orange); color: #fff; }
.contact-urgent h2 { font-size: 20px; color: var(--navy-900); margin-bottom: 6px; }
.contact-urgent p { color: #344054; margin-bottom: 14px; }

@media (max-width: 1100px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr) 380px; }
  .contact-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .contact-cards { grid-template-columns: minmax(0, 1fr); }
  .contact-urgent { flex-direction: column; }
}

/* =========================================================
   Animaciones
   Las entradas usan `animation` con las propiedades individuales
   `translate`/`scale`, así nunca pisan las transiciones `transform`
   de los estados hover.
   ========================================================= */

/* Entrada al hacer scroll: data-reveal="" (sube), "fade", "scale", "left", "right", "clip" */
.js [data-reveal] { opacity: 0; }
.js [data-reveal].is-in { animation: rv-up var(--dur-reveal) var(--ease-out) calc(var(--d, 0) * var(--stagger)) both; }
.js [data-reveal="fade"].is-in  { animation-name: rv-fade; }
.js [data-reveal="scale"].is-in { animation-name: rv-scale; }
.js [data-reveal="left"].is-in  { animation-name: rv-left; }
.js [data-reveal="right"].is-in { animation-name: rv-right; }
.js [data-reveal="clip"].is-in  { animation-name: rv-clip; animation-duration: 1.2s; }

/* Imágenes que se asientan dentro de su marco al aparecer */
.js .is-in .service__img,
.js .is-in .why__img { animation: img-settle 1.6s var(--ease-out) calc(var(--d, 0) * var(--stagger)) both; }

/* Línea de tiempo del proceso: se dibuja al entrar */
.js .steps[data-reveal] { opacity: 1; }
.js .steps::before { scale: 0 1; }
.js .steps.is-in { animation: none; }
.js .steps.is-in::before { animation: draw 1.4s var(--ease-in-out) .2s both; }
.js .steps .step__icon { scale: .4; opacity: 0; }
.js .steps.is-in .step__icon { animation: pop .6s var(--ease-out) both; }
.js .steps.is-in .step:nth-child(1) .step__icon { animation-delay: .2s; }
.js .steps.is-in .step:nth-child(2) .step__icon { animation-delay: .55s; }
.js .steps.is-in .step:nth-child(3) .step__icon { animation-delay: .9s; }
.js .steps.is-in .step:nth-child(4) .step__icon { animation-delay: 1.25s; }

/* Hero: coreografía de carga (no depende del scroll) */
.js [data-hero] { animation: rv-up 1s var(--ease-out) calc(.15s + var(--d, 0) * 110ms) both; }
.js [data-line] { animation: line-up 1.1s var(--ease-out) calc(.2s + var(--d, 0) * 120ms) both; }
.js .quote--hero[data-hero] { animation-name: rv-right; animation-delay: .45s; }
.js .hero__img { animation: hero-zoom 2.4s var(--ease-out) both; }

/* Parallax suave de la foto del hero con animaciones ligadas al scroll */
@supports (animation-timeline: scroll()) {
  .js .hero__media { animation: hero-parallax linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
}

@keyframes rv-up    { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: none; } }
@keyframes rv-fade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes rv-scale { from { opacity: 0; scale: .94; translate: 0 16px; } to { opacity: 1; scale: none; translate: none; } }
@keyframes rv-left  { from { opacity: 0; translate: -36px 0; } to { opacity: 1; translate: none; } }
@keyframes rv-right { from { opacity: 0; translate: 36px 0; } to { opacity: 1; translate: none; } }
@keyframes rv-clip  { from { opacity: 1; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0); } }
@keyframes line-up {
  from { translate: 0 100%; clip-path: inset(-20% -5% 100% -5%); }
  to   { translate: none;  clip-path: inset(-20% -5% -30% -5%); }
}
@keyframes img-settle    { from { scale: 1.14; } to { scale: none; } }
@keyframes hero-zoom     { from { scale: 1.12; } to { scale: none; } }
@keyframes hero-parallax { to { translate: 0 18%; } }
@keyframes draw  { from { scale: 0 1; } to { scale: 1 1; } }
@keyframes pop   { 0% { opacity: 0; scale: .4; } 60% { opacity: 1; scale: 1.08; } 100% { opacity: 1; scale: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, .6); } 100% { box-shadow: 0 0 0 10px rgba(249, 115, 22, 0); } }
@keyframes shake { 20%, 60% { translate: -5px 0; } 40%, 80% { translate: 5px 0; } }
@keyframes nudge { 50% { translate: 4px 0; } }
@keyframes shimmer { to { background-position: -300% 0; } }
@keyframes rot-in  { from { translate: 0 110%; opacity: 0; } to { translate: none; opacity: 1; } }
@keyframes rot-out { to { translate: 0 -110%; opacity: 0; } }
@keyframes loop    { to { translate: -50% 0; } }
@keyframes chipFlash { 0%, 60% { background: var(--orange); border-color: var(--orange); color: #fff; } 100% { background: #fff; color: var(--navy-900); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js [data-hero], .js [data-line],
  .js .steps .step__icon, .js .steps::before { opacity: 1; scale: none; translate: none; clip-path: none; }
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1240px) {
  .care { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1100px) {
  .header__phone span { display: none; }
  .hero__inner { grid-template-columns: minmax(0, 1fr) 400px; }
  .hero__trust { gap: 18px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .types { grid-template-columns: repeat(2, 1fr); }
  .type:nth-child(3) { border-left: 0; }
  .type:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .steps::before { display: none; }
  .stats__inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .1); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__col--services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__col--services .footer__link { white-space: normal; } /* nombres largos en español */
  .nav__sub { left: -120px; }
  .nav__sub--areas { left: -200px; }
}

/* Menú hamburguesa: el menú completo no cabe por debajo de ~1080px */
@media (max-width: 1080px) {
  .header__actions { margin-left: auto; }
  .nav-toggle { display: block; margin-right: -6px; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + var(--pb-h)) 0 0 0; background: var(--navy-900);
    padding: 24px 16px 120px; overflow-y: auto;
    transform: translateX(100%); visibility: hidden;
    transition: transform .4s var(--ease-out), visibility 0s linear .4s;
  }
  .nav.is-open { transform: none; visibility: visible; transition-delay: 0s; }
  .site-top.is-collapsed .nav { top: var(--header-h); }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list > li { opacity: 0; translate: 24px 0; transition: opacity .3s, translate .4s var(--ease-out); }
  .nav.is-open .nav__list > li { opacity: 1; translate: none; }
  .nav.is-open .nav__list > li:nth-child(2) { transition-delay: .04s; }
  .nav.is-open .nav__list > li:nth-child(3) { transition-delay: .08s; }
  .nav.is-open .nav__list > li:nth-child(4) { transition-delay: .12s; }
  .nav.is-open .nav__list > li:nth-child(5) { transition-delay: .16s; }
  .nav.is-open .nav__list > li:nth-child(6) { transition-delay: .2s; }
  .nav__link { font-size: 20px; font-family: var(--font-head); padding: 16px 4px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav__link::after { display: none; }
  .nav__phone { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; color: #fff; font-family: var(--font-head); font-size: 22px; font-weight: 700; text-decoration: none; }
  .nav__phone svg { color: var(--orange); }
  .nav__item--has-sub { flex-wrap: wrap; }
  .nav__item--has-sub .nav__link { flex: 1; }
  .nav__sub-toggle { width: 44px; height: 44px; margin: 0; color: #fff; }
  .nav__sub {
    position: static; grid-template-columns: 1fr; width: 100%; padding: 8px 0 16px; background: transparent;
    box-shadow: none; border: 0; transform: none; display: none; opacity: 1; visibility: visible;
  }
  .nav__item--has-sub:hover .nav__sub { display: none; }
  .nav__sub.is-open, .nav__item--has-sub:hover .nav__sub.is-open { display: grid; animation: rv-fade .3s; }
  .nav__sub--areas { grid-template-columns: 1fr; }
  .nav__sub-col--split { grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .nav__sub-title { color: rgba(255, 255, 255, .5); margin-top: 12px; }
  .nav__sub a { color: #fff; padding: 9px 4px; font-size: 16px; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .header__phone { display: none; }
  .hero__media { inset: 0; }
  .hero__img { object-position: 65% 50%; }
  .hero::before { background: linear-gradient(180deg, rgba(15, 39, 64, .78), rgba(15, 39, 64, .92)); }
  .hero__inner { grid-template-columns: 1fr; min-height: 0; padding: 56px 0 64px; }
  .hero__copy { max-width: none; }
  .quote--hero { max-width: 560px; width: 100%; }

  .section__head--split { grid-template-columns: 1fr; gap: 16px; }
  .section__intro { padding-left: 16px; }
  .care { grid-template-columns: repeat(2, 1fr); }
  .care-more { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 8px; }
  .care-more__list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; }
  .why { grid-template-columns: minmax(0, 1fr); }
  .why__media { min-height: 360px; }
  .reviews { grid-template-columns: minmax(0, 1fr); }
  /* minmax(0, 1fr): una columna que no se ensancha por un botón o palabra larga */
  .areas, .faq, .quote-grid { grid-template-columns: minmax(0, 1fr); }
  .posts { grid-template-columns: 1fr 1fr; }
  .blog-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .care-more { grid-column: auto; }
  .care-more__list { display: flex; flex-direction: column; gap: 4px; }
  body { padding-bottom: 72px; }
  .parentbar__inner { font-size: 12px; padding: 3px 0; }
  .parentbar__actions { width: 100%; justify-content: flex-end; }
  .parentbar__inner > span { display: none; }
  .header__cta { display: none; }
  .brand__logo { height: 40px; }
  .hero__inner { padding: 48px 0 56px; }
  .hero__ctas { margin-bottom: 28px; }
  .hero__ctas .btn { width: 100%; }
  /* En pantallas estrechas los botones con texto largo pueden ocupar dos líneas (los teléfonos no) */
  .btn:not([href^="tel:"]) { white-space: normal; text-align: center; }
  .quote-contact a { font-size: 17px; }
  .quote-contact--card { padding: 22px 20px; }
  .hero__trust { gap: 18px; }
  .quote--hero { padding: 24px 18px 20px; border-radius: 18px; }
  .quote__row { grid-template-columns: 1fr; }
  .services, .care { grid-template-columns: 1fr; }
  .types { grid-template-columns: 1fr; }
  .type + .type { border-left: 0; border-top: 1px solid var(--line); }
  .type { padding: 28px 22px 24px; }
  .type__num { font-size: 44px; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; padding-bottom: 32px; }
  .step::before { content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; width: 2px; background: var(--line); }
  .step:last-child::before { display: none; }
  .step__icon { grid-row: span 3; margin: 0; }
  .stats__inner { grid-template-columns: 1fr 1fr; }
  .stat { flex-direction: column; gap: 12px; padding: 26px 16px; }
  .stat:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .1); }
  .why__chip { left: 16px; bottom: 16px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__col--services .footer__link { white-space: normal; }
  .footer__legal { flex-direction: column; align-items: flex-start; gap: 14px; }
  .posts { grid-template-columns: 1fr; }
  .blog-cta { padding: 28px 22px; }
  .blog-cta .btn { width: 100%; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -8px 24px rgba(15, 39, 64, .12);
    transition: transform .45s var(--ease-out);
  }
  .js .mobile-bar:not(.is-visible) { transform: translateY(110%); }
}

/* Móviles muy estrechos: el correo de la tarjeta de contacto cabe en dos líneas (contacto@ / dominio) */
@media (max-width: 400px) {
  .quote-contact a { font-size: 15px; }
  .quote-contact--card { padding: 20px 16px; }
}

/* Barra inferior móvil: "Llamar" ocupa lo justo y el presupuesto el resto, siempre en una línea */
@media (max-width: 640px) {
  .mobile-bar { grid-template-columns: auto minmax(0, 1fr); }
  .mobile-bar .btn { white-space: nowrap; padding-inline: 18px; }
}
@media (max-width: 360px) {
  .mobile-bar .btn { font-size: 14px; padding-inline: 14px; gap: 8px; }
}
