/* A. INICIO: HERO DE GRAN IMPACTO (Inspirado en composición Molweld) */
.hero {
  position: relative;
  min-height: clamp(540px, 76vh, 760px);
  display: flex;
  align-items: center;
  background-color: var(--blue);
  /* Respaldo estático (misma imagen del poster) por si el video no está disponible */
  background-image: url('../assets/img/hero/hero-taller-moldes.webp');
  background-size: cover;
  background-position: center;
  color: var(--white);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-video { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-video.is-hidden { display: none; }
/* Superposición azul corporativa: mantiene el contraste del texto blanco sobre video o imagen */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(95deg, rgba(8, 68, 120, 0.92) 0%, rgba(8, 68, 120, 0.78) 52%, rgba(22, 114, 119, 0.62) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
  align-items: center;
  padding: 72px 0 96px;
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 14px; border-radius: 4px;
  font-size: 11px; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-badge span { color: var(--white); }
.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 850;
  margin: 0 0 20px;
  color: var(--white);
}
.hero p {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  max-width: 620px;
  margin: 0 0 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-resource-tag {
  background: rgba(255, 255, 255, 0.1);
  border: 1px dashed rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  padding: 22px;
  backdrop-filter: blur(4px);
}
.hero-resource-tag strong { display: block; font-size: 13px; margin-bottom: 6px; letter-spacing: 0.02em; }
.hero-resource-tag p { font-size: 12px; margin: 0 0 10px; line-height: 1.5; color: rgba(255,255,255,0.85); }
.hero-resource-tag code {
  display: inline-block; font-size: 11px; background: var(--white); color: var(--blue);
  padding: 4px 8px; border-radius: 4px; font-weight: 700;
}

/* Indicador de desplazamiento hacia abajo */
.scroll-indicator {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--white); font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; opacity: 0.9; transition: opacity 0.2s; z-index: 3;
}
.scroll-indicator:hover { opacity: 1; }
.scroll-mouse {
  width: 22px; height: 34px; border: 2px solid var(--white); border-radius: 12px;
  display: flex; justify-content: center; padding-top: 6px;
}
.scroll-mouse span {
  width: 3px; height: 7px; background: var(--white); border-radius: 2px;
  animation: scrollWheel 1.8s infinite;
}
@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

/* CINTA CÍCLICA DE LOGOS DE CLIENTES / MARCAS (Referencia visual adjunta) */
.clients-marquee {
  background: var(--blue);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 22px 0;
  overflow: hidden;
}
.marquee-wrapper {
  display: flex;
  align-items: center;
  gap: 28px;
}
.marquee-label {
  flex: none;
  border-left: 3px solid var(--teal);
  padding-left: 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--white);
  max-width: 190px;
}
.marquee-track-container {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 44px;
  padding: 22px 0;
  animation: marqueeScroll 28s linear infinite;
}
@media (hover: hover) and (pointer: fine) {
  .marquee-track:not(.is-touch-mode):hover { animation-play-state: paused; }
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.client-logo-slot {
  position: relative;
  z-index: 0;
  height: 52px;
  min-width: 165px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.40);
  border-radius: 6px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform-origin: center;
  transition: transform .24s ease, box-shadow .24s ease;
}
.client-logo-slot img {
  max-height: 34px;
  max-width: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none; /* Conserva los colores originales del logo */
  opacity: 1;
  transition: transform .24s ease;
}
@media (hover: hover) and (pointer: fine) {
  .marquee-track:not(.is-touch-mode) .client-logo-slot:hover {
    z-index: 2; transform: scale(1.5); box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
  }
}
.client-logo-slot.is-touch-active {
  z-index: 2; transform: scale(1.5); box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}
.client-logo-slot span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--white);
}
.client-logo-slot small {
  font-size: 9px;
  opacity: 0.75;
  font-family: monospace;
}
.client-logo-slot span { color: var(--blue); }
.client-logo-slot small { color: var(--gray); opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .client-logo-slot, .client-logo-slot img { transition: none; }
}

