/* Hydrogenics — Estilos principales */

/* ============ FONTS ============ */
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
  font-weight: 600 800;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/opensans-latin.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
}

/* ============ TOKENS ============ */
:root {
  --navy: #001749;
  --orange: #FE6100;
  --orange-hover: #e85700;
  /* Naranjo para fondos con texto blanco: contraste 4,6:1 (WCAG AA). El --orange de marca queda en 3:1 */
  --orange-strong: #CC4B00;
  --orange-strong-hover: #B04100;
  --bone: #F5F0EB;
  --white: #FFFFFF;
  --gray-100: #f7f7f8;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --text: var(--navy);
  --text-muted: var(--gray-600);
  --text-on-navy: rgba(255, 255, 255, 0.9);
  --text-on-navy-strong: #FFFFFF;
  --ff-heading: 'Montserrat', system-ui, -apple-system, sans-serif;
  --ff-body: 'Open Sans', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --sh-card: 0 1px 3px rgba(0, 23, 73, 0.08), 0 4px 12px rgba(0, 23, 73, 0.06);
  --sh-card-hover: 0 4px 16px rgba(0, 23, 73, 0.12);
  --container: 1140px;
  --section-py: clamp(3rem, 6vw, 5rem);
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 2px; }

::selection { background: rgba(0, 23, 73, 0.18); color: var(--navy); }
::-moz-selection { background: rgba(0, 23, 73, 0.18); color: var(--navy); }
input, textarea, select { caret-color: var(--orange); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ============ SKIP LINK ============ */
.skip-link {
  position: absolute; left: -9999px; top: auto;
  padding: 0.5rem 1rem; background: var(--orange-strong); color: var(--white);
  font-weight: 700; z-index: 9999; border-radius: var(--radius-xs);
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ============ LAYOUT ============ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 1rem;
}
@media (min-width: 768px) { .container { padding-inline: 2rem; } }

.section { padding-block: var(--section-py); }
.section__header { text-align: center; margin-bottom: 2.5rem; max-width: 720px; margin-inline: auto; }
.section__header p { margin-top: 0.75rem; color: var(--text-muted); }
.section__tag {
  display: inline-block; padding: 0.25rem 0.75rem;
  background: var(--orange); color: var(--white);
  font-family: var(--ff-heading); font-weight: 700; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  border-radius: 100px; margin-bottom: 0.75rem;
}

.bg-navy { background: var(--navy); color: var(--text-on-navy); }
.bg-bone { background: var(--bone); }
.bg-white { background: var(--white); }

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4 { font-family: var(--ff-heading); line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.25rem); font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }

.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: var(--text-on-navy-strong); }
.bg-navy p { color: var(--text-on-navy); }

h2 strong { color: #C44700; font-weight: inherit; }
.bg-navy h2 strong { color: var(--orange); }
h1 .accent { color: var(--orange); font-weight: inherit; }
.caption { font-size: 0.875rem; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-family: var(--ff-heading); font-weight: 700; font-size: 1rem;
  border-radius: var(--radius-sm); transition: all 0.2s ease;
  white-space: nowrap; text-align: center; justify-content: center;
  min-height: 44px;
}
.btn--primary {
  background: var(--orange-strong); color: var(--white);
  border: 2px solid var(--orange-strong);
}
@media (hover: hover) { .btn--primary:hover { background: var(--orange-strong-hover); border-color: var(--orange-strong-hover); } }
.btn--secondary {
  background: transparent; color: var(--navy);
  border: 2px solid var(--navy);
}
@media (hover: hover) { .btn--secondary:hover { background: var(--navy); color: var(--white); } }
.btn--secondary-light {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
@media (hover: hover) { .btn--secondary-light:hover { border-color: var(--white); background: rgba(255,255,255,0.1); } }
.btn--wa {
  background: #25D366; color: var(--navy); border-color: #25D366;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
@media (hover: hover) { .btn--wa:hover { background: #1ebe57; border-color: #1ebe57; } }
.btn--full-width { width: 100%; }

.bg-navy .btn--secondary { color: var(--white); border-color: rgba(255,255,255,0.4); }
.bg-navy .btn--secondary:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

/* ============ CARDS ============ */
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--sh-card); padding: 1.5rem;
}

/* ============ HEADER ============ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); transition: box-shadow 0.2s;
}
.header.scrolled { box-shadow: 0 2px 12px rgba(0,23,73,0.08); }
.header__inner {
  display: flex; align-items: center; gap: 1.5rem;
  padding-block: 0.75rem;
}
.header__logo img { height: 40px; width: auto; }
.header__nav { display: none; gap: 1.5rem; margin-left: auto; }
.header__nav a {
  font-family: var(--ff-heading); font-weight: 600; font-size: 0.9rem;
  color: var(--text); transition: color 0.2s;
}
@media (hover: hover) { .header__nav a:hover { color: var(--orange); } }
.header__cta { margin-left: 0.5rem; }
.desktop-only { display: none; }
.header__burger {
  margin-left: auto; padding: 0.5rem;
  color: var(--navy); background: none;
}
@media (min-width: 920px) {
  .header__nav { display: flex; }
  .header__burger { display: none; }
  .desktop-only { display: inline-flex; }
}

/* Mobile menu */
.header__mobile-menu {
  display: none; flex-direction: column; gap: 0; padding: 0;
  background: var(--white); border-top: 1px solid var(--gray-200);
  position: absolute; top: 100%; left: 0; right: 0;
  box-shadow: 0 8px 24px rgba(0,23,73,0.1);
}
.header__mobile-menu.open { display: flex; }
.header__mobile-menu a {
  display: block; padding: 1rem 1.5rem;
  font-family: var(--ff-heading); font-weight: 600; font-size: 1rem;
  border-bottom: 1px solid var(--gray-200);
}
.header__mobile-menu a:hover { background: var(--gray-100); }
.header__mobile-menu .btn { margin: 1rem 1.5rem; }
@media (min-width: 920px) { .header__mobile-menu { display: none !important; } }

/* ============ HERO ============ */
.hero {
  --hero-img: url('../imagenes/estilo-ia/Hero.webp');
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(3rem, 8vw, 5rem);
  background-color: var(--navy);
}
/* Capas: foto (con zoom lento) → degradado → cañerías animadas → contenido */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: var(--hero-img) center / cover no-repeat;
  transform-origin: 70% 40%;
  animation: hero-zoom 26s ease-out both;
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to right, rgba(0,23,73,0.94) 0%, rgba(0,23,73,0.80) 50%, rgba(0,23,73,0.72) 100%);
}
.hero > .container { position: relative; z-index: 1; }
@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__inner { display: grid; gap: 2.5rem; align-items: center; }
.hero__caption { color: rgba(255,255,255,0.7); margin-bottom: 1rem; }
/* En la home el caption vive dentro del h1 (keyword en el título) pero se ve igual que antes */
h1 .hero__caption { display: block; font-family: var(--ff-body); line-height: 1.5; }
.hero__content h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero__content h1 .accent { display: block; color: var(--orange); }
.hero__text { color: var(--text-on-navy); max-width: 540px; margin-bottom: 1.5rem; line-height: 1.7; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }

@media (min-width: 920px) {
  .hero__inner { grid-template-columns: 1fr 480px; gap: 3rem; }
}

/* Hero form — tarjeta blanca sólida */
.hero__form-card {
  padding: 1.75rem;
  background: var(--white);
  box-shadow: 0 12px 40px rgba(0,0,0,0.28);
}
/* Versión compacta: el formulario del hero no debe superar la altura de pantalla */
.hero__form-card { padding: 1.25rem 1.5rem; }
.hero__form-card .form-card__title { font-size: 1.125rem; margin-bottom: 0.2rem; }
.hero__form-card .form-card__subtitle { font-size: 0.8125rem; margin-bottom: 0.75rem; }
.hero__form-card .field { margin-bottom: 0.6rem; }
.hero__form-card .field label { font-size: 0.8125rem; margin-bottom: 0.2rem; }
.hero__form-card .field input,
.hero__form-card .field select,
.hero__form-card .field textarea { padding: 0.5rem 0.75rem; }
.hero__form-card .field textarea { min-height: 60px; }
.hero__form-card .field--file input[type="file"] { padding: 0.35rem; }
.hero__form-card .field__hint { font-size: 0.75rem; margin-top: 0.2rem; }
.hero__form-card .form-trust { font-size: 0.75rem; margin-top: 0.5rem; }
/* La tarjeta vive dentro de .bg-navy: devolverle los colores de fondo claro */
.hero__form-card { color: var(--text); }
.bg-navy .hero__form-card p { color: var(--text); }
.bg-navy .hero__form-card .form-card__subtitle { color: var(--text-muted); }
.bg-navy .hero__form-card .field__hint,
.bg-navy .hero__form-card .form-trust { color: var(--gray-500); }

/* ============ MARCAS (bajo la barra de confianza) ============ */
.brandbar {
  background: var(--bone);
  padding-block: 1.25rem;
}
.brandbar__inner { display: flex; align-items: center; gap: 1.5rem; }
.brandbar__label {
  flex-shrink: 0;
  font-family: var(--ff-heading); font-weight: 700; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--gray-600);
}
.brandbar .marquee { flex: 1; margin-bottom: 0; }
.brandbar .marquee__track { gap: 2.5rem; }
.brandbar .marquee__track img { height: 40px; filter: grayscale(100%) opacity(0.7); }
@media (max-width: 599px) {
  .brandbar__inner { flex-direction: column; gap: 0.5rem; }
  .brandbar .marquee { width: 100%; }
  .brandbar .marquee__track img { height: 28px; }
}

