/* ==========================================================================
   COTIZA TU OBRA — Mente de Obra (Puerto Peñasco, Sonora)
   Estilos de Diseño Agency-Grade / High-End Micro-Aesthetics
   Paleta extraída de marca oficial:
   - Azul Marino Plano: #162344 / #1e2a4a
   - Amarillo Casco / Oro Obra: #e8b931
   - Turquesa Mar de Cortés: #14a38b
   - Lienzo Papel Arquitectónico: #f8fafc / #eef2f6
   ========================================================================== */

:root {
  /* Paleta cromática oficial */
  --color-navy-950: #0b1224;
  --color-navy-900: #121c36;
  --color-navy: #162344;
  --color-navy-light: #1e2a4a;
  --color-navy-muted: #2e3e68;
  
  --color-gold: #e8b931;
  --color-gold-hover: #d4a524;
  --color-gold-light: #fef9e7;
  --color-gold-glow: rgba(232, 185, 49, 0.28);

  --color-teal: #14a38b;
  --color-teal-hover: #0f8571;
  --color-teal-light: #e6f7f4;
  --color-teal-glow: rgba(20, 163, 139, 0.25);

  --color-paper: #f8fafc;
  --color-paper-tint: #eef2f6;
  --color-card-shell: #f1f5f9;
  --color-card-core: #ffffff;
  --color-border: #e2e8f0;
  --color-border-subtle: rgba(22, 35, 68, 0.08);

  --color-text-main: #0f172a;
  --color-text-body: #334155;
  --color-text-muted: #64748b;
  --color-text-inv: #ffffff;

  /* Tipografías */
  --font-display: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Barlow Condensed', 'IBM Plex Sans', "Arial Narrow", sans-serif;
  --font-mono: 'IBM Plex Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Haptic Motion / Curvas de resortes elásticos */
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-elastic: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 180ms var(--ease-spring);
  --transition-normal: 320ms var(--ease-spring);
  --transition-slow: 550ms var(--ease-elastic);

  /* Sombras y relieves matemáticos */
  --shadow-bezel-outer: 0 1px 3px rgba(15, 23, 42, 0.04), 0 6px 16px -2px rgba(15, 23, 42, 0.05);
  --shadow-bezel-hover: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 16px 28px -4px rgba(22, 35, 68, 0.12);
  --shadow-inner-highlight: inset 0 1px 1px rgba(255, 255, 255, 0.9);
  --shadow-amber-glow: 0 8px 24px -4px rgba(232, 185, 49, 0.38);
  --shadow-teal-glow: 0 8px 24px -4px rgba(20, 163, 139, 0.35);

  /* Radios de curvatura squircle */
  --radius-outer: 28px;
  --radius-core: 22px;
  --radius-pill: 9999px;
  --radius-input: 16px;
}

/* ==========================================================================
   RESET Y BASE RESPETANDO LECTURA MÓVIL
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-display);
  background-color: var(--color-paper);
  color: var(--color-text-body);
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100dvh;
  position: relative;
}

/* Marca de agua de cuadrícula arquitectónica sutil */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(22, 35, 68, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(22, 35, 68, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: -1;
}

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

button, input, select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   LAYOUT Y CONTENEDORES
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section-spacer {
  padding-block: clamp(3.5rem, 6vw, 6.5rem);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--color-text-muted);
}

/* Eyebrow badge / Micro-etiqueta arquitectónica */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: var(--color-card-core);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-navy);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  margin-bottom: 1rem;
}

.eyebrow-pill .dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(20, 163, 139, 0.2);
  animation: pulseDot 2.4s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
}

/* ==========================================================================
   DOBLE-BEZEL ARCHITECTURE (Doppelrand Haptic Cards)
   ========================================================================== */

.bezel-card {
  background: var(--color-card-shell);
  border: 1px solid rgba(22, 35, 68, 0.07);
  padding: 0.5rem;
  border-radius: var(--radius-outer);
  box-shadow: var(--shadow-bezel-outer);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.bezel-core {
  background: var(--color-card-core);
  border-radius: calc(var(--radius-outer) - 0.5rem);
  box-shadow: var(--shadow-inner-highlight);
  padding: clamp(1.25rem, 2.5vw, 2.25rem);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.bezel-card:hover {
  box-shadow: var(--shadow-bezel-hover);
  border-color: rgba(232, 185, 49, 0.3);
}

/* ==========================================================================
   BOTONES MODERNOS (Island Buttons con Trailing Circle Icon)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  text-decoration: none;
  position: relative;
  user-select: none;
  touch-action: manipulation;
}

.btn:active {
  transform: scale(0.975);
}

/* Botón Principal Dorado (Brand Gold / Casco Amarillo) */
.btn-primary {
  background: linear-gradient(135deg, #f5c642 0%, var(--color-gold) 100%);
  color: var(--color-navy);
  box-shadow: var(--shadow-amber-glow), 0 2px 4px rgba(0,0,0,0.06);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #fcd34d 0%, #e8b931 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(232, 185, 49, 0.52);
}

/* Botón Turquesa Mar de Cortés / WhatsApp Principal */
.btn-teal {
  background: linear-gradient(135deg, #18b59b 0%, var(--color-teal) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-teal-glow), 0 2px 4px rgba(0,0,0,0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-teal:hover {
  background: linear-gradient(135deg, #20c9ad 0%, #118d78 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(20, 163, 139, 0.5);
}

/* Botón Secundario / Outline Blueprint */
.btn-secondary {
  background: var(--color-card-core);
  color: var(--color-navy);
  border: 1.5px solid var(--color-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.btn-secondary:hover {
  border-color: var(--color-navy);
  background: var(--color-card-shell);
  transform: translateY(-1px);
}

/* Botón de Icono Anidado (Button-in-Button Trailing Icon) */
.btn-icon-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  transition: transform var(--transition-fast), background var(--transition-fast);
  margin-right: -0.35rem;
}

.btn-teal .btn-icon-bubble {
  background: rgba(255, 255, 255, 0.2);
}

.btn:hover .btn-icon-bubble {
  transform: translate(2px, -1px) scale(1.08);
  background: rgba(0, 0, 0, 0.14);
}

.btn-teal:hover .btn-icon-bubble {
  background: rgba(255, 255, 255, 0.3);
}

.btn-icon-bubble svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

/* ==========================================================================
   NAVBAR FLUIDO DESPRENDIDO (Floating Island Nav)
   ========================================================================== */

.nav-wrapper {
  position: sticky;
  top: 1rem;
  z-index: 40;
  padding-inline: 1rem;
}

.nav-island {
  max-width: 860px;
  margin-inline: auto;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(22, 35, 68, 0.1);
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 2px 4px rgba(22, 35, 68, 0.12));
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-navy);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--color-card-shell);
  transition: all var(--transition-fast);
}

.nav-btn-link:hover {
  background: var(--color-gold-light);
  color: var(--color-navy);
}

/* ==========================================================================
   HERO BANNER & SELECCIÓN RÁPIDA
   ========================================================================== */

.hero-section {
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.hero-banner-card {
  max-width: 980px;
  margin-inline: auto;
  border-radius: var(--radius-outer);
  overflow: hidden;
  position: relative;
  margin-bottom: 2.5rem;
  background: var(--color-paper-tint);
  border: 1px solid var(--color-border);
  box-shadow: 0 12px 32px -6px rgba(22, 35, 68, 0.08);
}

.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 280px;
  object-fit: cover;
  object-position: center;
}

.hero-headline {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -0.04em;
  line-height: 1.1;
  max-width: 820px;
  margin-inline: auto;
  margin-bottom: 1.25rem;
}

.hero-headline .highlight-word {
  position: relative;
  display: inline-block;
  color: var(--color-navy);
}

.hero-headline .highlight-word::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 8%;
  width: 100%;
  height: 28%;
  background: var(--color-gold);
  opacity: 0.45;
  z-index: -1;
  border-radius: 4px;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-body);
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

/* ==========================================================================
   4 BOTONES GRANDES DE INICIO (Selector de Obra)
   ========================================================================== */

.obra-selector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 980px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .obra-selector-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.obra-choice-card {
  position: relative;
  background: var(--color-card-core, #ffffff);
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: var(--radius-core, 18px);
  padding: 0.45rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: left;
  outline: none;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.obra-choice-card:hover {
  transform: translateY(-5px);
  border-color: rgba(232, 185, 49, 0.6);
  box-shadow: 0 16px 32px -4px rgba(22, 35, 68, 0.12), 0 0 0 1px rgba(232, 185, 49, 0.25);
}

.obra-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--radius-core, 18px) - 0.35rem);
  overflow: hidden;
  background: #eef2f6;
}

.obra-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.obra-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.0) 55%, rgba(15, 23, 42, 0.4) 100%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.obra-choice-card:hover .obra-card-img {
  transform: scale(1.06);
}

.obra-choice-card:hover .obra-card-media::after {
  opacity: 0.85;
}

.obra-badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  background: rgba(18, 28, 54, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.obra-card-body {
  padding: 0.85rem 0.5rem 0.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.obra-choice-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 0.2rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.1;
}

.obra-choice-subtitle {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.3;
  margin-bottom: 0.65rem;
}

.obra-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
  margin-top: auto;
  padding-top: 0.25rem;
}

.obra-card-cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--color-gold);
}