/* GALERÍA COMPLEMENTARIA AL INICIO: PRODUCTOS OBTENIDOS CON MOLDES SERVAPLAST */
.products-strip {
  background: var(--white);
  padding: 68px 0 32px;
  border-bottom: 1px solid var(--border-light);
}
.products-strip-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
}
.products-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--teal);
}
.product-card .asset-placeholder {
  height: 200px;
  border: none;
  border-bottom: 1.5px dashed var(--border-blue);
}
.product-card img, .product-card video {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.product-card-body { padding: 16px 18px; }
.product-card-body span {
  display: inline-block; font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--teal); margin-bottom: 4px;
}
.product-card-body h3 {
  font-size: 15px; font-weight: 750; color: var(--blue); margin: 0 0 6px;
}
.product-card-body p {
  font-size: 12px; color: var(--ink); margin: 0; line-height: 1.5;
}

/* Ampliación de fotografías y vídeos en productos y servicios. */
.media-expand {
  display: block; width: 100%; padding: 0; margin: 0; border: 0;
  background: transparent; cursor: zoom-in; overflow: hidden; position: relative;
}
.media-expand:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }
.media-expand img { width: 100%; }
.media-expand::after {
  content: "⤢"; position: absolute; right: 8px; bottom: 8px;
  background: rgba(8,36,64,.83); color: white; font-size: 11px; font-weight: 700;
  padding: 4px 8px; border-radius: 5px; pointer-events: none;
}
.media-with-video { position: relative; }
.media-video-expand {
  position: absolute; top: 10px; right: 10px;
  background: rgba(8,36,64,.9); color: white; border: 0;
  border-radius: 5px; padding: 7px 11px; font-size: 12px; font-weight: 700;
}
.media-lightbox { z-index: 120; background: rgba(5,17,30,.92); }
.media-lightbox-dialog {
  width: min(1100px,100%); max-height: 95dvh; display: flex; flex-direction: column;
  background: #0b1928; border-radius: 12px; overflow: hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,.4);
}
.media-lightbox-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 18px; color: white; }
.media-lightbox-header h2 { margin: 0; color: white; font-size: 16px; }
.media-lightbox-close { width: 38px; height: 38px; border: 1px solid #7c91a3; background: #21374a; color: white; border-radius: 7px; font-size: 26px; }
.media-lightbox-content { display: grid; place-items: center; overflow: auto; min-height: 120px; padding: 0 12px 12px; }
.media-lightbox-content img, .media-lightbox-content video { display: block; max-width: 100%; max-height: calc(95dvh - 90px); object-fit: contain; }
.media-lightbox-content video { width: 100%; }
@media (max-width: 620px) { .media-lightbox { padding: 10px; } .media-lightbox-header { padding: 8px 12px; } }

/* B. SOBRE NOSOTROS */
.about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(36px, 5.5vw, 80px);
  align-items: center;
}
.about-visual { position: relative; padding: 0 20px 20px 0; }
.about-visual::after {
  content: ""; position: absolute; bottom: 0; right: 0; height: 140px; width: 140px;
  border-bottom: 8px solid var(--teal); border-right: 8px solid var(--teal); pointer-events: none;
}
.about-media-box {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-soft); background: var(--white);
}
.about-media-box .asset-placeholder { height: 410px; }
.about-media-box img { width: 100%; height: 410px; object-fit: cover; }
.years-tag {
  position: absolute; left: 20px; bottom: 40px; background: var(--blue); color: var(--white);
  padding: 18px 22px; border-radius: 6px; box-shadow: var(--shadow-soft); z-index: 2;
  border-left: 5px solid var(--teal);
}
.years-tag strong { font-size: 34px; letter-spacing: -0.04em; line-height: 1; display: block; }
.years-tag span {
  display: block; font-size: 11px; margin-top: 5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.92;
}
.about-copy p { color: var(--ink); font-size: 15px; margin: 0 0 16px; }
.pillars-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 26px 0;
}
.pillar-item {
  background: var(--bg-surface); border-left: 3px solid var(--teal);
  padding: 14px 16px; border-radius: 0 6px 6px 0;
}
.pillar-item strong { display: block; font-size: 14px; color: var(--blue); margin-bottom: 4px; }
.pillar-item span { font-size: 12px; color: var(--ink); line-height: 1.5; display: block; }

