/* ==========================================================================
   LUMIER JOYERÍA — VERSIÓN FUNNEL MÓVIL ALTA CONVERSIÓN (INSPIRADO EN DIVIA)
   ========================================================================== */

:root {
  --bg: #F5F4F0;
  --surface: #FFFFFF;
  --surface-2: #FAF9F6;
  --surface-hover: #F2EFE9;
  
  --ink: #1C1917;
  --ink-2: #383330;
  --muted: #78716C;
  --line: #E7E5E0;
  --line-strong: #D1CEC7;

  /* Lumier Brand Colors */
  --burgundy: #730D22;
  --burgundy-dark: #560A1A;
  --burgundy-soft: #F9EBEF;
  --burgundy-glow: rgba(115, 13, 34, 0.15);

  --gold: #C5A059;
  --gold-deep: #96742E;
  --gold-soft: #F7F2E7;
  --gold-glow: rgba(197, 160, 89, 0.22);

  --green: #1FA855;
  --green-dark: #127A3E;
  --green-soft: #E7F6EE;

  --yape: #6C2BD9;
  --yape-soft: #EDE3FB;

  --danger: #C0392B;
  --danger-soft: #FDE8E8;

  --radius-xl: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-full: 9999px;

  --shadow: 0 2px 4px rgba(28, 25, 23, 0.04), 0 12px 32px -12px rgba(28, 25, 23, 0.15);
  --card-shadow: 0 2px 8px -2px rgba(28, 25, 23, 0.06), 0 1px 3px rgba(28, 25, 23, 0.04);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --tap: 48px;
}

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

[hidden] {
  display: none !important;
}

html, body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* En desktop simula una app móvil estilizada */
.app-container {
  max-width: 500px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--surface);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

@media (min-width: 540px) {
  body {
    padding: 24px 0;
  }
  .app-container {
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: calc(100vh - 48px);
    border: 1px solid var(--line);
  }
}

/* ==========================================================================
   HEADER DE PASOS & PROGRESO
   ========================================================================== */
header.step-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 12px 18px 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.bar-top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
}

.back-btn {
  all: unset;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: all 0.15s ease;
}

.back-btn:hover {
  background: var(--line);
  transform: translateX(-1px);
}

.brand-wrap {
  display: flex;
  flex-direction: column;
}

.brand-logo {
  height: 26px;
  width: auto;
  display: block;
}

.brand-wrap small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-top: 1px;
}

.step-indicator {
  margin-left: auto;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--burgundy);
  background: var(--burgundy-soft);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.progress-track {
  height: 5px;
  background: var(--line);
  border-radius: var(--radius-full);
  margin-top: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--burgundy), var(--gold));
  border-radius: var(--radius-full);
  width: 20%;
  transition: width 0.35s var(--ease);
}

/* ==========================================================================
   MAIN STEPS VIEWPORT
   ========================================================================== */
main.funnel-main {
  padding: 18px 16px 36px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.step-pane {
  display: none;
}

.step-pane.is-active {
  display: block;
  animation: enterStep 0.32s var(--ease);
}

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

.step-header {
  margin-bottom: 16px;
  text-align: center;
}

.step-eyebrow {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-deep);
  margin-bottom: 4px;
  display: block;
}

h1.step-title, h2.step-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}

p.step-subtitle {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.45;
}

/* ==========================================================================
   PASO 1: GALERÍA DE PRODUCTO & OFERTA
   ========================================================================== */
.gallery-wrapper {
  margin: 0 auto 12px;
  max-width: 320px;
}

.gallery-stage {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  position: relative;
  box-shadow: var(--card-shadow);
}

.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease;
}

.gallery-tag-float {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--burgundy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 10px rgba(115, 13, 34, 0.35);
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}

.gallery-thumb-item {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--line);
  background: var(--surface-2);
  object-fit: cover;
  cursor: pointer;
  transition: all 0.18s ease;
  flex: none;
}

.gallery-thumb-item:hover {
  border-color: var(--line-strong);
}

.gallery-thumb-item.is-active {
  border-color: var(--burgundy);
  box-shadow: 0 0 0 2px var(--burgundy-soft);
}

.gal-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gal-thumb-btn.is-active {
  border-color: var(--burgundy);
  transform: scale(1.05);
  box-shadow: 0 3px 8px var(--burgundy-glow);
}

