/* =====================================================================
   UBICACLICK v2 · Páginas públicas nuevas: cuenta, tienda, legal.
   Mismos tokens que app.css / pages.css (tinta índigo, pegatina, sol, turquesa).
   ===================================================================== */
@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage-grotesque.woff") format("woff");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
:root {
  --turq: #12C2B4; --turq-deep: #0A8F86; --sun: #FFD23F; --coral: #FF5E5B; --violet: #7B5CFF;
  --ink: #1D1B3A; --ink-soft: #55537A; --paper: #fff; --mist: #F3F6FF; --rule: #DCE0F0;
  --open: #16A34A; --closing: #F59E0B; --closed: #E5484D; --wa: #25D366;
  --line: 2px solid var(--ink);
  --pop: 0 3px 0 var(--ink);
  --font: "Bricolage", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.site {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background-color: #EEF8F6;
  background-image:
    linear-gradient(rgba(18, 194, 180, .10) 2px, transparent 2px),
    linear-gradient(90deg, rgba(18, 194, 180, .10) 2px, transparent 2px);
  background-size: 56px 56px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--turq-deep); text-underline-offset: 3px; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; background: var(--sun); border: var(--line); border-radius: 999px; }
.skip:focus { left: 12px; }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }
.mt { margin-top: 28px; }
.optional { font-weight: 500; color: var(--ink-soft); font-size: 14px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
mark.pending { background: #FFE9A8; color: #7A4B00; padding: 0 4px; border-radius: 4px; font-weight: 700; }
.h2 { font-size: 22px; }
.h3 { font-size: 19px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.015em; }

/* Barra superior */
.site-bar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, .96);
  border-bottom: var(--line);
}
.site-brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -.035em; font-stretch: 88%; }
.site-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { color: var(--ink); font-weight: 600; text-decoration: none; padding: 8px 12px; border-radius: 999px; }
.site-nav a:hover { background: var(--mist); }
.site-nav__me { display: flex; align-items: center; gap: 8px; }
.site-nav__me img, .avatar-initial { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink); object-fit: cover; }
.avatar-initial { display: grid; place-items: center; background: var(--violet); color: #fff; font-size: 14px; font-weight: 800; }
.site-nav__bell { position: relative; }
.badge { position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; color: #fff; background: var(--coral); border-radius: 999px; }

.site-main { flex: 1; width: 100%; max-width: 980px; margin: 0 auto; padding: 24px 16px 60px; }
.site-main--wide { max-width: 1160px; }
.site-foot { padding: 22px 16px 28px; background: var(--paper); border-top: var(--line); font-size: 14px; text-align: center; }
.site-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 8px; }
.site-foot a, .site-foot .link { color: var(--ink); }
.site-foot p { margin: 0; color: var(--ink-soft); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 46px; padding: 0 20px;
  font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap;
  background: var(--paper); border: var(--line); border-radius: 999px; box-shadow: var(--pop);
  cursor: pointer; transition: transform .12s, box-shadow .12s, background-color .15s;
}
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--turq); color: #fff; }
.btn--primary:hover { background: #0FB0A3; }
.btn--sun { background: var(--sun); }
.btn--danger { color: #B42318; border-color: #B42318; box-shadow: 0 3px 0 #B42318; }
.btn--ghost { background: transparent; box-shadow: none; border-color: transparent; text-decoration: underline; }
.btn--small { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--whatsapp { background: var(--wa); color: #08361b; }
.link { padding: 0; background: none; border: 0; color: var(--turq-deep); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 600; }

/* Tarjetas y avisos */
.card { margin-bottom: 18px; padding: 22px; background: var(--paper); border: var(--line); border-radius: 22px; box-shadow: 0 4px 0 var(--ink); }
.card--narrow { max-width: 520px; margin-left: auto; margin-right: auto; }
.card--alert { border-color: #C98A00; background: #FFF9E6; box-shadow: 0 4px 0 #C98A00; }
.card h1 { margin: 0 0 8px; font-size: 30px; font-weight: 800; font-stretch: 88%; }
.card h2 { margin: 0 0 10px; font-size: 21px; font-weight: 800; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.empty { text-align: center; }
.big-emoji { font-size: 46px; line-height: 1; margin-bottom: 8px; }
.alert { margin: 0 0 16px; padding: 12px 16px; border: 2px solid var(--ink); border-radius: 14px; background: var(--paper); }
.alert p { margin: 0 0 8px; }
.alert p:last-child { margin-bottom: 0; }
.alert--ok { background: #E3F8EC; border-color: var(--open); }
.alert--warn { background: #FFF6D1; border-color: #C98A00; }
.alert--bad { background: #FFE9E8; border-color: var(--closed); }
.pill { display: inline-flex; align-items: center; padding: 1px 10px; font-size: 12.5px; font-weight: 700; border-radius: 999px; background: var(--mist); border: 1.5px solid var(--rule); }
.pill--ok { background: #E3F8EC; border-color: var(--open); color: #0F6B33; }
.pill--warn { background: #FFF6D1; border-color: #C98A00; color: #7A4B00; }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .06em; }

/* Formularios */
.form { display: flex; flex-direction: column; gap: 4px; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; min-width: 0; }
.field label, fieldset legend { font-weight: 700; font-size: 15px; }
.field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .field textarea, .share-box input {
  width: 100%; min-height: 48px; padding: 10px 14px;
  background: #fff; border: 2px solid #B9BED6; border-radius: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--turq-deep); box-shadow: 0 0 0 4px rgba(18, 194, 180, .22); }
.field [aria-invalid="true"] { border-color: var(--closed) !important; }
.field__hint { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-soft); }
.field__error { margin: 2px 0 0; color: #B42318; font-weight: 600; font-size: 14px; }
.check { display: flex; align-items: flex-start; gap: 10px; min-height: 36px; padding: 4px 0; font-weight: 600; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--turq-deep); }
.check--legal { font-weight: 500; font-size: 15px; }
fieldset { margin: 0 0 14px; padding: 0; border: 0; }
.checks-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.checks-grid legend { grid-column: 1 / -1; margin-bottom: 4px; }
.checks-grid .field__hint { grid-column: 1 / -1; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.grid-2--top { align-items: start; gap: 18px; }
.form-inline { display: inline-flex; gap: 8px; margin-top: 8px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--ink-soft); font-size: 14px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 2px; background: var(--rule); }
.google-signin { display: flex; justify-content: center; min-height: 44px; margin: 8px 0; }
.captcha { margin: 6px 0 12px; min-height: 65px; }
.auth h1 { text-align: center; }
.auth > .muted { text-align: center; margin-top: 0; }
.auth__switch { text-align: center; margin: 16px 0 0; }
.auth .big-emoji { text-align: center; }

/* Zona de cuenta */
.account-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 20px; padding: 6px; background: var(--paper); border: var(--line); border-radius: 999px; overflow-x: auto; }
.account-nav a { padding: 8px 14px; font-weight: 700; color: var(--ink); text-decoration: none; border-radius: 999px; white-space: nowrap; }
.account-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.account-nav form { margin-left: auto; padding-right: 10px; }
.page-title h1 { margin: 0 0 4px; font-size: 32px; font-weight: 800; font-stretch: 88%; }
.page-title { margin-bottom: 18px; }
.page-title--row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.profile-hero { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; padding: 22px; background: var(--paper); border: var(--line); border-radius: 24px; box-shadow: 0 4px 0 var(--ink); }
.profile-hero h1 { margin: 0; font-size: 30px; font-weight: 800; font-stretch: 88%; }
.profile-hero p { margin: 4px 0 0; }
.profile-hero > div:nth-child(2) { flex: 1; min-width: 200px; }
.email-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.avatar { display: grid; place-items: center; overflow: hidden; border: 3px solid var(--ink); border-radius: 50%; background: var(--violet); color: #fff; font-weight: 800; }
.avatar--xl { width: 96px; height: 96px; font-size: 40px; box-shadow: 0 4px 0 var(--ink); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.points-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 120px; padding: 12px 18px; color: var(--ink); text-decoration: none; background: var(--sun); border: var(--line); border-radius: 20px; box-shadow: var(--pop); transform: rotate(-2deg); }
.points-tile strong { font-size: 30px; line-height: 1; font-weight: 800; }
.points-tile span { font-weight: 700; font-size: 14px; }
.points-tile--big strong { font-size: 44px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 14px; color: var(--ink); text-decoration: none; font-weight: 600; background: var(--paper); border: var(--line); border-radius: 18px; transition: transform .15s; }
.tile:hover { transform: translateY(-2px); }
.tile__emoji { font-size: 24px; }
.tile strong { font-size: 22px; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { padding: 8px 6px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.table th { font-size: 13px; color: var(--ink-soft); }
.table .num { text-align: right; white-space: nowrap; }
.num.pos { color: #0F6B33; font-weight: 700; }
.num.neg { color: #B42318; font-weight: 700; }
.list-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.list-card { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--paper); border: var(--line); border-radius: 18px; flex-wrap: wrap; }
.list-card__logo { width: 56px; height: 56px; padding: 12px; flex: none; overflow: hidden; color: #fff; background: var(--c); border: 2px solid var(--ink); border-radius: 16px; }
.list-card__logo img { width: calc(100% + 24px); height: calc(100% + 24px); margin: -12px; object-fit: cover; }
.list-card__logo svg { width: 100%; height: 100%; }
.list-card__main { flex: 1; min-width: 180px; }
.list-card__main h2 { margin: 0; font-size: 18px; }
.list-card__main h2 a { color: var(--ink); }
.list-card__main p { margin: 2px 0 0; font-size: 14px; }
.list-card__actions { display: flex; gap: 6px; flex-wrap: wrap; }
.notif-list { list-style: none; margin: 0; padding: 0; }
.notif a { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 6px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.notif a span { grid-column: 1; color: var(--ink-soft); font-size: 14px; }
.notif time { grid-row: 1; grid-column: 2; font-size: 12.5px; color: var(--ink-soft); }
.notif--unread a { background: #FFFBEA; }
.notif--unread strong::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; background: var(--coral); border-radius: 50%; vertical-align: middle; }
.invite-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; padding: 24px; background: linear-gradient(120deg, #E7FBF8, #F1ECFF); border: var(--line); border-radius: 24px; box-shadow: 0 4px 0 var(--ink); }
.invite-hero h1 { margin: 0 0 6px; font-size: 32px; font-weight: 800; font-stretch: 88%; }
.invite-hero > div:first-child { flex: 1; min-width: 260px; }
.share-box { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.share-box input { flex: 1; min-width: 200px; font-size: 14px; }
.reward-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.reward { display: flex; flex-direction: column; overflow: hidden; background: var(--paper); border: var(--line); border-radius: 20px; box-shadow: 0 4px 0 var(--ink); }
.reward__img { width: 100%; height: 130px; object-fit: cover; border-bottom: var(--line); }
.reward__body { flex: 1; padding: 14px 16px 6px; }
.reward__body h2 { margin: 2px 0 6px; font-size: 19px; }
.reward__body p { margin: 0 0 6px; }
.reward__shop { font-size: 13px; font-weight: 700; color: var(--turq-deep); }
.reward__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px 14px; }
.reward__cost { font-weight: 800; font-size: 18px; }
.danger-title { color: #B42318; }
details summary { cursor: pointer; font-weight: 700; }

/* Banner de cookies */
.cookie-banner {
  position: fixed; z-index: 3000; left: 12px; right: 12px; bottom: 12px;
  display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap;
  max-width: 980px; margin: 0 auto; padding: 18px 20px;
  background: var(--paper); border: var(--line); border-radius: 22px; box-shadow: 0 5px 0 var(--ink), 0 20px 50px -20px rgba(29, 27, 58, .5);
  font-family: var(--font); color: var(--ink);
}
.cookie-banner__main { flex: 1 1 380px; }
.cookie-banner h2 { margin: 0 0 4px; font-size: 18px; }
.cookie-banner p { margin: 0; font-size: 14.5px; line-height: 1.45; }
.cookie-banner__prefs { margin-top: 10px; }
.cookie-banner__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-banner .btn { min-height: 42px; font-size: 14.5px; }

/* Legal */
.legal { max-width: 760px; }
.legal h1 { font-size: 34px; }
.legal h2 { margin-top: 26px; font-size: 21px; }
.legal p, .legal li { line-height: 1.6; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 10px 0; }
.legal th, .legal td { padding: 8px; border: 1px solid var(--rule); text-align: left; vertical-align: top; }
.legal th { background: var(--mist); }
.legal-index { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.legal-index a { padding: 6px 12px; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 600; }
.legal-index a[aria-current="page"] { background: var(--ink); color: #fff; }
.legal-note { padding: 12px 16px; background: #FFF6D1; border: 2px dashed #C98A00; border-radius: 14px; font-size: 14.5px; }

/* ------------------------------------------------------------------
   Tienda
   ------------------------------------------------------------------ */
.store-hero { margin-bottom: 20px; overflow: hidden; background: var(--paper); border: var(--line); border-radius: 26px; box-shadow: 0 5px 0 var(--ink); }
.store-hero__cover { height: 190px; background: var(--c); }
.store-hero__cover img { width: 100%; height: 100%; object-fit: cover; }
.store-hero__body { position: relative; display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; padding: 0 22px 20px; }
.store-hero__logo { flex: none; width: 104px; height: 104px; margin-top: -46px; padding: 22px; overflow: hidden; color: #fff; background: var(--c); border: 3px solid var(--ink); border-radius: 26px; box-shadow: 0 4px 0 var(--ink); transform: rotate(-4deg); }
.store-hero__logo img { width: calc(100% + 44px); height: calc(100% + 44px); margin: -22px; object-fit: cover; }
.store-hero__logo svg { width: 100%; height: 100%; }
.store-hero__text { flex: 1; min-width: 220px; padding-top: 14px; }
.store-hero__text h1 { margin: 0 0 8px; font-size: 36px; font-weight: 800; font-stretch: 85%; line-height: 1; }
.store-hero__map { margin-top: 14px; }
.store-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 8px; }
.store-lead { font-size: 17px; margin: 0 0 4px; }
.cat-chip { display: inline-flex; align-items: center; padding: 3px 11px; font-size: 13px; font-weight: 700; color: #fff; background: var(--c); border-radius: 999px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .02em; color: #fff; border-radius: 999px; }
.status i { width: 8px; height: 8px; background: #fff; border-radius: 50%; }
.status--open { background: var(--open); }
.status--closing { background: var(--closing); color: var(--ink); }
.status--closing i { background: var(--ink); }
.status--closed { background: var(--closed); }
.delivery-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; font-size: 13px; font-weight: 700; background: #E7FBF8; border: 2px solid var(--turq-deep); border-radius: 999px; }
.delivery-badge--pickup { background: #F1ECFF; border-color: var(--violet); }
.store-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.store-side { position: sticky; top: 76px; }
.store-section { margin-bottom: 26px; }
.store-section > h2 { margin: 0 0 12px; font-size: 26px; font-weight: 800; font-stretch: 88%; }
.promo-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.promo-card { padding: 14px 16px; background: #FFF6D1; border: var(--line); border-radius: 18px; }
.promo-card--flash { background: linear-gradient(115deg, #FFE36E, #FFB86B 55%, #FF8A80); }
.promo-card img { width: 100%; height: 110px; object-fit: cover; border-radius: 12px; border: 2px solid var(--ink); margin-bottom: 8px; }
.promo-card__kicker { margin: 0; font-size: 13px; font-weight: 800; }
.promo-card h3 { margin: 4px 0; font-size: 18px; }
.promo-card p { margin: 0 0 4px; }
.cat-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 6px; }
.cat-tabs a { flex: none; padding: 6px 14px; font-weight: 700; color: var(--ink); text-decoration: none; background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; }
.catalog-cat { margin: 18px 0 10px; font-size: 20px; scroll-margin-top: 80px; }
.catalog { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.product { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px; background: var(--paper); border: var(--line); border-radius: 18px; }
.product--off { opacity: .6; }
.product__img { width: 96px; height: 96px; display: grid; place-items: center; overflow: hidden; font-size: 34px; background: var(--mist); border: 2px solid var(--ink); border-radius: 14px; }
.product__img img { width: 100%; height: 100%; object-fit: cover; }
.product__body h4 { margin: 0 0 4px; font-size: 17px; }
.product__body p { margin: 0 0 4px; font-size: 14px; color: var(--ink-soft); }
.product__body .product__price { margin-top: 6px; font-size: 17px; font-weight: 800; color: var(--ink); }
.product__na { color: #B42318 !important; font-weight: 700; }
.product__add { position: absolute; right: 12px; bottom: 12px; }
.info-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.info-list li { display: flex; gap: 8px; }
.hours-box table { width: 100%; margin-top: 6px; font-size: 14px; border-collapse: collapse; }
.hours-box th, .hours-box td { padding: 4px 0; text-align: left; border-bottom: 1px solid var(--rule); }
.hours-box th { color: var(--ink-soft); font-weight: 600; }
.cart-lines { list-style: none; margin: 0 0 8px; padding: 0; }
.cart-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.cart-line__text { display: flex; flex-direction: column; }
.cart-line .link { grid-column: 1; justify-self: start; }
.qty { display: inline-flex; align-items: center; gap: 4px; border: 2px solid var(--ink); border-radius: 999px; padding: 2px; align-self: start; }
.qty button { width: 32px; height: 32px; font-weight: 800; background: var(--mist); border: 0; border-radius: 50%; cursor: pointer; }
.qty span { min-width: 22px; text-align: center; font-weight: 800; }
.cart-total { display: flex; justify-content: space-between; font-size: 17px; margin: 10px 0; }
.cart .link { margin-top: 8px; display: inline-block; }
.cart-fab { position: fixed; z-index: 60; left: 50%; bottom: 16px; transform: translateX(-50%); display: none; align-items: center; gap: 8px; padding: 12px 20px; font-weight: 800; color: var(--ink); background: var(--sun); border: var(--line); border-radius: 999px; box-shadow: 0 4px 0 var(--ink), 0 14px 30px -10px rgba(29, 27, 58, .5); cursor: pointer; }
.cart-fab.is-pulse { animation: fab-pulse .5s var(--ease-spring); }
@keyframes fab-pulse { 50% { transform: translateX(-50%) scale(1.08); } }

/* Diálogos */
.modal { width: min(460px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; color: var(--ink); background: var(--paper); border: var(--line); border-radius: 24px; box-shadow: 0 6px 0 var(--ink); }
.modal--wide { width: min(620px, calc(100% - 24px)); }
.modal::backdrop { background: rgba(29, 27, 58, .45); }
.modal[open] { animation: modal-in .3s var(--ease-spring); }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
.modal__body { padding: 22px; }
.modal__body h2 { margin: 0 0 10px; font-size: 22px; }
.modal__actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 14px; }
.opt-group { margin-bottom: 10px; }
.qty-row { display: flex; align-items: center; gap: 10px; }
.qty-row input { width: 80px; min-height: 42px; padding: 6px 10px; border: 2px solid #B9BED6; border-radius: 12px; }
.modes { display: flex; gap: 8px; flex-wrap: wrap; }
.modes legend { margin-bottom: 6px; }
.mode { flex: 1 1 200px; display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-weight: 700; border: 2px solid var(--rule); border-radius: 14px; cursor: pointer; }
.mode:has(input:checked) { border-color: var(--ink); background: #E7FBF8; }
.summary { margin: 8px 0; padding: 10px 14px; background: var(--mist); border-radius: 14px; }
.summary p { display: flex; justify-content: space-between; margin: 2px 0; }
.summary__total { font-size: 18px; }
.notice { padding: 10px 14px; font-size: 14px; background: #FFF6D1; border: 2px solid #C98A00; border-radius: 14px; }

/* Responsive */
@media (max-width: 860px) {
  .store-layout { grid-template-columns: 1fr; }
  .store-side { position: static; }
  .cart-fab { display: inline-flex; }
  .catalog { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .site-bar { padding: 8px 12px; }
  .site-brand span { display: none; }
  .site-nav a { padding: 8px 9px; }
  .site-nav__me span { display: none; }
  .grid-2, .checks-grid { grid-template-columns: 1fr; }
  .card { padding: 18px; border-radius: 20px; }
  .card h1, .page-title h1 { font-size: 26px; }
  .account-nav { border-radius: 18px; }
  .account-nav form { margin-left: 0; }
  .store-hero__cover { height: 140px; }
  .store-hero__text h1 { font-size: 30px; }
  .store-hero__logo { width: 84px; height: 84px; padding: 18px; margin-top: -36px; }
  .store-hero__logo img { width: calc(100% + 36px); height: calc(100% + 36px); margin: -18px; }
  .product { grid-template-columns: 76px minmax(0, 1fr); padding-bottom: 54px; }
  .product__img { width: 76px; height: 76px; }
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 14px; }
  .cookie-banner__actions { width: 100%; flex-wrap: nowrap; gap: 6px; }
  .cookie-banner__actions .btn { flex: 1 1 0; min-height: 40px; padding: 0 6px; font-size: 13px; }
  .cookie-banner p { font-size: 13px; }
  .table { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* v3 · contador en el menú de la cuenta */
.nav-count { display: inline-block; min-width: 20px; height: 20px; padding: 0 6px; font-size: 12px; font-weight: 800; line-height: 20px; text-align: center; color: #fff; background: var(--coral); border-radius: 999px; }
/* v3 · Tienda: valoración permanente y acciones (chat, mapa) */
.store-rating { margin: 0 0 6px; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); }
.store-rating .stars-text { color: #F5A400; font-size: 17px; letter-spacing: 1px; }
.store-rating .stars-off { color: #C9CDE0; }
.store-hero__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.store-hero__actions .store-hero__map { margin-top: 0; }
.store-hero__actions .btn-chat { text-decoration: none; }
@media (max-width: 760px) { .store-hero__actions { flex-direction: row; flex-wrap: wrap; align-items: center; } }
@media (max-width: 860px) { .store-layout { grid-template-columns: minmax(0, 1fr); } }
/* v3 · Tablas legales en móvil: se desplazan dentro de su caja en lugar de ensanchar la página */
@media (max-width: 760px) { .legal table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; } .legal td, .legal th { min-width: 120px; } }
/* v3 · En móvil las columnas nunca se ensanchan por su contenido */
@media (max-width: 760px) { .grid-2, .checks-grid { grid-template-columns: minmax(0, 1fr); } }
.card, .field { min-width: 0; }
.field input, .field select, .field textarea { max-width: 100%; min-width: 0; box-sizing: border-box; }

/* v3.1 · Mensajes: contador oculto cuando no hay pendientes y aviso discreto */
.badge[hidden] { display: none; }
.uc-dm-toast {
  position: fixed; z-index: 4500; left: 50%; top: calc(14px + env(safe-area-inset-top, 0px));
  display: flex; align-items: center; gap: 10px; max-width: min(92vw, 380px);
  padding: 10px 14px; font-weight: 700; font-size: 14.5px; color: var(--ink, #1D1B3A); text-decoration: none;
  background: var(--paper, #fff); border: 2px solid var(--ink, #1D1B3A); border-radius: 999px; box-shadow: 0 3px 0 var(--ink, #1D1B3A);
  transform: translate(-50%, -12px); opacity: 0; transition: opacity .2s, transform .2s;
}
.uc-dm-toast.is-in { transform: translate(-50%, 0); opacity: 1; }
.uc-dm-toast span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .uc-dm-toast { transition: none; } }

/* v3.4 · Próximos festivos y horarios especiales en la tienda */
.hours-box__special { margin: 12px 0 0; font-size: 13px; font-weight: 700; color: var(--ink-soft); }

/* v3.4 · Accesos directos de la tienda */
.store-acts { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; margin-top: 4px; }
.store-act {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 14px;
  font: inherit; font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: none; cursor: pointer;
  background: var(--paper, #fff); border: 2px solid var(--ink); border-radius: 999px; box-shadow: 0 3px 0 var(--ink);
}
.store-act:active { transform: translateY(3px); box-shadow: none; }
@media (max-width: 560px) { .store-act { flex: 1 1 calc(50% - 8px); justify-content: center; } }
.promo-card--event { background: #EFEBFF; }