.obra-choice-card:hover .obra-card-cta {
  color: var(--color-gold-hover, #d4a524);
}

.obra-choice-card:hover .obra-card-cta svg {
  transform: translateX(4px);
}

/* Compatibilidad para elementos heredados */
.obra-choice-inner {
  background: var(--color-card-core);
  border-radius: calc(var(--radius-core) - 0.35rem);
  padding: 1.25rem 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-inner-highlight);
  transition: background var(--transition-fast);
}

.obra-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--color-card-shell);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: transform var(--transition-normal), background var(--transition-fast);
  border: 1px solid var(--color-border);
}

.obra-icon-box svg,
.obra-icon-box img {
  width: 38px;
  height: 38px;
  transition: transform var(--transition-normal);
}

/* Clases de color para los SVGs */
.stroke-navy { stroke: var(--color-navy); }
.stroke-amber { stroke: var(--color-gold); }
.stroke-teal { stroke: var(--color-teal); }

.obra-choice-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.obra-choice-subtitle {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.35;
}

.obra-choice-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 185, 49, 0.5);
  box-shadow: 0 12px 24px -4px rgba(22, 35, 68, 0.1);
}

.obra-choice-card:hover .obra-icon-box {
  background: var(--color-gold-light);
  transform: scale(1.08);
}

/* Estado Activo / Seleccionado */
.obra-choice-card.is-selected {
  border-color: var(--color-gold);
  background: linear-gradient(135deg, rgba(232, 185, 49, 0.2) 0%, rgba(20, 163, 139, 0.1) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -2px rgba(232, 185, 49, 0.25);
}

.obra-choice-card.is-selected .obra-choice-inner {
  background: #ffffff;
}

.obra-choice-card.is-selected .obra-icon-box {
  background: var(--color-gold);
}

.obra-choice-card.is-selected .obra-icon-box svg path,
.obra-choice-card.is-selected .obra-icon-box svg rect,
.obra-choice-card.is-selected .obra-icon-box svg line {
  stroke-width: 2.2;
}

/* ==========================================================================
   WIZARD DE LA CALCULADORA (Una pregunta por pantalla / Flujo continuo)
   ========================================================================== */

.calc-section {
  scroll-margin-top: 5rem;
}

.calc-wizard-box {
  max-width: 820px;
  margin-inline: auto;
  background: var(--color-card-shell);
  border: 1px solid var(--color-border);
  padding: 0.6rem;
  border-radius: var(--radius-outer);
  box-shadow: var(--shadow-bezel-outer);
  position: relative;
}

.calc-wizard-card {
  background: var(--color-card-core);
  border-radius: calc(var(--radius-outer) - 0.6rem);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  box-shadow: var(--shadow-inner-highlight);
}

/* Barra de progreso de pasos */
.wizard-progress-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.step-indicator-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.step-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-card-shell);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-navy);
  transition: all var(--transition-fast);
}

.step-indicator-item.active {
  color: var(--color-navy);
}

.step-indicator-item.active .step-badge {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(232, 185, 49, 0.25);
}

.step-indicator-item.completed .step-badge {
  background: var(--color-teal);
  border-color: var(--color-teal);
  color: #ffffff;
}

/* Contenedor de paso */
.wizard-step-pane {
  display: none;
  animation: fadeInSlide 320ms var(--ease-spring) forwards;
}

.wizard-step-pane.is-active {
  display: block;
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-header {
  margin-bottom: 1.75rem;
}

.step-title {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -0.025em;
  margin-bottom: 0.35rem;
}

.step-hint {
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

/* Campos de entrada y controles */
.form-group {
  margin-bottom: 1.75rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.form-label-desc {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.input-slider-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 600px) {
  .input-slider-row {
    flex-direction: row;
    align-items: center;
  }
}

.numeric-input-wrapper {
  position: relative;
  min-width: 140px;
}

.form-input {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 2.8rem 0.7rem 1rem;
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--color-navy);
  background: var(--color-card-shell);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-input);
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus {
  border-color: var(--color-navy);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(22, 35, 68, 0.1);
}

.input-unit-tag {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-muted);
  pointer-events: none;
}

/* Sliders estilizados */
.range-slider {
  flex: 1;
  appearance: none;
  -webkit-appearance: none;
  height: 8px;
  border-radius: 4px;
  background: var(--color-border);
  outline: none;
  cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-gold);
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Chips de selección rápida */
.preset-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.preset-chip {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--color-card-shell);
  border: 1px solid var(--color-border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-navy);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.preset-chip:hover {
  background: var(--color-gold-light);
  border-color: var(--color-gold);
}

/* Opciones de Radio / Toggle Cards */
.radio-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
}

.radio-pill-card {
  border: 1.5px solid var(--color-border);
  background: var(--color-card-shell);
  border-radius: var(--radius-input);
  padding: 0.9rem 1rem;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
  user-select: none;
}

.radio-pill-card:hover {
  border-color: var(--color-gold);
  background: #ffffff;
}

.radio-pill-card.is-active {
  border-color: var(--color-navy);
  background: var(--color-navy);
  color: #ffffff;
  box-shadow: 0 4px 12px -2px rgba(22, 35, 68, 0.2);
}

.radio-pill-title {
  font-size: 0.92rem;
  font-weight: 700;
}

.radio-pill-desc {
  font-size: 0.72rem;
  opacity: 0.8;
  margin-top: 0.2rem;
}

/* Preguntas de Sí / No (Licencia, Crédito) */
.switch-buttons-row {
  display: flex;
  gap: 0.75rem;
}

.switch-choice-btn {
  flex: 1;
  min-height: 48px;
  padding: 0.75rem;
  border-radius: var(--radius-input);
  border: 1.5px solid var(--color-border);
  background: var(--color-card-shell);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.switch-choice-btn:hover {
  border-color: var(--color-navy);
}

.switch-choice-btn.is-active {
  background: var(--color-navy);
  color: #ffffff;
  border-color: var(--color-navy);
}

/* Botones de navegación del Wizard */
.wizard-footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

/* ==========================================================================
   PANTALLA DE RESULTADOS
   ========================================================================== */

.result-container {
  display: none;
  animation: fadeInSlide 450ms var(--ease-spring) forwards;
}

.result-container.is-visible {
  display: block;
}

.result-hero-box {
  background: linear-gradient(145deg, #121c36 0%, #1a274c 100%);
  color: #ffffff;
  border-radius: var(--radius-outer);
  padding: clamp(1.75rem, 4vw, 3rem);
  margin-bottom: 1.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px -6px rgba(18, 28, 54, 0.28);
}

.result-hero-box::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(232, 185, 49, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.result-folio-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.result-obratitle {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.result-measures {
  font-size: 1rem;
  color: #94a3b8;
  margin-bottom: 2rem;
}

/* Grid de Rangos de Inversión */
.cost-ranges-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

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

.cost-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-core);
  padding: 1.25rem 1rem;
}

.cost-card.featured-total {
  background: linear-gradient(135deg, rgba(232, 185, 49, 0.16) 0%, rgba(20, 163, 139, 0.12) 100%);
  border-color: rgba(232, 185, 49, 0.4);
}

.cost-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 0.35rem;
}

.cost-card.featured-total .cost-label {
  color: var(--color-gold);
  font-weight: 700;
}

.cost-value {
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.cost-card.featured-total .cost-value {
  color: #ffffff;
}

.cost-note {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 0.35rem;
}

/* Call to Action WhatsApp Gigante */
.result-cta-banner {
  background: #ffffff;
  border-radius: var(--radius-core);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: stretch;
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .result-cta-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.result-cta-text h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 0.25rem;
}

.result-cta-text p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.btn-whatsapp-big {
  min-height: 56px;
  font-size: 1.05rem;
  padding: 0.85rem 1.75rem;
}

/* Aviso Condicional de Planos (Sección 6) */
.planos-notice-card {
  display: none;
  background: linear-gradient(135deg, var(--color-gold-light) 0%, #ffffff 100%);
  border: 1.5px solid var(--color-gold);
  border-radius: var(--radius-core);
  padding: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  box-shadow: 0 4px 16px -2px rgba(232, 185, 49, 0.2);
}

.planos-notice-card.is-visible {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 680px) {
  .planos-notice-card.is-visible {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.planos-notice-info {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.planos-notice-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-gold);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.planos-notice-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 0.25rem;
}

.planos-notice-desc {
  font-size: 0.85rem;
  color: var(--color-text-body);
}

/* Tabla de Materiales con Etiqueta Patrocinador */
.materials-breakdown-card {
  margin-bottom: 2.5rem;
}

.materials-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.materials-meta-info {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.sponsor-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--color-teal-light);
  color: var(--color-teal);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
}

.materials-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.material-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  background: var(--color-card-shell);
  border-radius: 14px;
  border: 1px solid var(--color-border);
  gap: 1rem;
}

.material-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.material-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-navy);
}

.material-detail {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.material-qty-block {
  text-align: right;
  flex-shrink: 0;
}

.material-quantity {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-navy);
}

.material-unit {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.disclaimer-banner {
  background: #f1f5f9;
  border-left: 4px solid var(--color-gold);
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 1.5rem;
}

/* ==========================================================================
   CÓMO FUNCIONA (4 Pasos Fluidos con Línea Conectora)
   ========================================================================== */

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

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

.step-card {
  position: relative;
  text-align: left;
}

.step-number-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
  display: inline-block;
}

