/**
 * styles.css — LARQUIN Orifice Plate Selector
 * Todas las clases usan el prefijo "lq-op-" para evitar conflictos con los
 * estilos existentes de larquin.com. Paleta basada en el color institucional
 * detectado en larquin.com (meta theme-color #075985).
 * Confirmar con LARQUIN la paleta oficial completa (secundarios, tipografía)
 * antes de producción — ver README, "Datos que requieren confirmación".
 */

.lq-op-page {
  min-height: 100vh;
  padding: 24px 16px 32px;
  background: #f0f4f6;
}

.lq-op-shell {
  --lq-op-primary: #075985;
  --lq-op-primary-dark: #043a56;
  --lq-op-primary-light: #e3f0f7;
  --lq-op-accent: #f08c1a;
  --lq-op-ink: #1c2b33;
  --lq-op-muted: #5b6b74;
  --lq-op-border: #d7e2e7;
  --lq-op-bg: #f7fafb;
  --lq-op-white: #ffffff;
  --lq-op-info: #0369a1;
  --lq-op-info-bg: #e0f2fe;
  --lq-op-success: #15803d;
  --lq-op-success-bg: #dcfce7;
  --lq-op-warning: #a16207;
  --lq-op-warning-bg: #fef9c3;
  --lq-op-block: #b91c1c;
  --lq-op-block-bg: #fee2e2;
  --lq-op-radius: 10px;
  --lq-op-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  all: initial;
  font-family: var(--lq-op-font);
  color: var(--lq-op-ink);
  display: block;
  box-sizing: border-box;
  background: var(--lq-op-bg);
  border: 1px solid var(--lq-op-border);
  border-radius: var(--lq-op-radius);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
  line-height: 1.5;
}

.lq-op-shell *, .lq-op-shell *::before, .lq-op-shell *::after {
  box-sizing: border-box;
  font-family: inherit;
}

.lq-op-shell button {
  cursor: pointer;
  font: inherit;
}

.lq-op-header {
  background: linear-gradient(135deg, var(--lq-op-primary) 0%, var(--lq-op-primary-dark) 100%);
  color: var(--lq-op-white);
  padding: 28px 32px;
  border-radius: var(--lq-op-radius) var(--lq-op-radius) 0 0;
}
.lq-op-header__brand { display: flex; margin-bottom: 14px; }
.lq-op-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 68px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.lq-op-logo { display: block; width: 100%; height: 100%; object-fit: contain; }
.lq-op-eyebrow {
  letter-spacing: 0.08em;
  font-size: 11px;
  opacity: 0.85;
  margin: 0 0 4px;
}
.lq-op-header h2 { margin: 0 0 6px; font-size: 24px; font-weight: 700; }
.lq-op-subtitle {
  max-width: 980px;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  opacity: 0.9;
  text-align: justify;
  text-justify: inter-word;
}

.lq-op-stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 16px 20px;
  background: var(--lq-op-white);
  border-bottom: 1px solid var(--lq-op-border);
}
.lq-op-stepper__item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--lq-op-muted);
  cursor: default;
}
.lq-op-stepper__item.is-done { cursor: pointer; color: var(--lq-op-primary); }
.lq-op-stepper__item.is-active { background: var(--lq-op-primary-light); color: var(--lq-op-primary-dark); font-weight: 600; }
.lq-op-stepper__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--lq-op-border);
  font-size: 11px;
  font-weight: 700;
}
.lq-op-stepper__item.is-active .lq-op-stepper__num { background: var(--lq-op-primary); color: var(--lq-op-white); }
.lq-op-stepper__item.is-done .lq-op-stepper__num { background: var(--lq-op-success); color: var(--lq-op-white); }
.lq-op-stepper__label { display: none; }
@media (min-width: 860px) {
  .lq-op-stepper__label { display: inline; }
}

.lq-op-progress {
  padding: 12px 20px 14px;
  background: var(--lq-op-white);
  border-bottom: 1px solid var(--lq-op-border);
}
.lq-op-progress__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  color: var(--lq-op-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.lq-op-progress__meta strong { color: var(--lq-op-primary); font-size: 12px; }
.lq-op-progress__track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--lq-op-primary-light);
}
.lq-op-progress__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lq-op-primary), #29a6d1);
  box-shadow: 0 0 12px rgba(7, 89, 133, 0.24);
  transition: width 320ms ease;
}
.lq-op-progress p { margin: 6px 0 0; color: var(--lq-op-muted); font-size: 11px; }