/* ============ TRUSTBAR ============ */
.trustbar {
  background: var(--white);
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
  border-bottom: 1px solid var(--gray-200);
}
.trustbar__grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
.trustbar__item {
  display: flex; gap: 1rem; align-items: flex-start;
}
.trustbar__item .icon-wrap {
  flex-shrink: 0; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bone); border-radius: 50%;
  color: var(--navy);
}
.trustbar__title { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.15rem; }
.trustbar__item p:not(.trustbar__title) { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

@media (min-width: 600px) { .trustbar__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 920px) { .trustbar__grid { grid-template-columns: repeat(4, 1fr); } }

/* ============ MANTENCIÓN ============ */
.mantencion__inner { display: grid; gap: 2.5rem; align-items: center; }
.mantencion__content h2 { margin-bottom: 1rem; }
.mantencion__lead { color: var(--text-muted); margin-bottom: 1.5rem; max-width: 560px; }
.mantencion__list { display: flex; flex-direction: column; gap: 0.9rem; margin-bottom: 2rem; }
.mantencion__list li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.95rem; line-height: 1.55; }
.mantencion__list svg { flex-shrink: 0; color: #C44700; margin-top: 0.05rem; }
.mantencion__image { border-radius: var(--radius); overflow: hidden; }
.mantencion__image img { width: 100%; height: auto; object-fit: cover; }

@media (min-width: 920px) {
  .mantencion__inner { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; }
}

/* ============ SERVICIOS ============ */
.services-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}
.service-card { padding: 0; overflow: hidden; transition: box-shadow 0.2s; }
@media (hover: hover) { .service-card:hover { box-shadow: var(--sh-card-hover); } }
.service-card img,
.service-card__video {
  display: block;
  width: 100%; height: 190px;
  object-fit: cover;
}
.service-card__body { padding: 1.25rem; }
.service-card h3 { margin-bottom: 0.5rem; }
.service-card__more summary {
  display: inline-flex; align-items: center; gap: 0.4rem;
  cursor: pointer; list-style: none;
  font-family: var(--ff-heading); font-weight: 700; font-size: 0.875rem;
  color: #C44700; padding-block: 0.25rem;
}
.service-card__more summary::-webkit-details-marker { display: none; }
.service-card__more summary::after {
  content: ''; width: 0.5rem; height: 0.5rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform 0.2s;
}
.service-card__more[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.service-card__desc { padding-top: 0.5rem; }
.service-card__desc p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.service-card__desc p + p { margin-top: 0.5rem; }

.service-card__badge {
  display: inline-block; margin-bottom: 0.6rem;
  padding: 0.2rem 0.65rem; border-radius: 100px;
  background: var(--orange); color: var(--white);
  font-family: var(--ff-heading); font-weight: 700; font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.service-card--featured { border: 2px solid var(--orange); }
.service-card--featured h3 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.service-card--featured .btn { margin-top: 1.25rem; }
.service-card__lead { color: var(--text-muted); margin-bottom: 0.5rem; max-width: 440px; }

@media (min-width: 600px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .service-card--featured img,
  .service-card--featured .service-card__video { height: 100%; min-height: 280px; }
  /* El video es vertical: sin esto su tamaño propio estira la tarjeta */
  .service-card--featured .service-card__video { contain: size; min-height: 360px; }
  .service-card--featured .service-card__body { padding: 2rem; align-self: center; }
}
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

/* ============ CAMBIO ============ */
.cambio-section { padding-block: var(--section-py); }
.cambio__inner { display: grid; gap: 2.5rem; align-items: center; }
.cambio__content h2 { margin-bottom: 1.25rem; }
.cambio__content > p { margin-bottom: 1rem; line-height: 1.7; }
.cambio-features { display: flex; flex-direction: column; gap: 1rem; margin: 1.5rem 0; }
.cambio-features__item {
  display: flex; gap: 0.75rem; align-items: flex-start;
}
.cambio-features__item svg {
  flex-shrink: 0; margin-top: 0.1rem;
  color: var(--orange);
}
.cambio-features__item strong { display: block; color: var(--white); }
.cambio-features__item p { font-size: 0.9rem; color: var(--text-on-navy); }
.cambio__image { border-radius: var(--radius); overflow: hidden; }
.cambio__image img { width: 100%; height: auto; object-fit: cover; }

@media (min-width: 920px) {
  .cambio__inner { grid-template-columns: 1.2fr 0.8fr; gap: 4rem; }
}

/* ============ SÍNTOMAS / ACCORDION ============ */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 0; }
.acc {
  border-bottom: 1px solid var(--gray-200);
}
.acc summary {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1.25rem 0; cursor: pointer;
  list-style: none;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::before {
  content: '+';
  flex-shrink: 0; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--bone);
  font-family: var(--ff-heading); font-weight: 700;
  font-size: 1.1rem; color: var(--navy);
  transition: transform 0.2s, background 0.2s;
}
.acc[open] summary::before { content: '−'; background: var(--orange); color: var(--white); }
.bg-bone .acc summary::before { background: var(--white); }
.bg-bone .acc[open] summary::before { background: var(--orange); }
.bg-bone .acc { border-color: var(--gray-300); }
.acc summary h3 { font-size: 1rem; font-weight: 600; }
.acc__body { padding: 0 0 1.25rem 2.75rem; }
.acc__body p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 0.75rem; }
.acc__body p:last-child { margin-bottom: 0; }
.acc__body-inner { display: flex; gap: 1.25rem; align-items: flex-start; }
.acc__img {
  flex-shrink: 0; width: 140px; height: 100px;
  border-radius: var(--radius); object-fit: cover;
}
.acc__body-inner .acc__text p:last-child { margin-bottom: 0; }
@media (max-width: 480px) {
  .acc__body-inner { flex-direction: column; }
  .acc__img { width: 100%; height: 160px; }
}

/* ============ CTA URGENCIA ============ */
.cta-urgencia { padding-block: clamp(2.5rem, 5vw, 4rem); }
.cta-urgencia__inner { text-align: center; max-width: 640px; margin: 0 auto; }
.cta-urgencia__content h2 { margin-bottom: 1.5rem; }
.cta-urgencia__content h2 strong { color: var(--orange); }
.cta-urgencia__contacts {
  display: flex; flex-direction: column; gap: 0.75rem;
  align-items: center; margin-bottom: 1rem;
}
.cta-urgencia__contact {
  display: flex; align-items: center; gap: 0.5rem;
}
.cta-urgencia__contact a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.cta-urgencia__contact a:hover { color: var(--orange); }
.cta-urgencia__note { font-size: 0.875rem; color: rgba(255,255,255,0.6); margin-bottom: 1.5rem; }