.step-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.step-card-desc {
  font-size: 0.88rem;
  color: var(--color-text-body);
  line-height: 1.45;
}

/* ==========================================================================
   ALBAÑILES DE LA RED (Sin Teléfonos · Regla Estricta)
   ========================================================================== */

.albaniles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.albanil-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.albanil-thumb {
  width: 100%;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: var(--color-card-shell);
  position: relative;
}

.albanil-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.albanil-card:hover .albanil-thumb img {
  transform: scale(1.05);
}

.albanil-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(18, 28, 54, 0.85);
  backdrop-filter: blur(8px);
  color: var(--color-gold);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
}

.albanil-alias {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 0.2rem;
}

.albanil-zone {
  font-size: 0.82rem;
  color: var(--color-teal);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.albanil-specialty {
  font-size: 0.85rem;
  color: var(--color-text-body);
  margin-bottom: 1rem;
}

.albanil-quote-box {
  background: var(--color-card-shell);
  border-radius: 12px;
  padding: 0.85rem;
  font-size: 0.8rem;
  color: var(--color-text-body);
  font-style: italic;
  margin-top: auto;
  border-left: 3px solid var(--color-teal);
}

.albanil-quote-author {
  font-style: normal;
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--color-navy);
  margin-top: 0.4rem;
  display: block;
}

/* ==========================================================================
   SERVICIOS DE MENTE DE OBRA
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.service-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-price-tag {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-block: 0.75rem;
}

.service-price-sub {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.service-features-list {
  list-style: none;
  margin-block: 1rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-features-list li {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-body);
}

.service-features-list li svg {
  color: var(--color-teal);
  flex-shrink: 0;
}

.service-action-wrap {
  margin-top: auto;
}

/* ==========================================================================
   SECCIÓN ¿ERES ALBAÑIL?
   ========================================================================== */

.albanil-cta-box {
  background: linear-gradient(135deg, #162344 0%, #1e2a4a 100%);
  border-radius: var(--radius-outer);
  padding: clamp(2rem, 5vw, 3.5rem);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px -6px rgba(22, 35, 68, 0.25);
}

@media (min-width: 768px) {
  .albanil-cta-box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.albanil-cta-box h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.albanil-cta-box p {
  font-size: 1rem;
  color: #cbd5e1;
  max-width: 520px;
}

/* ==========================================================================
   STICKY BAR INFERIOR EN MÓVIL
   ========================================================================== */

.mobile-sticky-bar {
  display: none;
}

@media (max-width: 640px) {
  .mobile-sticky-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--color-border);
    padding: 0.75rem 1rem;
    z-index: 50;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
    transform: translateY(100%);
    transition: transform var(--transition-normal);
  }

  .mobile-sticky-bar.is-visible {
    transform: translateY(0);
  }

  .mobile-sticky-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }
}

/* ==========================================================================
   FOOTER (Conforme a Sección 2 y 8)
   ========================================================================== */

.site-footer {
  background: var(--color-navy);
  color: #94a3b8;
  padding-block: 3.5rem 2rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.footer-brand {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.footer-copy {
  font-size: 0.88rem;
  color: #cbd5e1;
}

.footer-nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
}

.footer-nav-links a {
  color: #cbd5e1;
  transition: color var(--transition-fast);
}

.footer-nav-links a:hover {
  color: var(--color-gold);
}

.footer-disclaimer-small {
  font-size: 0.75rem;
  color: #64748b;
  max-width: 600px;
}

/* ==========================================================================
   MODAL DE AVISO DE PRIVACIDAD
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 36, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  background: #ffffff;
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  border-radius: var(--radius-outer);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.modal-backdrop.is-open .modal-window {
  transform: scale(1);
}

.modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-navy);
}

.modal-close-btn {
  background: var(--color-card-shell);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
  font-size: 1.2rem;
  transition: background var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--color-border);
}

.modal-body-scroll {
  padding: 1.75rem;
  overflow-y: auto;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-body);
}

.modal-body-scroll h1, .modal-body-scroll h2, .modal-body-scroll h3 {
  color: var(--color-navy);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.modal-body-scroll p, .modal-body-scroll ul {
  margin-bottom: 1rem;
}

/* Toast de Notificaciones */
.toast-msg {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--color-navy);
  color: #ffffff;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 120;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
  pointer-events: none;
}

.toast-msg.is-visible {
  transform: translateY(0);
  opacity: 1;
}


/* ==========================================================================
   ALERTA DE SEGURIDAD ESTRUCTURAL: CLAROS ATÍPICOS (>= 5.0 m)
   ========================================================================== */
.claro-atipico-box {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-outer);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--color-navy);
  margin-bottom: 2rem;
  box-shadow: 0 12px 32px -4px rgba(232, 185, 49, 0.28);
  position: relative;
  overflow: hidden;
  animation: fadeInSlide 400ms var(--ease-spring) forwards;
}

.claro-atipico-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.claro-atipico-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--color-gold);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(232, 185, 49, 0.4);
}

.claro-atipico-title {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 800;
  color: #92400e;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.claro-atipico-desc {
  font-size: 0.96rem;
  line-height: 1.6;
  color: #78350f;
  margin-bottom: 1.75rem;
  max-width: 720px;
}

.claro-atipico-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}


/* ==========================================================================
   SIMULADOR 3D DE BARDA — ESTUDIO INTERACTIVO DE ALTA USABILIDAD
   ========================================================================== */

.modal-simulador-3d {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 36, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 150;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--ease-spring);
}

.modal-simulador-3d.is-open {
  opacity: 1;
  pointer-events: auto;
}

.simulador-3d-wrapper {
  background: #ffffff;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (min-width: 900px) {
  .simulador-3d-wrapper {
    margin: 1rem auto;
    width: calc(100% - 2rem);
    height: calc(100% - 2rem);
    max-width: 1320px;
    border-radius: var(--radius-outer);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(22, 35, 68, 0.15);
  }
}

/* Barra superior del simulador */
.simulador-topbar {
  background: var(--color-navy);
  color: #ffffff;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.simulador-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.simulador-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

.simulador-close-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.simulador-close-btn:hover {
  background: #ffffff;
  color: var(--color-navy);
}

/* Cuerpo dividido en 2 columnas */
.simulador-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

@media (min-width: 960px) {
  .simulador-body {
    flex-direction: row;
  }
}

/* Columna Izquierda: Visor 3D */
.simulador-viewport-col {
  flex: 1.25;
  background: #ebf1f6;
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 960px) {
  .simulador-viewport-col {
    min-height: auto;
  }
}

.viewport-canvas-container {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  outline: none;
}

/* HUD Flotante sobre el 3D */
.viewport-floating-hud {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  pointer-events: none;
  z-index: 10;
}

.hud-pill {
  background: rgba(18, 28, 54, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.hud-pill.highlight {
  background: var(--color-gold);
  color: var(--color-navy);
  border-color: #ffffff;
}

/* Controles de cámara rápidos */
.viewport-camera-toolbar {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 0.35rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  z-index: 10;
}

.cam-btn {
  background: transparent;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-navy);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cam-btn:hover, .cam-btn.is-active {
  background: var(--color-navy);
  color: #ffffff;
}

.viewport-tip-banner {
  position: absolute;
  bottom: 3.8rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.8);
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-pill);
  pointer-events: none;
  white-space: nowrap;
}

/* Columna Derecha: Panel de Controles Táctiles */
.simulador-controls-col {
  flex: 1;
  background: #ffffff;
  overflow-y: auto;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-left: 1px solid var(--color-border);
}

/* Tarjetas de Selección de Block (#5, #6, #8) */
.block-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.block-card-radio {
  border: 2px solid var(--color-border);
  background: var(--color-card-shell);
  border-radius: 14px;
  padding: 0.75rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.block-card-radio:hover {
  border-color: var(--color-gold);
  background: #ffffff;
  transform: translateY(-2px);
}

.block-card-radio.is-selected {
  border-color: var(--color-navy);
  background: #ffffff;
  box-shadow: 0 6px 18px -3px rgba(22, 35, 68, 0.15);
  border-width: 2.5px;
}

.block-card-badge {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-pill);
  background: rgba(22, 35, 68, 0.08);
  color: var(--color-navy);
  margin-bottom: 0.35rem;
}

.block-card-radio.is-selected .block-card-badge {
  background: var(--color-gold);
  color: var(--color-navy);
}

.block-number-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.1;
}

.block-dims-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-top: 0.2rem;
}

.block-card-usage {
  font-size: 0.68rem;
  color: var(--color-text-body);
  margin-top: 0.35rem;
  line-height: 1.25;
}

/* Stepper táctil con botones [ - ] y [ + ] grandes */
.stepper-touch-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stepper-btn {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--color-card-shell);
  border: 1.5px solid var(--color-border);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
  flex-shrink: 0;
}

.stepper-btn:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-navy);
}

.stepper-btn:active {
  transform: scale(0.92);
}

.stepper-input-box {
  flex: 1;
  position: relative;
}

.stepper-input-box .form-input {
  text-align: center;
  padding-inline: 1rem 2.5rem;
  font-size: 1.35rem;
  min-height: 52px;
}

