/* Calmat Donuts · mobile-first. Paleta tomada del logo. */
:root {
  --turq: #94DFE4;
  --turq-deep: #5CCDD6;
  --turq-soft: #EAF9FA;
  --pink: #FF6EA4;
  --pink-deep: #E8427C;
  --pink-soft: #FFE8F1;
  --orange: #FFAF68;
  --orange-soft: #FFF3E6;
  --orange-ink: #B86A1C;
  --ink: #3A2B35;
  --muted: #7C6B76;
  --line: #F0E6EB;
  --bg: #F6FCFC;
  --card: #FFFFFF;
  --radius: 20px;
  --shadow: 0 2px 14px rgba(58, 43, 53, .07);
  --header-h: 60px;
  --font-title: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 16px; line-height: 1.45; -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(90px + env(safe-area-inset-bottom));
}
body.lock { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, p { margin: 0; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 16px; }

/* Aviso + header */
.aviso {
  background: var(--orange-soft); color: var(--orange-ink); text-align: center;
  font-size: 12.5px; font-weight: 700; padding: 6px 12px; letter-spacing: .1px;
}
.top {
  position: sticky; top: 0; z-index: 30; height: var(--header-h);
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line);
}
.top-in {
  max-width: 980px; height: 100%; margin: 0 auto; padding: 0 12px 0 16px;
  display: flex; align-items: center; gap: 8px;
}
.logo { margin-right: auto; display: flex; align-items: center; }
.logo img { height: 44px; width: auto; }
.zona-chip {
  display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px;
  border-radius: 999px; background: var(--turq-soft); color: var(--ink);
  font-size: 13px; font-weight: 700; max-width: 150px;
}
.zona-chip span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zona-chip.on { background: var(--turq); }
.cart-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink);
}
.cart-btn:active { background: var(--turq-soft); }
.badge {
  position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--pink); color: #fff; font-size: 12px; font-weight: 800;
  display: grid; place-items: center; border: 2px solid #fff;
}
.badge[hidden] { display: none; }
.badge.bump,.cart-bar.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.18); } }

/* Hero */
.hero {
  background-color: var(--turq);
  background-image: radial-gradient(circle at center, rgba(255,255,255,.55) 0 6px, transparent 7px);
  background-size: 56px 56px; background-position: 14px 10px;
  padding: 22px 0 18px;
}
.hero-card {
  background: #fff; border-radius: 28px; padding: 20px 18px 18px; position: relative;
  box-shadow: 0 8px 28px rgba(58, 43, 53, .10);
}
.hero-card::before {
  content: ''; position: absolute; inset: 7px; border: 2px solid var(--orange);
  border-radius: 22px; pointer-events: none; opacity: .9;
}
.hero-card > * { position: relative; }
.hero-card h1 {
  font-family: var(--font-title); font-weight: 600; font-size: 23px; line-height: 1.2;
  color: var(--pink); text-align: center; margin: 4px 6px 16px;
}
.slogan {
  text-align: center; color: #fff; font-weight: 700; font-size: 15px; margin-top: 14px;
  text-shadow: 0 1px 6px rgba(58, 43, 53, .12);
}