/* ============ TRES PASOS ============ */
.steps-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.step-card { text-align: center; padding: 2rem 1.5rem; border: 1px solid var(--gray-200); }
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: var(--orange); color: var(--white);
  font-family: var(--ff-heading); font-weight: 800; font-size: 1.5rem;
  border-radius: 50%; margin-bottom: 1rem;
}
.step-card h3 { margin-bottom: 0.75rem; }
.step-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============ MARCAS ============ */
.marquee {
  overflow: hidden;
  margin-bottom: 1.5rem;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex; align-items: center; gap: 3rem;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}
.marquee__track img {
  height: 50px; width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.55);
  transition: filter 0.3s;
  flex-shrink: 0;
}
@media (hover: hover) { .marquee__track img:hover { filter: grayscale(0%) opacity(1); } }
@keyframes marquee-scroll {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}

/* ============ GALERÍA — comparador antes / después ============ */
.ba { display: grid; gap: 1.25rem; grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
.ba > * { min-width: 0; }
@media (min-width: 920px) {
  .ba { grid-template-columns: 440px 1fr; gap: 2.5rem; align-items: center; max-width: 980px; }
}
.ba__panel + .ba__panel { margin-top: 1.5rem; }
.js .ba__panel + .ba__panel { margin-top: 0; }
.ba__panel[hidden] { display: none; }

.compare {
  --pos: 50%;
  position: relative; overflow: hidden;
  aspect-ratio: 1524 / 2077; /* fotos verticales: se muestran completas */
  border-radius: var(--radius);
  box-shadow: var(--sh-card-hover);
  background: var(--gray-200);
  user-select: none; -webkit-user-select: none;
  touch-action: pan-y;
}
.compare__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}
.compare__img--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

.compare__tag {
  position: absolute; top: 0.85rem; z-index: 2;
  padding: 0.3rem 0.7rem; border-radius: 100px;
  font-family: var(--ff-heading); font-weight: 700; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  pointer-events: none; transition: opacity 0.2s;
}
.compare__tag--before { left: 0.85rem; background: rgba(0,23,73,0.85); color: var(--white); }
.compare__tag--after { right: 0.85rem; background: var(--orange-strong); color: var(--white); }
.compare.hide-before .compare__tag--before,
.compare.hide-after .compare__tag--after { opacity: 0; }

.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 2;
  width: 3px; transform: translateX(-50%);
  background: var(--white); box-shadow: 0 0 12px rgba(0,0,0,0.35);
  pointer-events: none;
}
.compare__knob {
  position: absolute; top: 50%; left: 50%;
  width: 52px; height: 52px; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 3px solid var(--white);
  background: var(--orange); color: var(--white);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}
.compare:hover .compare__knob,
.compare.is-dragging .compare__knob { transform: translate(-50%, -50%) scale(1.1); }
.compare:focus-within .compare__knob { outline: 3px solid var(--navy); outline-offset: 3px; }

/* El input range cubre toda la imagen: arrastre con mouse, touch y teclado */
.compare__range {
  position: absolute; inset: 0; z-index: 3;
  width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none; background: transparent;
}
.compare__range::-webkit-slider-thumb { -webkit-appearance: none; width: 56px; height: 100vh; cursor: ew-resize; }
.compare__range::-moz-range-thumb { width: 56px; height: 100vh; border: 0; cursor: ew-resize; }

.ba__caption {
  margin-top: 0.85rem; font-size: 0.9rem; color: var(--text-muted);
}
.ba__caption strong { color: var(--navy); }

/* Selector de trabajos */
.ba__tabs { display: none; }
.js .ba__tabs { display: grid; gap: 0.75rem; grid-template-columns: 1fr; }
.ba__tab {
  display: flex; align-items: center; gap: 0.9rem;
  width: 100%; padding: 0.6rem; text-align: left;
  background: var(--white); border: 2px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--sh-card);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.ba__tab img {
  flex-shrink: 0; width: 88px; height: 66px;
  object-fit: cover; border-radius: var(--radius-sm);
  filter: saturate(0.6); transition: filter 0.2s;
}
.ba__tab-text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.ba__tab-title { font-family: var(--ff-heading); font-weight: 700; font-size: 0.95rem; line-height: 1.3; color: var(--navy); }
.ba__tab-meta { font-size: 0.8rem; color: var(--text-muted); }
@media (hover: hover) {
  .ba__tab:hover { box-shadow: var(--sh-card-hover); transform: translateY(-1px); }
  .ba__tab:hover img { filter: none; }
}
.ba__tab[aria-selected="true"] { border-color: var(--orange); }
.ba__tab[aria-selected="true"] img { filter: none; }

@media (max-width: 919px) {
  .js .ba__tabs { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .ba__tab { flex-direction: column; align-items: stretch; gap: 0.5rem; padding: 0.4rem; }
  .ba__tab img { width: 100%; height: 64px; }
  .ba__tab-meta { display: none; }
  .ba__tab-title { font-size: 0.78rem; padding: 0 0.2rem 0.2rem; }
}

/* ============ COBERTURA ============ */
.coverage-highlight {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}
.coverage-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  transition: all 0.2s;
}
@media (hover: hover) {
  .coverage-card:hover { border-color: var(--orange); box-shadow: var(--sh-card-hover); }
}
.coverage-card h3 { font-size: 1rem; }

@media (min-width: 768px) { .coverage-highlight { grid-template-columns: repeat(3, 1fr); } }

.coverage-group { max-width: 640px; margin: 0 auto 1.75rem; }
.coverage-group__title {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--gray-600); text-align: center; margin-bottom: 0.75rem;
}
.coverage-table--regions span { background: var(--bone); font-weight: 600; }
.coverage-table {
  display: grid; gap: 0.5rem;
  grid-template-columns: repeat(2, 1fr);
  max-width: 640px; margin: 0 auto;
}
.coverage-table span {
  padding: 0.6rem 1rem;
  background: var(--gray-100);
  border-radius: var(--radius-xs);
  text-align: center; font-size: 0.9rem;
  color: var(--text);
}
@media (min-width: 600px) { .coverage-table { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 920px) { .coverage-table { grid-template-columns: repeat(4, 1fr); } }

.coverage-close {
  text-align: center; font-size: 0.9rem;
  color: var(--text-muted); margin-top: 1.5rem;
}

/* ============ FORMAS DE PAGO ============ */
.payments-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  max-width: 880px; margin: 0 auto;
}
.payment-item {
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--sh-card);
  font-family: var(--ff-heading); font-weight: 700; font-size: 0.95rem;
  text-align: center;
}
.payment-item .icon-wrap {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bone); color: var(--navy);
}
@media (min-width: 768px) { .payments-grid { grid-template-columns: repeat(4, 1fr); } }