/* Caja de estimación instantánea del 3D */
.simulador-estimate-card {
  background: linear-gradient(135deg, #121c36 0%, #1a274c 100%);
  color: #ffffff;
  border-radius: var(--radius-core);
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 10px 24px -4px rgba(18, 28, 54, 0.25);
}

.estimate-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.estimate-card-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.estimate-total-amount {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.estimate-row-detail {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #cbd5e1;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.estimate-row-detail strong {
  color: #ffffff;
  font-family: var(--font-mono);
}


/* ==========================================================================
   CALLOUT CON ANIMACIÓN: PLANOS REQUERIDOS (LICENCIA / CRÉDITO EN CUARTO)
   ========================================================================== */

@keyframes calloutPopIn {
  0% {
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
  }
  60% {
    transform: translateY(2px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes calloutPulseAlert {
  0% {
    box-shadow: 0 0 0 0 rgba(232, 185, 49, 0.7);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(232, 185, 49, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(232, 185, 49, 0);
  }
}

.callout-planos-alerta {
  background: linear-gradient(135deg, #fffdf2 0%, #fef3c7 100%);
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-core);
  padding: 1.35rem 1.5rem;
  margin-top: 1.25rem;
  box-shadow: 0 10px 25px -3px rgba(232, 185, 49, 0.3);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: calloutPopIn 420ms var(--ease-spring) forwards, calloutPulseAlert 1.2s ease-out 1;
}

.callout-planos-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.callout-planos-badge {
  background: var(--color-gold);
  color: var(--color-navy);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
}

.callout-planos-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #92400e;
  margin: 0;
}

.callout-planos-desc {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #78350f;
  margin: 0;
}

.callout-planos-btn {
  align-self: flex-start;
  margin-top: 0.35rem;
}

/* ==========================================================================
   VISOR 3D EMBEBIDO DIRECTO EN BARDA (Obligatorio · Cero Fricción)
   ========================================================================== */

.barda-header-row {
  margin-bottom: 1.25rem;
}

.barda-interactive-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: stretch;
}

@media (max-width: 980px) {
  .barda-interactive-grid {
    grid-template-columns: 1fr;
  }
}

.barda-viewport-box {
  width: 100%;
  min-height: 380px;
  height: clamp(380px, 46vw, 540px);
  border-radius: var(--radius-core);
  overflow: hidden;
  background: #ebf1f6;
  position: relative;
  border: 1.5px solid var(--color-border);
  box-shadow: 0 8px 24px -4px rgba(22, 35, 68, 0.08);
}

.barda-canvas-wrapper {
  width: 100%;
  height: 100%;
  outline: none;
  cursor: grab;
}

.barda-canvas-wrapper:active {
  cursor: grabbing;
}

.barda-controls-box {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  background: var(--color-card-shell);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-core);
  padding: 1.35rem 1.4rem;
}

/* ==========================================================================
   CUANTIFICACIÓN DE MATERIALES EN VIVO (Barda y Obra)
   ========================================================================== */

.live-cuantificacion-box {
  background: var(--color-card-shell);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-core);
  padding: 1.35rem 1.5rem;
  margin-top: 1.5rem;
}

.live-cuantificacion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.live-cuantificacion-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-navy);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.live-materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  margin-block: 1rem;
}

.live-material-card {
  background: #ffffff;
  border: 1.5px solid var(--color-border);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  position: relative;
}

.live-material-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(232, 185, 49, 0.15);
}

.live-mat-icon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.2rem;
}

.live-mat-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.live-mat-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-pill);
  background: rgba(22, 35, 68, 0.06);
  color: var(--color-navy);
}

.live-mat-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.25;
}

.live-mat-desc {
  font-size: 0.73rem;
  color: var(--color-text-muted);
  line-height: 1.35;
}

.live-mat-qty-row {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--color-border);
}

.live-mat-qty {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1;
}

.live-mat-unit {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.live-mat-subtotal {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-teal);
  font-family: var(--font-mono);
  margin-top: 0.15rem;
}

/* ==========================================================================
   TOTAL EN VIVO, ALERTAS DE REVISIÓN Y DESGLOSE POR CONCEPTO
   ========================================================================== */

.live-total-pill {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: linear-gradient(135deg, #121c36 0%, #1a274c 100%);
  color: #ffffff;
  border-radius: var(--radius-core);
  padding: 1rem 1.25rem;
  text-decoration: none;
}

.live-total-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.live-total-amount {
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 800;
}

.live-total-link {
  font-size: 0.8rem;
  color: var(--color-gold);
  font-weight: 700;
}

.alertas-revision:empty {
  display: none;
}

.alertas-revision {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.alerta-revision {
  border-radius: var(--radius-core);
  padding: 1.15rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0;
  animation: calloutPopIn 420ms var(--ease-spring) forwards, calloutPulseAlert 1.2s ease-out 1;
}

.alerta-aviso {
  background: linear-gradient(135deg, #fffdf2 0%, #fef3c7 100%);
  border: 2px solid var(--color-gold);
}

.alerta-critico {
  background: linear-gradient(135deg, #fff5f5 0%, #fee2e2 100%);
  border: 2px solid #dc2626;
}

.alerta-revision-titulo {
  font-weight: 800;
  font-size: 1.02rem;
  color: #92400e;
}

.alerta-critico .alerta-revision-titulo {
  color: #991b1b;
}

.alerta-revision-texto {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #57340c;
  margin: 0;
}

.alerta-critico .alerta-revision-texto {
  color: #7f1d1d;
}

.alerta-revision-btn {
  align-self: flex-start;
}

.alerta-revision-nota {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin: 0;
}

.desglose-card {
  background: var(--color-card-core);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-core);
  margin-top: 1.25rem;
  overflow: hidden;
  scroll-margin-top: 90px;
}

.desglose-card:empty {
  display: none;
}

.desglose-header {
  background: linear-gradient(135deg, #121c36 0%, #1a274c 100%);
  color: #ffffff;
  padding: 1.25rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.desglose-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.desglose-total {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin-block: 0.2rem;
}

.desglose-medidas {
  font-size: 0.82rem;
  color: #cbd5e1;
}

.desglose-badge {
  flex-shrink: 0;
  background: rgba(232, 185, 49, 0.25);
  color: var(--color-gold);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
}

.desglose-seccion {
  padding: 1rem 1.4rem 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.desglose-seccion-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.desglose-seccion-header h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--color-navy);
}

.desglose-seccion-header strong {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--color-navy);
  white-space: nowrap;
}

.desglose-fila {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding-block: 0.55rem;
  border-top: 1px dashed var(--color-border);
}

.desglose-concepto {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.desglose-nombre {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-main);
}

.desglose-cantidad {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.desglose-monto {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--color-text-body);
  white-space: nowrap;
  text-align: right;
}

.desglose-nota {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin: 0.5rem 1.4rem 0.75rem;
}

.desglose-seccion .desglose-nota {
  margin-inline: 0;
}

.desglose-seccion-mo {
  background: var(--color-teal-light);
}

.desglose-cta-mo {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-block: 0.75rem 0.9rem;
  border-top: 1px dashed rgba(20, 163, 139, 0.35);
}

.desglose-cta-mo p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-body);
}

.desglose-cta-mo .btn {
  width: 100%;
}

.desglose-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.4rem 0;
}

.desglose-folio {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.desglose-copiar {
  min-height: 38px;
  padding: 0.35rem 0.9rem;
  font-size: 0.82rem;
}

@media (max-width: 480px) {
  .desglose-fila {
    flex-direction: column;
    gap: 0.15rem;
  }
  .desglose-monto {
    text-align: left;
  }
  .desglose-header {
    flex-direction: column;
  }
}

/* Dibujo que explica qué es el claro */
.claro-diagrama {
  margin: 0 0 1rem;
  max-width: 260px;
}

.claro-diagrama svg {
  width: 100%;
  height: auto;
  display: block;
}

.claro-muro { fill: var(--color-navy-muted); }
.claro-area { fill: var(--color-gold-light); }
.claro-flecha { stroke: #b45309; stroke-width: 2.5; }
.claro-punta { fill: #b45309; }
.claro-flecha-largo { stroke: var(--color-text-muted); stroke-width: 1.5; stroke-dasharray: 4 3; }
.claro-texto { font: 700 12px var(--font-display); fill: #92400e; }
.claro-texto-largo { font: 600 11px var(--font-display); fill: var(--color-text-muted); }

.desglose-uso {
  font-size: 0.76rem;
  color: var(--color-text-muted);
  line-height: 1.35;
}

.desglose-colonia {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.desglose-colonia em {
  font-weight: 500;
  font-style: normal;
  color: var(--color-text-muted);
}

.desglose-colonia .form-input {
  min-height: 46px;
  background: #ffffff;
}

.desglose-glosario {
  margin: 0.75rem 1.4rem 0;
  font-size: 0.84rem;
}

.desglose-glosario summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--color-navy);
  padding-block: 0.4rem;
}

.desglose-glosario dl {
  margin: 0.4rem 0 0;
}

.desglose-glosario dt {
  font-weight: 700;
  color: var(--color-text-main);
  margin-top: 0.5rem;
}

.desglose-glosario dd {
  margin: 0.1rem 0 0;
  color: var(--color-text-body);
}

/* Formulario corto de registro de albañil */
.registro-albanil-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-block: 1rem;
}

.registro-albanil-form .form-label {
  margin-top: 0.5rem;
}

.reg-hint {
  font-size: 0.8rem;
  font-weight: 500;
  font-style: normal;
  color: var(--color-text-muted);
}

.reg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.reg-chip {
  min-height: 44px;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border);
  background: #ffffff;
  font: 600 0.85rem var(--font-display);
  color: var(--color-text-body);
  cursor: pointer;
}

.reg-chip.is-active {
  background: var(--color-teal-light);
  border-color: var(--color-teal);
  color: var(--color-teal-hover);
}

/* Los campos de texto (nombre, colonia) no usan la tipografía de números */
.registro-albanil-form input[type="text"],
.desglose-colonia .form-input {
  font-family: var(--font-display);
  font-size: 1rem;
}

/* Tarifario de servicios */
.service-entregable {
  font-size: 0.82rem;
  color: var(--color-text-body);
  margin: 0.25rem 0 0.75rem;
}

.service-destacado .bezel-core {
  outline: 2px solid var(--color-gold);
}

.service-tag {
  align-self: flex-start;
  background: var(--color-gold);
  color: var(--color-navy);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.5rem;
}

.alerta-revision-precio {
  font-size: 0.82rem;
  color: var(--color-text-body);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
  margin: 0;
}

/* Notas técnicas del desglose */
.desglose-notas {
  padding: 1rem 1.4rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-paper-tint);
}