/* Tarjeta Oferta Especial con Cuenta Regresiva */
.offer-banner {
  background: linear-gradient(135deg, #FFF9EB 0%, #F5E8C9 100%);
  border: 1.5px solid #E7D095;
  border-radius: var(--radius);
  padding: 16px 14px;
  text-align: center;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(197, 160, 89, 0.14);
}

.offer-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  background: var(--burgundy);
  border-radius: var(--radius-full);
  padding: 4px 14px;
  margin-bottom: 8px;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
}

.price-main {
  font-family: 'Fraunces', serif;
  font-size: 38px;
  font-weight: 700;
  color: var(--burgundy);
  line-height: 1;
}

.price-old {
  font-size: 19px;
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 500;
}

.offer-validity {
  font-size: 13px;
  color: #7A5C1E;
  margin-top: 5px;
  font-weight: 600;
}

/* Caja de Inclusiones Oficiales */
.inclusions-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 20px;
  box-shadow: var(--card-shadow);
}

.inclusions-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.inclusions-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inc-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.35;
}

.inc-icon {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 2px;
}

.inc-icon svg {
  width: 11px;
  height: 11px;
  stroke-width: 3;
}

.inc-item strong {
  color: var(--ink);
  font-weight: 700;
}

.inc-item small {
  color: var(--muted);
  font-size: 13px;
}

/* Filtros de Acabado */
.finish-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.finish-filters::-webkit-scrollbar {
  display: none;
}

.finish-tab-btn {
  all: unset;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
  transition: all 0.15s ease;
}

.finish-tab-btn.is-active {
  background: var(--burgundy);
  color: #fff;
  border-color: var(--burgundy);
}

/* Grid de Modelos de Anillos */
.models-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
  margin-bottom: 22px;
}

.model-card {
  all: unset;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  position: relative;
  transition: all 0.18s ease;
  box-shadow: var(--card-shadow);
}

.model-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.model-card.is-selected {
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px var(--burgundy-soft), 0 8px 20px -8px var(--burgundy-glow);
  background: #FFFDFC;
}

.model-thumb-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  position: relative;
}

.model-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.model-badge-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--burgundy);
  color: #fff;
  display: none;
  place-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.model-card.is-selected .model-badge-check {
  display: grid;
}

.model-info {
  margin-top: 8px;
  padding: 0 2px;
}

.model-name {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
  color: var(--ink);
}

.model-finish-pill {
  font-size: 11.5px;
  color: var(--gold-deep);
  font-weight: 600;
  margin-top: 2px;
  display: block;
}

.model-price-tag {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 5px;
}

.model-now {
  font-size: 16px;
  font-weight: 800;
  color: var(--burgundy);
}

.model-old {
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: line-through;
}

/* ==========================================================================
   PASO 2: GRABADO PERSONALIZADO & EXTRAS
   ========================================================================== */
.custom-engrave-card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: var(--card-shadow);
}

.engrave-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.toggle-info strong {
  display: block;
  font-size: 16px;
  color: var(--ink);
}

.toggle-info p {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 2px;
}

/* Switch UI */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
  flex: none;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--line-strong);
  transition: 0.25s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .slider {
  background-color: var(--burgundy);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.engrave-form-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  display: none;
}

.engrave-form-panel.is-open {
  display: block;
}

.input-engrave {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 17px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}

.input-engrave:focus {
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px var(--burgundy-soft);
}

.char-counter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 6px;
}

