/* =============================================
   ESTILOS GLOBALES — retirospjr.online
   ============================================= */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-neutral-700);
  background: var(--color-neutral-50);
  line-height: var(--leading-normal);
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: var(--color-secondary-500); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============ UTILIDADES ============ */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.hidden { display: none !important; }

/* ============ BOTONES ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 13px 32px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent-500);
  color: var(--color-neutral-900);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-accent-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--color-neutral-900);
}

.btn-secondary {
  background: transparent;
  color: var(--color-neutral-700);
  border: 1.5px solid var(--color-neutral-200);
}
.btn-secondary:hover {
  background: var(--color-neutral-100);
  border-color: var(--color-neutral-400);
  text-decoration: none;
  color: var(--color-neutral-900);
}

.btn-danger {
  background: var(--color-error);
  color: #fff;
}
.btn-danger:hover {
  background: #a00f19;
  transform: translateY(-1px);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--color-primary-500);
  border: 1.5px solid var(--color-primary-100);
}
.btn-ghost:hover {
  background: var(--color-primary-50);
  color: var(--color-primary-600);
  text-decoration: none;
}

.btn-sm { padding: 8px 20px; font-size: var(--text-sm); }
.btn-lg { padding: 16px 44px; font-size: var(--text-lg); }
.btn-full { width: 100%; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ============ INPUTS ============ */
.form-group { display: flex; flex-direction: column; gap: var(--space-2); }

label {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-neutral-700);
  letter-spacing: 0.02em;
}

input, select, textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-neutral-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-neutral-900);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--color-accent-500);
  box-shadow: 0 0 0 3px rgba(196, 150, 42, 0.18);
}

input::placeholder, textarea::placeholder {
  color: var(--color-neutral-400);
}

textarea { resize: vertical; min-height: 80px; }

.form-error {
  font-size: var(--text-sm);
  color: var(--color-error);
  margin-top: var(--space-1);
}

/* ============ CARDS ============ */
.card {
  background: var(--color-neutral-100);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ============ TOAST / NOTIFICACIONES ============ */
#toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.3s ease;
  max-width: 320px;
}

.toast-success { background: var(--color-success); color: #fff; }
.toast-error   { background: var(--color-error);   color: #fff; }
.toast-info    { background: var(--color-secondary-500); color: #fff; }

@keyframes slideInRight {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ============ SPINNER ============ */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ SECCIÓN HERO ============ */
.hero {
  flex: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-500);
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: var(--space-12) 5%;
  box-sizing: border-box;
  width: 100%;
}

.hero-symbol {
  font-size: 3rem;
  margin-bottom: var(--space-4);
  opacity: 0.85;
}

.hero-logo {
  max-height: 120px;
  max-width: 80%;
  object-fit: contain;
  display: block;
  margin: 0 auto var(--space-4);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: #fff;
  margin-bottom: var(--space-4);
  width: 100%;
}

.hero-text-box {
  width: 100%;
  border-radius: 12px;
  margin-bottom: var(--space-8);
}

.hero p {
  font-size: var(--text-lg);
  color: var(--color-primary-100);
  width: 100%;
  margin: 0 auto 0;
  line-height: var(--leading-normal);
  white-space: pre-line;
}

/* ============ CATÁLOGO INTERACTIVO ============ */
#catalog-app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--color-neutral-50);
}

/* Paso: registro de visitante */
#step-register {
  flex: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-8) var(--space-4);
  max-width: var(--container-sm);
  margin: 0 auto;
  width: 100%;
}

#step-register h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-neutral-900);
  margin-bottom: var(--space-2);
}

#step-register p {
  color: var(--color-neutral-400);
  margin-bottom: var(--space-6);
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Paso: producto */
#step-product {
  flex: 1;
  padding: var(--space-6) var(--space-4);
  max-width: var(--container-md);
  margin: 0 auto;
  width: 100%;
}

/* ── Carrusel de productos ── */

/* Wrapper que contiene la imagen + flechas superpuestas */
.product-images-wrap {
  position: relative;
  overflow: hidden;
}

/* Flechas: overlay sobre la imagen */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-primary-500);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(4px);
  transition: background 0.15s, color 0.15s, transform 0.12s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.carousel-arrow-left  { left:  var(--space-3); }
.carousel-arrow-right { right: var(--space-3); }

.carousel-arrow:hover {
  background: var(--color-primary-500);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.93);
}

.carousel-arrow.invisible {
  opacity: 0;
  pointer-events: none;
}