.desglose-notas h4 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  color: var(--color-navy);
}

.desglose-notas ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.84rem;
  color: var(--color-text-body);
}

.desglose-notas li + li {
  margin-top: 0.3rem;
}

/* Protege tu inversión: servicios comparados contra el total de la obra */
.desglose-proteccion {
  padding: 1rem 1.4rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-gold-light);
}

.desglose-proteccion h4 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  color: #92400e;
}

.desglose-proteccion ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: var(--color-text-body);
}

.desglose-proteccion li + li {
  margin-top: 0.3rem;
}

.desglose-proteccion a {
  color: var(--color-navy);
  font-weight: 700;
}

.desglose-acciones {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Hoja de impresión / PDF del presupuesto */
#hoja-impresion {
  display: none;
}

@media print {
  @page {
    margin: 14mm;
  }

  body > *:not(#hoja-impresion) {
    display: none !important;
  }

  body {
    background: #ffffff !important;
  }

  #hoja-impresion {
    display: block;
    color: #0f172a;
    font-size: 11pt;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .impresion-header {
    display: flex;
    gap: 12px;
    align-items: center;
    border-bottom: 2px solid #162344;
    padding-bottom: 8px;
    margin-bottom: 12px;
  }

  .impresion-header img {
    width: 44px;
    height: 44px;
  }

  .impresion-header div {
    display: flex;
    flex-direction: column;
    font-size: 9.5pt;
  }

  .impresion-header strong {
    font-size: 13pt;
  }

  .impresion-alertas {
    border: 1.5px solid #e8b931;
    background: #fffdf2;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 12px;
  }

  .impresion-alertas h4 {
    margin: 0 0 4px;
  }

  .impresion-alertas ul {
    margin: 0;
    padding-left: 16px;
    font-size: 9.5pt;
  }

  #hoja-impresion .desglose-card {
    margin: 0;
    border: 1px solid #cbd5e1;
    box-shadow: none;
  }

  #hoja-impresion .desglose-fila,
  #hoja-impresion section {
    break-inside: avoid;
  }

  .impresion-pie {
    font-size: 8.5pt;
    color: #64748b;
    margin-top: 10px;
  }
}

/* Comparativo con plano vs. sin plano */
.comparativo-plano {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 720px) {
  .comparativo-plano {
    grid-template-columns: 1fr;
  }
}

.comparativo-col {
  border-radius: var(--radius-core);
  padding: 1.35rem 1.4rem;
  border: 1.5px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.comparativo-col h3 {
  margin: 0;
  font-size: 1.1rem;
}

.comparativo-col ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text-body);
}

.comparativo-col li + li {
  margin-top: 0.35rem;
}

.comparativo-sin {
  background: var(--color-card-shell);
}

.comparativo-con {
  background: var(--color-teal-light);
  border-color: var(--color-teal);
}

.comparativo-con .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* Visor 3D de cuarto, cochera y losa */
.obra-viewport-box {
  height: clamp(300px, 38vw, 440px);
  min-height: 300px;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   COMODIDAD EN CELULAR Y PC (sin fricción)
   ========================================================================== */

/* Medidas con botones − / + y slider abajo */
.medida-control {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.medida-control .range-slider {
  width: 100%;
}

.contadores-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stepper-input-sin-unidad .form-input {
  padding-inline: 0.5rem;
}

@media (max-width: 420px) {
  .contadores-grid .stepper-btn {
    width: 44px;
    height: 48px;
  }

  .contadores-grid {
    gap: 0.6rem;
  }
}

/* Que ningún bloque de la barda empuje la página hacia los lados */
.barda-interactive-grid > *,
.barda-controls-box > * {
  min-width: 0;
}

.stepper-input-box {
  min-width: 0;
}

/* Toques cómodos: mínimo 44 px de alto */
.preset-chip,
.nav-btn-link,
.desglose-copiar,
.reg-chip {
  min-height: 44px;
}

.preset-chip {
  font-size: 0.85rem;
  padding: 0.45rem 0.95rem;
}

.nav-btn-link {
  display: inline-flex;
  align-items: center;
}

.modal-close-btn {
  width: 44px;
  height: 44px;
}

.desglose-glosario summary {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.desglose-proteccion a {
  display: inline-block;
  padding-block: 0.3rem;
}

.desglose-proteccion-extra {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

/* Textos legibles en pantallas chicas */
.block-card-badge,
.block-card-usage {
  font-size: 0.75rem;
}

/* Sin zoom accidental por doble toque ni destello gris en Android/iPhone */
a,
button,
input,
summary,
.block-card-radio,
.radio-pill-card,
.preset-chip {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* En pantallas táctiles el "hover" se queda pegado después de tocar: se desactiva */
@media (hover: none) {
  .stepper-btn:hover {
    background: var(--color-card-shell);
    border-color: var(--color-border);
  }

  .block-card-radio:hover {
    transform: none;
    background: var(--color-card-shell);
    border-color: var(--color-border);
  }

  .block-card-radio.is-selected:hover {
    background: #ffffff;
    border-color: var(--color-navy);
  }

  .preset-chip:hover {
    background: var(--color-card-shell);
    border-color: var(--color-border);
  }
}

/* La barra fija de abajo no debe tapar el final de la página */
@media (max-width: 640px) {
  body {
    padding-bottom: 92px;
  }
}

/* Las 3 tarjetas de block caben en un celular de 360 px */
.block-choice-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.block-card-radio {
  min-width: 0;
}

.block-card-badge {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .block-card-radio {
    padding: 0.65rem 0.3rem;
  }

  .block-card-badge {
    font-size: 0.66rem;
    padding-inline: 0.35rem;
  }
}

.desglose-proteccion a {
  padding-block: 0.6rem;
}

/* Puertas y ventanas: uno debajo del otro en celular para que el número se vea completo */
@media (max-width: 520px) {
  .contadores-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contadores-grid .stepper-btn {
    width: 52px;
    height: 52px;
  }
}

.stepper-input-sin-unidad .form-input {
  text-align: center;
  min-height: 52px;
  font-size: 1.35rem;
}

/* En PC el campo de medida no se estira de lado a lado */
@media (min-width: 720px) {
  .medida-control {
    max-width: 520px;
  }

  .contadores-grid {
    max-width: 640px;
  }
}

/* Foco visible al navegar con teclado */
.block-card-radio:focus-visible,
.radio-pill-card:focus-visible,
.stepper-btn:focus-visible,
.preset-chip:focus-visible,
.switch-choice-btn:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 2px;
}

/* Al elegir obra, la calculadora no queda escondida debajo del menú flotante */
#seccion-calculadora,
#seccion-servicios,
#seccion-con-plano {
  scroll-margin-top: 96px;
}

/* ==========================================================================
   NUEVA ESTRUCTURA: MENÚ DE 3 CAMINOS, INICIO COMPACTO, CALCULADORA EN 2 COLUMNAS
   ========================================================================== */

/* Menú: Calcular · Servicios · Soy albañil */
.nav-btn-albanil {
  background: var(--color-gold);
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-btn-albanil:hover {
  background: var(--color-gold-hover);
}

@media (max-width: 640px) {
  .nav-wrapper {
    top: 0.5rem;
    padding-inline: 0.5rem;
  }

  .nav-island {
    padding: 0.4rem 0.5rem 0.4rem 0.6rem;
    gap: 0.4rem;
  }

  .brand-text-block {
    display: none;
  }

  .brand-logo-img {
    width: 34px;
    height: 34px;
  }

  .nav-actions {
    gap: 0.3rem;
  }

  .nav-btn-link {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    gap: 0.25rem;
  }
}

@media (max-width: 400px) {
  .nav-btn-link > span[aria-hidden="true"] {
    display: none;
  }
}

/* Inicio compacto */
.hero-section {
  padding-top: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.hero-headline {
  margin-bottom: 0.75rem;
}

.hero-description {
  margin-bottom: 1.5rem;
}

.obra-selector-grid {
  margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
  .obra-selector-grid {
    gap: 0.65rem;
  }

  .obra-choice-card {
    padding: 0.35rem;
    border-radius: 14px;
  }

  .obra-card-media {
    border-radius: 10px;
    aspect-ratio: 4 / 3;
  }

  .obra-badge {
    font-size: 0.58rem;
    padding: 0.18rem 0.45rem;
    top: 0.35rem;
    left: 0.35rem;
  }

  .obra-card-body {
    padding: 0.55rem 0.3rem 0.35rem;
  }

  .obra-choice-title {
    font-size: 1.12rem;
    margin-bottom: 0.12rem;
  }

  .obra-choice-subtitle {
    font-size: 0.72rem;
    margin-bottom: 0.45rem;
    line-height: 1.25;
  }

  .obra-card-cta {
    font-size: 0.7rem;
    gap: 0.25rem;
  }

  .obra-card-cta svg {
    width: 12px;
    height: 12px;
  }

  .obra-choice-inner {
    padding: 0.8rem 0.75rem;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
  }

  .obra-icon-box {
    width: 44px;
    height: 44px;
    margin-bottom: 0;
    flex-shrink: 0;
    border-radius: 12px;
  }

  .obra-icon-box img {
    width: 30px;
    height: 30px;
  }
}

.hero-pasos {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1rem;
  margin: 0 auto 1.25rem;
  padding: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-body);
}

.hero-pasos li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-pasos li span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #ffffff;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-accesos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  max-width: 640px;
  margin-inline: auto;
}

@media (max-width: 420px) {
  .hero-accesos {
    grid-template-columns: 1fr;
  }
}

.hero-acceso {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-align: left;
  min-height: 56px;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-core);
  border: 1.5px solid var(--color-border);
  background: var(--color-card-core);
  font-family: inherit;
  font-size: 1.4rem;
  color: var(--color-navy);
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.hero-acceso:hover {
  border-color: var(--color-gold);
  background: var(--color-gold-light);
}

.hero-acceso strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.2;
}

.hero-acceso small {
  display: block;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Pestañas de obra pegadas arriba de la calculadora */
.obra-switcher {
  position: sticky;
  top: 76px;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.35rem;
  margin-bottom: 1.25rem;
  background: rgba(241, 245, 249, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
}

.obra-switch {
  min-height: 44px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-navy);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-inline: 0.25rem;
}

.obra-switch.is-selected {
  background: var(--color-navy);
  color: #ffffff;
}

@media (max-width: 640px) {
  .obra-switcher {
    top: 62px;
  }

  .obra-switch {
    font-size: 0.78rem;
  }
}

/* PC: medidas a la izquierda y desglose fijo a la derecha */
@media (min-width: 1100px) {
  .calc-section.container {
    max-width: 1320px;
  }

  .calc-wizard-box {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
  }

  #pantalla-resultado.is-visible {
    position: sticky;
    top: 92px;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: calc(var(--radius-outer) - 0.6rem);
    scrollbar-width: thin;
  }

  #pantalla-resultado .alertas-revision,
  #pantalla-resultado .desglose-card {
    margin-top: 0;
  }

  #pantalla-resultado .alertas-revision:not(:empty) {
    margin-bottom: 0.75rem;
  }

  .barda-interactive-grid {
    grid-template-columns: 1fr;
  }
}