.webpay-card {
  display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
  max-width: 880px; margin: 1.5rem auto 0; padding: 1.5rem;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--sh-card); text-align: center;
}
.webpay-card__brand {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  min-width: 140px;
}
.webpay-card__brand img { display: block; height: 44px; width: auto; }
.webpay-card__body { flex: 1; min-width: 0; }
.webpay-card__title { font-family: var(--ff-heading); font-weight: 700; font-size: 1.05rem; margin-bottom: 0.35rem; }
.webpay-card__text { font-size: 0.9rem; color: var(--text-muted); }
@media (min-width: 768px) {
  .webpay-card { flex-direction: row; text-align: left; padding: 1.5rem 2rem; gap: 2rem; }
  .webpay-card__brand { padding-right: 2rem; border-right: 1px solid var(--gray-200); }
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ============ AGENDA / FORMULARIO ============ */
.schedule-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
.schedule-grid > *, .hero__inner > * { min-width: 0; }
@media (min-width: 920px) {
  .schedule-grid { grid-template-columns: 1.1fr 0.9fr; }
}

.form-card { padding: 2rem; }
.form-card__title {
  font-family: var(--ff-heading); font-weight: 700;
  font-size: 1.25rem; color: var(--navy);
  margin-bottom: 0.4rem;
}
.form-card__subtitle {
  font-size: 0.875rem; color: var(--text-muted);
  margin-bottom: 1.25rem; line-height: 1.5;
}
.form-card__title + form { margin-top: 1rem; }

/* Form fields */
.field { margin-bottom: 1rem; }
.field-row { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 480px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field-row .field { min-width: 0; }
.field__hint { font-size: 0.8rem; color: var(--gray-500); margin-top: 0.35rem; line-height: 1.4; }
.field--file input[type="file"] {
  padding: 0.5rem; font-size: 0.875rem; color: var(--gray-600);
  border-style: dashed; cursor: pointer;
}
.field--file input[type="file"]::file-selector-button {
  margin-right: 0.75rem; padding: 0.45rem 0.9rem;
  border: 0; border-radius: var(--radius-xs);
  background: var(--navy); color: var(--white);
  font-family: var(--ff-heading); font-weight: 700; font-size: 0.8rem;
  cursor: pointer;
}
.field label {
  display: block; font-weight: 600; font-size: 0.875rem;
  margin-bottom: 0.35rem; color: var(--navy);
}
.label-optional { font-weight: 400; color: var(--gray-500); }
.field input,
.field select,
.field textarea {
  display: block; width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-xs);
  font-size: 1rem; background: var(--white);
  transition: border-color 0.2s;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { border-color: var(--navy); outline: 2px solid rgba(0,87,214,.28); outline-offset: 0; }
.field textarea { resize: vertical; min-height: 80px; }

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #dc2626; }
.field__error {
  display: none;
  font-size: 0.8rem; color: #dc2626; margin-top: 0.3rem;
}
.field.has-error .field__error { display: block; }

.form-trust {
  font-size: 0.8rem; color: var(--gray-500);
  text-align: center; margin-top: 0.75rem;
}
.form-message { display: none; padding: 1.25rem; border-radius: var(--radius-sm); margin-top: 1rem; }
.form-message.is-visible { display: block; }
.form-message--success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-message--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.form-message__link { color: #065f46; text-decoration: underline; }

/* Schedule info */
.schedule-info-card { padding: 2rem; }
.schedule-info-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.schedule-info-card > p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.6; }
.schedule-info__details { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.schedule-info__detail {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.9rem; color: var(--navy);
}
.schedule-info__detail svg { flex-shrink: 0; color: var(--orange); }
.schedule-info__detail a { text-decoration: underline; text-underline-offset: 2px; }
.cal-embed {
  width: 100%; border-radius: var(--radius-sm);
  overflow: auto; margin-bottom: 1.5rem;
  min-height: 400px;
}
.cal-embed noscript a { display: block; padding: 1.5rem; text-decoration: underline; }

/* Honeypot */
.ohnohoney { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ============ FOOTER ============ */
.footer { padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem; }
.footer__grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }

.footer__brand .logo-plate { margin-bottom: 0.75rem; }
.footer__brand .logo-plate img { filter: brightness(0) invert(1); }
.footer__brand .tagline {
  font-family: var(--ff-heading); font-weight: 700;
  font-size: 1rem; color: var(--white); margin-bottom: 0.5rem;
}
.footer__brand > p { font-size: 0.85rem; color: var(--text-on-navy); line-height: 1.6; }

.footer h4, .footer .footer__h { color: var(--white); margin-bottom: 0.75rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer li { font-size: 0.85rem; color: var(--text-on-navy); }
.footer li a { transition: color 0.2s; }
.footer li a:hover { color: var(--orange); }
.footer__contact li { display: flex; align-items: center; gap: 0.5rem; }
.footer__contact svg { flex-shrink: 0; color: var(--orange); }
.footer__horario-note { font-size: 0.8rem; color: rgba(255,255,255,0.62); padding-left: 1.5rem; }

.footer__legal {
  padding-top: 1.5rem; text-align: center;
}
.footer__legal p {
  font-size: 0.75rem; color: rgba(255,255,255,0.62);
  margin-bottom: 0.25rem;
}
.footer__legal a { text-decoration: underline; text-underline-offset: 2px; }

/* ============ FLOATING WHATSAPP ============ */
.wa-float {
  position: fixed;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  right: max(1.25rem, env(safe-area-inset-right, 0px));
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #25D366; color: var(--navy);
  border-radius: 100px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  font-family: var(--ff-heading); font-weight: 700; font-size: 0.9rem;
  z-index: 90; transform: translateY(100px);
  opacity: 0; transition: all 0.3s ease;
}
.wa-float.visible { transform: translateY(0); opacity: 1; }
@media (hover: hover) {
  .wa-float:hover { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5); }
}
.wa-float__text { display: none; }
@media (min-width: 600px) { .wa-float__text { display: inline; } }

/* ============ RESPONSIVE UTILS ============ */
@media (max-width: 767px) {
  .hero__form-card { margin: 0 -0.5rem; border-radius: var(--radius-sm); padding: 1.25rem; }
  .acc__body { padding-left: 0; }
  .footer__grid { gap: 2.5rem; }
  .footer__grid > div + div { padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08); }
  .footer__brand + .footer__contact { border-top: none; padding-top: 0; }
}

@media (max-width: 480px) {
  .btn { width: 100%; }
  .hero__buttons { flex-direction: column; }
  .cta-urgencia__contact a { word-break: break-all; }
}

.footer { padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px)); }

@media (hover: none) {
  .btn:active { opacity: 0.85; }
}

/* ============ MOTION: HERO (cañerías con pulso de agua caliente) ============ */
.hero__fx {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.hero__fx .pipe {
  fill: none; stroke: rgba(255,255,255,0.16); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 1000; stroke-dashoffset: 1000;
  animation: pipe-draw 2.4s cubic-bezier(.6,0,.2,1) forwards;
  animation-delay: calc(var(--i) * 0.18s + 0.2s);
}
.hero__fx .pipe-pulse {
  fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 90 2000; stroke-dashoffset: 90;
  opacity: 0;
  animation: pipe-flow 6.5s cubic-bezier(.45,0,.55,1) infinite;
  animation-delay: calc(var(--i) * 1.3s + 2.2s);
}
.hero__fx .pipe-node {
  fill: var(--navy); stroke: rgba(254,97,0,0.75); stroke-width: 2;
  transform-box: fill-box; transform-origin: center;
  opacity: 0;
  animation: node-in 0.5s ease-out forwards, node-glow 3.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.12s + 1.6s), calc(var(--i) * 0.4s + 2.4s);
}
@keyframes pipe-draw { to { stroke-dashoffset: 0; } }
@keyframes pipe-flow {
  0% { stroke-dashoffset: 90; opacity: 0; }
  8% { opacity: 1; }
  85% { opacity: 1; }
  100% { stroke-dashoffset: -1000; opacity: 0; }
}
@keyframes node-in { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes node-glow { 0%, 100% { stroke: rgba(254,97,0,0.45); } 50% { stroke: rgba(254,97,0,1); } }
@media (max-width: 919px) { .hero__fx { opacity: 0.7; } }

/* Entrada escalonada del contenido */
.hero__content > *, .hero__form-wrap, .breadcrumb {
  animation: hero-rise 0.85s cubic-bezier(.2,.7,.2,1) both;
}
.hero__content > :nth-child(1) { animation-delay: 0.1s; }
.hero__content > :nth-child(2) { animation-delay: 0.22s; }
.hero__content > :nth-child(3) { animation-delay: 0.36s; }
.hero__content > :nth-child(4) { animation-delay: 0.5s; }
.hero__form-wrap { animation-delay: 0.4s; animation-duration: 1s; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Pin de la comuna en el caption */
.hero__caption--pin { display: inline-flex; align-items: center; gap: 0.6rem; }
.pin { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }
.pin::before, .pin::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--orange); animation: ping 2.4s ease-out infinite;
}
.pin::after { animation-delay: 1.2s; }
@keyframes ping { from { transform: scale(1); opacity: 0.9; } to { transform: scale(3.2); opacity: 0; } }