/* Animaciones de deslizamiento */
@keyframes slideFromRight {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideFromLeft {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}

.product-card.slide-right { animation: slideFromRight 0.2s ease; }
.product-card.slide-left  { animation: slideFromLeft  0.2s ease; }

/* Mobile: flechas ocultas — se navega con swipe */
@media (max-width: 640px) {
  .carousel-arrow { display: none !important; }
}

.product-progress {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: 20px;
}

.progress-label {
  font-size: var(--text-sm);
  color: var(--color-neutral-400);
  white-space: nowrap;
  flex-shrink: 0;
}

.progress-label strong {
  color: var(--color-neutral-900);
  font-weight: var(--font-semibold);
}

.progress-pct {
  font-size: var(--text-sm);
  color: var(--color-neutral-400);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 36px;
  text-align: right;
}

.progress-segments {
  display: flex;
  gap: 4px;
  flex: 1;
}

.progress-segment {
  flex: 1;
  height: 10px;
  border-radius: 3px;
  background: var(--color-neutral-200);
  transition: background 0.35s ease;
  min-width: 4px;
}

.progress-segment.done    { background: var(--color-accent-500); }
.progress-segment.current { background: var(--color-primary-500); }

.product-card {
  background: #fff;
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.product-images {
  position: relative;
  aspect-ratio: 4/3;
  background: #fff;
  overflow: hidden;
}

.product-images img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-images .no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--color-neutral-400);
}

.image-dots {
  position: absolute;
  bottom: var(--space-4);
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  pointer-events: none;
}

.image-dot {
  width: 10px; height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  border: 1.5px solid rgba(255,255,255,0.8);
  cursor: pointer;
  pointer-events: all;
  transition: background 0.2s, width 0.25s, border-color 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.35);
  padding: 0;
}
.image-dot.active {
  background: #fff;
  width: 26px;
  border-color: #fff;
}

/* Flechas de galería de imágenes (dentro de la imagen, no del producto) */
.img-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.8);
  color: var(--color-primary-500);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(3px);
  transition: background 0.15s, opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.img-nav-btn:active { background: var(--color-primary-500); color: #fff; }
.img-nav-btn.img-nav-left  { left:  var(--space-2); }
.img-nav-btn.img-nav-right { right: var(--space-2); }
.img-nav-btn.invisible { opacity: 0; pointer-events: none; }

.product-info {
  padding: var(--space-6);
}

.product-category-tag {
  display: inline-block;
  background: var(--color-primary-50);
  color: var(--color-primary-500);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}

.product-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-neutral-900);
  margin-bottom: var(--space-3);
  line-height: var(--leading-tight);
}

.product-description {
  color: var(--color-neutral-400);
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
  line-height: var(--leading-normal);
}

.product-price {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-primary-500);
  margin-bottom: var(--space-6);
}

/* Pregunta / instrucción dinámica */
.product-question {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-neutral-900);
  margin-bottom: var(--space-4);
  transition: all 0.25s ease;
}

.product-question.selecting {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary-500);
}

/* Selección de talla y cantidad */
.product-options {
  display: none;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-neutral-200);
}
.product-options.visible { display: flex; }

.size-label {
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  color: var(--color-neutral-900);
  letter-spacing: 0.01em;
}

.sizes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.size-btn {
  padding: 8px 16px;
  border: 1.5px solid var(--color-neutral-200);
  border-radius: var(--radius-md);
  background: #fff;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  cursor: pointer;
  transition: all 0.2s;
  color: var(--color-neutral-700);
}
.size-btn:hover { border-color: var(--color-accent-500); color: var(--color-neutral-900); }
.size-btn.selected {
  background: var(--color-accent-500);
  border-color: var(--color-accent-500);
  color: var(--color-neutral-900);
  box-shadow: var(--shadow-sm);
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.qty-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--color-neutral-200);
  background: #fff;
  font-size: var(--text-xl);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  color: var(--color-neutral-700);
  font-weight: var(--font-bold);
}
.qty-btn:hover { border-color: var(--color-accent-500); background: var(--color-neutral-100); }

.qty-value {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-neutral-900);
  min-width: 32px;
  text-align: center;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: stretch;
}

.product-actions .btn-sm {
  align-self: center;
  min-width: 160px;
}

/* Carrito flotante */
#cart-badge {
  position: fixed;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 100;
  background: var(--color-primary-500);
  color: #fff;
  border-radius: var(--radius-full);
  padding: 10px 18px;
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: transform 0.2s;
}
#cart-badge:hover { transform: scale(1.05); }

/* Paso: resumen */
#step-summary {
  flex: 1;
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--space-6) var(--space-4);
  max-width: var(--container-md);
  margin: 0 auto;
  width: 100%;
}