/* Botones y campos */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 52px; padding: 0 20px; border-radius: 999px; font-weight: 800; font-size: 16px;
  transition: transform .12s, filter .12s;
}
.btn:active { transform: scale(.98); filter: brightness(.96); }
.btn-gps, .btn-wa { background: var(--pink); color: #fff; box-shadow: 0 4px 14px rgba(255, 110, 164, .35); }
.btn-wa { margin-top: 12px; background: #25C45E; box-shadow: 0 4px 14px rgba(37, 196, 94, .32); }
.btn-sec { background: var(--turq-soft); color: var(--ink); width: auto; margin: 0 auto; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.sep { display: flex; align-items: center; gap: 10px; margin: 14px 0 12px; color: var(--muted); font-size: 13px; font-weight: 700; }
.sep::before, .sep::after { content: ''; flex: 1; border-top: 2px dashed var(--orange); opacity: .7; }

.campo {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid var(--line);
  border-radius: 14px; background: #fff; font: inherit; font-size: 16px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
textarea.campo { resize: none; min-height: 72px; }
select.campo {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23E8427C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.campo:focus { outline: none; border-color: var(--turq-deep); box-shadow: 0 0 0 4px rgba(148, 223, 228, .35); }
.campo.invalid { border-color: var(--pink); background: var(--pink-soft); }
.campo:disabled { background: #F7F3F5; color: var(--muted); }
.hero-card.resalta { animation: resalta 1.2s ease; }
@keyframes resalta { 30% { box-shadow: 0 0 0 6px rgba(255, 110, 164, .45); } }

/* Resultado de zona */
.zona-res { margin-top: 12px; }
.zona-res:empty { display: none; }
.zona-box { border-radius: 16px; padding: 12px 14px; font-size: 14.5px; font-weight: 600; }
.zona-box.ok { background: var(--turq-soft); }
.zona-box.fuera { background: var(--orange-soft); color: #7a4a14; }
.zona-box strong { font-weight: 800; }
.zona-box .dias { margin-top: 4px; color: var(--pink-deep); font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { background: #fff; border-radius: 999px; padding: 3px 10px; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.zona-box a.btn-mini {
  display: inline-block; margin-top: 10px; padding: 8px 16px; border-radius: 999px;
  background: #25C45E; color: #fff; font-weight: 800; text-decoration: none; font-size: 14px;
}

/* Categorías */
.cats {
  position: sticky; top: var(--header-h); z-index: 20; background: rgba(246, 252, 252, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.cats-in {
  max-width: 980px; margin: 0 auto; padding: 12px 16px; display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: none;
}
.cats-in::-webkit-scrollbar { display: none; }
.pill {
  flex: none; height: 40px; padding: 0 16px; border-radius: 999px; background: #fff;
  border: 2px solid var(--line); font-weight: 800; font-size: 14.5px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px; transition: background .15s, border-color .15s;
}
.pill.on { background: var(--pink); border-color: var(--pink); color: #fff; }
.pill[aria-disabled="true"] { color: var(--muted); background: #fff; border-style: dashed; }
.pill small {
  font-size: 11px; font-weight: 800; background: var(--orange-soft); color: var(--orange-ink);
  padding: 2px 8px; border-radius: 999px;
}

/* Catálogo */
.sec-titulo { font-family: var(--font-title); font-weight: 600; font-size: 20px; margin: 18px 2px 10px; }
.lista { display: grid; gap: 12px; }
.card {
  display: flex; gap: 12px; background: var(--card); border-radius: var(--radius);
  padding: 12px; box-shadow: var(--shadow);
}
.card.agotado { opacity: .62; }
.card-art {
  flex: none; width: 104px; height: 104px; border-radius: 16px; background: var(--turq-soft);
  overflow: hidden; display: grid; place-items: center;
}
.card-art img, .card-art svg { width: 100%; height: 100%; object-fit: cover; }
.card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.etiqueta {
  align-self: flex-start; font-size: 11.5px; font-weight: 800; padding: 2px 9px; border-radius: 999px;
  background: var(--orange-soft); color: var(--orange-ink); margin-bottom: 4px;
}
.etiqueta.agot { background: #F0E6EB; color: var(--muted); }
.card h3 { font-family: var(--font-title); font-weight: 600; font-size: 18px; line-height: 1.2; }
.card p { font-size: 13.5px; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.card-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.precio { font-family: var(--font-title); font-weight: 600; font-size: 19px; color: var(--ink); }
.btn-add {
  height: 40px; padding: 0 16px; border-radius: 999px; background: var(--pink); color: #fff;
  font-weight: 800; font-size: 14.5px; box-shadow: 0 3px 10px rgba(255, 110, 164, .35);
  transition: transform .12s;
}
.btn-add:active { transform: scale(.94); }
.btn-add[disabled] { background: #E9DFE4; color: var(--muted); box-shadow: none; pointer-events: none; }

.pie { text-align: center; margin: 28px auto 8px; color: var(--muted); font-size: 13.5px; }
.pie a { color: var(--pink-deep); font-weight: 800; text-decoration: none; display: inline-block; margin-top: 4px; }

/* Barra inferior de carrito */
.cart-bar {
  position: fixed; z-index: 25; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom));
  max-width: 560px; margin: 0 auto; height: 56px; border-radius: 999px; padding: 0 8px 0 8px;
  background: var(--ink); color: #fff; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 10px 28px rgba(58, 43, 53, .3);
}
.cart-bar[hidden] { display: none; }
.cart-bar-n { width: 40px; height: 40px; border-radius: 50%; background: var(--pink); display: grid; place-items: center; font-weight: 800; }
.cart-bar-t { flex: 1; text-align: left; font-weight: 800; }
.cart-bar-p { font-family: var(--font-title); font-weight: 600; font-size: 18px; padding-right: 12px; }

/* Drawer */
.overlay {
  position: fixed; inset: 0; z-index: 40; background: rgba(58, 43, 53, .42);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.overlay.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 600px;
  max-height: 92dvh; max-height: 92vh; max-height: 92dvh; display: flex; flex-direction: column;
  background: #fff; border-radius: 28px 28px 0 0; transform: translateY(105%); visibility: hidden;
  transition: transform .34s cubic-bezier(.32, .72, 0, 1), visibility 0s .34s;
  box-shadow: 0 -10px 40px rgba(58, 43, 53, .18);
}
.drawer.open { transform: none; visibility: visible; transition-delay: 0s; }
.grabber { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 8px auto 0; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 20px 4px; }
.drawer-head h2 { font-family: var(--font-title); font-weight: 600; font-size: 24px; }
.cerrar { width: 40px; height: 40px; border-radius: 50%; background: var(--turq-soft); font-weight: 800; }
.drawer-body { flex: 1; overflow-y: auto; padding: 4px 20px 16px; overscroll-behavior: contain; }
.drawer-foot {
  padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff;
}

.vacio { text-align: center; padding: 28px 0; color: var(--muted); font-weight: 700; display: grid; gap: 10px; }
.vacio-ico { font-size: 52px; }

.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.item { background: var(--bg); border-radius: 16px; padding: 12px; }
.item-top { display: flex; justify-content: space-between; gap: 10px; }
.item-top strong { font-family: var(--font-title); font-weight: 600; font-size: 17px; line-height: 1.2; }
.item-top small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.item-total { font-family: var(--font-title); font-weight: 600; font-size: 17px; white-space: nowrap; }
.item-ctrl { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.stepper { display: inline-flex; align-items: center; background: #fff; border-radius: 999px; padding: 3px; box-shadow: var(--shadow); }
.stepper button { width: 36px; height: 36px; border-radius: 50%; font-size: 20px; font-weight: 800; color: var(--pink-deep); }
.stepper button:active { background: var(--pink-soft); }
.stepper span { min-width: 28px; text-align: center; font-weight: 800; }
.del { width: 40px; height: 40px; border-radius: 50%; color: var(--muted); display: grid; place-items: center; }
.del:active { background: var(--pink-soft); color: var(--pink-deep); }
.extra { margin-top: 10px; }
.extra label { display: block; font-size: 13px; font-weight: 800; margin-bottom: 5px; }
.extra .campo { min-height: 46px; }
.extra .cuenta { text-align: right; font-size: 12px; color: var(--muted); margin-top: 2px; }

.form { display: grid; gap: 14px; margin-top: 18px; }
.form[hidden], .drawer-foot[hidden], .vacio[hidden] { display: none; }
.grupo > label { display: block; font-weight: 800; font-size: 14px; margin-bottom: 6px; }
.nota { font-size: 12.5px; color: var(--muted); margin-top: 6px; font-weight: 600; }
.zona-mini { border-radius: 14px; background: var(--turq-soft); padding: 11px 14px; font-weight: 700; font-size: 14.5px; }
.zona-mini.aviso-zona { background: var(--orange-soft); color: #7a4a14; }
.zona-mini button { color: var(--pink-deep); font-weight: 800; text-decoration: underline; padding: 6px 0; }

.totales { margin: 0; display: grid; gap: 4px; font-weight: 700; }
.totales > div { display: flex; justify-content: space-between; }
.totales dt, .totales dd { margin: 0; }
.totales .gratis { color: #19A24C; }
.totales .total { font-size: 20px; font-family: var(--font-title); font-weight: 600; padding-top: 6px; border-top: 2px dashed var(--orange); margin-top: 4px; }
.error { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: var(--pink-soft); color: var(--pink-deep); font-weight: 800; font-size: 14px; }
.error[hidden] { display: none; }

/* Toast */
.toast {
  position: fixed; z-index: 60; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px); max-width: min(92vw, 440px); background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: 16px; font-weight: 700; font-size: 14.5px; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; box-shadow: 0 8px 24px rgba(58, 43, 53, .3);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Pantallas más grandes */
@media (min-width: 720px) {
  .lista { grid-template-columns: 1fr 1fr; }
  .hero-card { max-width: 560px; margin: 0 auto; }
  .hero { padding: 36px 0 28px; }
  .drawer { border-radius: 28px; bottom: 24px; max-height: calc(100dvh - 48px); }
  .drawer-foot { border-radius: 0 0 28px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ============================================================
   v2: slider, página de producto, mapa, footer y modales
   ============================================================ */
body { padding-bottom: 0; }
mark { background: var(--orange-soft); color: var(--orange-ink); padding: 0 4px; border-radius: 4px; font-weight: 700; }
.link-btn { color: var(--pink-deep); font-weight: 800; text-decoration: underline; padding: 4px 0; text-align: left; }
.link-btn[hidden], .mapa-box[hidden] { display: none; }
.mini { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 8px; font-weight: 600; }
.cuenta { text-align: right; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Slider */
.hero { padding: 16px 0 14px; }
.slider[hidden] { display: none; }
.slider-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  border-radius: 24px; -webkit-overflow-scrolling: touch;
}
.slider-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; }
.slide-in {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  aspect-ratio: 2 / 1; min-height: 176px; border-radius: 24px; padding: 18px 12px 18px 20px;
  overflow: hidden; color: #fff; position: relative; text-align: left;
}
.slide-img { display: block; padding: 0; }
.slide-img img { width: 100%; height: 100%; object-fit: cover; }
.f-pink { background: linear-gradient(135deg, #FF6EA4, #FF93BE); }
.f-orange { background: linear-gradient(135deg, #FF9A3C, #FFB878); }
.f-turq { background: linear-gradient(135deg, #5CCDD6, #94DFE4); color: var(--ink); }
.f-ink { background: linear-gradient(135deg, #3A2B35, #5C4757); }
.slide-txt { flex: 1; min-width: 0; z-index: 1; }
.slide-txt h2 { font-family: var(--font-title); font-weight: 600; font-size: 22px; line-height: 1.15; }
.slide-txt p { font-size: 13.5px; font-weight: 600; margin-top: 6px; opacity: .95; line-height: 1.35; }
.slide-btn { margin-top: 12px; height: 38px; padding: 0 16px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 800; font-size: 13.5px; }
.slide-art { flex: none; width: 40%; max-width: 170px; transform: rotate(-12deg) translateX(10%); opacity: .95; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.dot { position: relative; width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .6); padding: 0; transition: width .2s, background .2s; }
.dot::before { content: ''; position: absolute; inset: -10px -4px; }
.dot.on { width: 22px; background: #fff; }

/* Sección de ubicación */
.zona-sec {
  background-color: var(--turq);
  background-image: radial-gradient(circle at center, rgba(255,255,255,.55) 0 6px, transparent 7px);
  background-size: 56px 56px; background-position: 14px 10px; padding: 26px 0; margin-top: 32px;
}
.hero-card h2 { font-family: var(--font-title); font-weight: 600; font-size: 23px; line-height: 1.2; color: var(--pink); text-align: center; margin: 4px 6px 16px; }
.mapa-box { margin-top: 14px; }
#mapa { height: 260px; border-radius: 16px; overflow: hidden; position: relative; z-index: 0; isolation: isolate; background: var(--turq-soft); }
.mapa-info { font-size: 13px; font-weight: 600; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--turq-soft); }
.mapa-info.warn { background: var(--orange-soft); color: #7a4a14; }
.mapa-info.ok { background: #E7F8EC; }
#btn-ajustar { display: block; margin: 12px auto 0; }
.pin span { display: block; width: 30px; height: 30px; margin: 2px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--pink); border: 3px solid #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .3); position: relative; }
.pin span::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }

/* Tarjetas clicables */
.card { cursor: pointer; }
.card h3 a { color: inherit; text-decoration: none; }
.card-nota { display: inline-block; margin-top: 4px; font-size: 12.5px; font-weight: 800; color: var(--orange-ink); }
.card-nota.grande { font-size: 14px; background: var(--orange-soft); padding: 8px 12px; border-radius: 12px; margin: 10px 0 0; }

/* Página de producto */
.pv {
  position: fixed; inset: 0; z-index: 35; background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); visibility: hidden;
  transition: transform .32s cubic-bezier(.32, .72, 0, 1), visibility 0s .32s;
}
.pv.on { transform: none; visibility: visible; transition-delay: 0s; }
.pv-in { max-width: 620px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; background: var(--bg); }
.pv-top {
  position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px; margin-bottom: calc(-70px - env(safe-area-inset-top)); pointer-events: none;
}
.pv-top > * { pointer-events: auto; }
.circ { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow); color: var(--ink); }
.circ .badge { top: -2px; right: -2px; }
.pv-titulo { font-family: var(--font-title); font-weight: 600; font-size: 16px; background: rgba(255, 255, 255, .88); padding: 6px 14px; border-radius: 999px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-img { aspect-ratio: 1 / 1; max-height: 60vh; width: 100%; background: var(--turq-soft); overflow: hidden; }
.pv-gal { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pv-gal::-webkit-scrollbar { display: none; }
.pv-gal > div { flex: 0 0 100%; scroll-snap-align: center; display: grid; place-items: center; height: 100%; }
.pv-gal svg { width: 68%; height: auto; }
.pv-gal img { width: 100%; height: 100%; object-fit: cover; }
.pv-sheet { position: relative; flex: 1; background: #fff; border-radius: 32px 32px 0 0; margin-top: -28px; padding: 22px 20px 24px; }
.pv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pv-head h1 { font-family: var(--font-title); font-weight: 600; font-size: 26px; line-height: 1.15; }
.pv-precio { font-family: var(--font-title); font-weight: 600; font-size: 24px; color: var(--pink-deep); white-space: nowrap; }
.pv-desc { color: var(--muted); margin-top: 10px; font-size: 15px; }
.pv-h { font-family: var(--font-title); font-weight: 600; font-size: 17px; margin: 20px 0 8px; }
.incluye { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-weight: 600; font-size: 14.5px; }
.incluye li::before { content: '🍩'; margin-right: 8px; font-size: 13px; }
.opciones { display: grid; gap: 10px; }
.opc {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; width: 100%;
  border: 2px solid var(--line); border-radius: 16px; padding: 14px 16px; font-weight: 800; background: #fff;
}
.opc .radio { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #D9CED5; }
.opc.on { border-color: var(--pink); background: var(--pink-soft); }
.opc.on .radio { border-color: var(--pink); background: radial-gradient(circle, var(--pink) 0 46%, transparent 52%); }
.pv-envio { margin-top: 20px; font-size: 13.5px; font-weight: 700; color: var(--muted); background: var(--turq-soft); padding: 10px 14px; border-radius: 14px; }
.pv-bar {
  position: sticky; bottom: 0; z-index: 3; display: flex; gap: 12px; align-items: center; background: #fff;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
}
.stepper.grande { background: var(--bg); box-shadow: none; padding: 4px; }
.stepper.grande button { width: 44px; height: 44px; }
.btn-big { flex: 1; min-height: 56px; border-radius: 999px; background: var(--pink); color: #fff; font-weight: 800; font-size: 16.5px; box-shadow: 0 6px 18px rgba(255, 110, 164, .38); }
.btn-big:active { transform: scale(.98); }
.btn-big[disabled] { background: #E9DFE4; color: var(--muted); box-shadow: none; }

/* Formulario del carrito */
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; font-weight: 600; padding: 4px; border-radius: 12px; }
.check input { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--pink); }
.check.invalid { background: var(--pink-soft); }
#dir-hint:empty { display: none; }

/* Modal (legales, cobertura, libro de reclamaciones) */
.overlay2 { z-index: 55; }
.modal { z-index: 56; }
.legal h3, .modal .form h3 { font-family: var(--font-title); font-weight: 600; font-size: 17px; margin: 16px 0 4px; }
.legal p { font-size: 14.5px; margin-bottom: 8px; color: #4D3F48; }
.modal .form { margin-top: 8px; }

/* Footer */
.pie2 { background: #fff; border-top: 1px solid var(--line); }
.pie-grid { display: grid; gap: 26px; padding-top: 32px; padding-bottom: 26px; }
.pie2 h3 { font-family: var(--font-title); font-weight: 600; font-size: 16px; margin-bottom: 10px; }
.pie2 ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--muted); font-weight: 600; }
.pie2 a { color: var(--ink); text-decoration: none; font-weight: 800; }
.pie-marca img { height: 56px; width: auto; margin-bottom: 8px; }
.pie-marca p { font-weight: 700; color: var(--ink); }
.pie-marca .mini { text-align: left; color: var(--muted); }
.libro { display: inline-flex; align-items: center; gap: 10px; border: 2px solid #E3DADF; border-radius: 14px; padding: 8px 14px; font-weight: 800; font-size: 13px; line-height: 1.2; text-align: left; background: #fff; }
.pie-legal { background: var(--turq-soft); padding: 16px 0 calc(96px + env(safe-area-inset-bottom)); font-size: 12.5px; color: var(--muted); text-align: center; font-weight: 600; }
.pie-legal p + p { margin-top: 4px; }

@media (min-width: 720px) {
  .pie-grid { grid-template-columns: 1.3fr 1fr 1fr auto; align-items: start; }
  .slide-in { min-height: 0; }
  .slide-txt h2 { font-size: 30px; }
  .slide-txt p { font-size: 15.5px; }
  .modal { max-width: 620px; }
}
