/* =========================================================
   EuroMudanzas BCN — hoja de estilos
   Colores corporativos extraídos del logo vectorial original.
   Para cambiar colores, edita solo las variables de :root.
   ========================================================= */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Marca */
  --navy: #172A46;          /* azul del logo */
  --navy-900: #0E1B2F;
  --navy-700: #24395A;
  --orange: #F58220;        /* naranja del logo */
  --orange-600: #E3700F;
  --orange-ink: #B4570A;    /* naranja oscurecido para texto pequeño (contraste AA) */
  --orange-50: #FEF3E8;

  /* Neutros */
  --white: #FFFFFF;
  --paper: #F7F8FA;
  --mist: #EEF1F5;
  --line: #E3E7ED;
  --ink: #172A46;
  --ink-soft: #4A5870;
  --ink-mute: #6B778B;

  /* Tipografía */
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-accent: "Instrument Serif", Georgia, serif;
  --fs-display: clamp(2.45rem, 1.35rem + 4.3vw, 5rem);
  --fs-h1: clamp(2.2rem, 1.4rem + 3.2vw, 4rem);
  --fs-h2: clamp(1.85rem, 1.3rem + 2.1vw, 3rem);
  --fs-h3: clamp(1.15rem, 1.05rem + .4vw, 1.35rem);
  --fs-lead: clamp(1.06rem, 1rem + .3vw, 1.25rem);

  /* Espaciado y forma */
  --gutter: clamp(1rem, .6rem + 2vw, 2.5rem);
  --section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(23, 42, 70, .06), 0 2px 8px rgba(23, 42, 70, .05);
  --shadow: 0 2px 6px rgba(23, 42, 70, .05), 0 18px 40px -16px rgba(23, 42, 70, .18);
  --shadow-lg: 0 30px 70px -28px rgba(23, 42, 70, .35);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --header-h: 84px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-color: rgba(245, 130, 32, .5); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--orange); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.08; letter-spacing: -.035em; font-weight: 780; color: var(--navy); text-wrap: balance; }