.lq-op-main { padding: 24px 32px 8px; }
.lq-op-step__title { margin: 0 0 14px; font-size: 18px; color: var(--lq-op-primary-dark); }
.lq-op-hint { color: var(--lq-op-muted); font-size: 13px; margin: 0 0 12px; }

.lq-op-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.lq-op-grid--sizes { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.lq-op-grid--ratings { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.lq-op-grid--types { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.lq-op-card, .lq-op-chip {
  background: var(--lq-op-white);
  border: 1px solid var(--lq-op-border);
  border-radius: var(--lq-op-radius);
  padding: 12px 14px;
  text-align: left;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.lq-op-card:hover, .lq-op-chip:hover { border-color: var(--lq-op-primary); }
.lq-op-card.is-selected, .lq-op-chip.is-selected {
  border-color: var(--lq-op-primary);
  background: var(--lq-op-primary-light);
  box-shadow: 0 0 0 2px var(--lq-op-primary) inset;
}
.lq-op-card__code { display: block; font-weight: 700; color: var(--lq-op-primary); font-size: 13px; margin-bottom: 2px; }
.lq-op-card__title { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.lq-op-card__desc { display: block; font-size: 12.5px; color: var(--lq-op-muted); margin-bottom: 4px; }
.lq-op-card__meta { display: block; font-size: 11.5px; color: var(--lq-op-muted); margin-top: 2px; }

.lq-op-chip { display: inline-flex; flex-direction: column; align-items: flex-start; font-size: 13px; font-weight: 600; }
.lq-op-chip__sub { font-size: 11px; font-weight: 400; color: var(--lq-op-muted); }

.lq-op-model-card, .lq-op-type-card, .lq-op-option-card { width: 100%; }

/*
 * Fotografías de producto (iteración 4 — "Guia de seleccion.pptx").
 * `object-fit: contain` conserva la proporción original de la imagen sin
 * deformarla ni recortar el producto; el contenedor mantiene una relación
 * de aspecto fija para que la grilla no salte mientras cargan las
 * imágenes (evita layout shift) y es responsive por heredar el ancho de
 * la tarjeta contenedora.
 */
.lq-op-product-figure {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--lq-op-white);
  border: 1px solid var(--lq-op-border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
}
.lq-op-product-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/*
 * Diagrama de tipos de tomas de presión (ronda de feedback post-entrega,
 * sección final de "Recomendación técnica"). Reutiliza .lq-op-product-figure
 * como base (mismo borde/fondo/loading), pero con su propia relación de
 * aspecto (más ancha que 4/3) y un ancho máximo para que no ocupe todo el
 * ancho del panel de resultado en pantallas grandes.
 */
.lq-op-tap-diagram {
  aspect-ratio: 3 / 2;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/*
 * Diagrama "Típico de montaje" (ronda de feedback post-entrega — tercera).
 * Igual que .lq-op-tap-diagram, reutiliza .lq-op-product-figure como base.
 * Ancho máximo mayor porque incluye una tabla de materiales (10 filas) que
 * debe seguir siendo legible; relación de aspecto propia acorde a la imagen
 * suministrada por LARQUIN.
 *
 * ACTUALIZACIÓN (cuarta ronda de feedback post-entrega): LARQUIN reemplazó
 * la imagen por una versión más completa (1536x1024 px = relación 3/2 exacta)
 * que además incluye un panel de "EQUIPOS PRINCIPALES", una leyenda de
 * "SIMBOLOGÍA", un recuadro de "NOTAS" y cuatro recuadros descriptivos
 * (medición confiable, fácil mantenimiento, alta compatibilidad,
 * cumplimiento normativo). Se ajusta aspect-ratio a 3/2 (antes 7/6, ajustado
 * a la imagen anterior) y se amplía max-width a 980px para que el texto de
 * los paneles laterales y recuadros siga siendo legible.
 */
.lq-op-mounting-diagram {
  aspect-ratio: 3 / 2;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.lq-op-chip--thickness { align-items: flex-start; }
.lq-op-chip__code { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.lq-op-chip__badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.lq-op-chip__badge--recommended { background: var(--lq-op-success-bg); color: var(--lq-op-success); }
.lq-op-chip__badge--warning { background: var(--lq-op-warning-bg); color: var(--lq-op-warning); padding: 1px 5px; }

.lq-op-rating-group { margin-bottom: 18px; }
.lq-op-rating-group h4 { margin: 0 0 8px; font-size: 13.5px; color: var(--lq-op-primary-dark); }
.lq-op-rating-group--legacy { padding-top: 10px; border-top: 1px dashed var(--lq-op-border); }

.lq-op-card--static { cursor: default; }
.lq-op-card--static:hover { border-color: var(--lq-op-border); }
.lq-op-complementary-card { background: var(--lq-op-bg); }
.lq-op-substep--complementary { background: transparent; border-style: solid; }

.lq-op-substep {
  background: var(--lq-op-white);
  border: 1px dashed var(--lq-op-border);
  border-radius: var(--lq-op-radius);
  padding: 14px;
  margin-bottom: 16px;
}

.lq-op-form-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 10px; }
.lq-op-form-row label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--lq-op-ink); }

.lq-op-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.lq-op-form-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--lq-op-ink); }
.lq-op-form-grid__full { grid-column: 1 / -1; }

.lq-op-input, .lq-op-form-grid input, .lq-op-form-grid select, .lq-op-form-grid textarea,
.lq-op-quote input, .lq-op-quote select, .lq-op-quote textarea {
  border: 1px solid var(--lq-op-border);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  background: var(--lq-op-white);
  color: var(--lq-op-ink);
  width: 100%;
}
.lq-op-size-search { margin-bottom: 12px; max-width: 320px; }

.lq-op-messages { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 16px; }
.lq-op-alert {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12.5px;
}
.lq-op-alert__badge {
  flex: none;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.08);
}
.lq-op-alert--info { background: var(--lq-op-info-bg); color: var(--lq-op-info); }
.lq-op-alert--success { background: var(--lq-op-success-bg); color: var(--lq-op-success); }
.lq-op-alert--warning { background: var(--lq-op-warning-bg); color: var(--lq-op-warning); }
.lq-op-alert--block { background: var(--lq-op-block-bg); color: var(--lq-op-block); }

.lq-op-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 24px;
  border-top: 1px solid var(--lq-op-border);
  margin-top: 12px;
}
.lq-op-nav__step { font-size: 12.5px; color: var(--lq-op-muted); }

.lq-op-btn {
  background: var(--lq-op-white);
  border: 1px solid var(--lq-op-primary);
  color: var(--lq-op-primary);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
}
.lq-op-btn:hover { background: var(--lq-op-primary-light); }
.lq-op-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.lq-op-btn--accent { background: var(--lq-op-accent); border-color: var(--lq-op-accent); color: var(--lq-op-white); }
.lq-op-btn--accent:hover { background: #d97a0f; }
.lq-op-btn--secondary { background: var(--lq-op-primary-light); }
.lq-op-btn--ghost { background: transparent; border-color: var(--lq-op-border); color: var(--lq-op-muted); }

.lq-op-tooltip { position: relative; border-bottom: 1px dotted var(--lq-op-muted); cursor: help; }
.lq-op-tooltip__bubble {
  display: none;
  position: absolute;
  bottom: 130%;
  left: 0;
  background: var(--lq-op-ink);
  color: var(--lq-op-white);
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 6px;
  width: 220px;
  z-index: 5;
}
.lq-op-tooltip:hover .lq-op-tooltip__bubble,
.lq-op-tooltip:focus .lq-op-tooltip__bubble { display: block; }

.lq-op-result__code-card {
  background: var(--lq-op-white);
  border: 1px solid var(--lq-op-border);
  border-radius: var(--lq-op-radius);
  padding: 20px 24px;
  margin-bottom: 24px;
}
.lq-op-result__eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--lq-op-muted); margin: 0 0 6px; }
.lq-op-code {
  font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
  font-size: 26px;
  font-weight: 700;
  color: var(--lq-op-primary-dark);
  background: var(--lq-op-primary-light);
  border-radius: 8px;
  padding: 12px 16px;
  display: inline-block;
  margin: 0 0 16px;
  word-break: break-all;
}
.lq-op-result__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }

.lq-op-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 13px; }
.lq-op-table th, .lq-op-table td { border: 1px solid var(--lq-op-border); padding: 8px 10px; text-align: left; }
.lq-op-table th { background: var(--lq-op-bg); width: 34%; color: var(--lq-op-muted); font-weight: 600; }

.lq-op-eng-section { margin-bottom: 14px; }
.lq-op-eng-section__title { margin: 0 0 6px; font-size: 13.5px; }
.lq-op-eng-section__title--info { color: var(--lq-op-info); }
.lq-op-eng-section__title--warning { color: var(--lq-op-warning); }
.lq-op-eng-section ul { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--lq-op-ink); }
.lq-op-eng-section li { margin-bottom: 3px; }

.lq-op-disclaimer {
  font-size: 11.5px;
  color: var(--lq-op-muted);
  border-top: 1px solid var(--lq-op-border);
  padding-top: 12px;
  margin-top: 8px;
}

.lq-op-quote {
  background: var(--lq-op-white);
  border: 1px solid var(--lq-op-border);
  border-radius: var(--lq-op-radius);
  padding: 20px 24px;
}
.lq-op-quote h4 { margin-top: 0; color: var(--lq-op-primary-dark); }
.lq-op-quote__confirmation {
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--lq-op-success-bg);
  color: var(--lq-op-success);
  border-radius: 8px;
  font-size: 12.5px;
}