/* Espacio preparado para la Visión Empresarial (sin inventar texto) */
.vision-slot {
  margin-top: 22px;
  padding: 18px 20px;
  border: 1.5px dashed var(--border-blue);
  border-radius: 6px;
  background: var(--white);
}
.vision-slot-header {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px;
}
.vision-slot-header strong { font-size: 13px; color: var(--blue); text-transform: uppercase; letter-spacing: 0.08em; }
.vision-slot-header span {
  font-size: 10px; font-weight: 700; color: var(--teal);
  background: var(--bg-surface-alt); padding: 2px 8px; border-radius: 3px;
}
.vision-slot p { font-size: 13px; color: var(--ink); margin: 0; font-style: italic; }

/* C. CATÁLOGO DE SERVICIOS (Panel interactivo estilo Molweld: lista vertical izquierda + visor derecho) */
.services {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.services-header { margin-bottom: 40px; }
.services-interactive {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.services-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-tab {
  width: 100%;
  text-align: left;
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: 6px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: all 0.2s ease;
  color: var(--blue);
}
.service-tab:hover {
  border-color: var(--teal);
  transform: translateX(3px);
}
.service-tab.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-card);
}
.service-tab-left { display: flex; align-items: center; gap: 14px; }
.service-num {
  font-size: 12px; font-weight: 800; color: var(--teal);
  background: var(--bg-surface-alt); width: 30px; height: 30px;
  border-radius: 4px; display: grid; place-items: center; flex: none;
}
.service-tab.is-active .service-num {
  background: var(--teal); color: var(--white);
}
.service-tab-title { font-size: 15px; font-weight: 750; line-height: 1.25; }
.service-tab .icon { width: 16px; height: 16px; opacity: 0.7; }
.service-tab.is-active .icon { opacity: 1; color: var(--white); }

/* Panel de detalle del servicio seleccionado */
.service-panel {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}
.service-panel-top {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}
.service-panel-tag {
  display: inline-block; font-size: 11px; font-weight: 800; color: var(--teal);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 8px;
}
.service-panel h3 {
  font-size: clamp(22px, 2.4vw, 30px); color: var(--blue);
  margin: 0 0 14px; letter-spacing: -0.025em; line-height: 1.2;
}
.service-panel p {
  font-size: 15px; color: var(--ink); margin: 0 0 18px; line-height: 1.7;
}
.service-highlights {
  list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px;
}
.service-highlights li {
  display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--ink);
}
.service-highlights li .icon { color: var(--teal); margin-top: 3px; width: 16px; height: 16px; }
.service-media-box { display: grid; gap: 14px; }
.service-media-box .asset-placeholder { height: 240px; border-radius: 6px; }
.service-media-box img, .service-media-box video {
  width: 100%; height: 240px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border-light);
}
.service-related-strip {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border-light);
}
.service-related-strip h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--blue); margin: 0 0 12px;
}
.service-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.related-mini-slot {
  border: 1px dashed var(--border-blue);
  background: var(--bg-surface);
  border-radius: 5px;
  padding: 12px;
  text-align: center;
  font-size: 11px;
  color: var(--ink);
}
.related-mini-slot strong { display: block; color: var(--blue); margin-bottom: 2px; }

/* D. TALLER DE FABRICACIÓN (Inspirado en taller de mecanizado Molweld) */
.workshop { background: var(--white); }
.workshop-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap; margin-bottom: 32px;
}
.category-filters {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px;
  padding-bottom: 20px; border-bottom: 1px solid var(--border-light);
}
.cat-btn {
  background: var(--white); border: 1.5px solid var(--border-light);
  color: var(--ink); padding: 10px 20px; border-radius: 5px;
  font-size: 13px; font-weight: 700; transition: all 0.2s;
}
.cat-btn:hover { border-color: var(--blue); color: var(--blue); }
.cat-btn.is-active {
  background: var(--blue); border-color: var(--blue); color: var(--white);
}