.emoji-chips-row {
  display: flex;
  gap: 7px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.emoji-chip-btn {
  all: unset;
  cursor: pointer;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: all 0.15s ease;
}

.emoji-chip-btn:hover {
  background: var(--line);
}

/* Simulador Visual de Grabado Láser */
.engrave-preview-box {
  margin-top: 14px;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  text-align: center;
  box-shadow: inset 0 1px 3px rgba(255,255,255,0.6), inset 0 -8px 16px rgba(0,0,0,0.12);
  transition: all 0.3s ease;
}

.engrave-preview-box.is-gold {
  background: radial-gradient(120% 130% at 50% 0%, #FAF0D0, #E4CA7C 45%, #B3923E);
  border: 1px solid #C4A54F;
}

.engrave-preview-box.is-silver {
  background: radial-gradient(120% 130% at 50% 0%, #F5F6F8, #D8DCE0 45%, #A8ACB2);
  border: 1px solid #B4B9BF;
}

.engrave-tag-label {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
  color: #5C4612;
}

.engrave-preview-box.is-silver .engrave-tag-label {
  color: #43484F;
}

.engrave-live-text {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.15;
  margin-top: 4px;
  min-height: 28px;
  color: #423207;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
  word-break: break-word;
}

.engrave-preview-box.is-silver .engrave-live-text {
  color: #2F3338;
}

.engrave-live-text.is-empty {
  font-style: italic;
  font-size: 15px;
  opacity: 0.65;
}

/* Extras Cards */
.extra-card {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 11px;
  position: relative;
  transition: all 0.18s ease;
  box-shadow: var(--card-shadow);
}

.extra-card.is-selected {
  border-color: var(--burgundy);
  background: #FFFDFC;
  box-shadow: 0 0 0 2.5px var(--burgundy-soft);
}

.extra-media {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  flex: none;
}

.extra-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.extra-content {
  flex: 1;
  min-width: 0;
}

.extra-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.extra-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.extra-price-pill {
  font-size: 13px;
  font-weight: 800;
  color: var(--burgundy);
  background: var(--burgundy-soft);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.extra-desc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.35;
}

/* ==========================================================================
   PASO 3: ZONA DE ENTREGA & FORMULARIO
   ========================================================================== */
.zone-selector-wrapper {
  margin-bottom: 18px;
}

.zone-selector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin-bottom: 8px;
}

.zone-card-btn {
  all: unset;
  cursor: pointer;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px 8px 14px;
  text-align: center;
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 106px;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.zone-card-btn:hover {
  border-color: #cbd5e1;
}

.zone-card-btn.is-selected {
  border: 1.8px solid #b48833;
  background: #FCF6E9;
  box-shadow: 0 2px 8px rgba(180, 136, 51, 0.12);
}

.zone-icon-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b48833;
  margin-bottom: 8px;
  height: 24px;
}

.zone-card-btn .zone-title {
  font-size: 15px;
  font-weight: 700;
  color: #1c1917;
  line-height: 1.2;
}

.zone-card-btn .zone-sub {
  font-size: 12.5px;
  color: #888888;
  margin-top: 4px;
  line-height: 1.2;
}

.zone-card-btn .zone-envio-label {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 5px;
  line-height: 1;
}

.zone-card-btn .zone-shalom-logo {
  height: 17px;
  max-width: 85px;
  width: auto;
  object-fit: contain;
  margin-top: 4px;
  display: block;
}

.zone-pills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.zone-time-pill {
  background: #EDFBF3;
  border: 1px solid #A7F3D0;
  border-radius: 9999px;
  padding: 7px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: #047857;
  text-align: center;
}

.zone-time-pill svg {
  flex: none;
  stroke: #047857;
}

/* Campos del formulario */
.form-field {
  margin-bottom: 15px;
}

.form-label {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-label small {
  color: var(--muted);
  font-weight: 400;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  min-height: var(--tap);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2378716C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px var(--burgundy-soft);
}

.field-hint {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.field-error {
  font-size: 13px;
  color: var(--danger);
  margin-top: 4px;
  display: none;
}

.field-error.is-visible {
  display: block;
}

/* Courier Trust Banner */
.courier-info-banner {
  background: #FFF7ED;
  border: 1px solid #FFEDD5;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.courier-logo-img {
  height: 22px;
  width: auto;
}

.courier-info-text {
  font-size: 13px;
  color: #9A3412;
  line-height: 1.35;
}

/* ==========================================================================
   PASO 4: DATOS DE CONTACTO
   ========================================================================== */
.contact-trust-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 18px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.contact-trust-card svg {
  color: var(--green);
  flex: none;
}

.contact-trust-card p {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.4;
}

/* ==========================================================================
   PASO 5: RESUMEN, CUENTA REGRESIVA & CIERRE YAPE/WHATSAPP
   ========================================================================= */
.order-summary-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--card-shadow);
  margin-bottom: 18px;
}

.summary-item-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.summary-thumb {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--line);
  flex: none;
}

.summary-item-details {
  flex: 1;
  min-width: 0;
}

.summary-model-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}

.summary-subtag {
  font-size: 13px;
  color: var(--muted);
  margin-top: 1px;
}