h3 { letter-spacing: -.02em; line-height: 1.25; font-size: var(--fs-h3); font-weight: 720; }
p { margin: 0 0 1em; text-wrap: pretty; }
em { font-family: var(--font-accent); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
h1 em, h2 em { color: var(--orange-ink); font-size: 1.08em; line-height: .9; }
ul, ol { padding: 0; margin: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--orange); color: var(--navy); }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 200; background: var(--navy); color: #fff; padding: .7rem 1.1rem; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 1rem; }
.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--paper { background: var(--paper); }
svg { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Tipos de texto ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  margin: 0 0 1.1rem;
  font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange-ink);
}
.eyebrow svg { width: 1.15rem; height: 1.15rem; color: var(--orange); }
.lead { font-size: var(--fs-lead); color: var(--ink-soft); line-height: 1.6; max-width: 38em; }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head h2 { font-size: var(--fs-h2); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--split { max-width: none; display: grid; gap: 1.5rem; align-items: end; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.2fr 1fr; } .section-head--split .lead { justify-self: end; margin: 0; } }
.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 750; color: var(--navy); text-decoration: none; }
.link-arrow svg { color: var(--orange); transition: transform .35s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }
.tag {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .7rem; border-radius: 99px;
  background: rgba(255, 255, 255, .92); color: var(--navy);
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.tag--real::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgba(245, 130, 32, .25); }
.tag--illus { background: rgba(14, 27, 47, .72); color: #fff; font-weight: 700; letter-spacing: .04em; text-transform: none; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--navy); --fg: #fff;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 50px; padding: .8rem 1.45rem;
  border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 780; font-size: .98rem; letter-spacing: -.01em; line-height: 1.1;
  text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s;
}
.btn svg { width: 1.15em; height: 1.15em; transition: transform .35s var(--ease); }
.btn:hover svg:last-child { transform: translateX(4px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { --bg: var(--orange); --fg: var(--navy); box-shadow: 0 10px 24px -12px rgba(245, 130, 32, .75); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .45) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn--primary:hover { background: #FF8F2E; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(245, 130, 32, .85); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--navy:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn--ghost { --bg: transparent; --fg: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--navy); transform: translateY(-2px); }
.btn--ghost-light { --bg: rgba(255, 255, 255, .06); --fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28); }
.btn--ghost-light:hover { --bg: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); transform: translateY(-2px); }
.btn--wa { --bg: #fff; --fg: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--wa svg { color: #1FA855; }
.btn--wa:hover { box-shadow: inset 0 0 0 1.5px #1FA855; transform: translateY(-2px); }
.btn--sm { min-height: 42px; padding: .6rem 1.1rem; font-size: .9rem; }
.btn--lg { min-height: 58px; padding: 1rem 1.8rem; font-size: 1.04rem; }
.btn--block { width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: #fff; color: var(--navy); border: 1.5px solid var(--line);
  transition: border-color .3s, transform .3s var(--ease), background-color .3s;
}
.icon-btn:hover { border-color: var(--navy); transform: translateY(-2px); }
.icon-btn--wa svg { color: #1FA855; width: 1.35rem; height: 1.35rem; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: box-shadow .35s, border-color .35s;
}
/* El desenfoque va en un pseudo-elemento: si estuviera en la cabecera, el menú móvil (position: fixed)
   quedaría atrapado dentro de ella. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px -18px rgba(23, 42, 70, .25); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); transition: height .35s var(--ease); }
.site-header.is-scrolled .site-header__inner { height: 70px; }
.brand { flex: none; display: block; }
.brand img { width: clamp(170px, 14vw + 60px, 236px); height: auto; }
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: .25rem; }
.nav__link {
  position: relative; display: block; padding: .6rem .85rem;
  font-weight: 650; font-size: .95rem; color: var(--navy); text-decoration: none; border-radius: 10px;
}
.nav__link::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem; height: 2px;
  background: var(--orange); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__link:hover::after, .nav__link[data-active]::after { transform: scaleX(1); }
.nav__has-sub { position: relative; display: flex; align-items: center; }
.nav__has-sub .nav__link { padding-right: .25rem; }
.nav__subtoggle { display: grid; place-items: center; width: 28px; height: 28px; border: 0; background: none; border-radius: 8px; color: var(--navy); }
.nav__subtoggle svg { width: 1rem; height: 1rem; transition: transform .3s; }
.nav__sub {
  position: absolute; top: calc(100% + 10px); left: -1rem; width: 300px;
  padding: .6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .3s var(--ease), visibility .25s;
}
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav__sub a { display: flex; align-items: center; gap: .75rem; padding: .7rem .8rem; border-radius: 12px; text-decoration: none; font-weight: 650; font-size: .94rem; }
.nav__sub a svg { color: var(--orange); width: 1.3rem; height: 1.3rem; }
.nav__sub a:hover { background: var(--paper); }
@media (min-width: 1100px) {
  .nav__has-sub:hover .nav__sub, .nav__has-sub:focus-within .nav__sub, .nav__has-sub.is-open .nav__sub { opacity: 1; visibility: visible; transform: none; }
  .nav__has-sub:hover .nav__subtoggle svg, .nav__has-sub.is-open .nav__subtoggle svg { transform: rotate(180deg); }
}
.nav__mobile-contact { display: none; }
.site-header__actions { display: flex; align-items: center; gap: .7rem; }
.header-tel { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 780; color: var(--navy); line-height: 1.1; padding-right: .3rem; }
.header-tel svg { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--orange-50); color: var(--orange-ink); }
.header-tel small { display: block; font-size: .7rem; font-weight: 650; color: var(--ink-mute); letter-spacing: .02em; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; place-items: center; }
.burger svg { width: 1.4rem; height: 1.4rem; }
.burger__close { display: none; }
.burger[aria-expanded="true"] .burger__open { display: none; }
.burger[aria-expanded="true"] .burger__close { display: block; }

@media (max-width: 1280px) { .header-tel { display: none; } }
@media (max-width: 1099px) {
  :root { --header-h: 72px; }
  .burger { display: grid; }
  .header-cta { display: none; }
  .site-header__actions { margin-left: auto; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; margin: 0;
    background: #fff; padding: 1.25rem var(--gutter) 7rem; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .3s, transform .35s var(--ease), visibility .3s;
  }
  .site-header.is-scrolled .nav { inset-block-start: 70px; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid var(--line); }
  .nav__link { font-size: 1.3rem; padding: 1rem .25rem; font-weight: 720; }
  .nav__link::after { display: none; }
  .nav__link[data-active] { color: var(--orange-ink); }
  .nav__has-sub { flex-wrap: wrap; justify-content: space-between; }
  .nav__subtoggle { width: 44px; height: 44px; }
  .nav__has-sub.is-open .nav__subtoggle svg { transform: rotate(180deg); }
  .nav__sub { position: static; width: 100%; box-shadow: none; border: 0; padding: 0 0 .8rem; display: none; opacity: 1; visibility: visible; transform: none; }
  .nav__has-sub.is-open .nav__sub { display: block; }
  .nav__mobile-contact { display: grid; gap: .7rem; margin-top: 1.75rem; }
  .nav__tel { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .6rem; font-weight: 750; text-decoration: none; }
  .nav__tel svg { color: var(--orange-ink); }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 420px) { .icon-btn--wa { display: none; } }

/* ---------- Hero (inicio) ---------- */
.hero { position: relative; padding: clamp(1.5rem, 1rem + 3vw, 4rem) 0 clamp(3rem, 2rem + 4vw, 6rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto auto; width: 58%; height: 100%;
  background: radial-gradient(60% 55% at 70% 40%, rgba(245, 130, 32, .08), transparent 70%);
  pointer-events: none;
}
.hero__grid { position: relative; display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4.5rem); align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); } }
.hero__title { font-size: var(--fs-display); line-height: 1; letter-spacing: -.045em; margin-bottom: 1.5rem; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; animation: lineUp 1s var(--ease) both; }
.hero__title .line:nth-child(2) > span { animation-delay: .08s; }
.hero__title .line:nth-child(3) > span { animation-delay: .16s; }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
.hero__lead { font-size: var(--fs-lead); color: var(--ink-soft); max-width: 34em; margin-bottom: 2.1rem; animation: fadeUp .9s .3s var(--ease) both; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; animation: fadeUp .9s .4s var(--ease) both; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; margin-top: 2.4rem; padding-top: 1.8rem; border-top: 1px solid var(--line); animation: fadeUp .9s .5s var(--ease) both; }
.hero__meta a, .hero__meta span { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--navy); }
.hero__meta svg { color: var(--orange); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__media { position: relative; }
.hero__photo {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 4.2;
  box-shadow: var(--shadow-lg);
  animation: clipIn 1.3s .1s var(--ease) both;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; animation: zoomOut 2.2s .1s var(--ease) both; }
.hero__photo .tag { position: absolute; right: 1rem; bottom: 1rem; }
@keyframes clipIn { from { clip-path: inset(12% 0 12% 18% round var(--radius-lg)); } to { clip-path: inset(0 0 0 0 round var(--radius-lg)); } }
@keyframes zoomOut { from { transform: scale(1.18); } to { transform: scale(1); } }
.hero__chev { position: absolute; z-index: -1; width: 42%; height: auto; right: -9%; top: -7%; color: var(--orange); opacity: .14; animation: chevIn 1.4s .3s var(--ease) both; }
@keyframes chevIn { from { opacity: 0; transform: translateX(-30px); } to { opacity: .14; transform: none; } }
.hero__card {
  position: absolute; left: clamp(-2.5rem, -3vw, -1rem); bottom: clamp(1.5rem, 3vw, 2.5rem);
  display: flex; align-items: center; gap: .9rem; width: min(330px, 78%);
  padding: .75rem .9rem .75rem .75rem; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg);
  text-decoration: none; transition: transform .4s var(--ease);
  animation: fadeUp 1s .7s var(--ease) both;
}
.hero__card:hover { transform: translateY(-4px); }
.hero__card img { width: 84px; height: 64px; border-radius: 12px; object-fit: cover; }
.hero__card strong { display: block; font-size: .95rem; line-height: 1.25; }
.hero__card span { display: block; font-size: .8rem; color: var(--ink-mute); font-weight: 600; }
.hero__card .tag { position: absolute; top: -12px; right: 14px; box-shadow: var(--shadow-sm); }
@media (max-width: 979px) {
  .hero__photo { aspect-ratio: 4 / 3; }
  .hero__card { left: .75rem; bottom: -1.75rem; }
  .hero__photo .tag { top: 1rem; bottom: auto; }
  .hero__media { margin-bottom: 1.75rem; }
}