.workshop-category-group { margin-bottom: 48px; }
.workshop-category-group:last-child { margin-bottom: 0; }
.category-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 20px; background: var(--bg-surface);
  border-left: 4px solid var(--teal); border-radius: 0 6px 6px 0;
  margin-bottom: 24px;
}
.category-banner h3 { margin: 0; font-size: 19px; color: var(--blue); font-weight: 800; }
.category-banner span { font-size: 12px; font-weight: 700; color: var(--teal); }

.machine-showcase-list { display: grid; gap: 28px; }
.machine-row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-card);
  align-items: center;
}
.machine-row:nth-child(even) .machine-visual { order: 2; }
.machine-visual .asset-placeholder { height: 310px; border-radius: 6px; }
.machine-visual img, .machine-visual video {
  width: 100%; height: 310px; object-fit: cover; border-radius: 6px;
}
.machine-info-cat {
  display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--teal); margin-bottom: 6px;
}
.machine-info h4 {
  font-size: 24px; color: var(--blue); margin: 0 0 12px; letter-spacing: -0.02em;
}
.machine-info p {
  font-size: 14px; color: var(--ink); margin: 0 0 18px; line-height: 1.65;
}
.specs-table {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px;
}
.spec-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 5px;
  padding: 12px 14px;
}
.spec-box.full { grid-column: 1 / -1; }
.spec-box strong {
  display: block; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--blue); margin-bottom: 4px;
}
.spec-box span { font-size: 13px; color: var(--ink); }

/* E. PROCESO DE TRABAJO (Sencillo, visual y sujeto a validación real) */
.process {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.process-head { max-width: 720px; margin-bottom: 40px; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.step-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-card);
}
.step-top {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.step-number {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  font-size: 14px; font-weight: 800; display: grid; place-items: center;
}
.step-top .icon { color: var(--teal); width: 22px; height: 22px; }
.step-card h3 { font-size: 16px; color: var(--blue); margin: 0 0 8px; }
.step-card p { font-size: 13px; color: var(--ink); margin: 0; line-height: 1.6; }
.process-disclaimer {
  margin-top: 22px; font-size: 12px; color: var(--ink);
  background: var(--white); border-left: 3px solid var(--blue);
  padding: 10px 16px; border-radius: 0 5px 5px 0;
}

/* SOLICITUD DE COTIZACIÓN (Transparente y preparada para integración real) */
.request { background: var(--white); }
.request-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.request-sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 102px;
}
.quote-progress {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 20px 18px 16px;
  box-shadow: var(--shadow-card);
  min-width: 0;
}
.quote-progress-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}
.quote-progress-heading h3 { color: var(--blue); font-size: 15px; margin: 0; }
#quoteProgressPercent {
  color: var(--teal);
  font-size: 25px;
  font-weight: 850;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.quote-thermometer { position: relative; }