/* Celular: barra inferior con el total en vivo */
.sticky-resumen {
  min-width: 0;
}

.sticky-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.sticky-total {
  font-family: var(--font-mono);
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--color-navy);
  white-space: nowrap;
}

#btn-sticky-accion {
  min-height: 44px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Servicios: pestañas + tarjetas deslizables en celular */
.plano-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  max-width: 820px;
  margin: 0 auto 1.5rem;
}

.plano-mini-col {
  border-radius: var(--radius-core);
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--color-text-body);
  border: 1.5px solid var(--color-border);
}

.plano-mini-col strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--color-navy);
}

.plano-mini-sin {
  background: var(--color-card-shell);
}

.plano-mini-con {
  background: var(--color-teal-light);
  border-color: var(--color-teal);
}

@media (max-width: 520px) {
  .plano-mini {
    grid-template-columns: 1fr;
  }
}

.servicios-tabs {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.2rem;
}

.servicios-tabs::-webkit-scrollbar {
  display: none;
}

.servicio-tab {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border);
  background: var(--color-card-core);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-navy);
  cursor: pointer;
}

.servicio-tab.is-active {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: #ffffff;
}

.servicios-carrusel > [hidden] {
  display: none !important;
}

.servicios-desliza {
  display: none;
}

@media (max-width: 767px) {
  .servicios-tabs {
    justify-content: flex-start;
  }

  .servicios-carrusel {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
    margin-inline: -1.25rem;
    padding-inline: 1.25rem;
    scroll-padding-inline: 1.25rem;
    scrollbar-width: none;
  }

  .servicios-carrusel::-webkit-scrollbar {
    display: none;
  }

  .servicios-carrusel > .bezel-card {
    flex: 0 0 86%;
    scroll-snap-align: start;
  }

  .servicios-desliza {
    display: block;
    text-align: right;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
  }
}

/* Deslinde y registro de albañil */
.desglose-cta-mo .desglose-deslinde {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.desglose-deslinde a {
  color: var(--color-navy);
  font-weight: 700;
  text-decoration: underline;
}

.reg-gratis {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-teal-hover);
  margin: 0.75rem 0;
}

.reg-acepto {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--color-text-body);
  background: var(--color-card-shell);
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  cursor: pointer;
}

.reg-acepto input {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 0.1rem;
  accent-color: var(--color-teal);
}

.reg-acepto a {
  color: var(--color-navy);
  font-weight: 700;
  text-decoration: underline;
}

#btn-enviar-registro-wa:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

/* La ventana de términos se abre encima de la de registro */
#modal-terminos {
  z-index: 210;
}

/* Enlaces del pie: se acomodan en varias líneas en celular */
.footer-nav-links {
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.25rem;
}

.footer-nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* En la columna derecha de PC el total cabe en una línea */
@media (min-width: 1100px) {
  #pantalla-resultado .desglose-total {
    font-size: 1.45rem;
    white-space: nowrap;
  }
}

/* Registro: oficios agrupados */
.reg-grupo {
  flex-basis: 100%;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

.reg-forma .reg-chip.is-active {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: #ffffff;
}

/* ==========================================================================
   IMAGEN PROFESIONAL: TIPOGRAFÍA TÉCNICA, MENOS RUIDO Y MENTE DE OBRA AL FRENTE
   ========================================================================== */

/* Títulos con letra condensada tipo plano de obra; texto en IBM Plex */
h1,
h2,
h3,
h4,
.hero-headline,
.section-title,
.step-title,
.obra-choice-title,
.modal-title,
.albanil-cta-box h3,
.mdo-card-titulo,
.desglose-seccion-header h4,
.comparativo-col h3,
.step-card-title {
  font-family: var(--font-heading);
  letter-spacing: 0;
}

.hero-headline {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.hero-headline .highlight-word::after {
  height: 22%;
  bottom: 4%;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
}

.step-title {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 700;
  line-height: 1.1;
}

.obra-choice-title {
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
}

.step-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.eyebrow-pill {
  letter-spacing: 0.06em;
}

/* Números del cálculo en IBM Plex Mono (más sobrio que la anterior) */
.desglose-total,
.sticky-total,
.service-price-tag {
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
}

.service-price-tag {
  font-weight: 700;
}

/* Desglose más limpio: menos líneas grises y textos secundarios más discretos */
.desglose-uso {
  font-size: 0.74rem;
  color: #94a3b8;
}

.desglose-fila {
  padding-block: 0.6rem;
}

.desglose-seccion-header h4 {
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ---------- Tarjeta "Mente de Obra te recomienda" ---------- */
#recomendacion-mdo:empty {
  display: none;
}

.mdo-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, #0b1224 0%, #162344 60%, #1e2a4a 100%);
  color: #ffffff;
  border-radius: var(--radius-core);
  padding: 1.25rem 1.3rem 1.1rem;
  margin-bottom: 0.9rem;
  box-shadow: 0 14px 30px -10px rgba(11, 18, 36, 0.55);
  border-left: 5px solid var(--color-gold);
}

/* Cuadrícula sutil de plano al fondo */
.mdo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

.mdo-card > * {
  position: relative;
}

.mdo-card-marca {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gold);
  margin-bottom: 0.55rem;
}

.mdo-card-marca img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #ffffff;
  padding: 2px;
}

.mdo-card-titulo {
  font-size: clamp(1.35rem, 2.6vw, 1.65rem);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.45rem;
  color: #ffffff;
}

.mdo-card-texto {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #cbd5e1;
  margin: 0 0 0.95rem;
}

.mdo-card-botones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

@media (max-width: 480px) {
  .mdo-card-botones {
    grid-template-columns: 1fr;
  }
}

.mdo-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 58px;
  padding: 0.6rem 0.9rem;
  border-radius: 14px;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.mdo-btn:active {
  transform: scale(0.98);
}

.mdo-btn-texto {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
}

.mdo-btn-precio {
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 0.15rem;
}

.mdo-btn-principal {
  background: var(--color-gold);
  color: var(--color-navy-950);
  box-shadow: 0 8px 18px -6px rgba(232, 185, 49, 0.65);
}

.mdo-btn-principal:hover {
  background: var(--color-gold-hover);
}

.mdo-btn-secundario {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
}

.mdo-btn-secundario:hover {
  background: rgba(255, 255, 255, 0.12);
}