/* ============ MIGA DE PAN ============ */
.breadcrumb { margin-bottom: 1.5rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.85rem; }
.breadcrumb li { color: rgba(255,255,255,0.65); }
.breadcrumb li + li::before { content: "›"; margin-right: 0.4rem; color: rgba(255,255,255,0.4); }
.breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb [aria-current] { color: var(--white); font-weight: 600; }

/* ============ REVEAL AL HACER SCROLL ============ */
/* Solo se oculta con JS activo: sin JS todo queda visible */

/* Mantención: los checks se marcan uno por uno */
.js .mantencion__list li { opacity: 0; transform: translateX(-14px); transition: opacity 0.5s ease, transform 0.5s cubic-bezier(.2,.7,.2,1); }
.js .mantencion__list svg path { stroke-dasharray: 10; stroke-dashoffset: 10; transition: stroke-dashoffset 0.4s ease; }
.js .mantencion__list svg circle { stroke-dasharray: 63; stroke-dashoffset: 63; transition: stroke-dashoffset 0.6s ease; }
.mantencion__list.is-inview li { opacity: 1; transform: none; }
.mantencion__list.is-inview svg path, .mantencion__list.is-inview svg circle { stroke-dashoffset: 0; }
.mantencion__list li:nth-child(2), .mantencion__list li:nth-child(2) svg circle { transition-delay: 0.18s; }
.mantencion__list li:nth-child(3), .mantencion__list li:nth-child(3) svg circle { transition-delay: 0.36s; }
.mantencion__list li:nth-child(4), .mantencion__list li:nth-child(4) svg circle { transition-delay: 0.54s; }
.mantencion__list li:nth-child(1) svg path { transition-delay: 0.4s; }
.mantencion__list li:nth-child(2) svg path { transition-delay: 0.58s; }
.mantencion__list li:nth-child(3) svg path { transition-delay: 0.76s; }
.mantencion__list li:nth-child(4) svg path { transition-delay: 0.94s; }