.quote-thermometer progress {
  display: block;
  width: 100%;
  height: 24px;
  appearance: none;
  -webkit-appearance: none;
  border: 3px solid #d9e2e8;
  border-radius: 999px;
  overflow: hidden;
  background: #edf0f2;
  box-shadow: inset 0 2px 5px rgba(8, 68, 120, .10);
  accent-color: #16885a;
}
.quote-thermometer progress::-webkit-progress-bar {
  background: #edf0f2;
  border-radius: 999px;
}
.quote-thermometer progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, #14716f 0%, #1eaf73 100%);
  transition: width .38s ease-out;
}
.quote-thermometer progress::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, #14716f 0%, #1eaf73 100%);
  transition: width .38s ease-out;
}
.quote-thermometer-marks {
  position: absolute;
  inset: 3px 0;
  display: block;
  pointer-events: none;
}
.quote-thermometer-marks span {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,.68);
  box-shadow: 0 0 2px rgba(8,68,120,.12);
}
.quote-thermometer-marks span:first-child { left: 22.222%; }
.quote-thermometer-marks span:last-child { left: 66.667%; }
.quote-progress-caption {
  margin: 10px 0 12px;
  font-size: 12px;
  color: #465262;
}
.quote-authorization { margin: 0 0 12px; font-size: 12px; color: #465262; }
.quote-authorization[data-state="ready"] { color: #14734b; font-weight: 700; }
.quote-authorization[data-state="waiting"] { color: #8a520b; }
.quote-milestones {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.quote-milestones li {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: #edf0f2;
  color: #64717b;
  border: 1px solid #cbd4dc;
  font-size: 12px;
  font-weight: 800;
  transition: background-color .25s, color .25s, transform .25s;
}
.quote-milestones li.is-complete {
  background: #198754;
  border-color: #198754;
  color: white;
  transform: scale(1.08);
}
.quote-milestones li.is-complete span { font-size: 0; }
.quote-milestones li.is-complete span::after { content: '✓'; font-size: 15px; }
@media (prefers-reduced-motion: reduce) {
  .quote-thermometer progress::-webkit-progress-value,
  .quote-thermometer progress::-moz-progress-bar { transition: none; }
}

.request-aside {
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.request-aside .icon { color: var(--white); width: 26px; height: 26px; }
.request-aside h3 { font-size: 20px; line-height: 1.3; margin: 16px 0 12px; color: var(--white); }
.request-aside p { font-size: 13px; color: rgba(255, 255, 255, 0.88); line-height: 1.7; margin: 0 0 18px; }
.aside-list {
  list-style: none; padding: 18px 0 0; margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2); display: grid; gap: 12px;
}
.aside-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; }
.aside-list li .icon { width: 16px; height: 16px; margin-top: 2px; }
.aside-list a { text-decoration: underline; text-underline-offset: 3px; font-weight: 700; word-break: break-all; }
.aside-list a:hover { color: var(--white); text-decoration-thickness: 2px; }

.request-form {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 34px 36px;
  box-shadow: var(--shadow-soft);
}
.integration-banner {
  background: var(--bg-surface-alt);
  border: 1px solid var(--teal);
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--blue);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.integration-banner .icon { color: var(--teal); width: 20px; height: 20px; margin-top: 2px; }
.form-group-title {
  margin: 0 0 18px; font-size: 15px; font-weight: 800; color: var(--blue);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.form-group-title:not(:first-of-type) {
  border-top: 1px solid var(--border-light); padding-top: 24px; margin-top: 24px;
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; font-weight: 700; color: var(--blue); }
.field input, .field select, .field textarea {
  padding: 12px 14px; width: 100%; border: 1.5px solid var(--border-light);
  background: var(--white); color: var(--ink); min-height: 45px; border-radius: 5px; font-size: 13px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(17, 20, 24, 0.58); opacity: 1; }
.field select option { color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--teal); outline: none;
}
.full { grid-column: 1 / -1; }
.form-actions {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px;
}
.hint { font-size: 12px; color: var(--ink); margin: 14px 0 0; }
.hint a, .link-btn { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.link-btn { background: none; border: 0; padding: 0; font-size: inherit; }
.link-btn:hover, .hint a:hover { color: var(--teal); }

/* Autorización accesible: tarjeta seleccionable con estados gris y verde. */
.consent-toggle { position: relative; margin-top: 22px; }
.consent-toggle input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  opacity: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.consent-toggle-label {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-width: 0;
  padding: 16px 18px;
  margin: 0;
  background: #F2F3F4;
  color: var(--ink);
  border: 2px solid #92979B;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.6;
  text-align: left;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.consent-toggle-label::before {
  content: "";
  display: inline-block;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border: 2px solid #737A80;
  border-radius: 5px;
  background: #FFFFFF;
}
.consent-toggle input[type="checkbox"]:checked + .consent-toggle-label {
  background: #E0F2E7;
  border-color: #198754;
  color: #145934;
}
.consent-toggle input[type="checkbox"]:checked + .consent-toggle-label::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  background: #198754;
  border-color: #198754;
  font-size: 15px;
  font-weight: 800;
}
.consent-toggle input[type="checkbox"]:focus-visible + .consent-toggle-label {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.consent-policy {
  margin: 9px 0 0;
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink);
}
.consent-policy a, .privacy-links a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.consent-policy a:hover { color: var(--teal); }
.consent-error {
  margin: 9px 0 0;
  color: #B42318;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}
.consent-error[hidden] { display: none; }
.consent-toggle.has-error .consent-toggle-label {
  border-color: #B42318;
  background: #FFF2F0;
}
.privacy-links { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 12px; }
.site-footer .privacy-links a { color: var(--white); font-size: 12px; }
/* F. CONTACTO Y PIE DE PÁGINA (Fondo Azul Corporativo #084478, texto blanco) */
.site-footer {
  --footer-top-space: 36px;
  background: var(--blue);
  color: var(--white);
  padding: var(--footer-top-space) 0 18px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.85fr 0.95fr 1.25fr;
  gap: 24px;
}
/* Pestaña blanca: conecta el logotipo con la sección blanca anterior. */
.footer-brand .brand {
  position: relative;
  isolation: isolate;
  color: var(--blue);
  background: var(--white);
  padding: 12px 17px;
  border-radius: 0 0 12px 12px;
  max-width: 100%;
}
.footer-brand .brand::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--footer-top-space) - 1px);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  border-radius: inherit;
  z-index: -1;
  pointer-events: none;
}
.footer-brand .brand-logo {
  height: 78px;
  filter: none;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-sizing: border-box;
  max-width: min(280px, 100%);
}
.footer-brand .brand-logo:not(.is-ready) {
  background: linear-gradient(90deg, rgba(8, 68, 120, 0.06), rgba(22, 114, 119, 0.14), rgba(8, 68, 120, 0.06));
  background-size: 200% 100%;
  filter: none;
}
.footer-brand .brand-symbol { background: var(--teal); }
.footer-tagline {
  font-size: 14px; color: var(--white); margin: 12px 0 10px;
  line-height: 1.65; max-width: 360px; font-weight: 500;
}
.footer-badge {
  display: inline-block; font-size: 11px; padding: 5px 10px;
  background: rgba(255, 255, 255, 0.12); border-radius: 4px;
  color: var(--white);
}
.site-footer h3 {
  font-size: 12px; text-transform: uppercase; color: var(--white);
  letter-spacing: 0.14em; margin: 4px 0 12px;
  border-bottom: 2px solid var(--teal); display: inline-block; padding-bottom: 5px;
}
.footer-links { display: grid; gap: 7px; }
.footer-links a, .footer-links span {
  font-size: 13px; color: rgba(255, 255, 255, 0.85); transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-contacts { display: grid; gap: 8px; margin-bottom: 12px; }
.footer-contact {
  font-size: 13px; color: rgba(255, 255, 255, 0.9);
  display: flex; align-items: flex-start; gap: 10px; line-height: 1.6;
}
.footer-contact .icon { color: var(--white); width: 16px; height: 16px; margin-top: 3px; }
.footer-contact a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; word-break: break-all; }
.footer-contact a:hover { color: var(--white); text-decoration-thickness: 2px; }
.pending-tag {
  font-size: 10px; background: var(--teal); color: var(--white);
  padding: 1px 6px; border-radius: 3px; margin-left: 4px; vertical-align: middle;
}
.social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.social-links a {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 6px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white); font-weight: 700; font-size: 13px; transition: all 0.2s;
}
.social-links a:hover { background: var(--teal); border-color: var(--teal); transform: translateY(-2px); }
.footer-note { font-size: 11px; color: rgba(255, 255, 255, 0.72); margin: 12px 0 0; line-height: 1.5; }
/* Mapa ilustrativo de ubicación general; no indica la dirección exacta del taller. */
.location-section { background: var(--bg-surface); }
.location-section .process-head { margin-bottom: 25px; }
.location-section .contact-map { margin-top: 0; border-top: 0; padding-top: 0; }
.location-section .contact-map-head h3 { color: var(--blue); }
.location-section .contact-map-head p { color: var(--ink); }
.location-section .contact-map-link { background: var(--blue); color: var(--white); }
.location-section .contact-map-link:hover { background: var(--teal); color: var(--white); }
.location-section .contact-map iframe { height: 370px; border: 1px solid var(--border-light); }
@media (max-width: 620px) { .location-section .contact-map iframe { height: 260px; } }

.contact-map {
  margin-top: 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 32px;
}
.contact-map-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}
.contact-map-head h3 {
  margin: 0 0 6px;
  font-size: 16px;
  letter-spacing: normal;
  text-transform: none;
  border: 0;
  padding: 0;
}
.contact-map-head p {
  margin: 0;
  color: rgba(255,255,255,.85);
  font-size: 13px;
}
.contact-map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: #FFFFFF;
  color: var(--blue);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 750;
}
.contact-map-link:hover { background: #E8F1F8; }
.contact-map iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 10px;
  background: #FFFFFF;
}
@media (max-width: 620px) {
  .contact-map iframe { height: 240px; }
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18); margin-top: 24px; padding-top: 12px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: rgba(255, 255, 255, 0.8);
}

