/* ═══════════════════════════════════════════════════════════════════════════
   Landing Persianas Exteriores — Hoja de estilos AISLADA
   ---------------------------------------------------------------------------
   No se carga shared.css: esta landing tiene identidad propia y no debe
   heredar ni afectar los estilos del sitio corporativo.
   Todas las clases usan el prefijo `px-` para evitar colisiones.
   Enfoque mobile-first: los @media suben de ancho.
   ═══════════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Neutros cálidos: catálogo residencial contemporáneo */
  --px-bg:        #ffffff;
  --px-bg-soft:   #faf8f5;
  --px-bg-mid:    #f2efe9;
  --px-border:    #e6e2da;
  --px-border-st: #d6d1c7;

  /* Texto grafito */
  --px-ink:       #22262e;
  --px-ink-soft:  #4a5059;
  --px-muted:     #767c86;

  /* Acento coherente con AD Ingeniería */
  --px-accent:      #1a3bcc;
  --px-accent-dark: #1530a8;
  --px-accent-soft: #eef1fc;

  /* Oscuro para hero y footer */
  --px-dark:      #1b1f26;
  --px-dark-deep: #12151a;

  --px-ok:        #15803d;
  --px-err:       #b42318;

  --px-r-sm: 8px;
  --px-r:    14px;
  --px-r-lg: 20px;

  --px-shadow:    0 1px 2px rgba(27,31,38,.05), 0 8px 24px rgba(27,31,38,.06);
  --px-shadow-lg: 0 2px 4px rgba(27,31,38,.05), 0 18px 48px rgba(27,31,38,.12);

  --px-max: 1120px;
  --px-pad: 20px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--px-ink);
  background: var(--px-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* Espacio para la barra fija inferior en móvil */
  padding-bottom: 72px;
}
@media (min-width: 880px) { body { padding-bottom: 0; } }

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

/* El atributo `hidden` debe ganar siempre: lo usamos para ocultar los botones
   de WhatsApp cuando no hay número comercial configurado. */
[hidden] { display: none !important; }

/* Accesibilidad: foco visible en todos los controles */
:focus-visible {
  outline: 2px solid var(--px-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.px-skip {
  position: absolute; left: -9999px; top: 0; z-index: 400;
  background: var(--px-accent); color: #fff; padding: 10px 16px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  border-radius: 0 0 var(--px-r-sm) 0;
}
.px-skip:focus { left: 0; }

/* Compensa el header fijo al saltar con enlaces internos */
section[id], [id="privacidad"] { scroll-margin-top: 80px; }

.px-wrap { width: 100%; max-width: var(--px-max); margin: 0 auto; padding: 0 var(--px-pad); }
.px-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ─────────────────────────────────────────────────────────────────────────
   TIPOGRAFÍA
   ───────────────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.015em; font-weight: 700; }
.px-h1 { font-size: clamp(30px, 7vw, 54px); font-weight: 800; letter-spacing: -0.03em; }
.px-h2 { font-size: clamp(24px, 4.6vw, 36px); font-weight: 800; letter-spacing: -0.025em; }
.px-h3 { font-size: clamp(18px, 2.6vw, 21px); }

.px-eyebrow {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--px-accent); margin-bottom: 12px;
}
.px-lead { font-size: clamp(15px, 2.1vw, 17.5px); color: var(--px-ink-soft); line-height: 1.7; }
.px-small { font-size: 13px; color: var(--px-muted); line-height: 1.6; }

.px-section { padding: 64px 0; }
@media (min-width: 880px) { .px-section { padding: 96px 0; } }
.px-section--soft { background: var(--px-bg-soft); }
.px-section--mid  { background: var(--px-bg-mid); }
.px-section-head { max-width: 640px; margin-bottom: 36px; }
.px-section-head .px-lead { margin-top: 12px; }

/* ─────────────────────────────────────────────────────────────────────────
   BOTONES
   ───────────────────────────────────────────────────────────────────────── */