.mdo-card-pie {
  font-size: 0.76rem;
  color: #94a3b8;
  margin: 0.75rem 0 0;
}

/* ---------- Barra inferior en celular: total (toca para ver desglose) + botón Mente de Obra ---------- */
.sticky-resumen {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.15;
}

.sticky-ver {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-teal-hover);
}

.btn-mdo {
  background: var(--color-gold);
  color: var(--color-navy-950);
  font-family: var(--font-heading);
  font-size: 1.05rem !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 14px -6px rgba(232, 185, 49, 0.7);
}

/* ---------- Aviso para ferreterías (arriba de todo, se puede cerrar) ---------- */
.aviso-ferreterias {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-gold);
  color: var(--color-navy);
  font-size: 1rem;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  border-bottom: 3px solid var(--color-navy);
}

.aviso-ferreterias a {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 0.9rem;
  color: inherit;
  text-decoration: none;
  text-align: center;
  padding-block: 0.25rem;
}

.aviso-texto {
  font-weight: 500;
}

.aviso-ferreterias strong {
  font-weight: 800;
}

.aviso-ferreterias a span {
  background: var(--color-navy);
  color: var(--color-gold);
  font-weight: 700;
  white-space: nowrap;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}

.aviso-cerrar {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--color-navy);
  font-size: 1.3rem;
  cursor: pointer;
}

@media (max-width: 520px) {
  .aviso-ferreterias {
    font-size: 0.88rem;
  }
}

/* Enlaces dentro de texto con área de toque cómoda */
.desglose-deslinde a,
.desglose-nota a {
  display: inline-block;
  padding-block: 0.55rem;
}

.desglose-nota a {
  color: var(--color-navy);
  font-weight: 700;
  text-decoration: underline;
}

.aviso-largo {
  font-style: normal;
}

@media (max-width: 640px) {
  .aviso-largo {
    display: none;
  }
}

/* Botón de la barra inferior en dos líneas para que no se encime con el total */
#btn-sticky-texto {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.05;
}

.sticky-cta-texto {
  white-space: nowrap;
}

.sticky-cta-precio {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: none;
}

.mobile-sticky-inner {
  gap: 0.5rem;
}

.sticky-total {
  font-size: 0.88rem;
}

#btn-sticky-accion {
  padding: 0.4rem 0.9rem;
  max-width: 52%;
}

/* ==========================================================================
   PÁGINA PROPIA DE CÁLCULO (calcular.html): UNA PREGUNTA A LA VEZ
   ========================================================================== */

/* Las tarjetas de obra del inicio ahora son enlaces */
a.obra-choice-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.pagina-calcular {
  background: var(--color-paper);
}

.calc-pagina {
  max-width: 760px;
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

.calc-cabecera {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}

.calc-cabecera-icono {
  width: 52px;
  height: 52px;
  padding: 8px;
  border-radius: 14px;
  background: var(--color-gold);
  flex-shrink: 0;
}

.calc-titulo {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 2.6rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  color: var(--color-navy);
  margin: 0;
}

.calc-subtitulo {
  margin: 0.2rem 0 0;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

/* Progreso */
.progreso {
  list-style: none;
  display: flex;
  gap: 0.35rem;
  padding: 0;
  margin: 0 0 1rem;
  scroll-margin-top: 90px;
}

.progreso li {
  flex: 1;
  min-width: 0;
}

.progreso button {
  width: 100%;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.4rem 0.2rem 0.3rem;
  border: none;
  border-top: 4px solid var(--color-border);
  background: transparent;
  font-family: inherit;
  color: var(--color-text-muted);
  cursor: pointer;
}

.progreso button:disabled {
  cursor: default;
}

.progreso-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--color-card-shell);
  border: 1.5px solid var(--color-border);
}

.progreso-txt {
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.progreso li.is-hecho button {
  border-top-color: var(--color-teal);
  color: var(--color-teal-hover);
}

.progreso li.is-hecho .progreso-num {
  background: var(--color-teal);
  border-color: var(--color-teal);
  color: #ffffff;
}

.progreso li.is-actual button {
  border-top-color: var(--color-gold);
  color: var(--color-navy);
}

.progreso li.is-actual .progreso-num {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: #ffffff;
}

/* Visor 3D a todo lo ancho, con estado vacío */
.visor {
  position: relative;
  height: clamp(220px, 42vw, 360px);
  border-radius: var(--radius-core);
  overflow: hidden;
  background: #ebf1f6;
  border: 1.5px solid var(--color-border);
  margin-bottom: 1rem;
}

.viendo-resultado .visor {
  height: clamp(200px, 34vw, 300px);
}

.visor-vacio {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  padding: 1.5rem;
  color: var(--color-text-muted);
  background:
    linear-gradient(rgba(22, 35, 68, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 35, 68, 0.05) 1px, transparent 1px),
    #eef3f8;
  background-size: 24px 24px;
}

.visor-vacio[hidden] {
  display: none;
}

.visor-vacio span {
  font-size: 2.2rem;
}

.visor-vacio p {
  margin: 0;
  max-width: 300px;
  font-size: 0.9rem;
  font-weight: 600;
}

.visor .viewport-camera-toolbar[hidden],
.visor .viewport-floating-hud[hidden],
.visor .hud-pill[hidden] {
  display: none;
}

/* Tarjeta de la pregunta */
.paso-card {
  background: var(--color-card-core);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-core);
  padding: clamp(1.25rem, 4vw, 2rem);
  box-shadow: 0 10px 28px -12px rgba(22, 35, 68, 0.18);
}

.paso-card[hidden] {
  display: none;
}

.paso-contador {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.paso-pregunta {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--color-navy);
  margin: 0.25rem 0 0.5rem;
}

.paso-ayuda {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text-body);
  margin: 0 0 1.25rem;
}

.campos-medidas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 540px) {
  .campos-medidas {
    grid-template-columns: 1fr;
  }
}

.campo-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.4rem;
}

.campo .form-input {
  font-size: 1.4rem;
  text-align: center;
  min-height: 56px;
  font-family: var(--font-mono);
}

.campo .form-input::placeholder {
  color: #b6c0cc;
  font-weight: 500;
}

.campo-grande .form-input {
  font-size: 1.8rem;
  min-height: 64px;
}

.campo-grande .stepper-btn {
  width: 60px;
  height: 64px;
}

.campo-error {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #b91c1c;
}

.campo-error[hidden] {
  display: none;
}

.sugerencias {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.sugerencias-titulo {
  flex-basis: 100%;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

/* Opciones grandes (block, tipo de techo…) */
.opciones-grid {
  display: grid;
  gap: 0.7rem;
}

.opcion-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: left;
  min-height: 64px;
  padding: 0.9rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-card-shell);
  font-family: inherit;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.opcion-card strong {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-navy);
  text-transform: uppercase;
}

.opcion-card span {
  font-size: 0.88rem;
  color: var(--color-text-body);
}

.opcion-card .opcion-rec {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-navy);
  background: var(--color-gold);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
}

.opcion-card.is-selected {
  border-color: var(--color-navy);
  background: #ffffff;
  box-shadow: 0 6px 16px -6px rgba(22, 35, 68, 0.25);
}

@media (hover: hover) {
  .opcion-card:hover {
    border-color: var(--color-gold);
    background: #ffffff;
  }
}

/* Botones Atrás / Siguiente */
.paso-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--color-border);
}

.paso-nav .btn {
  min-height: 52px;
}

.paso-siguiente {
  flex: 1;
  max-width: 320px;
  justify-content: center;
  font-size: 1rem;
}

.paso-siguiente:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

#alertas-paso:not(:empty) {
  margin-top: 1.25rem;
}

/* ---------- Resultado ---------- */
.resultado[hidden] {
  display: none;
}

.resultado {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.resultado-resumen {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.resultado-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.resultado-obra {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-navy);
  margin: 0;
  line-height: 1.05;
}

.resultado-medidas {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  color: var(--color-text-body);
}

.resultado-editar {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

.total-card {
  background: var(--color-card-core);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-core);
  padding: 1.2rem 1.3rem;
}

.total-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.total-monto {
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0.15rem 0 0.6rem;
}

.total-partes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  font-size: 0.88rem;
  color: var(--color-text-body);
}

.total-partes strong {
  font-family: var(--font-mono);
  color: var(--color-navy);
}