/* ---------- Marquesina de servicios ---------- */
.ticker { border-block: 1px solid var(--line); background: #fff; overflow: hidden; }
.ticker__track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; align-items: center; flex: none; }
.ticker__item { display: inline-flex; align-items: center; gap: 1.6rem; padding: 1.15rem 1.6rem 1.15rem 0; font-size: clamp(1rem, .9rem + .5vw, 1.35rem); font-weight: 760; letter-spacing: -.02em; color: var(--navy); white-space: nowrap; }
.ticker__item svg { color: var(--orange); width: 1.4rem; height: 1.4rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Tarjetas de servicios (banda azul con tarjetas blancas) ---------- */
.page-contact main { padding-bottom: var(--section); }
.gallery-note { margin-top: 2rem; }
.services-band { position: relative; overflow: hidden; isolation: isolate; background: var(--navy); }
.services-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(245, 130, 32, .16), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(255, 255, 255, .06), transparent 70%);
}
.services-band .section-head h2 { color: #fff; }
.services-band .section-head h2 em { color: var(--orange); }
.services-band .eyebrow { color: var(--orange); }
.services-band .lead { color: #B9C3D3; margin-inline: auto; }
.scards { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.scard {
  --cols: 1;
  flex: 0 1 calc((100% - (var(--cols) - 1) * 1.25rem) / var(--cols));
  display: flex; flex-direction: column;
  padding: .85rem .85rem 1.6rem;
  background: #fff; border-radius: var(--radius-lg);
  text-decoration: none; color: var(--navy); text-align: center;
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .55);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
@media (min-width: 620px) { .scard { --cols: 2; } }
@media (min-width: 900px) { .scard { --cols: 3; } }
@media (min-width: 1180px) { .scard { --cols: 4; } }
.scard:hover { transform: translateY(-8px); box-shadow: 0 34px 60px -28px rgba(0, 0, 0, .6); }
.scard__media { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: calc(var(--radius-lg) - .6rem); background: var(--mist); }
.scard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
/* Imágenes con logo incluido: se muestran completas (misma proporción 4:3, sin recorte ni zoom) */
.scard__media--full img { object-fit: contain; }
.scard:hover .scard__media--full img { transform: none; }
.scard .scard__icon { margin-top: .9rem; }
.scard:hover .scard__media img { transform: scale(1.06); }
.scard__media .tag { position: absolute; left: .7rem; top: .7rem; }
.scard__body { position: relative; display: flex; flex-direction: column; align-items: center; flex: 1; padding: 0 .8rem; }
.scard__icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-top: -26px; margin-bottom: 1rem;
  border-radius: 50%; background: var(--orange); color: var(--navy); border: 4px solid #fff;
  transition: transform .45s var(--ease);
}
.scard__icon svg { width: 1.4rem; height: 1.4rem; }
.scard:hover .scard__icon { transform: rotate(-8deg) scale(1.05); }
.scard__title {
  margin: 0 0 .65rem; font-size: 1.02rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3;
  color: var(--orange-ink);
}
.scard__text { display: block; margin-bottom: 1.1rem; font-size: .95rem; line-height: 1.6; color: var(--ink-soft); }
.scard__go { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; font-weight: 760; font-size: .9rem; color: var(--navy); }
.scard__go svg { color: var(--orange); transition: transform .35s var(--ease); }
.scard:hover .scard__go svg { transform: translateX(5px); }
.plataformas { background: var(--paper); }
.plataformas .eyebrow { color: var(--orange-ink); }

/* ---------- Bloque foto + texto ---------- */
.split { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } .split--rev > :first-child { order: 2; } }
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: var(--radius-lg); object-fit: cover; }
.mosaic { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; gap: 1rem; }
.mosaic figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); }
.mosaic figure:first-child { grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.mosaic figure:hover img { transform: scale(1.05); }
.mosaic .tag { position: absolute; left: .8rem; bottom: .8rem; }
.checklist { display: grid; gap: .9rem; margin: 1.75rem 0 2rem; }
.checklist li { display: flex; gap: .85rem; align-items: flex-start; font-weight: 560; }
.checklist svg { flex: none; width: 26px; height: 26px; padding: 5px; margin-top: .05rem; border-radius: 50%; background: var(--orange); color: var(--navy); }
.chevlist { display: grid; gap: 1rem; margin: 1.5rem 0 2rem; }
.chevlist li { display: grid; grid-template-columns: auto 1fr; gap: .9rem; }
.chevlist li > svg { color: var(--orange); width: 1.4rem; height: 1.4rem; margin-top: .15rem; }
.chevlist strong { display: block; font-size: 1.05rem; }
.chevlist span { color: var(--ink-soft); font-size: .97rem; }

/* ---------- Banda oscura (plataformas) ---------- */
.dark { position: relative; overflow: hidden; background: var(--navy); color: #DDE3EC; }
.dark h2, .dark h3 { color: #fff; }
.dark h2 em { color: var(--orange); }
.dark .eyebrow { color: var(--orange); }
.dark .lead, .dark .chevlist span { color: #B9C3D3; }
.dark::before {
  content: ""; position: absolute; inset: auto -10% -40% auto; width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(245, 130, 32, .16), transparent 62%); pointer-events: none;
}
.dark .container { position: relative; }
.dark-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; align-items: end; }
.dark-photos figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.dark-photos figure:nth-child(2) { transform: translateY(-2.5rem); }
.dark-photos img { width: 100%; aspect-ratio: 3 / 4.4; object-fit: cover; transition: transform 1s var(--ease); }
.dark-photos figure:hover img { transform: scale(1.05); }
.dark-photos .tag { position: absolute; left: .6rem; bottom: .6rem; font-size: .62rem; }

/* ---------- Pasos ---------- */
.steps { display: grid; gap: 1rem; counter-reset: s; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 1.75rem 1.6rem 1.9rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step__num { position: absolute; top: 1.4rem; right: 1.5rem; font-size: 2.6rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--line); }
.step__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 2.2rem; border-radius: 50%; background: var(--navy); color: #fff; }
.step__icon svg { width: 1.45rem; height: 1.45rem; }
.step:hover .step__icon { background: var(--orange); color: var(--navy); }
.step h3 { margin-bottom: .45rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.process { background: var(--paper); }

/* ---------- Ventajas ---------- */
.perks { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 700px) { .perks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .perks { grid-template-columns: repeat(4, 1fr); } }
.perk { padding: 2rem 1.75rem; background: #fff; }
.perk svg { width: 2rem; height: 2rem; color: var(--orange); margin-bottom: 1.4rem; }
.perk h3 { margin-bottom: .4rem; }
.perk p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* ---------- Opiniones ---------- */
.reviews { background: linear-gradient(180deg, #fff, var(--paper)); }
.reviews__summary { display: inline-flex; align-items: center; gap: .6rem; margin: .5rem 0 0; padding: .55rem 1rem; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-weight: 700; }
.reviews__summary .stars { color: var(--orange); }
.reviews__stage { position: relative; max-width: 860px; margin: 0 auto; min-height: 300px; display: grid; }
.reviews__fallback { align-self: center; text-align: center; padding: 2.75rem 2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.reviews__fallback .reviews__g { width: 44px; height: 44px; margin: 0 auto 1rem; }
.reviews__fallback-title { font-size: 1.35rem; font-weight: 780; letter-spacing: -.02em; color: var(--navy); margin-bottom: .4rem; }
.reviews__fallback p:last-child { color: var(--ink-soft); max-width: 32em; margin: 0 auto; }
.review {
  grid-area: 1 / 1; align-self: center;
  position: relative; padding: clamp(2rem, 1.5rem + 2vw, 3.25rem); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateX(24px) scale(.98);
  transition: opacity .6s var(--ease), transform .7s var(--ease), visibility .6s;
}
.review.is-active { opacity: 1; visibility: visible; transform: none; }
.review.is-leaving { transform: translateX(-24px) scale(.98); }
.review::before { content: "“"; position: absolute; top: .2rem; right: 1.8rem; font-family: var(--font-accent); font-size: 8rem; line-height: 1; color: var(--orange); opacity: .22; }
.review__stars { display: flex; gap: .15rem; color: var(--orange); margin-bottom: 1.1rem; }
.review__stars svg { width: 1.2rem; height: 1.2rem; }
.review__stars .off { color: var(--line); }
.review__text { font-size: clamp(1.05rem, 1rem + .35vw, 1.28rem); line-height: 1.6; color: var(--navy); font-weight: 520; margin-bottom: 1.6rem; max-height: 12.8em; overflow: auto; }
.review__author { display: flex; align-items: center; gap: .9rem; }
.review__author img, .review__avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--mist); display: grid; place-items: center; font-weight: 800; color: var(--navy); }
.review__author strong { display: block; line-height: 1.2; }
.review__author a { text-decoration: none; }
.review__author span { font-size: .85rem; color: var(--ink-mute); font-weight: 600; }
.review__source { margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 700; color: var(--ink-mute); }
.reviews__controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.75rem; }
.reviews__dots { display: flex; gap: .45rem; }
.reviews__dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 99px; background: #C9D0DB; transition: width .35s var(--ease), background-color .3s; }
.reviews__dots button[aria-current="true"] { width: 28px; background: var(--orange); }
.reviews__more { text-align: center; margin: 1.75rem 0 0; }

/* ---------- Presupuesto ---------- */
.quote { display: grid; gap: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
@media (min-width: 1000px) { .quote { grid-template-columns: .82fr 1.18fr; } }
.quote__side { position: relative; overflow: hidden; padding: clamp(2rem, 1.5rem + 2vw, 3.25rem); background: var(--navy); color: #C9D2DF; }
.quote__side::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 280px; height: 280px; border-radius: 50%; border: 40px solid rgba(245, 130, 32, .12); }
.quote__side h2 { color: #fff; font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); }
.quote__side h2 em { color: var(--orange); }
.quote__contacts { position: relative; z-index: 1; display: grid; gap: .75rem; margin: 2rem 0; }
.quote__contacts a { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; border-radius: 16px; background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; font-weight: 750; transition: background-color .3s, transform .35s var(--ease); }
.quote__contacts a:hover { background: rgba(255, 255, 255, .12); transform: translateX(4px); }
.quote__contacts a svg { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--orange); color: var(--navy); }
.quote__contacts small { display: block; font-size: .75rem; font-weight: 600; color: #9FAABD; }
.quote__presencial {
  position: relative; z-index: 1; display: flex; gap: 1rem; align-items: center;
  margin: -.5rem 0 1.75rem; padding: 1.2rem 1.25rem;
  background: #fff; border-radius: 18px; border-left: 6px solid var(--orange);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55);
}
.quote__presencial-icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--orange); color: var(--navy); }
.quote__presencial-icon svg { width: 1.45rem; height: 1.45rem; }
.quote__presencial p { margin: 0; }
.quote__presencial strong { display: block; margin-bottom: .2rem; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; color: var(--navy); }
.quote__presencial p span { display: block; font-size: .97rem; font-weight: 600; line-height: 1.45; color: var(--ink-soft); }
.aside-card__note { margin: -.4rem 0 .4rem; padding: .7rem .9rem; border-radius: 12px; background: var(--orange-50); color: var(--navy); font-size: .88rem; font-weight: 600; line-height: 1.45; }
.quote__person { position: relative; z-index: 1; display: flex; gap: .8rem; align-items: center; font-size: .92rem; margin: 0; }
.quote__person svg { width: 38px; height: 38px; padding: 9px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); color: #fff; }
.quote__person strong { color: #fff; }
.quote__form { padding: clamp(1.5rem, 1rem + 2vw, 3rem); background: #fff; }

.qform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.qform__group { border: 0; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 1rem 1.1rem; }
@media (min-width: 640px) { .qform__group { grid-template-columns: 1fr 1fr; } }
.qform__group legend { padding: 0; margin-bottom: 1rem; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-ink); }
.field { display: grid; gap: .4rem; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 700; color: var(--navy); }
.req { color: var(--orange-ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: .8rem 1rem;
  font: inherit; font-size: 1rem; color: var(--navy);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px;
  transition: border-color .25s, background-color .25s, box-shadow .25s;
  appearance: none; -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #8C97A8; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #C9D0DB; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(245, 130, 32, .16); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #C7362B; background: #FFF6F5; }
.field__error { margin: 0; min-height: 0; font-size: .84rem; font-weight: 650; color: #B3261E; }
.field__error:empty { display: none; }
.select { position: relative; }
.select svg { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--ink-mute); }
.field--check { grid-template-columns: auto 1fr; gap: .2rem .8rem; align-items: start; margin-bottom: 1.6rem; }
.field--check input { width: 22px; height: 22px; min-height: 0; padding: 0; margin-top: .15rem; border-radius: 6px; cursor: pointer; display: grid; place-items: center; }
.field--check input:checked { background: var(--orange); border-color: var(--orange); }
.field--check input:checked::after { content: ""; width: 6px; height: 11px; border: solid var(--navy); border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.field--check label { font-weight: 550; font-size: .9rem; color: var(--ink-soft); }
.field--check .field__error { grid-column: 2; }
.qform__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.qform__note { margin: 0; font-size: .85rem; color: var(--ink-mute); }
.qform [data-submit][aria-busy="true"] { pointer-events: none; opacity: .8; }
.qform [data-submit][aria-busy="true"] svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.qform__status { margin-top: 1.4rem; padding: 1.1rem 1.25rem; border-radius: 16px; font-weight: 600; }
.qform__status.is-ok { background: #EAF7EF; color: #17603A; border: 1px solid #BFE5CD; }
.qform__status.is-error { background: #FFF4F2; color: #8E2219; border: 1px solid #F3C9C4; }
.qform__status a { font-weight: 800; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; max-width: 900px; }
.faq--center { margin-inline: auto; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .3s, box-shadow .3s; }
.faq__item[open] { border-color: rgba(245, 130, 32, .5); box-shadow: var(--shadow-sm); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.4rem; cursor: pointer; list-style: none; font-weight: 720; font-size: 1.05rem; color: var(--navy); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary svg { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--orange-50); color: var(--orange-ink); transition: transform .35s var(--ease), background-color .3s; }
.faq__item[open] summary svg { transform: rotate(45deg); background: var(--orange); color: var(--navy); }
.faq__a { padding: 0 1.4rem 1.3rem; color: var(--ink-soft); }
.faq__a p:last-child { margin: 0; }
.faq-layout { display: grid; gap: 2.5rem; }
@media (min-width: 1000px) { .faq-layout { grid-template-columns: .8fr 1.2fr; gap: 4rem; } .faq-layout .section-head { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; } }

/* ---------- Banda CTA ---------- */
.cta-band { padding: 0 0 var(--section); }
.cta-band__inner {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 1.75rem; align-items: center;
  padding: clamp(2.25rem, 1.5rem + 3vw, 4rem); border-radius: var(--radius-lg);
  background: var(--navy); color: #C9D2DF;
}
@media (min-width: 1000px) { .cta-band__inner { grid-template-columns: 1fr auto; } }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); margin-bottom: .35rem; }
.cta-band p { margin: 0; font-size: 1.08rem; }
.cta-band__chev { position: absolute; z-index: -1; right: -4%; top: 50%; transform: translateY(-50%); color: var(--orange); opacity: .1; }
.cta-band__chev svg { width: 26rem; height: 26rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; }
.cta-band__tel { display: inline-flex; align-items: center; gap: .5rem; color: #fff; font-weight: 750; text-decoration: none; padding: .5rem; }
.cta-band__tel svg { color: var(--orange); }

/* ---------- Página interior ---------- */
.page-hero { position: relative; padding: clamp(1.5rem, 1rem + 2vw, 3rem) 0 clamp(3rem, 2rem + 3vw, 5rem); overflow: hidden; }
.page-hero__grid { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4rem); align-items: center; }
@media (min-width: 980px) { .page-hero__grid { grid-template-columns: 1.05fr 1fr; } }
.page-hero h1 { font-size: var(--fs-h1); margin-bottom: 1.2rem; animation: fadeUp .9s var(--ease) both; }
.page-hero .lead { animation: fadeUp .9s .1s var(--ease) both; margin-bottom: 2rem; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; animation: fadeUp .9s .2s var(--ease) both; }
.page-hero__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 11; box-shadow: var(--shadow-lg); animation: clipIn 1.2s var(--ease) both; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; animation: zoomOut 2s var(--ease) both; }
.page-hero__media .tag { position: absolute; right: 1rem; bottom: 1rem; }
.page-hero__media--full { aspect-ratio: 4 / 3; background: #fff; }
.page-hero__media--full img { object-fit: contain; animation: none; }
.page-hero__media--tall { aspect-ratio: 4 / 4.4; max-width: 520px; justify-self: center; width: 100%; }
.page-hero--simple { padding-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.page-hero--simple .container > * { max-width: 820px; }
.crumbs { margin-bottom: 1.75rem; font-size: .86rem; font-weight: 650; color: var(--ink-mute); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs li { display: inline-flex; align-items: center; gap: .4rem; }
.crumbs li + li::before { content: "›"; color: var(--orange); font-weight: 800; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--navy); }
.crumbs [aria-current] { color: var(--navy); }

.content-grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
@media (min-width: 1000px) { .content-grid { grid-template-columns: minmax(0, 1fr) 360px; } .content-grid > aside { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; } }
.prose h2 { font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.3rem); margin-top: 2.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 2rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose p strong { color: var(--navy); }
.prose figure { margin: 2.5rem 0; }
.prose figure img { border-radius: var(--radius); width: 100%; }
.prose figcaption { margin-top: .7rem; font-size: .85rem; color: var(--ink-mute); }
.note { padding: 1.2rem 1.4rem; border-left: 4px solid var(--orange); background: var(--orange-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--navy); }
.note p { color: var(--navy); margin: 0; }
.aside-card { padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); display: grid; gap: .75rem; }
.aside-card__kicker { margin: 0; font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-ink); }
.aside-card__title { margin: 0 0 .5rem; font-size: 1.35rem; font-weight: 780; line-height: 1.2; letter-spacing: -.02em; color: var(--navy); }
.aside-card__tels { display: grid; gap: .5rem; margin: .5rem 0; padding: .9rem 0; border-block: 1px solid var(--line); }
.aside-card__tels li { display: flex; align-items: center; gap: .6rem; font-weight: 750; }
.aside-card__tels svg { color: var(--orange-ink); }
.aside-card__tels a { text-decoration: none; }
.aside-card__tels span { margin-left: auto; font-size: .8rem; color: var(--ink-mute); font-weight: 600; }
.aside-card__person { display: flex; gap: .7rem; align-items: center; margin: 0; font-size: .88rem; color: var(--ink-soft); }
.aside-card__person svg { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--paper); color: var(--navy); }

.section--flush { padding-top: 0; }
.cta-wrap { padding-top: var(--section); }
.related__title { font-size: var(--fs-h3); }
.prose figcaption .tag { margin-right: .4rem; background: var(--paper); }
.related { display: grid; gap: .75rem; }
@media (min-width: 700px) { .related { grid-template-columns: repeat(3, 1fr); } }
.related a { display: flex; align-items: center; gap: .9rem; padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; font-weight: 720; transition: border-color .3s, transform .35s var(--ease); }
.related a:hover { border-color: var(--orange); transform: translateY(-3px); }
.related a > svg:first-child { color: var(--orange); width: 1.5rem; height: 1.5rem; }
.related a > svg:last-child { margin-left: auto; color: var(--ink-mute); }

/* ---------- Galería ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filters button { padding: .65rem 1.15rem; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: .92rem; color: var(--navy); transition: all .3s; }
.filters button:hover { border-color: var(--navy); }
.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.gallery { columns: 1; column-gap: 1rem; }
@media (min-width: 620px) { .gallery { columns: 2; } }
@media (min-width: 1000px) { .gallery { columns: 3; } }
.gallery__item { break-inside: avoid; margin: 0 0 1rem; }
.gallery__item[hidden] { display: none; }
.gallery__btn { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--mist); cursor: zoom-in; }
.gallery__btn img { width: 100%; transition: transform 1s var(--ease), filter .5s; }
.gallery__btn:hover img { transform: scale(1.04); }
.gallery__btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(14, 27, 47, .65)); opacity: 0; transition: opacity .4s; }
.gallery__btn:hover::after, .gallery__btn:focus-visible::after { opacity: 1; }
.gallery__btn .tag { position: absolute; left: .8rem; top: .8rem; z-index: 1; }
.gallery__zoom { position: absolute; right: .8rem; bottom: .8rem; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--navy); opacity: 0; transform: scale(.8); transition: all .35s var(--ease); }
.gallery__btn:hover .gallery__zoom, .gallery__btn:focus-visible .gallery__zoom { opacity: 1; transform: none; }
.gallery__item figcaption { padding: .6rem .2rem 0; font-size: .88rem; color: var(--ink-mute); font-weight: 600; }

.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 1rem; background: rgba(10, 18, 32, .94); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: .8rem; max-height: 100%; }
.lightbox img { max-height: calc(100vh - 8rem); width: auto; border-radius: 12px; }
.lightbox figcaption { color: #DDE3EC; font-weight: 600; text-align: center; font-size: .95rem; }
.lightbox .icon-btn { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: #fff; }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; }
@media (max-width: 640px) { .lightbox { grid-template-columns: 1fr; } .lightbox__prev, .lightbox__next { position: absolute; bottom: 1.5rem; } .lightbox__prev { left: 30%; } .lightbox__next { right: 30%; } }

/* ---------- Contacto ---------- */
.contact-cards { display: grid; gap: 1rem; }
@media (min-width: 700px) { .contact-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .contact-cards { grid-template-columns: repeat(3, 1fr); } }
.ccard__email, .aside-card__email, .quote__contacts span, .site-footer__contact a { overflow-wrap: break-word; }
.ccard__links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .35rem; }
.ccard__links a { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border: 1.5px solid var(--line); border-radius: 99px; font-weight: 750; text-decoration: none; transition: border-color .3s; }
.ccard__links a:hover { border-color: var(--orange); }
.ccard__links svg { width: 1.1rem; height: 1.1rem; padding: 0; margin: 0; background: none; color: var(--navy); border-radius: 0; }
.ccard--social:hover { transform: none; box-shadow: none; }
.site-footer .social { display: flex; gap: .6rem; margin-top: 1.4rem; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .25); color: #fff; transition: border-color .3s, background-color .3s, transform .35s var(--ease); }
.social a:hover { border-color: var(--orange); background: rgba(245, 130, 32, .12); transform: translateY(-2px); }
.social svg { width: 1.2rem; height: 1.2rem; }
.ccard { display: flex; flex-direction: column; gap: .3rem; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; }
.ccard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(245, 130, 32, .5); }
.ccard svg { width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: var(--orange-50); color: var(--orange-ink); margin-bottom: 1rem; }
.ccard--wa svg { background: #E7F7EE; color: #1A8F49; }
.ccard small { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); }
.ccard strong { font-size: 1.15rem; letter-spacing: -.01em; line-height: 1.3; }
.map { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--mist); width: 100%; height: clamp(340px, 42vw, 540px); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .9rem; padding: 1.5rem; text-align: center; background: linear-gradient(135deg, #F3F5F8, #E7EBF1); }
.map__placeholder::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(23, 42, 70, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 42, 70, .05) 1px, transparent 1px); background-size: 36px 36px; }
.map__placeholder > * { position: relative; }
.map__placeholder svg.pin { width: 54px; height: 54px; color: var(--orange); }
.map__placeholder p { margin: 0; max-width: 30em; color: var(--ink-soft); font-size: .92rem; }

/* ---------- Legal ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.5rem; margin-top: 2.4rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1em; }
.pending { background: #FFF6D9; color: #6B4E00; padding: .1rem .4rem; border-radius: 4px; font-weight: 700; }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy-900); color: #A9B4C6; padding-top: clamp(3.5rem, 3rem + 3vw, 5.5rem); font-size: .95rem; }
.site-footer__top { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 760px) { .site-footer__top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .site-footer__top { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.site-footer__brand img { width: 240px; margin-bottom: 1.25rem; }
.site-footer__brand p { max-width: 26em; }
.site-footer__cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.site-footer h2 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 1.1rem; font-weight: 800; }
.site-footer ul { display: grid; gap: .55rem; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.site-footer__contact li { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; }
.site-footer__contact svg { color: var(--orange); margin-top: .2rem; }
.site-footer__contact a { color: #fff; font-weight: 650; }
.site-footer__contact span { grid-column: 2; font-size: .85rem; margin-top: -.4rem; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.6rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .86rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 1.4rem; }

/* ---------- Flotantes ---------- */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  display: flex; align-items: center; gap: .6rem; height: 58px; padding: 0 1.2rem 0 .9rem;
  border-radius: 99px; background: #1FA855; color: #fff; text-decoration: none; font-weight: 750;
  box-shadow: 0 14px 30px -10px rgba(31, 168, 85, .6);
  transform: translateY(120%); opacity: 0; transition: transform .5s var(--ease), opacity .4s, box-shadow .3s;
}
.wa-float.is-visible { transform: none; opacity: 1; }
.wa-float:hover { box-shadow: 0 18px 36px -10px rgba(31, 168, 85, .75); }
.wa-float svg { width: 1.8rem; height: 1.8rem; }
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .wa-float { display: none; }
  body { padding-bottom: 72px; }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: .4rem;
    padding: .5rem .6rem calc(.5rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; min-height: 52px; border-radius: 14px; text-decoration: none; font-size: .78rem; font-weight: 750; color: var(--navy); }
  .mobile-bar a svg { width: 1.35rem; height: 1.35rem; }
  .mobile-bar a:nth-child(2) svg { color: #1FA855; }
  .mobile-bar__cta { background: var(--orange); }
}

.cookie-banner {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 150; max-width: 460px;
  padding: 1.25rem 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.cookie-banner p { font-size: .9rem; color: var(--ink-soft); margin-bottom: 1rem; }
.cookie-banner__actions { display: flex; gap: .6rem; justify-content: flex-end; }
@media (max-width: 760px) { .cookie-banner { left: .6rem; right: .6rem; bottom: 80px; max-width: none; } }

/* ---------- Aparición al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .steps .reveal:nth-child(2), .js .scards .reveal:nth-child(2), .js .perks .reveal:nth-child(2) { transition-delay: .08s; }
.js .steps .reveal:nth-child(3), .js .scards .reveal:nth-child(3), .js .perks .reveal:nth-child(3) { transition-delay: .16s; }
.js .steps .reveal:nth-child(4), .js .scards .reveal:nth-child(4), .js .perks .reveal:nth-child(4) { transition-delay: .24s; }
.js .scards .reveal:nth-child(5) { transition-delay: .12s; }
.js .scards .reveal:nth-child(6) { transition-delay: .2s; }
/* Red de seguridad: si el navegador no llega a ejecutar las animaciones de entrada, el JS añade
   .anim-done a los 2,6 s y el contenido queda visible en su estado final. */
.anim-done .hero *, .anim-done .page-hero * { animation: none !important; }
/* Tras aparecer, las tarjetas de servicios recuperan su animación de hover */
.js .scard.is-in { transition: transform .45s var(--ease), box-shadow .45s var(--ease), opacity .9s var(--ease); }
.js .scard.is-in:hover { transform: translateY(-8px); }
/* Red de seguridad: los textos divididos nunca quedan ocultos */
.reveal[data-split] { opacity: 1; transform: none; }

/* Movimiento reducido: solo se detienen los efectos continuos o intrusivos */
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  html { scroll-behavior: auto; }
}

@media print {
  .site-header, .wa-float, .mobile-bar, .cookie-banner, .cta-band { display: none !important; }
}
