/* cousi — estilos compartidos (tienda y gestor). Tokens del manual de marca. */
:root {
  --cream: #fdf7ee;
  --fondo: #ffffff; /* fondo de página; el crema queda como acento cálido */
  --ink: #2e2a25;
  --muted: #6b6259;
  --naranja: #f26b3a;
  --sol: #f7b538;
  --menta: #2e8b7a;
  --rosa: #f4a7b9;
  --cielo: #4a7bd0;
  --whatsapp: #25d366;
  --linea: #eee6da;
  --papel: #ffffff;
  --peligro: #b3261e;

  --space-2: 8px;
  --space-4: 16px;
  --space-6: 24px;
  --space-10: 40px;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --ancho: 1200px;
  --font: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--ink);
  font: 400 16px/24px var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cielo); outline-offset: 2px; border-radius: 4px; }

.contenedor { max-width: var(--ancho); margin: 0 auto; padding: 0 var(--space-4); }
@media (min-width: 720px) { .contenedor { padding: 0 var(--space-10); } }

.franja { display: flex; height: 6px; }
.franja i { flex: 1; }
.franja i:nth-child(1) { background: var(--naranja); }
.franja i:nth-child(2) { background: var(--sol); }
.franja i:nth-child(3) { background: var(--menta); }
.franja i:nth-child(4) { background: var(--rosa); }
.franja i:nth-child(5) { background: var(--cielo); }

.label { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.small { font-size: 13px; line-height: 18px; font-weight: 500; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: 10px 20px;
  border: 0; border-radius: var(--radius-pill);
  font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-primario { background: var(--naranja); color: var(--ink); }
.btn-primario:hover { background: #f47d50; }
.btn-whatsapp { background: var(--whatsapp); color: var(--ink); }
.btn-whatsapp:hover { background: #3bdc77; }
.btn-tinta { background: var(--ink); color: var(--cream); }
.btn-borde { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-borde:hover { background: rgba(46, 42, 37, .06); }
.btn-texto { background: transparent; color: var(--ink); padding: 8px 12px; min-height: 36px; }
.btn-texto:hover { background: rgba(46, 42, 37, .06); }
.btn-peligro { background: transparent; color: var(--peligro); box-shadow: inset 0 0 0 1.5px var(--peligro); }
.btn-ancho { width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: var(--radius-pill); background: transparent; cursor: pointer;
}
.icon-btn:hover { background: rgba(46, 42, 37, .06); }
.icon-btn svg { width: 22px; height: 22px; }

/* Chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 8px 16px;
  border: 1.5px solid var(--linea); border-radius: var(--radius-pill);
  background: var(--papel); cursor: pointer; white-space: nowrap; font-weight: 500;
  text-decoration: none;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"], .chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.chip .punto { width: 10px; height: 10px; border-radius: 50%; }

/* Formularios */
.campo { display: grid; gap: 6px; }
.campo > span { font-size: 13px; line-height: 18px; font-weight: 600; }
.campo small { color: var(--muted); font-size: 13px; }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  border: 1.5px solid var(--linea); border-radius: var(--radius-sm);
  background: var(--papel);
}
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); }

/* Ilustración de capas */
.ilustracion { width: 100%; height: 100%; display: block; }

/* Diálogo / hoja */
.velo {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(46, 42, 37, .45);
  display: flex; align-items: flex-end; justify-content: center;
  animation: aparecer .18s ease;
}
@media (min-width: 720px) { .velo { align-items: center; padding: var(--space-6); } }
@keyframes aparecer { from { opacity: 0; } }
@keyframes subir { from { transform: translateY(24px); opacity: 0; } }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--cream);
  padding: 12px 20px; border-radius: var(--radius-pill); font-weight: 500;
  transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); text-align: center;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

.aviso-demo {
  background: var(--sol); color: var(--ink); text-align: center;
  font-size: 13px; line-height: 18px; font-weight: 500; padding: 8px 16px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Cuadro de confirmación */
.confirmar-velo { z-index: 90; align-items: center; padding: var(--space-4); }
.confirmar {
  width: min(420px, 100%); background: var(--cream); border-radius: 20px; padding: var(--space-6);
  display: grid; gap: var(--space-6); animation: subir .18s ease;
}
.confirmar p { margin: 0; font-size: 17px; line-height: 26px; }
.confirmar-botones { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