/* Indicativo internacional y número nacional. */
.phone-entry { display: flex; align-items: stretch; gap: 8px; min-width: 0; }
.phone-entry select { flex: 0 0 132px; width: 132px; min-width: 0; padding: 10px 6px; }
.phone-entry input { flex: 1 1 auto; min-width: 0; width: 100%; }
@media (max-width: 420px) { .phone-entry select { flex-basis: 110px; width: 110px; } }

/* Modales */
.overlay {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center;
  padding: 20px; background: rgba(8, 68, 120, 0.72); backdrop-filter: blur(3px);
}
.overlay[hidden] { display: none; }
.dialog {
  width: min(100%, 620px); max-height: min(90vh, 860px); overflow-y: auto;
  background: var(--white); border-radius: var(--radius); box-shadow: 0 24px 70px rgba(8, 68, 120, 0.25);
}
.dialog-header {
  position: sticky; top: 0; padding: 20px 24px; display: flex; justify-content: space-between;
  gap: 14px; align-items: flex-start; border-bottom: 1px solid var(--border-light);
  background: var(--white); z-index: 2;
}
.dialog-header h2 { font-size: 22px; color: var(--blue); margin: 4px 0 0; }
.close-dialog {
  border: 1px solid var(--border-light); border-radius: 5px; background: var(--white);
  color: var(--blue); font-size: 20px; width: 34px; height: 34px; line-height: 1;
}
.dialog-body { padding: 24px; }
.summary {
  display: grid; gap: 8px; border: 1px solid var(--border-light); background: var(--bg-surface);
  border-radius: 6px; padding: 16px; margin: 16px 0 20px;
}
.summary-line { font-size: 13px; color: var(--ink); }
.summary-line strong { color: var(--blue); display: inline-block; min-width: 110px; }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* Producto propio y solicitud adicional opcional. */
.own-product-card { display: flex; flex-direction: column; background: var(--bg-surface-alt); border-color: var(--border-blue); }
.own-product-card .product-card-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 24px 18px; gap: 8px; }
.own-product-card .product-card-body h3 { font-size: 21px; line-height: 1.25; }
.own-product-card .product-card-body .own-product-subtitle { color: var(--blue); font-size: 12px; letter-spacing: .04em; }
.own-product-cta { margin-top: 10px; white-space: normal; }
.own-product-quote { min-width: 0; margin: 24px 0 0; padding: 14px 16px; border: 1px solid var(--border-light); border-radius: 8px; }
.own-product-quote legend { padding: 0 6px; color: var(--blue); font-size: 13px; font-weight: 750; }
.own-product-choice { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 13px; cursor: pointer; }
.own-product-choice input { width: 18px; height: 18px; flex: none; accent-color: var(--teal); }
.own-product-quote .hint { margin-top: 8px; }


/* Reserva del marco multimedia: imagen y vídeo conservan la misma altura. */
.service-video-fallback, .service-video-preview { min-height: 240px; }
.service-media-box img, .service-media-box video { display: block; }