.summary-rows-group {
  padding: 8px 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13.5px;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row .label {
  color: var(--muted);
  font-size: 13px;
  flex: none;
  width: 125px;
}

.summary-row .val {
  font-weight: 600;
  color: var(--ink);
  font-size: 13px;
  text-align: right;
  flex: 1;
  line-height: 1.35;
}

.summary-extras-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.summary-extra-item {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  text-align: right;
}

.summary-extra-item .extra-cost {
  color: var(--burgundy);
  font-weight: 700;
  white-space: nowrap;
}

.summary-row .val-free {
  color: var(--green-dark);
  font-weight: 800;
  font-size: 12.5px;
}

.summary-total-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #FFFDFC;
  border-top: 1.5px solid var(--burgundy);
}

.summary-total-bar .total-title {
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
}

.summary-total-bar .total-amount {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--burgundy);
}

/* Temporizador de Cuenta Regresiva */
.countdown-box {
  background: #FDF4F5;
  border: 1.5px solid #F5CCD2;
  border-radius: var(--radius);
  padding: 12px 14px;
  text-align: center;
  margin-bottom: 18px;
}

.countdown-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 6px;
}

.countdown-digits-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.cd-unit {
  background: #fff;
  border: 1px solid #F5CCD2;
  border-radius: 8px;
  padding: 6px 10px;
  min-width: 50px;
  box-shadow: 0 2px 4px rgba(115, 13, 34, 0.08);
}

.cd-val {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--burgundy);
  line-height: 1;
}

.cd-lbl {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.cd-sep {
  font-weight: 700;
  font-size: 18px;
  color: var(--burgundy);
}

/* Tarjeta Asesora Personal */
.advisor-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 16px;
  box-shadow: var(--card-shadow);
}

.advisor-avatar-wrap {
  position: relative;
  flex: none;
}

.advisor-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-soft);
}

.advisor-online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 13px;
  height: 13px;
  background: #25D366;
  border: 2px solid #fff;
  border-radius: 50%;
}

.advisor-text strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
}

.advisor-text p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.35;
  margin-top: 2px;
}

/* Métodos de Reserva */
.reserve-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.reserve-btn {
  all: unset;
  cursor: pointer;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.18s ease;
  position: relative;
  box-shadow: var(--card-shadow);
}

.reserve-btn:hover {
  border-color: var(--line-strong);
}

.reserve-btn.is-selected {
  border-color: var(--yape);
  background: var(--yape-soft);
  box-shadow: 0 0 0 2.5px rgba(108, 43, 217, 0.15);
}

.reserve-badge-tag {
  position: absolute;
  top: -8px;
  background: var(--yape);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.reserve-main-text {
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.25;
}

.reserve-sub-text {
  font-size: 12px;
  color: var(--muted);
}

/* Yape Details Card */
.yape-box-card {
  background: #F8F5FD;
  border: 1.5px solid #E4D8F5;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 18px;
}

.yape-box-header {
  background: var(--yape);
  color: #fff;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.yape-box-body {
  padding: 14px;
  text-align: center;
}

.yape-num-display {
  background: #fff;
  border: 1px dashed #CBB4EE;
  border-radius: var(--radius-sm);
  padding: 10px;
  margin-bottom: 8px;
}

.yape-phone-big {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--yape);
  letter-spacing: 0.02em;
}

.yape-holder-name {
  font-size: 12.5px;
  color: var(--muted);
}

.btn-copy-yape {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--yape);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  transition: all 0.15s ease;
}

.btn-copy-yape:hover {
  background: #5A1FC0;
}

/* ==========================================================================
   BOTONES DE ACCIÓN PRINCIPALES (CTA FLUIDO)
   ========================================================================== */
.btn-cta-primary {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  background: var(--burgundy);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 17px;
  margin-top: 14px;
  transition: all 0.18s ease;
  box-shadow: 0 8px 22px -8px var(--burgundy-glow);
  text-align: center;
}

.btn-cta-primary:hover {
  background: var(--burgundy-dark);
  transform: translateY(-1px);
}

.btn-cta-primary:active {
  transform: translateY(1px);
}