.lq-op-footer {
  padding: 12px 32px 20px;
  font-size: 11px;
  color: var(--lq-op-muted);
}

@media (max-width: 640px) {
  .lq-op-header, .lq-op-main, .lq-op-footer { padding-left: 16px; padding-right: 16px; }
  .lq-op-code { font-size: 20px; }
  .lq-op-result__actions { flex-direction: column; }
  .lq-op-result__actions .lq-op-btn { width: 100%; }
  .lq-op-header__brand { margin-bottom: 12px; }
  .lq-op-logo-wrap { width: 70px; height: 58px; }
}

/* --------------------------------------------------------------------------
 * Premium industrial visual layer
 * --------------------------------------------------------------------------
 * This section only changes presentation. The wizard markup, data attributes,
 * event targets and state-driven classes remain untouched.
 */

.lq-op-page {
  min-height: 100vh;
  padding: clamp(18px, 3vw, 48px) clamp(12px, 3vw, 42px) 36px;
  background: #f5f7fa;
}

.lq-op-shell {
  --lq-op-primary: #155eef;
  --lq-op-primary-dark: #071c4a;
  --lq-op-primary-light: #eef4ff;
  --lq-op-accent: #155eef;
  --lq-op-ink: #0f2850;
  --lq-op-muted: #64748b;
  --lq-op-border: #e2e8f0;
  --lq-op-bg: #f8fafc;
  --lq-op-white: #ffffff;
  --lq-op-info: #155eef;
  --lq-op-info-bg: #eef4ff;
  --lq-op-radius: 20px;
  max-width: 1220px;
  border: 1px solid #e2e8f0;
  border-radius: var(--lq-op-radius);
  background: #fff;
  box-shadow: 0 22px 60px rgba(15, 40, 80, 0.08), 0 2px 8px rgba(15, 40, 80, 0.04);
}

.lq-op-header {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 31%);
  column-gap: clamp(20px, 4vw, 56px);
  min-height: 286px;
  overflow: hidden;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--lq-op-radius) var(--lq-op-radius) 0 0;
  background:
    radial-gradient(circle at 82% 32%, rgba(89, 143, 255, 0.18), transparent 24%),
    linear-gradient(115deg, #071c4a 0%, #082a64 52%, #0b3c82 100%);
}

.lq-op-header::before,
.lq-op-header::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(180, 210, 255, 0.12);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.lq-op-header::before {
  top: -170px;
  right: 10%;
  width: 440px;
  height: 440px;
  box-shadow: 0 0 0 34px rgba(180, 210, 255, 0.035), 0 0 0 72px rgba(180, 210, 255, 0.025);
}

.lq-op-header::after {
  right: -120px;
  bottom: -220px;
  width: 540px;
  height: 540px;
  opacity: 0.55;
}

.lq-op-header__brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
  grid-column: 1;
  margin: 0 0 28px;
}

.lq-op-logo-wrap {
  width: 84px;
  height: 84px;
  flex: 0 0 auto;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 14px 30px rgba(2, 13, 40, 0.24);
}