/* Cómo agendar: línea que une los pasos */
.steps-grid { position: relative; }
@media (min-width: 768px) {
  .steps-grid::before {
    content: ""; position: absolute; z-index: 0;
    top: calc(2rem + 28px); left: calc(100% / 6); right: calc(100% / 6);
    height: 3px; border-radius: 3px;
    background: linear-gradient(to right, var(--orange), #ffb07a);
    transform-origin: left;
  }
  .js .steps-grid::before { transform: scaleX(0); transition: transform 1.4s cubic-bezier(.65,0,.35,1) 0.2s; }
  .steps-grid.is-inview::before { transform: scaleX(1); }
  .step-card { position: relative; z-index: 1; }
}
.js .steps-grid .step-number { transform: scale(0.4); opacity: 0; transition: transform 0.5s cubic-bezier(.34,1.56,.64,1), opacity 0.3s; }
.steps-grid.is-inview .step-number { transform: none; opacity: 1; }
.steps-grid .step-card:nth-child(2) .step-number { transition-delay: 0.6s; }
.steps-grid .step-card:nth-child(3) .step-number { transition-delay: 1.2s; }

/* CTA de urgencia: pulso suave en WhatsApp */
.cta-urgencia .btn--wa { position: relative; }
.cta-urgencia .btn--wa::after {
  content: ""; position: absolute; inset: -2px; border-radius: inherit;
  border: 2px solid #25D366; pointer-events: none;
  animation: cta-pulse 2.6s ease-out infinite;
}
@keyframes cta-pulse { from { opacity: 0.8; transform: scale(1); } 70%, to { opacity: 0; transform: scale(1.12, 1.4); } }

/* ============ MAPA DE COBERTURA ============ */
.coverage-top { display: grid; gap: 2rem; align-items: center; margin-bottom: 2.5rem; }
.coverage-top .coverage-highlight { margin-bottom: 0; grid-template-columns: 1fr; }
@media (min-width: 920px) { .coverage-top { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.coverage-map {
  background: var(--bone); border-radius: var(--radius);
  padding: 1rem; max-width: 520px; width: 100%; margin-inline: auto;
}
.bg-bone .coverage-map { background: var(--white); box-shadow: var(--sh-card); }
.rm-map { display: block; width: 100%; height: auto; overflow: visible; }
.rm-cord { fill: none; stroke: var(--gray-300); stroke-width: 2; stroke-linejoin: round; }
.rm-rio { fill: none; stroke: rgba(0,23,73,0.22); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1000; stroke-dashoffset: 0; }
.rm-note { font-family: var(--ff-body); font-size: 11px; fill: var(--gray-500); font-style: italic; }
.rm-label { font-family: var(--ff-heading); font-size: 12px; font-weight: 600; fill: var(--gray-600); }
.rm-dot { fill: rgba(0,23,73,0.45); }
.rm-pt--pref .rm-dot { fill: var(--orange); stroke: var(--white); stroke-width: 3; }
.rm-pt--pref .rm-label { font-size: 17px; font-weight: 800; fill: var(--navy); }
.rm-ring { fill: none; stroke: var(--orange); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ping 2.6s ease-out infinite; }
.rm-ring--2 { animation-delay: 1.3s; }
.rm-pt--on .rm-dot { fill: var(--navy); stroke: var(--orange); stroke-width: 4; }
.rm-pt--on .rm-ring { stroke: var(--navy); }
.coverage-map a:hover .rm-label, .coverage-map a:focus-visible .rm-label { fill: #C44700; }
.rm-pt { transform-box: fill-box; transform-origin: center; }
.js .coverage-map .rm-rio { stroke-dashoffset: 1000; transition: stroke-dashoffset 1.8s ease 0.1s; }
.js .coverage-map .rm-cord { opacity: 0; transition: opacity 1s ease; }
.js .coverage-map .rm-pt { opacity: 0; transform: scale(0.3); transition: opacity 0.4s ease, transform 0.5s cubic-bezier(.34,1.56,.64,1); transition-delay: calc(var(--i) * 70ms + 0.4s); }
.coverage-map.is-inview .rm-rio { stroke-dashoffset: 0; }
.coverage-map.is-inview .rm-cord { opacity: 1; }
.coverage-map.is-inview .rm-pt { opacity: 1; transform: none; }
@media (max-width: 599px) { .rm-pt--minor .rm-label { display: none; } }

/* ============ PÁGINAS DE COMUNA ============ */
.top-jobs { display: grid; gap: 1rem; grid-template-columns: 1fr; max-width: 980px; margin: 0 auto; }
@media (min-width: 768px) { .top-jobs { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.top-job {
  padding: 1.75rem 1.5rem; border-radius: var(--radius);
  background: var(--bone); border-top: 4px solid var(--orange);
}
.top-job__n {
  display: block; margin-bottom: 0.75rem;
  font-family: var(--ff-heading); font-weight: 800; font-size: 2.25rem; line-height: 1;
  color: var(--orange);
}
.top-job h3 { font-size: 1.1rem; }
.js .top-jobs .top-job { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i) * 0.15s); }
.top-jobs.is-inview .top-job { opacity: 1; transform: none; }

.sectores { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 920px) { .sectores { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.sectores__content h2 { margin-bottom: 1rem; }
.sectores__content > p { color: var(--text-muted); }
.sectores__list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 1.25rem; }
.sectores__list li {
  padding: 0.45rem 0.9rem; border-radius: 100px;
  background: var(--white); border: 1px solid var(--gray-200);
  font-size: 0.9rem; font-weight: 600;
}
.sectores__note { font-size: 0.9rem; }

.svc-list { display: grid; gap: 0 2rem; grid-template-columns: 1fr; max-width: 980px; margin: 0 auto; }
@media (min-width: 768px) { .svc-list { grid-template-columns: 1fr 1fr; } }
.svc-list li { display: flex; gap: 0.85rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--gray-200); }
.svc-list svg { flex-shrink: 0; color: #C44700; margin-top: 0.1rem; }
.svc-list h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.svc-list p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.55; }
.svc-list__more { text-align: center; margin-top: 2rem; }

.cta-cierre .cta-urgencia__inner { max-width: 820px; }
.cta-cierre__buttons { justify-content: center; margin-bottom: 1.75rem; }
.tambien { font-size: 0.9rem; color: var(--text-on-navy); line-height: 1.8; }
.tambien a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.tambien a:hover { color: var(--orange); }
.footer li a[aria-current] { color: var(--orange); }

/* ============ MOVIMIENTO REDUCIDO ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-delay: 0s !important; transition-delay: 0s !important; }
  .hero::before { animation: none; }
  .hero__fx .pipe-pulse, .pin::before, .pin::after,
  .rm-ring, .cta-urgencia .btn--wa::after { animation: none; opacity: 0; }
  .hero__fx .pipe { animation: none; stroke-dashoffset: 0; }
  .hero__fx .pipe-node { animation: none; opacity: 1; }
}

/* ============ RENDIMIENTO ============ */
/* main.js marca con .is-offscreen los bloques animados que no están en pantalla */
.is-offscreen, .is-offscreen *, .is-offscreen::before, .is-offscreen *::after { animation-play-state: paused !important; }
/* En celular, el brillo de los nodos (repinta el SVG en cada cuadro) se queda quieto */
@media (max-width: 919px) {
  .hero__fx .pipe-node { animation: node-in 0.5s ease-out forwards; animation-delay: calc(var(--i) * 0.12s + 1.6s); }
}

/* ===== Páginas de servicio y de síntoma (generadas por _src/build.mjs) ===== */
.prosa { max-width: 760px; margin-inline: auto; }
.prosa h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 2.5rem 0 0.85rem; }
.prosa h2:first-child { margin-top: 0; }
.prosa p { margin-bottom: 1rem; line-height: 1.7; }
.prosa ul { margin: 0 0 1.25rem; display: grid; gap: 0.6rem; }
.prosa li { position: relative; padding-left: 1.4rem; line-height: 1.65; }
.prosa li::before { content: ""; position: absolute; left: 0.2rem; top: 0.65em; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--orange); }
.prosa a, .svc-list h3 a { color: #C44700; text-decoration: underline; text-underline-offset: 3px; }
.prosa a:hover, .svc-list h3 a:hover { color: var(--navy); }
.prosa__nota { margin-top: 2.5rem; padding: 1rem 1.25rem; background: var(--bone); border-radius: var(--radius-sm); font-size: 0.92rem; color: var(--text-muted); }
.acc__more, .service-card__link { display: inline-block; margin-top: 0.35rem; font-weight: 600; font-size: 0.92rem; color: #C44700; text-decoration: underline; text-underline-offset: 3px; }
.acc__more::after, .service-card__link::after { content: " →"; }
.acc__more:hover, .service-card__link:hover { color: var(--navy); }
.cambio__content .btn--secondary-light { margin-left: 0.5rem; }
@media (max-width: 560px) { .cambio__content .btn--secondary-light { margin: 0.75rem 0 0; } }

/* ===== Hero con foto propia (guías con heroMedia): sin formulario, la agenda abre en ventana emergente =====
   Estilo "marco": foto enmarcada a la derecha (cambio de termo) */
.hero--marco::before {
  background:
    radial-gradient(ellipse 60% 70% at 88% 35%, rgba(254,97,0,0.16), transparent 70%),
    linear-gradient(160deg, #001749 0%, #002266 100%);
  animation: none;
}
.hero--marco::after { background: none; }
.hero--marco .hero__content h1 { font-size: clamp(2.1rem, 4.4vw, 3.35rem); letter-spacing: -0.015em; }
.hero__media { position: relative; margin: 0.5rem 0 0; animation: hero-rise 1s cubic-bezier(.2,.7,.2,1) 0.4s both; }
.hero__media img {
  position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0,0,0,0.38);
}
/* Marco naranjo desplazado, en el mismo lenguaje de las cañerías */
.hero__media::before {
  content: ""; position: absolute; inset: 0; transform: translate(14px, 14px);
  border: 2px solid rgba(254,97,0,0.7); border-radius: var(--radius);
}
@media (min-width: 920px) {
  .hero--marco .hero__inner { grid-template-columns: 1fr 1.05fr; gap: 3.5rem; }
  .hero--marco { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
  .hero__media { margin: 0 14px 14px 0; }
}
@media (max-width: 919px) { .hero__media { margin-right: 14px; } }

.agenda-modal {
  width: min(560px, calc(100% - 1.5rem)); max-height: calc(100dvh - 1.5rem);
  margin: auto; padding: 0; border: 0; border-radius: var(--radius);
  background: var(--white); color: var(--text); overflow: auto; overscroll-behavior: contain;
  box-shadow: 0 24px 70px rgba(0,0,0,0.4);
}
.agenda-modal[open] { animation: modal-in 0.28s cubic-bezier(.2,.7,.2,1); }
.agenda-modal::backdrop { background: rgba(0,23,73,0.72); }
.agenda-modal .hero__form-card { margin: 0; box-shadow: none; padding: 1.5rem; }
.agenda-modal .form-card__title { padding-right: 2.5rem; }
.agenda-modal__close {
  position: absolute; top: 0.75rem; right: 0.75rem; z-index: 1;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  color: var(--navy); background: var(--gray-100);
}
@media (hover: hover) { .agenda-modal__close:hover { background: var(--gray-200); } }
html:has(.agenda-modal[open]) { overflow: hidden; }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }

/* Estilo "bleed": foto a sangre, degradado desde la izquierda y título grande en mayúsculas (mantención) */
.hero--bleed { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(4rem, 9vw, 7.5rem); }
.hero--bleed::before { display: none; }
.hero__bg {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  object-fit: cover; object-position: 70% 50%;
  transform-origin: 75% 50%; animation: hero-zoom 26s ease-out both;
}
.hero--bleed::after {
  background: linear-gradient(180deg, rgba(0,17,55,0.55) 0%, rgba(0,17,55,0.88) 45%, rgba(0,17,55,0.97) 100%);
}
.hero--bleed .hero__inner { display: block; max-width: 660px; }
.hero--bleed .hero__content h1 {
  text-transform: uppercase; font-size: clamp(2.3rem, 6.2vw, 4.6rem);
  line-height: 0.98; letter-spacing: -0.02em; margin-bottom: 1.75rem;
}
.hero--bleed .hero__content h1 .accent { margin-top: 0.15em; }
.hero--bleed .hero__text { position: relative; padding-top: 1.4rem; max-width: 500px; }
.hero--bleed .hero__text::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 64px; height: 4px; border-radius: 2px; background: var(--orange);
}
@media (min-width: 920px) {
  .hero--bleed { min-height: min(86vh, 720px); display: flex; align-items: center; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56px), 0 100%); }
  .hero--bleed > .container { width: 100%; }
  /* La foto ocupa la derecha: el sujeto no queda detrás del título */
  .hero--bleed .hero__bg { left: auto; width: 70%; }
  /* Video vertical: ocupa solo la mitad derecha para no ampliarlo de más */
  .hero--video .hero__bg { width: 60%; }
  .hero--video::after {
    background: linear-gradient(90deg, rgba(0,17,55,1) 0%, rgba(0,17,55,1) 44%, rgba(0,17,55,0.82) 52%, rgba(0,17,55,0.4) 62%, rgba(0,17,55,0.08) 78%);
  }
  .hero--bleed::after {
    background: linear-gradient(90deg, rgba(0,17,55,1) 0%, rgba(0,17,55,1) 36%, rgba(0,17,55,0.9) 42%, rgba(0,17,55,0.62) 52%, rgba(0,17,55,0.25) 66%, rgba(0,17,55,0.05) 85%);
  }
}

/* ============ SUBMENÚ DE SERVICIOS (header) ============ */
.nav-drop { position: relative; }
.nav-drop__btn {
  display: inline-flex; align-items: center; gap: 0.3rem; padding: 0;
  font-family: var(--ff-heading); font-weight: 600; font-size: 0.9rem; color: var(--text);
  transition: color 0.2s;
}
.nav-drop__caret { flex-shrink: 0; transition: transform 0.2s; }
.nav-drop__menu {
  position: absolute; top: calc(100% + 16px); left: -1rem; z-index: 110;
  display: grid; min-width: 280px; padding: 0.5rem;
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(0,23,73,0.16);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
/* Puente invisible para que el menú no se cierre al bajar el mouse */
.nav-drop__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.nav-drop.open .nav-drop__menu { opacity: 1; visibility: visible; transform: none; }
.nav-drop.open .nav-drop__caret { transform: rotate(180deg); }
@media (hover: hover) {
  .nav-drop:hover .nav-drop__menu { opacity: 1; visibility: visible; transform: none; }
  .nav-drop:hover .nav-drop__caret { transform: rotate(180deg); }
  .nav-drop__btn:hover { color: var(--orange); }
  .nav-drop__menu a:hover { background: var(--gray-100); }
}
.header__nav .nav-drop__menu a { padding: 0.6rem 0.8rem; border-radius: var(--radius-xs); }
.header__nav .nav-drop__menu a[aria-current] { color: var(--orange); }
.header__nav .nav-drop__all { margin-top: 0.25rem; border-top: 1px solid var(--gray-200); border-radius: 0 0 var(--radius-xs) var(--radius-xs); color: var(--text-muted); }

.header__mobile-menu { max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain; }
.mm-drop summary {
  display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer;
  padding: 1rem 1.5rem; border-bottom: 1px solid var(--gray-200);
  font-family: var(--ff-heading); font-weight: 600; font-size: 1rem;
}
.mm-drop summary::-webkit-details-marker { display: none; }
.mm-drop[open] .nav-drop__caret { transform: rotate(180deg); }
.header__mobile-menu .mm-drop a { padding-left: 2.25rem; font-size: 0.95rem; background: var(--gray-100); }
.header__mobile-menu .mm-drop a[aria-current] { color: var(--orange); }

/* Estilo "diagonal": foto recortada en diagonal a la derecha, franja naranja paralela y brillo cálido (reparación) */
.hero--diagonal { padding-block: 0 clamp(2.5rem, 7vw, 4rem); }
.hero--diagonal::before {
  background:
    radial-gradient(ellipse 45% 60% at 12% 85%, rgba(254,97,0,0.12), transparent 70%),
    linear-gradient(165deg, #001749 0%, #00113a 100%);
  animation: none;
}
.hero--diagonal::after { background: none; }
/* Móvil: la foto se funde con el azul y el título sube sobre su parte baja */
.hero__diag {
  position: relative; height: clamp(320px, 96vw, 440px);
  margin-bottom: calc(-1 * clamp(130px, 38vw, 190px));
  -webkit-mask-image: linear-gradient(180deg, #000 45%, rgba(0,0,0,0.6) 72%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 45%, rgba(0,0,0,0.6) 72%, transparent 100%);
}
.hero__diag img { width: 100%; height: 100%; object-fit: cover; animation: hero-zoom 26s ease-out both; transform-origin: 62% 50%; }
/* Brillo cálido sobre la caja eléctrica + oscurecido hacia el texto */
.hero__diag::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 64% 40%, rgba(255,150,40,0.28), transparent 32%),
    linear-gradient(180deg, rgba(0,23,73,0.1) 0%, rgba(0,23,73,0.25) 30%, rgba(0,23,73,0.75) 65%, rgba(0,23,73,0.9) 100%);
}
.hero--diagonal .hero__content h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -0.015em; }
/* Palabra destacada con subrayado grueso, como un marcador */
.hero--diagonal .hero__content h1 .accent {
  display: block; width: fit-content; color: var(--white);
  background: linear-gradient(transparent 58%, rgba(254,97,0,0.9) 58%, rgba(254,97,0,0.9) 90%, transparent 90%);
  padding: 0 0.08em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

@media (min-width: 920px) {
  .hero--diagonal { padding-block: clamp(3.5rem, 7vw, 5.5rem); min-height: min(82vh, 680px); display: flex; align-items: center; }
  .hero--diagonal > .container { width: 100%; }
  .hero__diag {
    position: absolute; top: 0; right: 0; bottom: 0; z-index: -1;
    width: 54%; height: auto; margin: 0;
    -webkit-mask-image: none; mask-image: none;
    clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
  }
  .hero__diag::after {
    background:
      radial-gradient(circle at 62% 50%, rgba(255,150,40,0.30), transparent 30%),
      linear-gradient(90deg, rgba(0,17,55,0.55) 0%, rgba(0,17,55,0) 45%);
  }
  /* Franja naranja paralela al corte de la foto */
  .hero--diagonal::after {
    background: var(--orange);
    clip-path: polygon(calc(58.96% - 30px) 0, calc(58.96% - 20px) 0, calc(46% - 20px) 100%, calc(46% - 30px) 100%);
  }
  .hero--diagonal .hero__inner { display: block; max-width: min(540px, 36vw); }
}

/* Estilo "plano": fondo claro con cuadrícula técnica, foto en tarjeta con bloque azul y línea de cota naranja (instalación) */
.hero--plano { background-color: var(--bone); padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 7vw, 5rem); }
.hero--plano::before {
  animation: none;
  background-image:
    linear-gradient(rgba(0,23,73,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,23,73,0.07) 1px, transparent 1px);
  background-size: 32px 32px; background-repeat: repeat; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 85% 90% at 70% 45%, #000 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 85% 90% at 70% 45%, #000 25%, transparent 80%);
}
.hero--plano::after { background: none; }
.hero--plano .breadcrumb li { color: var(--gray-600); }
.hero--plano .breadcrumb li + li::before { color: var(--gray-300); }
.hero--plano .breadcrumb a { color: var(--gray-700); }
.hero--plano .breadcrumb a:hover { color: var(--navy); }
.hero--plano .breadcrumb [aria-current] { color: var(--navy); }
.hero--plano .hero__content h1 { color: var(--navy); font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -0.015em; }
.hero--plano .hero__content h1 .accent { color: var(--orange-strong); }
.hero--plano .hero__text { color: var(--gray-700); }
.hero--plano .hero__text strong { color: var(--navy); }

.hero__plano-media { position: relative; margin: 0.75rem 18px 18px 26px; animation: hero-rise 1s cubic-bezier(.2,.7,.2,1) 0.4s both; }
.hero__plano-media img {
  position: relative; z-index: 1; display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 18px 18px 18px 72px; box-shadow: 0 22px 50px rgba(0,23,73,0.22);
}
/* Bloque azul desplazado detrás de la foto */
.hero__plano-media::before {
  content: ""; position: absolute; top: 14%; left: 16%; right: -18px; bottom: -18px;
  background: var(--navy); border-radius: 18px;
}
/* Línea de cota naranja, como las medidas de un plano */
.hero__plano-media::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -22px; width: 12px;
  border-left: 2px solid var(--orange); border-top: 2px solid var(--orange); border-bottom: 2px solid var(--orange);
}