#step-summary h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-neutral-900);
  margin-bottom: var(--space-6);
}

.summary-visitor {
  background: var(--color-neutral-100);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin-bottom: var(--space-6);
}

.summary-visitor h3 {
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-neutral-400);
  margin-bottom: var(--space-4);
}

.summary-visitor .visitor-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-neutral-900);
  margin-bottom: var(--space-3);
}

.summary-visitor .visitor-detail {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-neutral-700);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-neutral-200);
}
.summary-visitor .visitor-detail:last-child { border-bottom: none; }

.summary-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.summary-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: #fff;
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-4);
}

.summary-item-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--color-neutral-200);
  flex-shrink: 0;
}

.summary-item-info { flex: 1; }

.summary-item-name {
  font-weight: var(--font-semibold);
  color: var(--color-neutral-900);
  font-size: var(--text-base);
}

.summary-item-detail {
  font-size: var(--text-sm);
  color: var(--color-neutral-400);
  margin-top: 2px;
}

.summary-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-1);
  flex-shrink: 0;
}

.summary-item-subtotal {
  font-weight: var(--font-bold);
  color: var(--color-primary-500);
  font-size: var(--text-base);
  text-align: right;
}

.summary-item-remove {
  background: none;
  border: none;
  color: var(--color-neutral-300);
  cursor: pointer;
  font-size: 13px;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
  line-height: 1;
  align-self: flex-end;
}
.summary-item-remove:hover { color: #dc2626; background: #fef2f2; }

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-primary-500);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-6);
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow-md);
}

.summary-total-label {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
}

.summary-total-amount {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
}

/* ============ PANTALLA DE CONFIRMACIÓN ============ */

#step-confirmation {
  flex: 1;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: var(--container-sm);
  margin: 0 auto;
  padding: var(--space-6) var(--space-4) var(--space-12);
  width: 100%;
}

/* Cabecera compacta */
.conf-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  background: var(--color-neutral-100);
  border: 1px solid var(--color-neutral-200);
  border-left: 4px solid var(--color-success);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.conf-check-small {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.conf-header-text { flex: 1; }

.conf-header h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-neutral-900);
  margin-bottom: var(--space-1);
  line-height: var(--leading-tight);
}

.conf-meta {
  font-size: var(--text-sm);
  color: var(--color-neutral-400);
  margin-bottom: var(--space-1);
}

.conf-meta strong { color: var(--color-primary-500); }

.conf-email-note {
  font-size: var(--text-xs);
  color: var(--color-neutral-400);
}

/* Secciones */
.conf-section {
  margin-bottom: var(--space-6);
}

.conf-section-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-neutral-900);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-primary-500);
}

/* Nota de pago */
.conf-payments-note {
  font-size: var(--text-sm);
  color: var(--color-neutral-400);
  margin-bottom: var(--space-4);
  line-height: var(--leading-loose);
}

/* Tarjetas de medios de pago — ancho completo, en columna */
.conf-payments-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.conf-payment-card {
  width: 100%;
  background: #fff;
  border: 1.5px solid var(--color-accent-500);
  border-left: 5px solid var(--color-accent-500);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

.conf-payment-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-primary-500);
  margin-bottom: var(--space-1);
}

.conf-payment-number {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-neutral-900);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-1);
}

.conf-payment-holder {
  font-size: var(--text-sm);
  color: var(--color-neutral-700);
}

.conf-payment-doc {
  font-size: var(--text-xs);
  color: var(--color-neutral-400);
  margin-top: 2px;
}

/* Items del pedido */
.conf-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  background: #fff;
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
}

.conf-item-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.conf-item-no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-neutral-100);
  font-size: 1.4rem;
}

.conf-item-info { flex: 1; }

.conf-item-name {
  font-weight: var(--font-semibold);
  color: var(--color-neutral-900);
  font-size: var(--text-sm);
}

.conf-item-detail {
  font-size: var(--text-xs);
  color: var(--color-neutral-400);
  margin-top: 2px;
}

.conf-item-subtotal {
  font-weight: var(--font-bold);
  color: var(--color-primary-500);
  font-size: var(--text-sm);
  text-align: right;
  flex-shrink: 0;
}

.conf-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-primary-500);
  color: #fff;
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-base);
  margin-top: var(--space-3);
}

.conf-total-row strong {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
}

/* Mensaje de invitación sobre WhatsApp */
.conf-wa-prompt {
  background: #E8F9EF;
  border: 1.5px solid #25D366;
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-neutral-700);
  line-height: var(--leading-loose);
}