.lq-op-header__identity { min-width: 0; }

.lq-op-eyebrow {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(0.66rem, 0.82vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.55;
  text-transform: uppercase;
}

.lq-op-header__product {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  justify-items: center;
  grid-column: 2;
  grid-row: 1 / span 4;
  min-height: 220px;
}

.lq-op-header__product::before {
  position: absolute;
  width: min(360px, 100%);
  aspect-ratio: 1;
  border: 1px solid rgba(187, 219, 255, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(187, 219, 255, 0.035), 0 0 0 48px rgba(187, 219, 255, 0.025);
  content: "";
}

.lq-op-header__product img {
  position: relative;
  display: block;
  width: min(420px, 125%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 22px 22px rgba(0, 7, 28, 0.26));
  transform: rotate(-5deg);
}

.lq-op-header h2,
.lq-op-subtitle {
  position: relative;
  z-index: 2;
  grid-column: 1;
}

.lq-op-header h2 {
  max-width: 760px;
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.lq-op-subtitle {
  max-width: 760px;
  margin: 0;
  color: rgba(236, 245, 255, 0.78);
  font-size: clamp(0.84rem, 1.15vw, 1rem);
  line-height: 1.7;
  text-align: left;
  text-justify: auto;
}

.lq-op-stepper {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  overflow-x: auto;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--lq-op-border);
  scrollbar-width: none;
}

.lq-op-stepper::-webkit-scrollbar { display: none; }

.lq-op-stepper__item {
  position: relative;
  display: flex;
  min-width: 92px;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 5px;
  color: #94a3b8;
  font-size: 0.68rem;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
}

.lq-op-stepper__item::after {
  position: absolute;
  top: 15px;
  left: calc(50% + 19px);
  width: calc(100% - 38px);
  height: 1px;
  background: #e2e8f0;
  content: "";
}

.lq-op-stepper__item:last-child::after { display: none; }

.lq-op-stepper__num {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  border: 1px solid #dbe4ed;
  border-radius: 50%;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.72rem;
  line-height: 28px;
  text-align: center;
}

.lq-op-stepper__label { display: block; }
.lq-op-stepper__item.is-active { background: transparent; color: var(--lq-op-primary); font-weight: 700; }
.lq-op-stepper__item.is-active .lq-op-stepper__num { border-color: var(--lq-op-primary); background: var(--lq-op-primary); color: #fff; box-shadow: 0 0 0 5px rgba(21, 94, 239, 0.1); }
.lq-op-stepper__item.is-done { color: #315ca8; cursor: pointer; }
.lq-op-stepper__item.is-done .lq-op-stepper__num { border-color: #9bbaf2; background: #eef4ff; color: #155eef; }
.lq-op-stepper__item.is-done::after { background: #9bbaf2; }

.lq-op-progress {
  padding: 18px 32px 20px;
  border-bottom: 1px solid var(--lq-op-border);
  background: #fff;
}

.lq-op-progress__meta {
  margin-bottom: 9px;
  color: #64748b;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
}

.lq-op-progress__meta strong { color: var(--lq-op-primary); font-size: 0.82rem; }
.lq-op-progress__track { height: 8px; background: #e9f0fb; }
.lq-op-progress__fill { background: linear-gradient(90deg, #155eef, #4b8cff); box-shadow: 0 0 14px rgba(21, 94, 239, 0.22); }
.lq-op-progress p { margin: 8px 0 0; color: #94a3b8; font-size: 0.72rem; text-align: center; }

.lq-op-main { padding: 34px 40px 18px; background: #fff; }

.lq-op-step__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: var(--lq-op-ink);
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lq-op-step__title::before {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #b9d0fb;
  border-radius: 50%;
  background: #eef4ff;
  color: var(--lq-op-primary);
  content: "?";
  font-size: 1rem;
  font-weight: 800;
}

.lq-op-hint { margin: 0 0 16px; color: #64748b; font-size: 0.88rem; line-height: 1.65; }
.lq-op-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }
.lq-op-grid--types { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.lq-op-grid--sizes { grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); }
.lq-op-grid--ratings { grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); }

.lq-op-card,
.lq-op-chip {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 40, 80, 0.025);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.lq-op-card:hover,
.lq-op-chip:hover {
  border-color: #8eb5f8;
  background: #fbfdff;
  box-shadow: 0 10px 22px rgba(15, 40, 80, 0.07);
  transform: translateY(-2px);
}

.lq-op-card:focus-visible,
.lq-op-chip:focus-visible,
.lq-op-btn:focus-visible,
.lq-op-input:focus-visible,
.lq-op-form-grid input:focus-visible,
.lq-op-form-grid select:focus-visible,
.lq-op-form-grid textarea:focus-visible {
  outline: 3px solid rgba(21, 94, 239, 0.28);
  outline-offset: 2px;
}

.lq-op-card.is-selected,
.lq-op-chip.is-selected {
  border-color: var(--lq-op-primary);
  background: #f4f8ff;
  box-shadow: 0 0 0 2px rgba(21, 94, 239, 0.14) inset, 0 8px 20px rgba(21, 94, 239, 0.08);
  transform: none;
}

.lq-op-option-card {
  position: relative;
  display: flex;
  min-height: 136px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  padding: 22px;
}

.lq-op-option-card::before {
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border: 1px solid #b9d0fb;
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgba(21, 94, 239, 0.16), rgba(21, 94, 239, 0.02)),
    radial-gradient(circle at 68% 32%, #155eef 0 3px, transparent 4px),
    linear-gradient(145deg, transparent 44%, #155eef 45% 49%, transparent 50%);
  content: "";
}

.lq-op-option-card[data-app="restriction"]::before {
  background:
    linear-gradient(135deg, rgba(21, 94, 239, 0.16), rgba(21, 94, 239, 0.02)),
    linear-gradient(90deg, transparent 38%, #155eef 39% 45%, transparent 46% 58%, #155eef 59% 65%, transparent 66%);
}

.lq-op-option-card[data-app="conditioning"]::before {
  background:
    linear-gradient(135deg, rgba(21, 94, 239, 0.16), rgba(21, 94, 239, 0.02)),
    radial-gradient(circle, transparent 0 9px, #155eef 10px 12px, transparent 13px),
    linear-gradient(90deg, transparent 47%, #155eef 48% 52%, transparent 53%);
}

.lq-op-card__title { color: var(--lq-op-ink); font-size: 0.95rem; font-weight: 700; line-height: 1.35; }
.lq-op-card__code { color: var(--lq-op-primary); font-size: 0.76rem; letter-spacing: 0.08em; }
.lq-op-card__desc, .lq-op-card__meta { color: #64748b; font-size: 0.82rem; line-height: 1.55; }

.lq-op-product-figure { margin-bottom: 14px; border: 1px solid #e5ebf3; border-radius: 12px; background: #f8fafc; }
.lq-op-model-card, .lq-op-type-card { min-height: 100%; padding: 14px; }
.lq-op-model-card:hover .lq-op-product-figure img, .lq-op-type-card:hover .lq-op-product-figure img { transform: scale(1.035); }
.lq-op-product-figure img { transition: transform 220ms ease; }

.lq-op-chip { min-height: 58px; padding: 12px 14px; color: var(--lq-op-ink); font-size: 0.84rem; font-weight: 650; }
.lq-op-chip__sub { color: #64748b; font-size: 0.72rem; font-weight: 500; }
.lq-op-chip__badge { border-radius: 999px; }
.lq-op-substep { margin: 0 0 20px; padding: 20px; border: 1px dashed #cbd8e8; border-radius: 16px; background: #f8fafc; }

.lq-op-input,
.lq-op-form-grid input,
.lq-op-form-grid select,
.lq-op-form-grid textarea,
.lq-op-quote input,
.lq-op-quote select,
.lq-op-quote textarea {
  min-height: 44px;
  border-color: #dbe4ed;
  border-radius: 10px;
  background: #fff;
  color: var(--lq-op-ink);
}

.lq-op-input:focus,
.lq-op-form-grid input:focus,
.lq-op-form-grid select:focus,
.lq-op-form-grid textarea:focus { border-color: var(--lq-op-primary); box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.1); outline: none; }
.lq-op-messages { gap: 10px; margin: 18px 0 22px; }
.lq-op-alert { border: 1px solid rgba(21, 94, 239, 0.12); border-radius: 12px; line-height: 1.55; }

.lq-op-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding: 24px 0 10px;
  border-top: 1px solid #e2e8f0;
}

.lq-op-nav__step { color: #64748b; font-size: 0.82rem; font-weight: 600; text-align: center; }
.lq-op-btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--lq-op-primary); border-radius: 12px; padding: 12px 18px; font-size: 0.8rem; font-weight: 750; letter-spacing: 0.04em; transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.lq-op-nav .lq-op-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(15, 40, 80, 0.1); }
.lq-op-nav .lq-op-btn--ghost::before { content: "←"; font-size: 1.15rem; line-height: 0.8; }
.lq-op-nav .lq-op-btn--accent::after { content: "→"; font-size: 1.15rem; line-height: 0.8; }
.lq-op-btn--accent { border-color: var(--lq-op-primary); background: var(--lq-op-primary); color: #fff; }
.lq-op-btn--accent:hover { border-color: #1149c6; background: #1149c6; }
.lq-op-btn--ghost { background: #fff; border-color: #e2e8f0; color: #94a3b8; }
.lq-op-btn--ghost:hover:not(:disabled) { border-color: #b9d0fb; background: #f8fbff; color: var(--lq-op-primary); }
.lq-op-btn:disabled { border-color: #e2e8f0; background: #fbfcfd; color: #b6c0cc; opacity: 1; }

.lq-op-footer {
  position: relative;
  margin: 0 40px 30px;
  padding: 18px 22px 18px 56px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.65;
}

.lq-op-footer::before {
  position: absolute;
  top: 18px;
  left: 20px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #b9d0fb;
  border-radius: 50%;
  background: #eef4ff;
  color: var(--lq-op-primary);
  content: "i";
  font-size: 0.82rem;
  font-weight: 800;
}

.lq-op-footer p { margin: 0; }

@media (max-width: 900px) {
  .lq-op-header { grid-template-columns: minmax(0, 1fr) minmax(170px, 30%); }
  .lq-op-header__product img { width: min(320px, 125%); }
  .lq-op-main { padding-inline: 28px; }
  .lq-op-footer { margin-inline: 28px; }
}

@media (max-width: 640px) {
  .lq-op-page { padding: 10px 8px 22px; }
  .lq-op-shell { border-radius: 16px; }
  .lq-op-header { display: block; min-height: 0; padding: 24px 20px 30px; }
  .lq-op-header__brand { max-width: 78%; margin-bottom: 24px; gap: 12px; }
  .lq-op-logo-wrap { width: 64px; height: 64px; padding: 8px; border-radius: 14px; }
  .lq-op-eyebrow { font-size: 0.58rem; letter-spacing: 0.09em; }
  .lq-op-header__product { position: absolute; top: 4px; right: -18px; display: block; width: 230px; min-height: 0; opacity: 0.56; pointer-events: none; }
  .lq-op-header__product::before { width: 205px; }
  .lq-op-header__product img { width: 230px; }
  .lq-op-header h2 { max-width: 88%; font-size: clamp(1.75rem, 9vw, 2.3rem); }
  .lq-op-subtitle { max-width: 100%; font-size: 0.78rem; line-height: 1.6; }
  .lq-op-stepper { padding: 18px 16px 16px; }
  .lq-op-stepper__item { min-width: 82px; font-size: 0.62rem; }
  .lq-op-progress { padding-inline: 20px; }
  .lq-op-main { padding: 26px 18px 12px; }
  .lq-op-grid, .lq-op-grid--types { grid-template-columns: 1fr; }
  .lq-op-grid--sizes, .lq-op-grid--ratings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lq-op-nav { grid-template-columns: 1fr auto 1fr; gap: 8px; }
  .lq-op-nav .lq-op-btn { min-height: 44px; padding: 10px 12px; font-size: 0.7rem; }
  .lq-op-nav__step { font-size: 0.7rem; }
  .lq-op-footer { margin: 0 18px 22px; padding: 16px 16px 16px 48px; font-size: 0.7rem; }
  .lq-op-footer::before { top: 16px; left: 16px; }
}

/* Impresión: solo se imprime la ficha técnica (#lq-op-print-area), sin botones (.lq-op-noprint) */
@media print {
  body * { visibility: hidden; }
  #lq-op-print-area, #lq-op-print-area * { visibility: visible; }
  #lq-op-print-area { position: absolute; left: 0; top: 0; width: 100%; }
  .lq-op-noprint { display: none !important; }
}