/* Móvil: igual que los otros heros, la foto arriba se funde con el fondo claro y el título sube sobre ella */
.hero--plano { padding-top: 0; }
.hero__plano-top {
  position: relative; height: clamp(320px, 96vw, 440px);
  margin-bottom: calc(-1 * clamp(130px, 38vw, 190px));
  -webkit-mask-image: linear-gradient(180deg, #000 45%, rgba(0,0,0,0.6) 72%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 45%, rgba(0,0,0,0.6) 72%, transparent 100%);
}
.hero__plano-top img { width: 100%; height: 100%; object-fit: cover; }
.hero__plano-top::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(245,240,235,0) 35%, rgba(245,240,235,0.7) 65%, rgba(245,240,235,0.92) 100%);
}
/* Línea de cota naranja a la izquierda de la foto, como en escritorio */
.hero__plano-top::before {
  content: ""; position: absolute; z-index: 1; top: 18px; left: 16px; width: 10px; height: 46%;
  border-left: 2px solid var(--orange); border-top: 2px solid var(--orange); border-bottom: 2px solid var(--orange);
}
@media (max-width: 919px) { .hero__plano-media { display: none; } }

@media (min-width: 920px) {
  .hero--plano { padding-top: clamp(2rem, 5vw, 4rem); }
  .hero__plano-top { display: none; }
  .hero--plano .hero__inner { grid-template-columns: 1fr 0.9fr; gap: 4rem; }
  .hero__plano-media { margin: 0 18px 18px 26px; }
  .hero__plano-media img { aspect-ratio: 4 / 5; max-height: 560px; }
}