.btn-cta-primary[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-cta-whatsapp {
  background: #1FA855 !important;
  box-shadow: 0 8px 22px -8px rgba(31, 168, 85, 0.4) !important;
}

.btn-cta-whatsapp:hover {
  background: #178943 !important;
}

.btn-cta-yape {
  background: var(--yape) !important;
  box-shadow: 0 8px 22px -8px rgba(108, 43, 217, 0.4) !important;
}

.cta-guarantee-note {
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* ==========================================================================
   TOASTS SOCIALES DE COMPRA FLOTANTE
   ========================================================================== */
.social-toast-popup {
  position: fixed;
  bottom: 24px;
  left: 16px;
  right: 16px;
  max-width: 350px;
  margin: 0 auto;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: all 0.35s var(--ease);
}

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

.toast-ring-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
  border: 1px solid var(--line);
}

.toast-text {
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink);
}

.toast-text small {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}

/* ==========================================================================
   EXIT-INTENT POPUP (MODAL SALIDA)
   ========================================================================== */
.exit-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(28, 25, 23, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  place-items: center;
  padding: 18px;
}

.exit-modal-overlay.is-active {
  display: grid;
  animation: enterStep 0.25s var(--ease);
}

.exit-modal-card {
  background: #fff;
  border-radius: var(--radius-xl);
  max-width: 390px;
  width: 100%;
  padding: 24px 20px;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.exit-modal-close {
  all: unset;
  cursor: pointer;
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 22px;
  color: var(--muted);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.exit-emoji {
  font-size: 38px;
  margin-bottom: 6px;
}

.exit-title {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 8px;
}

.exit-desc {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.45;
  margin-bottom: 18px;
}

.btn-exit-wa {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  background: #1FA855;
  color: #fff;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 16px;
}

/* ==========================================================================
   MODELOS Y SELECTORES (SWATCHES INSPIRADOS EN DIVIA)
   ========================================================================== */
.top-cta-wrapper {
  margin: 14px 0 18px;
}

.models-grid-v2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
  margin-top: 12px;
  margin-bottom: 20px;
}

.swatch {
  all: unset;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: var(--card-shadow);
  transition: all 0.18s ease;
  overflow: hidden;
}

.swatch:hover {
  border-color: var(--line-strong);
}

.swatch.sel {
  border-color: var(--burgundy);
  box-shadow: 0 0 0 2.5px var(--burgundy-soft), 0 4px 14px rgba(115, 13, 34, 0.12);
  background: #FFFDFC;
}

.swatch .media {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: var(--surface-2);
}

.swatch .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.swatch:hover .media img {
  transform: scale(1.04);
}

.sw-info {
  margin-top: 8px;
  text-align: center;
}

.sw-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  display: block;
}

.sw-sub {
  font-size: 11px;
  color: var(--gold-deep);
  font-weight: 600;
  display: block;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sw-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--burgundy);
  color: #fff;
  display: none;
  place-items: center;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  z-index: 2;
}

.swatch.sel .sw-badge {
  display: grid;
}

/* ==========================================================================
   POLAROID UPLOADER (STEP 2 EXTRAS)
   ========================================================================== */
.pol-wrap {
  margin: 14px 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
  animation: enterStep 0.2s ease;
}