.total-detalle {
  margin: 0.6rem 0 0;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.total-card-bloqueo {
  border-color: #dc2626;
  background: #fff5f5;
}

.total-card-bloqueo .total-monto {
  font-family: var(--font-heading);
  color: #991b1b;
}

/* ==========================================================================
   ALCANCE TRANSPARENTE DEL PRESUPUESTO (Heurística de prevención y claridad)
   ========================================================================== */

.alcance-card {
  background: var(--color-card-core, #ffffff);
  border: 1.5px solid var(--color-border, #e2e8f0);
  border-radius: var(--radius-core, 18px);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
}

.alcance-header {
  margin-bottom: 1.15rem;
}

.alcance-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--color-paper-tint, #eef2f6);
  color: var(--color-navy, #162344);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
  border: 1px solid var(--color-border-subtle, rgba(22, 35, 68, 0.08));
}

.alcance-titulo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-navy, #162344);
  margin: 0 0 0.35rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.15;
}

.alcance-sub {
  font-size: 0.84rem;
  color: var(--color-text-body, #334155);
  margin: 0;
  line-height: 1.4;
}

.alcance-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .alcance-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

.alcance-col {
  background: #f8fafc;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--color-border, #e2e8f0);
}

.alcance-col.alcance-si {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.alcance-col.alcance-no {
  background: #fef2f2;
  border-color: #fecaca;
}

.alcance-col-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.alcance-icon-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

.alcance-icon-si {
  background: #16a34a;
  color: #ffffff;
}

.alcance-icon-no {
  background: #dc2626;
  color: #ffffff;
}

.alcance-col-head strong {
  display: block;
  font-size: 0.88rem;
  color: var(--color-navy, #162344);
  line-height: 1.2;
}

.alcance-col-head small {
  display: block;
  font-size: 0.72rem;
  color: var(--color-text-muted, #64748b);
}

.alcance-lista {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.alcance-lista li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--color-text-body, #334155);
}

.alcance-check {
  color: #16a34a;
  font-weight: 800;
  flex-shrink: 0;
}

.alcance-cross {
  color: #dc2626;
  font-weight: 800;
  flex-shrink: 0;
}

/* Callout persuasivo integrado en el alcance */
.alcance-callout {
  background: linear-gradient(135deg, #121c36 0%, #162344 100%);
  color: #ffffff;
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(232, 185, 49, 0.35);
  box-shadow: 0 8px 24px -4px rgba(18, 28, 54, 0.25);
  position: relative;
  overflow: hidden;
}

.alcance-callout::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold, #e8b931), var(--color-teal, #14a38b));
}

.alcance-callout-header {
  margin-bottom: 0.5rem;
}

.alcance-callout-sello {
  display: inline-block;
  background: rgba(232, 185, 49, 0.2);
  color: var(--color-gold, #e8b931);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 185, 49, 0.35);
  margin-bottom: 0.4rem;
}

.alcance-callout-titulo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.alcance-callout-texto {
  font-size: 0.84rem;
  color: #cbd5e1;
  line-height: 1.45;
  margin: 0.5rem 0 0.65rem;
}

.alcance-callout-accion {
  font-size: 0.82rem;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.07);
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border-left: 3px solid var(--color-gold, #e8b931);
  margin: 0 0 0.85rem;
  line-height: 1.35;
}

.alcance-callout-accion strong {
  color: var(--color-gold, #e8b931);
}

.alcance-callout-btn {
  width: 100%;
  justify-content: center;
  background: var(--color-gold, #e8b931);
  color: var(--color-navy-950, #0b1224);
  font-weight: 800;
  border: none;
}

.alcance-callout-btn:hover {
  background: var(--color-gold-hover, #d4a524);
  color: var(--color-navy-950, #0b1224);
  transform: translateY(-2px);
}

.resultado #alcance-obra {
  margin-bottom: 0;
}

.resultado #recomendacion-mdo .mdo-card {
  margin-bottom: 0;
}

.resultado .alertas-revision {
  margin-top: 0;
}

.resultado .desglose-card {
  margin-top: 0;
}

.desglose-card[hidden] {
  display: none;
}

/* Desglose: lo esencial a la vista, el detalle se abre con un toque */
.desglose-cta-mo {
  padding: 1.2rem 1.3rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-teal-light);
}

.desglose-cta-titulo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-navy);
  margin: 0;
}

.desglose-plegable {
  padding: 0;
  border-bottom: 1px solid var(--color-border);
}

.desglose-plegable > summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  min-height: 56px;
  padding: 0.75rem 1.3rem;
  cursor: pointer;
}

.desglose-plegable > summary::-webkit-details-marker {
  display: none;
}

.desglose-plegable > summary::after {
  content: "▾";
  color: var(--color-text-muted);
  font-size: 1rem;
  transition: transform var(--transition-fast);
}

.desglose-plegable[open] > summary::after {
  transform: rotate(180deg);
}

.desglose-plegable-titulo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-navy);
  flex: 1;
}

.desglose-plegable-titulo small {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: none;
  color: var(--color-text-muted);
  margin-left: 0.35rem;
}

.desglose-plegable > summary strong {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--color-navy);
  white-space: nowrap;
}

.desglose-plegable > .desglose-fila,
.desglose-plegable > .desglose-nota,
.desglose-plegable > dl,
.desglose-plegable > ul {
  margin-inline: 1.3rem;
}

.desglose-plegable > .desglose-nota {
  margin-bottom: 1rem;
}

.desglose-plegable.desglose-glosario {
  margin: 0;
  font-size: 0.88rem;
}

.desglose-plegable > dl {
  padding-bottom: 1rem;
}

.desglose-notas-lista {
  padding-left: 1.1rem;
  padding-bottom: 1rem;
  font-size: 0.86rem;
  color: var(--color-text-body);
}

.desglose-notas-lista li + li {
  margin-top: 0.35rem;
}

.desglose-nota-final {
  margin-bottom: 1rem;
}

@media (max-width: 480px) {
  .desglose-plegable > summary {
    flex-wrap: wrap;
  }

  .desglose-plegable > summary strong {
    order: 3;
    flex-basis: 100%;
  }
}

/* Barra inferior solo cuando ya hay presupuesto */
.pagina-calcular:not(.viendo-resultado) .mobile-sticky-bar {
  display: none;
}

@media (max-width: 640px) {
  .pagina-calcular.viendo-resultado .mobile-sticky-bar {
    transform: translateY(0);
  }

  .pagina-calcular:not(.viendo-resultado) {
    padding-bottom: 0;
  }
}

.site-footer-mini {
  padding-block: 1.5rem;
}

.site-footer-mini .footer-inner {
  gap: 0.5rem;
}

/* Impresión: resumen del total en el PDF */
@media print {
  .impresion-resumen {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 12px;
    font-size: 10.5pt;
  }
}

/* Mientras no hay medidas, el visor es una franja chica para que la pregunta se vea primero */
.visor.is-vacio {
  height: 84px;
}

.visor.is-vacio .visor-vacio {
  flex-direction: row;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  text-align: left;
}

.visor.is-vacio .visor-vacio span {
  font-size: 1.6rem;
}

.campo .form-input::placeholder {
  font-size: 1.05rem;
}

.campo .stepper-input-box .form-input {
  padding-inline: 0.5rem 1.9rem;
}

.campo .input-unit-tag {
  right: 0.7rem;
}

@media (max-width: 400px) {
  .campo .stepper-btn,
  .campo-grande .stepper-btn {
    width: 50px;
  }
}

/* PC: pregunta a la izquierda y 3D a la derecha mientras se contesta; el presupuesto va en una columna */
@media (min-width: 960px) {
  .pagina-calcular:not(.viendo-resultado) .calc-pagina {
    max-width: 1140px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    column-gap: 1.5rem;
    align-items: start;
  }

  .pagina-calcular:not(.viendo-resultado) .calc-cabecera,
  .pagina-calcular:not(.viendo-resultado) .progreso,
  .pagina-calcular:not(.viendo-resultado) .resultado {
    grid-column: 1 / -1;
  }

  .pagina-calcular:not(.viendo-resultado) .paso-card {
    grid-column: 1;
    grid-row: 3;
  }

  .pagina-calcular:not(.viendo-resultado) .visor {
    grid-column: 2;
    grid-row: 3;
    height: 480px;
    margin-bottom: 0;
    position: sticky;
    top: 96px;
  }

  .pagina-calcular:not(.viendo-resultado) .visor.is-vacio {
    height: 480px;
  }

  .pagina-calcular:not(.viendo-resultado) .visor.is-vacio .visor-vacio {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   ALERTAS PERSUASIVAS: QUÉ PUEDE PASAR · LO QUE ARRIESGAS · CÓMO EVITARLO
   ========================================================================== */
.alerta-revision {
  gap: 0.75rem;
  padding: 1.1rem 1.15rem 1.15rem;
  border-width: 2px;
  border-left-width: 6px;
}

.alerta-revision-titulo {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.alerta-revision-sello {
  align-self: flex-start;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--color-gold);
  color: var(--color-navy-950);
}

.alerta-critico .alerta-revision-sello {
  background: #dc2626;
  color: #ffffff;
}

.alerta-revision-titulo-texto {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
  color: #78350f;
}

.alerta-critico .alerta-revision-titulo-texto {
  color: #7f1d1d;
}

.alerta-puntos {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.alerta-puntos > div {
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  background: rgba(255, 255, 255, 0.7);
}

.alerta-puntos dt {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 0.15rem;
}

.alerta-puntos dd {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--color-text-main);
}

/* "Lo que arriesgas" resalta: es el dinero del cliente */
.alerta-punto-perdida {
  background: #ffffff !important;
  border: 1.5px solid rgba(220, 38, 38, 0.35);
}

.alerta-punto-perdida dt {
  color: #b91c1c;
}

.alerta-punto-perdida dd {
  font-weight: 600;
}

/* "Cómo evitarlo" resalta en verde: es la salida */
.alerta-punto-solucion {
  background: var(--color-teal-light) !important;
}

.alerta-punto-solucion dt {
  color: var(--color-teal-hover);
}

.alerta-revision-btn.btn-mdo {
  align-self: stretch;
  justify-content: center;
  min-height: 52px;
  text-align: center;
}

@media (min-width: 640px) {
  .alerta-revision-btn.btn-mdo {
    align-self: flex-start;
    padding-inline: 1.5rem;
  }
}
