/* Tokens y componentes base — colores tomados del catálogo en Canva */
:root {
  --blush: #fff2f1;          /* fondo de página del catálogo */
  --blush-2: #fde2df;        /* manchas durazno */
  --pink: #f79cbe;           /* tarjetas de producto */
  --pink-soft: #fbd0df;
  --pink-strong: #ec7ea6;    /* títulos y botones */
  --pink-deep: #d9638e;
  --lilac: #c7a6d9;          /* burbujas lila de la portada */
  --lilac-deep: #a98bcb;
  --mauve: #9c6b8e;          /* página "Proceso de compra" */
  --mauve-deep: #7d4f71;
  --ink: #5a3b4b;
  --ink-soft: #8a6a79;
  --white: #ffffff;
  --line: #f3d3dc;
  --ok: #3f9a6e;
  --danger: #d0476b;

  --font-script: 'Allura', 'Great Vibes', cursive;
  --font-serif: 'Merriweather', Georgia, serif;
  --font-sans: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(156, 107, 142, 0.16);
  --shadow-sm: 0 4px 14px rgba(156, 107, 142, 0.12);
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--blush);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--pink-deep); }

:focus-visible { outline: 3px solid var(--lilac-deep); outline-offset: 2px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 34px; height: 41px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-script { font-family: var(--font-script); font-size: 38px; color: var(--pink-strong); line-height: .9; }
.logo-sub {
  font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-soft);
  font-weight: 600; margin-top: 2px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 12px 22px; cursor: pointer;
  font-weight: 700; font-size: 15px; text-decoration: none; line-height: 1.2;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  min-height: 44px;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--pink-strong); color: var(--white); box-shadow: 0 6px 16px rgba(236, 126, 166, .35); }
.btn-primary:hover { background: var(--pink-deep); }
.btn-soft { background: var(--white); color: var(--pink-deep); box-shadow: var(--shadow-sm); }
.btn-soft:hover { background: #fff7fa; }
.btn-outline { background: transparent; color: var(--pink-deep); border: 2px solid var(--pink-soft); }
.btn-outline:hover { border-color: var(--pink-strong); }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe5b; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; min-height: 36px; }
.btn-block { width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: var(--white); color: var(--pink-deep); cursor: pointer; box-shadow: var(--shadow-sm);
  flex: none;
}
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Formularios ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .field .label { font-weight: 700; font-size: 14px; color: var(--ink); }
.field .hint { font-size: 12.5px; color: var(--ink-soft); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; border: 2px solid var(--line); background: var(--white); border-radius: var(--radius-sm);
  padding: 11px 14px; font-size: 15px; transition: border-color .15s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--pink-strong); }
.textarea { min-height: 96px; resize: vertical; }
.form-error {
  background: #fde7ee; color: var(--danger); border-radius: var(--radius-sm); padding: 10px 14px;
  font-size: 14px; font-weight: 600; margin: 0 0 14px;
}
.form-error:empty { display: none; }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center;
  padding: 16px; background: rgba(90, 59, 75, .45); backdrop-filter: blur(3px);
}
.modal.is-open { display: flex; }
.modal-card {
  position: relative; background: var(--white); border-radius: 24px; width: min(920px, 100%);
  max-height: calc(100dvh - 32px); overflow: auto; box-shadow: 0 30px 80px rgba(90, 59, 75, .35);
  animation: pop .18s ease-out;
}
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }

/* ---------- Toasts ---------- */
.toasts {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 100;
  display: flex; flex-direction: column; gap: 8px; align-items: center; width: calc(100% - 32px); pointer-events: none;
}
.toast {
  background: var(--ink); color: #fff; border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 14px;
  box-shadow: var(--shadow); transition: opacity .4s, transform .4s; max-width: 100%; text-align: center;
}
.toast--ok { background: var(--ok); }
.toast--error { background: var(--danger); }
.toast.is-out { opacity: 0; transform: translateY(8px); }

/* ---------- Interruptor activo/inactivo ---------- */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track {
  width: 50px; height: 28px; border-radius: 999px; background: #e6d6dd; position: relative; transition: background .2s; flex: none;
}
.switch-track::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); transition: transform .2s;
}
.switch input:checked + .switch-track { background: var(--ok); }
.switch input:checked + .switch-track::after { transform: translateX(22px); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--lilac-deep); outline-offset: 2px; }
.switch-label { font-size: 13px; font-weight: 700; min-width: 58px; }