.conf-wa-prompt strong { color: #128C7E; }

/* Botones de acción */
.conf-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.btn-accent {
  background: var(--color-accent-500);
  color: #fff;
}
.btn-accent:hover { background: var(--color-accent-600); }

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border: none;
}
.btn-whatsapp:hover { background: #128C7E; }

/* Aviso legal */
.legal-notice {
  font-size: 13px;
  color: var(--color-neutral-500);
  line-height: 1.55;
  padding: var(--space-3) var(--space-4);
  background: var(--color-neutral-100);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-neutral-200);
}

/* Banner de error "sin productos" */
.no-products-banner {
  margin-top: var(--space-4);
  padding: var(--space-4) var(--space-6);
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: var(--radius-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.no-products-banner p {
  margin: 0;
  font-size: 15px;
  color: #664d03;
}

/* ============ LIGHTBOX ============ */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox-overlay img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: block;
  animation: zoomIn 0.2s ease;
}

@keyframes zoomIn { from { transform: scale(0.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.lightbox-close {
  position: fixed;
  top: var(--space-4);
  right: var(--space-4);
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  width: 44px; height: 44px;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}
.lightbox-close:hover { background: rgba(255,255,255,0.28); }

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  border-radius: 50%;
  width: 52px; height: 52px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  z-index: 10;
  line-height: 1;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: var(--space-3); }
.lightbox-next { right: var(--space-3); }

.lightbox-dots {
  position: fixed;
  bottom: var(--space-4);
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: var(--space-2);
}

.lightbox-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}
.lightbox-dot.active { background: #fff; }

/* ============ RESPONSIVE ============ */
@media (min-width: 640px) {
  .hero h1 { font-size: var(--text-4xl); }
  .product-actions { flex-direction: row; }
  .btn-lg { width: auto; }
}

/* Móvil: todo el catálogo compacto para que quepa en una sola pantalla */
@media (max-width: 640px) {

  /* ── Registro ── */
  #step-register {
    padding: var(--space-4) var(--space-4);
    justify-content: flex-start;
    padding-top: var(--space-6);
  }
  #step-register h2 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-1);
  }
  #step-register p {
    font-size: var(--text-sm);
    margin-bottom: var(--space-3);
  }
  .register-form { gap: var(--space-3); }
  input, select, textarea {
    padding: 10px 14px;
    font-size: 16px; /* iOS hace zoom si es < 16px — no cambiar */
  }
  .legal-notice {
    font-size: 12px;
    padding: var(--space-2) var(--space-3);
    line-height: 1.5;
  }

  /* ── Tarjeta de producto ── */
  #step-product {
    padding: var(--space-4) var(--space-3) var(--space-3);
  }
  .product-progress {
    margin-bottom: 12px;
  }
  .progress-segment {
    height: 7px;
  }
  .product-images {
    aspect-ratio: 3/2;
    max-height: 350px;
    margin-top: 20px;
  }
  .product-info {
    padding: var(--space-4) var(--space-4) var(--space-3);
  }
  .product-category-tag {
    font-size: 10px;
    padding: 2px 8px;
    margin-bottom: var(--space-1);
  }
  .product-name {
    font-size: var(--text-lg);
    margin-bottom: var(--space-1);
    line-height: 1.2;
  }
  .product-description {
    display: none;
  }
  .product-price {
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
  }
  .product-question {
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-2);
  }
  .product-options {
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    padding-top: var(--space-3);
  }
  .product-actions { gap: var(--space-2); }
  #step-product .btn-lg {
    padding: 11px 24px;
    font-size: var(--text-base);
  }
  #step-product .btn-sm {
    padding: 8px 16px;
    font-size: var(--text-xs);
  }

  /* ── Global botón en pasos del catálogo ── */
  .btn-lg { padding: 13px 32px; font-size: var(--text-base); }
}

@media (max-width: 480px) {
  #cart-badge { top: auto; bottom: var(--space-4); right: var(--space-4); }
}

/* ── Catálogo bloqueado ─────────────────────────────────────────────────────── */
#step-blocked {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: var(--space-8) var(--space-6);
}
.catalog-blocked-wrap {
  text-align: center;
  max-width: 420px;
}
.catalog-blocked-icon {
  font-size: 72px;
  margin-bottom: var(--space-6);
  display: block;
}
.catalog-blocked-wrap h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-primary-500);
  margin-bottom: var(--space-4);
}
.catalog-blocked-wrap p {
  color: var(--color-neutral-500);
  font-size: var(--text-base);
  line-height: 1.7;
}