/* Estilo "noche": foto nocturna a sangre, brillo de lámpara que respira y panel de vidrio (emergencias) */
.hero--noche { padding-block: 0 clamp(2.5rem, 7vw, 4rem); }
.hero--noche::before { background: #000c26; animation: none; }
.hero--noche::after { background: none; }
.hero__noche-bg {
  position: relative; height: clamp(320px, 96vw, 440px);
  margin-bottom: calc(-1 * clamp(130px, 38vw, 190px));
  -webkit-mask-image: linear-gradient(180deg, #000 45%, rgba(0,0,0,0.6) 72%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 45%, rgba(0,0,0,0.6) 72%, transparent 100%);
}
.hero__noche-bg img { width: 100%; height: 100%; object-fit: cover; }
/* Brillo cálido de la lámpara de trabajo */
.hero__noche-bg::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at 62% 50%, rgba(255,170,60,0.38), transparent 30%);
  mix-blend-mode: screen; animation: lamp-glow 3.8s ease-in-out infinite alternate;
}
.hero__noche-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,12,38,0.15) 0%, rgba(0,12,38,0.35) 40%, rgba(0,12,38,0.85) 100%);
}
@keyframes lamp-glow { from { opacity: 0.55; } to { opacity: 1; } }

/* Punto naranja que late: indicador de urgencia sobre el título */
.hero--noche .hero__content::before {
  content: ""; display: block; width: 12px; height: 12px; margin: 0 0 1.25rem 4px; border-radius: 50%;
  background: var(--orange); animation: sos-pulse 1.8s ease-out infinite;
}
@keyframes sos-pulse {
  0% { box-shadow: 0 0 0 0 rgba(254,97,0,0.65); }
  70% { box-shadow: 0 0 0 14px rgba(254,97,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(254,97,0,0); }
}
.hero--noche .hero__content h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); letter-spacing: -0.015em; }
/* En una emergencia, WhatsApp va primero */
.hero--noche .hero__buttons .btn--wa { order: -1; }

@media (min-width: 920px) {
  .hero--noche { padding-block: clamp(3.5rem, 7vw, 5rem); min-height: min(86vh, 720px); display: flex; align-items: center; }
  .hero--noche > .container { width: 100%; }
  .hero__noche-bg {
    position: absolute; top: 0; right: 0; bottom: 0; left: 24%; z-index: -1; height: auto; margin: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
  }
  .hero__noche-bg::after { background: linear-gradient(90deg, rgba(0,12,38,0.5) 0%, rgba(0,12,38,0.1) 55%, rgba(0,12,38,0.35) 100%); }
  .hero--noche .hero__inner { display: block; }
  .hero__glass {
    max-width: 580px; padding: 2.25rem 2.5rem 2.5rem;
    background: rgba(0,17,55,0.5); border: 1px solid rgba(255,255,255,0.12); border-radius: 20px;
    -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
    box-shadow: 0 30px 70px rgba(0,0,0,0.45);
    animation: hero-rise 0.9s cubic-bezier(.2,.7,.2,1) 0.15s both;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__noche-bg::before, .hero--noche .hero__content::before { animation: none; }
}

/* Estilo "vitrina": foto en tarjeta 3D con brillo metálico y puntos que marcan las piezas (repuestos) */
.hero--vitrina { padding-block: 0 clamp(2.5rem, 7vw, 4rem); }
.hero--vitrina::before {
  background:
    radial-gradient(ellipse 60% 70% at 80% 40%, rgba(140,170,220,0.18), transparent 70%),
    linear-gradient(160deg, #001749 0%, #000f33 100%);
  animation: none;
}
.hero--vitrina::after { background: none; }
.hotspot {
  position: absolute; z-index: 2; left: var(--x); top: var(--y);
  width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  background: var(--orange); border: 3px solid var(--white);
  animation: sos-pulse 2.4s ease-out infinite; animation-delay: var(--d);
}

/* Móvil: la foto arriba (sin recorte, para que los puntos calcen) y el título sube sobre ella */
.hero__vitrina-top {
  position: relative; aspect-ratio: 4 / 3;
  margin-bottom: calc(-1 * clamp(80px, 24vw, 140px));
  -webkit-mask-image: linear-gradient(180deg, #000 50%, rgba(0,0,0,0.6) 75%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 50%, rgba(0,0,0,0.6) 75%, transparent 100%);
}
.hero__vitrina-top img { width: 100%; height: 100%; object-fit: cover; }
.hero__vitrina-top::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,23,73,0.05) 0%, rgba(0,23,73,0.2) 45%, rgba(0,23,73,0.85) 100%);
}
.hero__vitrina { display: none; }

@media (min-width: 920px) {
  .hero--vitrina { padding-block: clamp(3rem, 6vw, 4.5rem); }
  .hero__vitrina-top { display: none; }
  .hero--vitrina .hero__inner { grid-template-columns: 0.95fr 1.05fr; gap: 3.5rem; }
  .hero--vitrina .hero__content h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); letter-spacing: -0.015em; }
  .hero__vitrina { display: block; margin: 0; perspective: 1400px; animation: hero-rise 1s cubic-bezier(.2,.7,.2,1) 0.35s both; }
  .hero__vitrina-card {
    position: relative; overflow: hidden; border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: 30px 40px 80px rgba(0,0,0,0.45), 0 0 0 8px rgba(255,255,255,0.04);
    transform: rotateY(-9deg) rotateX(3deg); transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
  }
  .hero__vitrina-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
  /* Brillo metálico que recorre la tarjeta */
  .hero__vitrina-card::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,0.32) 50%, transparent 62%);
    transform: translateX(-130%); animation: sheen 6.5s ease-in-out 1.4s infinite;
  }
  @media (hover: hover) { .hero__vitrina:hover .hero__vitrina-card { transform: rotateY(0) rotateX(0); } }
}
@keyframes sheen { 0% { transform: translateX(-130%); } 30%, 100% { transform: translateX(130%); } }
@media (prefers-reduced-motion: reduce) {
  .hotspot, .hero__vitrina-card::after { animation: none; }
  .hero__vitrina-card { transform: none; }
}

/* "marco" en móvil: igual que los demás heros, foto arriba fundida con el azul y el título encima */
.hero__marco-top { display: none; }
@media (max-width: 919px) {
  .hero--marco { padding-top: 0; }
  .hero--marco .hero__fx, .hero--marco .hero__media { display: none; }
  .hero__marco-top {
    display: block; position: relative; height: clamp(300px, 80vw, 420px);
    margin-bottom: calc(-1 * clamp(110px, 32vw, 170px));
    -webkit-mask-image: linear-gradient(180deg, #000 45%, rgba(0,0,0,0.6) 72%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 45%, rgba(0,0,0,0.6) 72%, transparent 100%);
  }
  .hero__marco-top img { width: 100%; height: 100%; object-fit: cover; }
  .hero__marco-top::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,23,73,0.1) 0%, rgba(0,23,73,0.3) 40%, rgba(0,23,73,0.85) 100%);
  }
}

/* Síntomas: hero sin formulario (se abre en ventana emergente) */
.hero--solo .hero__inner { display: block; max-width: 720px; }