.px-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1;
  padding: 14px 22px; border-radius: var(--px-r-sm); border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
  min-height: 48px; /* objetivo táctil */
}
.px-btn:active { transform: translateY(1px); }
.px-btn--primary { background: var(--px-accent); color: #fff; }
.px-btn--primary:hover { background: var(--px-accent-dark); }
.px-btn--dark { background: var(--px-ink); color: #fff; }
.px-btn--dark:hover { background: #000; }
.px-btn--ghost { background: transparent; color: var(--px-ink); border-color: var(--px-border-st); }
.px-btn--ghost:hover { border-color: var(--px-ink); }
.px-btn--light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.45); }
.px-btn--light:hover { background: rgba(255,255,255,.2); }
.px-btn--wa { background: #1f9d55; color: #fff; }
.px-btn--wa:hover { background: #197f45; }
.px-btn--block { width: 100%; }
.px-btn--sm { font-size: 14px; padding: 11px 16px; min-height: 42px; }
.px-btn[disabled] { opacity: .5; cursor: not-allowed; }
.px-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.px-linkbtn {
  background: none; border: none; padding: 0; font: inherit; cursor: pointer;
  color: var(--px-accent); font-weight: 600; font-size: 14px;
  text-decoration: underline; text-underline-offset: 3px;
}

/* ─────────────────────────────────────────────────────────────────────────
   HEADER PROPIO
   ───────────────────────────────────────────────────────────────────────── */
.px-header {
  position: sticky; top: 0; z-index: 120;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--px-border);
}
.px-header-inner {
  max-width: var(--px-max); margin: 0 auto; padding: 0 var(--px-pad);
  height: 64px; display: flex; align-items: center; gap: 16px;
}
.px-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.px-brand img { height: 26px; width: auto; }
.px-brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.px-brand-txt strong { font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; }
.px-brand-txt span { font-size: 10.5px; color: var(--px-muted); letter-spacing: .04em; text-transform: uppercase; }

.px-nav { display: none; }
.px-nav ul { display: flex; gap: 26px; list-style: none; }
.px-nav a {
  font-size: 14px; font-weight: 500; color: var(--px-ink-soft);
  text-decoration: none; transition: color .18s;
}
.px-nav a:hover { color: var(--px-accent); }
/* El botón de cotizar de la barra se oculta en móvil (lo reemplaza el menú);
   el del menú desplegable y el de la barra fija inferior se mantienen. */
.px-header-inner > .px-btn { display: none; }

.px-burger {
  margin-left: auto; width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 1px solid var(--px-border); border-radius: var(--px-r-sm);
  cursor: pointer; color: var(--px-ink);
}
.px-burger svg { width: 20px; height: 20px; }

.px-mobilemenu {
  display: none; border-top: 1px solid var(--px-border); background: #fff;
  padding: 8px var(--px-pad) 18px;
}
.px-mobilemenu.is-open { display: block; }
.px-mobilemenu ul { list-style: none; }
.px-mobilemenu a {
  display: block; padding: 13px 2px; font-size: 15.5px; font-weight: 500;
  text-decoration: none; border-bottom: 1px solid var(--px-border);
}
.px-mobilemenu .px-btn { margin-top: 16px; }

@media (min-width: 880px) {
  .px-nav { display: block; }
  .px-header-inner > .px-btn { display: inline-flex; }
  .px-burger, .px-mobilemenu { display: none !important; }
  .px-header-inner { height: 72px; gap: 32px; }
  .px-brand img { height: 30px; }
}

/* ─────────────────────────────────────────────────────────────────────────
   HERO
   ───────────────────────────────────────────────────────────────────────── */
.px-hero { position: relative; background: var(--px-dark-deep); overflow: hidden; }
.px-hero-media { position: absolute; inset: 0; }
.px-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.px-hero-media svg { width: 100%; height: 100%; }
.px-hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(175deg, rgba(18,21,26,.82) 0%, rgba(18,21,26,.62) 48%, rgba(18,21,26,.88) 100%);
}
@media (min-width: 880px) {
  .px-hero-media::after {
    background: linear-gradient(100deg, rgba(18,21,26,.93) 0%, rgba(18,21,26,.72) 46%, rgba(18,21,26,.3) 100%);
  }
}
.px-hero-inner {
  position: relative; z-index: 2;
  max-width: var(--px-max); margin: 0 auto; padding: 72px var(--px-pad) 64px;
}
@media (min-width: 880px) { .px-hero-inner { padding: 128px var(--px-pad) 120px; max-width: var(--px-max); } }
.px-hero-copy { max-width: 620px; }
.px-hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.72); background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18); border-radius: 100px; padding: 7px 14px;
  margin-bottom: 22px;
}
.px-hero h1 { color: #fff; margin-bottom: 18px; }
.px-hero p { font-size: clamp(15.5px, 2.2vw, 18px); color: rgba(255,255,255,.78); line-height: 1.7; max-width: 520px; }
.px-hero-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
@media (min-width: 560px) { .px-hero-actions { flex-direction: row; } }
.px-hero-facts {
  display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 36px;
  padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14);
}
.px-hero-facts li { list-style: none; font-size: 13px; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 8px; }
.px-hero-facts svg { width: 15px; height: 15px; stroke: rgba(255,255,255,.55); fill: none; stroke-width: 2; }