.pol-t {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.pol-s {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
  margin-bottom: 12px;
}

.pol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pol-slot {
  position: relative;
  aspect-ratio: 1;
  border: 1.5px dashed var(--line-strong);
  border-radius: 10px;
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.15s ease;
}

.pol-slot:hover {
  border-color: var(--burgundy);
}

.pol-slot.lleno {
  border-style: solid;
  border-color: var(--burgundy);
}

.pol-slot input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.pol-ic {
  font-size: 22px;
  line-height: 1;
  color: var(--burgundy);
  font-weight: 300;
}

.pol-n {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.pol-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.pol-slot.lleno img {
  display: block;
}

.pol-slot.lleno .pol-ic,
.pol-slot.lleno .pol-n {
  display: none;
}

.pol-x {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 3;
  background: rgba(28, 25, 23, 0.78);
  color: #fff;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: none;
}

.pol-slot.lleno .pol-x {
  display: block;
}

.pol-nota {
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
  line-height: 1.35;
}

/* ==========================================================================
   BUSCADOR DE AGENCIAS SHALOM & RECOJO (STEP 3)
   ========================================================================== */
.agency-list {
  margin-top: 10px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  max-height: 250px;
  overflow-y: auto;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.dv-head {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.agency {
  padding: 11px 13px;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
  transition: background 0.12s;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.agency:last-child {
  border-bottom: none;
}

.agency:hover {
  background: var(--surface-2);
}

.agency .an {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
}

.agency .dv-jer {
  font-size: 12px;
  color: var(--gold-deep);
  font-weight: 600;
  margin-top: 1px;
}

.agency .aa {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.agency-empty {
  padding: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.picked {
  margin-top: 12px;
  background: #FFFDF7;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  box-shadow: 0 2px 8px rgba(197, 160, 89, 0.12);
}

.picked.show {
  display: block !important;
}

.dv-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.dv-ck {
  color: var(--green);
  flex: none;
  margin-top: 2px;
}

.dv-pl {
  font-size: 11px;
  font-weight: 800;
  color: var(--gold-deep);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dv-nm {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 2px;
}

.dv-pj {
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
}

.dv-logo {
  height: 20px;
  width: auto;
  flex: none;
}

.dv-dir {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 6px;
}

/* Nota informativa menor de edad */
.note-slim {
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #9A3412;
  line-height: 1.4;
  margin-top: 14px;
}

.note-slim svg {
  flex: none;
  color: #EA580C;
  margin-top: 2px;
}

/* ==========================================================================
   SELECTORES DE TALLAS DE ANILLOS (PASO 1)
   ========================================================================== */
.sizes-section-card {
  margin: 18px 0 16px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--card-shadow);
}

.sizes-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.sizes-card-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
}

.sizes-card-subtitle {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

.btn-open-size-guide {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--burgundy);
  background: var(--burgundy-soft);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: all 0.15s ease;
  flex: none;
}

.btn-open-size-guide:hover {
  background: var(--burgundy);
  color: #fff;
}

.size-picker-group {
  margin-bottom: 6px;
}

.size-group-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.size-group-label strong {
  color: var(--burgundy);
  font-weight: 700;
}

.size-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size-chip {
  all: unset;
  cursor: pointer;
  min-width: 44px;
  height: 40px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.size-chip:hover {
  border-color: var(--line-strong);
}

.size-chip.is-selected {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: #fff;
  box-shadow: 0 2px 8px rgba(115, 13, 34, 0.28);
}

.size-chip-help {
  font-size: 12px;
  font-weight: 600;
  background: #FFFBEB;
  border-color: #FDE68A;
  color: #B45309;
}

.size-chip-help.is-selected {
  background: #B45309;
  border-color: #B45309;
  color: #fff;
}

/* ==========================================================================
   MODAL GUÍA DE TALLAS
   ========================================================================== */
.size-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(28, 25, 23, 0.65);
  backdrop-filter: blur(4px);
  display: none;
  place-items: center;
  padding: 16px;
}

.size-modal-overlay.is-active {
  display: grid;
  animation: enterStep 0.22s var(--ease);
}

.size-modal-card {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 350px;
  width: calc(100% - 20px);
  max-height: 85vh;
  overflow-y: auto;
  padding: 16px 14px;
  position: relative;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

.size-modal-close {
  all: unset;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 18px;
  color: var(--muted);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
}

.size-table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 8px;
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  text-align: left;
}

.size-table th {
  background: var(--surface-2);
  padding: 6px 8px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.size-table td {
  padding: 5px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}

.size-table tr:last-child td {
  border-bottom: none;
}

/* Botón compacto de Guía de Tallas (Especializado para Celular) */
.btn-size-modal-ok {
  all: unset;
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  background: var(--burgundy);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(107, 26, 43, 0.22);
}

.btn-size-modal-ok:active {
  transform: scale(0.98);
  opacity: 0.92;
}

/* Animación y estado de error para obligar a seleccionar tallas */
@keyframes shakeSizesCard {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

.sizes-section-card.pulse-error {
  animation: shakeSizesCard 0.45s ease;
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.22) !important;
}

.size-chips-grid.has-error {
  border: 1.5px dashed #ef4444 !important;
  border-radius: var(--radius-sm);
  padding: 4px;
  background: #FEF2F2;
}

/* ==========================================================================
   XUPING JEWELRY LUXURY BRAND PILL
   ========================================================================== */
.xuping-luxury-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #171615;
  color: #fff;
  padding: 4px 10px 4px 6px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.xuping-luxury-pill img {
  height: 18px;
  width: auto;
  display: block;
}

.xuping-luxury-pill span {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}