/* ─────────────────────────────────────────────────────────────────────────
   TARJETAS DE TIPO DE PERSIANA
   ───────────────────────────────────────────────────────────────────────── */
.px-grid-2 { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .px-grid-2 { grid-template-columns: 1fr 1fr; gap: 28px; } }

.px-card {
  background: #fff; border: 1px solid var(--px-border);
  border-radius: var(--px-r-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}
.px-card:hover { box-shadow: var(--px-shadow-lg); transform: translateY(-3px); border-color: var(--px-border-st); }
.px-card-media { aspect-ratio: 16 / 11; background: var(--px-bg-mid); overflow: hidden; }
.px-card-media img { width: 100%; height: 100%; object-fit: cover; }
.px-card-media svg { width: 100%; height: 100%; }
.px-card-body { padding: 24px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.px-card-body h3 { margin-bottom: 6px; }
.px-card-kicker { font-size: 13.5px; color: var(--px-muted); margin-bottom: 16px; }
.px-feats { list-style: none; margin-bottom: 22px; }
.px-feats li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14.5px; color: var(--px-ink-soft); padding: 7px 0;
}
.px-feats li::before {
  content: ''; flex-shrink: 0; width: 7px; height: 7px; margin-top: 8px;
  border-radius: 50%; background: var(--px-accent);
}
.px-card-body .px-btn { margin-top: auto; }

/* ─────────────────────────────────────────────────────────────────────────
   BENEFICIOS
   ───────────────────────────────────────────────────────────────────────── */
.px-benefits { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .px-benefits { grid-template-columns: 1fr 1fr; gap: 18px; } }
@media (min-width: 980px) { .px-benefits { grid-template-columns: repeat(3, 1fr); } }
.px-benefit {
  background: #fff; border: 1px solid var(--px-border);
  border-radius: var(--px-r); padding: 24px 22px;
}
.px-benefit-ico {
  width: 42px; height: 42px; border-radius: 11px; margin-bottom: 16px;
  background: var(--px-accent-soft); display: grid; place-items: center;
}
.px-benefit-ico svg { width: 21px; height: 21px; stroke: var(--px-accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.px-benefit h3 { font-size: 16.5px; margin-bottom: 7px; }
.px-benefit p { font-size: 14px; color: var(--px-muted); line-height: 1.65; }

/* ─────────────────────────────────────────────────────────────────────────
   FICHA TÉCNICA
   ───────────────────────────────────────────────────────────────────────── */
.px-tech { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 980px) { .px-tech { grid-template-columns: 1fr 1fr; gap: 64px; } }
.px-tech-visual {
  background: #fff; border: 1px solid var(--px-border);
  border-radius: var(--px-r-lg); padding: 10px; overflow: hidden;
}
.px-tech-visual img { width: 100%; border-radius: var(--px-r); }
.px-techlist { list-style: none; }
.px-techlist li { padding: 18px 0; border-bottom: 1px solid var(--px-border); }
.px-techlist li:first-child { padding-top: 0; }
.px-techlist li:last-child { border-bottom: none; }
.px-techlist h3 { font-size: 16px; margin-bottom: 5px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.px-techlist p { font-size: 14px; color: var(--px-muted); }
.px-pill {
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 100px; white-space: nowrap;
  background: var(--px-accent-soft); color: var(--px-accent-dark);
}
.px-pill--pend { background: var(--px-bg-mid); color: var(--px-muted); }

/* ─────────────────────────────────────────────────────────────────────────
   SELECTOR DE COLORES
   ───────────────────────────────────────────────────────────────────────── */
.px-colors { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 880px) { .px-colors { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.px-swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 12px; }
.px-swatch {
  background: #fff; border: 1.5px solid var(--px-border); border-radius: var(--px-r);
  padding: 12px 10px 14px; cursor: pointer; font: inherit; text-align: center;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.px-swatch:hover:not([disabled]) { border-color: var(--px-border-st); transform: translateY(-2px); }
.px-swatch[aria-pressed="true"] {
  border-color: var(--px-accent); box-shadow: 0 0 0 3px var(--px-accent-soft);
}
.px-swatch[disabled] { cursor: not-allowed; opacity: .55; }
.px-swatch-chip {
  display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 10px; margin-bottom: 10px;
  border: 1px solid rgba(0,0,0,.14);
}
.px-swatch-name { display: block; font-size: 13.5px; font-weight: 600; }
.px-swatch-state { display: block; font-size: 11px; color: var(--px-muted); margin-top: 2px; }

.px-colorpreview {
  background: #fff; border: 1px solid var(--px-border); border-radius: var(--px-r-lg);
  padding: 18px; box-shadow: var(--px-shadow);
}
.px-colorpreview-canvas { border-radius: var(--px-r); overflow: hidden; background: var(--px-bg-mid); }
.px-colorpreview-canvas img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.px-colorpreview-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.px-colorpreview-meta strong { font-size: 16px; }

/* ─────────────────────────────────────────────────────────────────────────
   SERVICIOS
   ───────────────────────────────────────────────────────────────────────── */
.px-services { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .px-services { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .px-services { grid-template-columns: repeat(4, 1fr); } }
.px-service {
  background: #fff; border: 1px solid var(--px-border); border-radius: var(--px-r);
  padding: 26px 22px; height: 100%;
}
.px-service-ico { margin-bottom: 16px; }
.px-service-ico svg { width: 26px; height: 26px; stroke: var(--px-accent); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.px-service h3 { font-size: 16.5px; margin-bottom: 8px; }
.px-service p { font-size: 14px; color: var(--px-muted); }

/* ─────────────────────────────────────────────────────────────────────────
   PASOS
   ───────────────────────────────────────────────────────────────────────── */
.px-steps { display: grid; gap: 18px; grid-template-columns: 1fr; counter-reset: pxstep; }
@media (min-width: 760px) { .px-steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.px-step {
  background: #fff; border: 1px solid var(--px-border); border-radius: var(--px-r);
  padding: 26px 22px; position: relative;
}
.px-step-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--px-ink); color: #fff;
  display: grid; place-items: center; font-size: 14px; font-weight: 700; margin-bottom: 16px;
}
.px-step h3 { font-size: 16.5px; margin-bottom: 7px; }
.px-step p { font-size: 14px; color: var(--px-muted); }

/* ─────────────────────────────────────────────────────────────────────────
   COTIZADOR
   ───────────────────────────────────────────────────────────────────────── */
.px-quoter {
  background: #fff; border: 1px solid var(--px-border); border-radius: var(--px-r-lg);
  box-shadow: var(--px-shadow); overflow: hidden;
}
.px-quoter-head { padding: 24px 20px 0; }
@media (min-width: 760px) { .px-quoter-head { padding: 30px 32px 0; } }

.px-progress { display: flex; gap: 6px; margin-bottom: 22px; list-style: none; }
.px-progress li { flex: 1; }
.px-progress-bar { height: 4px; border-radius: 100px; background: var(--px-bg-mid); }
.px-progress li[data-state="done"] .px-progress-bar,
.px-progress li[data-state="current"] .px-progress-bar { background: var(--px-accent); }
.px-progress-lbl { display: block; font-size: 11px; font-weight: 600; color: var(--px-muted); margin-top: 8px; letter-spacing: .01em; }
.px-progress li[data-state="current"] .px-progress-lbl { color: var(--px-accent); }
@media (max-width: 559px) { .px-progress-lbl { display: none; } .px-progress li[data-state="current"] .px-progress-lbl { display: block; } }

.px-quoter-body { padding: 4px 20px 26px; }
@media (min-width: 760px) { .px-quoter-body { padding: 4px 32px 32px; } }
.px-stepview { display: none; }
.px-stepview.is-active { display: block; animation: px-fade .25s ease; }
@keyframes px-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.px-stepview > h3 { font-size: 19px; margin-bottom: 6px; }
.px-stepview > .px-small { margin-bottom: 22px; }

/* Selector de accionamiento */
.px-choice { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.px-choice-btn {
  background: #fff; border: 1.5px solid var(--px-border); border-radius: var(--px-r);
  padding: 18px 14px; cursor: pointer; font: inherit; text-align: left;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.px-choice-btn:hover { border-color: var(--px-border-st); }
.px-choice-btn[aria-pressed="true"] {
  border-color: var(--px-accent); background: var(--px-accent-soft);
  box-shadow: 0 0 0 3px rgba(26,59,204,.1);
}
.px-choice-btn svg { width: 26px; height: 26px; stroke: var(--px-ink); fill: none; stroke-width: 1.6; stroke-linecap: round; margin-bottom: 12px; }
.px-choice-btn[aria-pressed="true"] svg { stroke: var(--px-accent); }
.px-choice-btn strong { display: block; font-size: 15.5px; margin-bottom: 3px; }
.px-choice-btn span { font-size: 12.5px; color: var(--px-muted); line-height: 1.5; display: block; }

/* Ventanas */
.px-window {
  border: 1px solid var(--px-border); border-radius: var(--px-r);
  padding: 18px 16px; margin-bottom: 16px; background: var(--px-bg-soft);
}
.px-window-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.px-window-head h4 { font-size: 15px; font-weight: 700; }
.px-window-del {
  background: none; border: none; cursor: pointer; font: inherit;
  font-size: 13px; font-weight: 600; color: var(--px-err); padding: 6px 8px;
}
.px-window-del:hover { text-decoration: underline; }

.px-fields { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .px-fields--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 560px) { .px-fields--3 { grid-template-columns: repeat(3, 1fr); } }

.px-field label,
.px-field > .px-field-lbl {
  display: block; font-size: 13px; font-weight: 600; color: var(--px-ink-soft); margin-bottom: 6px;
}
.px-field input[type="text"],
.px-field input[type="tel"],
.px-field input[type="email"],
.px-field input[type="number"],
.px-field select,
.px-field textarea {
  width: 100%; font-family: inherit; font-size: 16px; /* 16px evita zoom en iOS */
  color: var(--px-ink); background: #fff;
  border: 1.5px solid var(--px-border); border-radius: var(--px-r-sm);
  padding: 12px 14px; min-height: 48px; transition: border-color .18s, box-shadow .18s;
}
.px-field textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.px-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23767c86' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.px-field input:focus, .px-field select:focus, .px-field textarea:focus {
  border-color: var(--px-accent); box-shadow: 0 0 0 3px var(--px-accent-soft); outline: none;
}
.px-field input[aria-invalid="true"], .px-field select[aria-invalid="true"], .px-field textarea[aria-invalid="true"] {
  border-color: var(--px-err);
}
.px-field-hint { font-size: 12px; color: var(--px-muted); margin-top: 5px; }
.px-field-err { display: block; font-size: 12.5px; color: var(--px-err); margin-top: 5px; font-weight: 500; min-height: 1px; }

.px-addwindow { margin-top: 4px; }

/* Resumen */
.px-summary { border: 1px solid var(--px-border); border-radius: var(--px-r); overflow: hidden; }
.px-summary-row {
  display: flex; gap: 16px; justify-content: space-between;
  padding: 12px 16px; font-size: 14px; border-bottom: 1px solid var(--px-border);
}
.px-summary-row:last-child { border-bottom: none; }
.px-summary-row dt { color: var(--px-muted); flex-shrink: 0; }
.px-summary-row dd { font-weight: 600; text-align: right; }
.px-summary-group { background: var(--px-bg-soft); padding: 10px 16px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--px-ink-soft); border-bottom: 1px solid var(--px-border); }

.px-consent { display: flex; gap: 11px; align-items: flex-start; margin-top: 20px; }
.px-consent input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--px-accent); }
.px-consent label { font-size: 13.5px; color: var(--px-ink-soft); line-height: 1.55; }

.px-quoter-nav { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.px-quoter-nav .px-btn { flex: 1 1 auto; }
@media (min-width: 560px) { .px-quoter-nav .px-btn { flex: 0 0 auto; } .px-quoter-nav .px-btn--primary { min-width: 180px; } }

.px-status { margin-top: 16px; padding: 14px 16px; border-radius: var(--px-r-sm); font-size: 14px; line-height: 1.55; display: none; }
.px-status.is-visible { display: block; }
.px-status--ok   { background: #f0fdf4; border: 1px solid #bbf7d0; color: #14532d; }
.px-status--err  { background: #fef2f2; border: 1px solid #fecaca; color: #7f1d1d; }
.px-status--info { background: var(--px-accent-soft); border: 1px solid #c7d2f5; color: #1e2f73; }

.px-hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* ─────────────────────────────────────────────────────────────────────────
   GUÍA DE MEDICIÓN (modal)
   ───────────────────────────────────────────────────────────────────────── */
.px-modal {
  position: fixed; inset: 0; z-index: 300; display: none;
  align-items: flex-end; justify-content: center;
  background: rgba(18,21,26,.55);
}
@media (min-width: 760px) { .px-modal { align-items: center; padding: 24px; } }
.px-modal.is-open { display: flex; }
.px-modal-panel {
  background: #fff; width: 100%; max-width: 680px; max-height: 92vh;
  border-radius: var(--px-r-lg) var(--px-r-lg) 0 0;
  display: flex; flex-direction: column; overflow: hidden;
  animation: px-up .26s ease;
}
@media (min-width: 760px) { .px-modal-panel { border-radius: var(--px-r-lg); max-height: 88vh; } }
@keyframes px-up { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.px-modal-head {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; border-bottom: 1px solid var(--px-border); flex-shrink: 0;
}
.px-modal-head h2 { font-size: 17px; margin-right: auto; }
.px-modal-close {
  width: 40px; height: 40px; border-radius: var(--px-r-sm); border: 1px solid var(--px-border);
  background: #fff; cursor: pointer; display: grid; place-items: center; flex-shrink: 0;
}
.px-modal-close svg { width: 18px; height: 18px; stroke: var(--px-ink); stroke-width: 2; fill: none; }
.px-modal-body { padding: 22px 20px 26px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.px-modal-foot {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 20px; border-top: 1px solid var(--px-border); background: var(--px-bg-soft); flex-shrink: 0;
}
.px-modal-foot .px-small { margin-right: auto; }

.px-guide-dots { display: flex; gap: 6px; margin-bottom: 20px; }
.px-guide-dots span { height: 4px; flex: 1; border-radius: 100px; background: var(--px-bg-mid); }
.px-guide-dots span.is-on { background: var(--px-accent); }
.px-guide-step { display: none; }
.px-guide-step.is-active { display: block; }
.px-guide-step h3 { font-size: 18px; margin-bottom: 8px; }
.px-guide-step > p { font-size: 14.5px; color: var(--px-ink-soft); line-height: 1.7; margin-bottom: 18px; }
.px-guide-fig {
  background: var(--px-bg-soft); border: 1px solid var(--px-border);
  border-radius: var(--px-r); padding: 14px; margin-bottom: 18px;
}
.px-guide-fig svg { width: 100%; height: auto; }
.px-guide-list { list-style: none; }
.px-guide-list li {
  display: flex; gap: 11px; align-items: flex-start;
  font-size: 14.5px; color: var(--px-ink-soft); padding: 7px 0;
}
.px-guide-list li svg { width: 17px; height: 17px; margin-top: 3px; flex-shrink: 0; stroke: var(--px-accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.px-guide-note {
  background: var(--px-accent-soft); border-radius: var(--px-r-sm);
  padding: 13px 15px; font-size: 13.5px; color: #1e2f73; line-height: 1.6; margin-top: 18px;
}
.px-guide-triple { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); margin-bottom: 6px; }

/* ─────────────────────────────────────────────────────────────────────────
   FAQ
   ───────────────────────────────────────────────────────────────────────── */
.px-faq { max-width: 820px; }
.px-faq details {
  background: #fff; border: 1px solid var(--px-border); border-radius: var(--px-r);
  margin-bottom: 10px; overflow: hidden;
}
.px-faq summary {
  cursor: pointer; list-style: none; padding: 18px 50px 18px 20px;
  font-size: 15.5px; font-weight: 600; position: relative;
}
.px-faq summary::-webkit-details-marker { display: none; }
.px-faq summary::after {
  content: ''; position: absolute; right: 20px; top: 24px;
  width: 10px; height: 10px; border-right: 2px solid var(--px-muted); border-bottom: 2px solid var(--px-muted);
  transform: rotate(45deg); transition: transform .2s;
}
.px-faq details[open] summary::after { transform: rotate(-135deg); }
.px-faq details p { padding: 0 20px 20px; font-size: 14.5px; color: var(--px-ink-soft); line-height: 1.75; }

/* ─────────────────────────────────────────────────────────────────────────
   BANDA CTA
   ───────────────────────────────────────────────────────────────────────── */
.px-ctaband { background: var(--px-dark); color: #fff; }
.px-ctaband-inner {
  max-width: var(--px-max); margin: 0 auto; padding: 56px var(--px-pad);
  display: grid; gap: 24px; align-items: center;
}
@media (min-width: 880px) { .px-ctaband-inner { grid-template-columns: 1fr auto; padding: 72px var(--px-pad); gap: 48px; } }
.px-ctaband h2 { color: #fff; margin-bottom: 10px; }
.px-ctaband p { color: rgba(255,255,255,.72); font-size: 15.5px; max-width: 540px; }
.px-ctaband-actions { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 560px) { .px-ctaband-actions { flex-direction: row; } }

/* ─────────────────────────────────────────────────────────────────────────
   FOOTER PROPIO
   ───────────────────────────────────────────────────────────────────────── */
.px-footer { background: var(--px-dark-deep); color: rgba(255,255,255,.6); padding: 48px 0 24px; }
.px-footer-inner { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .px-footer-inner { grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; } }
.px-footer h2, .px-footer h3 { color: #fff; }
.px-footer-brand img { height: 24px; filter: brightness(0) invert(1); opacity: .9; margin-bottom: 14px; }
.px-footer-brand p { font-size: 13.5px; line-height: 1.7; max-width: 320px; }
.px-footer-col h3 {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: 14px;
}
.px-footer-col ul { list-style: none; }
.px-footer-col li { margin-bottom: 9px; }
.px-footer-col a { font-size: 13.5px; color: rgba(255,255,255,.62); text-decoration: none; }
.px-footer-col a:hover { color: #fff; }
.px-footer-bottom {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: 12.5px; color: rgba(255,255,255,.4);
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between;
}
.px-footer-bottom a { color: rgba(255,255,255,.55); text-decoration: none; }
.px-footer-bottom a:hover { color: #fff; text-decoration: underline; }

/* ─────────────────────────────────────────────────────────────────────────
   BARRA FIJA MÓVIL
   ───────────────────────────────────────────────────────────────────────── */
.px-stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
  display: flex; gap: 10px; padding: 10px 14px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--px-border);
  transition: transform .25s ease;
}
.px-stickybar .px-btn { flex: 1; font-size: 14.5px; padding: 12px 14px; min-height: 46px; }
.px-stickybar.is-hidden { transform: translateY(110%); }
@media (min-width: 880px) { .px-stickybar { display: none; } }

/* Revelado suave al hacer scroll */
.px-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.px-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .px-reveal { opacity: 1; transform: none; } }
