/* =========================================================================
   monabars — estilos de la tienda
   Paleta tomada del catálogo: verde #062F24 sobre crema #F5F2EC
   ========================================================================= */

:root {
  --green:        #062F24;
  --green-700:    #0B4433;
  --green-500:    #17614A;
  --green-300:    #6E9285;
  --cream:        #F5F2EC;
  --cream-dark:   #E7E2D8;
  --paper:        #FFFFFF;
  --ink:          #12211C;
  --muted:        #5E6E67;
  --line:         #DCD6C9;
  --danger:       #A8332A;
  --danger-bg:    #FBEDEB;
  --warn:         #8A6210;
  --warn-bg:      #FDF3DC;
  --ok:           #1F6B45;
  --ok-bg:        #E7F3EC;

  --radius:       14px;
  --radius-lg:    22px;
  --shadow:       0 1px 2px rgba(6,47,36,.06), 0 8px 24px rgba(6,47,36,.07);
  --shadow-lg:    0 20px 50px rgba(6,47,36,.16);

  --wrap:         1140px;
  --font:         "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img { max-width: 100%; display: block; height: auto; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }
a  { color: inherit; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.italic { font-style: italic; }

/* ------------------------------------------------------------- tipografía */
.script { font-style: italic; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .16em;
  font-size: .72rem; font-weight: 600; color: var(--green-500);
  margin-bottom: .6rem;
}

/* ---------------------------------------------------------------- botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; line-height: 1;
  padding: .95rem 1.5rem;
  border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform .12s ease, background .15s ease, opacity .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--green); color: var(--cream); }
.btn-primary:hover:not(:disabled) { background: var(--green-700); }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--green); }
.btn-ghost:hover:not(:disabled) { background: rgba(6,47,36,.06); }
.btn-quiet { background: var(--cream-dark); color: var(--green); }
.btn-sm { padding: .55rem 1rem; font-size: .85rem; }
.btn-block { width: 100%; }

/* ------------------------------------------------------------------ badge */
.badge {
  display: inline-block; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  padding: .32rem .7rem; border-radius: 999px;
  background: var(--green); color: var(--cream);
}
.badge-out { background: var(--warn-bg); color: var(--warn); }
.badge-line { background: transparent; border: 1.5px solid var(--green); color: var(--green); }

/* --------------------------------------------------------------- mensajes */
.note {
  border-radius: var(--radius); padding: .9rem 1.1rem;
  font-size: .9rem; border: 1px solid transparent;
}
.note-info { background: var(--paper); border-color: var(--line); }
.note-warn { background: var(--warn-bg); border-color: #E9D5A1; color: var(--warn); }
.note-err  { background: var(--danger-bg); border-color: #EBC4BF; color: var(--danger); }
.note-ok   { background: var(--ok-bg); border-color: #BFDCCB; color: var(--ok); }
.note strong { font-weight: 700; }

/* =========================================================== header / nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,242,236,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  padding: .7rem 0; min-height: 64px;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { width: 38px; height: auto; }
.brand-text { font-size: 1.35rem; font-weight: 700; letter-spacing: -.03em; color: var(--green); }
.brand-text em { font-style: italic; font-weight: 700; }

.site-nav { display: none; margin-left: auto; gap: 1.6rem; font-size: .92rem; font-weight: 500; }
.site-nav a { text-decoration: none; color: var(--green); opacity: .85; }
.site-nav a:hover { opacity: 1; }
@media (min-width: 860px) { .site-nav { display: flex; } }

.header-cta { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
@media (min-width: 860px) { .header-cta { margin-left: 0; } }

.cart-pill {
  white-space: nowrap;
  position: relative; display: inline-flex; align-items: center; gap: .5rem;
  background: var(--green); color: var(--cream);
  border: none; font: inherit; font-weight: 600; font-size: .9rem;
  padding: .6rem 1.1rem; border-radius: 999px; cursor: pointer;
}
.cart-pill .count {
  background: var(--cream); color: var(--green);
  min-width: 1.4rem; height: 1.4rem; border-radius: 999px;
  display: grid; place-items: center; font-size: .78rem; font-weight: 700;
}

/* =============================================================== anuncio */
.announcement {
  background: var(--green); color: var(--cream);
  text-align: center; font-size: .85rem; padding: .55rem 1rem;
}

/* ================================================================== hero */
.hero {
  background: #06271E; color: var(--cream);
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3.5rem, 9vw, 6rem);
  position: relative; overflow: hidden;
}
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 3.5rem; } }
.hero h1 { color: var(--cream); margin-bottom: .4em; }
.hero h1 em { font-style: italic; }
.hero p.lead { font-size: clamp(1rem, 2.2vw, 1.18rem); opacity: .88; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero .btn-primary { background: var(--cream); color: var(--green); }
.hero .btn-ghost { border-color: rgba(245,242,236,.5); color: var(--cream); }
.hero .btn-ghost:hover { background: rgba(245,242,236,.12); }
.hero-logo { justify-self: center; width: min(320px, 70%); opacity: .96; }
/* La foto trae su propio fondo verde (#06271E). Pintamos el hero de ese mismo
   tono para que las barras floten sin que se note el recuadro de la imagen. */
.hero-photo { justify-self: center; width: min(420px, 92%); }

.claims {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem 1rem;
  margin-top: 2.6rem; padding-top: 2.2rem;
  border-top: 1px solid rgba(245,242,236,.22);
}
@media (min-width: 700px) { .claims { grid-template-columns: repeat(4, 1fr); } }
.claim { display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center; }
.claim svg { width: 40px; height: 40px; stroke: var(--cream); fill: none; stroke-width: 1.3; opacity: .9; }
.claim span { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; opacity: .8; line-height: 1.3; }

/* ============================================================== secciones */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-head { max-width: 60ch; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); }

/* =============================================================== catálogo */
.product-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.card {
  background: var(--paper); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  border: 1px solid rgba(220,214,201,.7);
}
/* flex:none + posicionamiento absoluto de la imagen: sin esto el alto lo manda
   el tamaño natural de la foto y las tarjetas quedan disparejas. */
.card-media {
  position: relative; aspect-ratio: 4/3; flex: none;
  background: var(--cream-dark); overflow: hidden;
}
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-flags { position: absolute; inset: .75rem .75rem auto; display: flex; gap: .4rem; flex-wrap: wrap; }
.card-body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; flex: 1; gap: .55rem; }
.card-title { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; }
.card-title h3 { margin: 0; font-size: 1.02rem; letter-spacing: -.01em; }
.price { font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.card-size { font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card-desc { font-size: .875rem; color: var(--muted); margin: 0; }
.card-foot { margin-top: auto; padding-top: .9rem; display: grid; gap: .6rem; }

.opt-row { display: grid; gap: .35rem; }
.opt-row label { font-size: .78rem; font-weight: 600; color: var(--muted); }
.addon-row {
  display: flex; align-items: center; gap: .55rem;
  font-size: .84rem; background: var(--cream); border-radius: 10px; padding: .55rem .7rem;
}
.addon-row input { accent-color: var(--green); width: 16px; height: 16px; }

.qty {
  display: inline-flex; align-items: center; border: 1.5px solid var(--line);
  border-radius: 999px; overflow: hidden; background: var(--paper);
}
.qty button {
  width: 34px; height: 34px; border: 0; background: transparent;
  font-size: 1.1rem; line-height: 1; cursor: pointer; color: var(--green);
}
.qty button:disabled { opacity: .3; cursor: not-allowed; }
.qty span { min-width: 2ch; text-align: center; font-weight: 600; font-size: .95rem; }

.card.is-out .card-media img { filter: grayscale(.55) brightness(.94); }

/* ============================================================== cobertura */
.zones { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.zone {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.4rem 1.5rem;
}
.zone h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: 1rem; }
.zone .fee { font-size: .84rem; font-weight: 600; color: var(--green-500); white-space: nowrap; }
.zone ul { list-style: none; margin: .8rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.zone li {
  font-size: .8rem; background: var(--cream); border-radius: 999px; padding: .28rem .7rem; color: var(--muted);
}
.zone.is-pickup { background: var(--green); color: var(--cream); border-color: var(--green); }
.zone.is-pickup .fee { color: rgba(245,242,236,.75); }
.zone.is-pickup li { background: rgba(245,242,236,.12); color: rgba(245,242,236,.9); }

/* ================================================================== pasos */
.steps { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: s; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem; }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  display: block; font-size: 1.6rem; font-weight: 700; color: var(--green-300); margin-bottom: .4rem;
}
.step h3 { font-size: .98rem; }
.step p { font-size: .875rem; color: var(--muted); margin: 0; }

/* ============================================================== checkout */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(6,47,36,.42);
  opacity: 0; pointer-events: none; transition: opacity .22s ease; z-index: 90;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; inset: 0 0 0 auto; z-index: 100;
  width: min(100%, 560px); background: var(--cream);
  transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.drawer.open { transform: none; }
.drawer-head {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line);
  background: var(--cream);
}
.drawer-head h2 { margin: 0; font-size: 1.1rem; }
.drawer-close {
  margin-left: auto; background: transparent; border: 0; cursor: pointer;
  font-size: 1.6rem; line-height: 1; color: var(--green); padding: .2rem .4rem;
}
.drawer-body { flex: 1; overflow-y: auto; padding: 1.4rem; }
.drawer-foot {
  border-top: 1px solid var(--line); padding: 1.1rem 1.4rem;
  background: var(--paper); display: grid; gap: .8rem;
}

.stepper { display: flex; gap: .4rem; padding: 0 1.4rem 1rem; background: var(--cream); }
.stepper .dot {
  flex: 1; height: 4px; border-radius: 999px; background: var(--cream-dark);
}
.stepper .dot.done { background: var(--green); }

/* --------------------------------------------------------- líneas de cart */
.line {
  display: grid; grid-template-columns: 56px 1fr auto; gap: .85rem;
  align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--line);
}
.line:last-of-type { border-bottom: 0; }
.line img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.line-name { font-size: .9rem; font-weight: 600; line-height: 1.3; }
.line-meta { font-size: .76rem; color: var(--muted); }
.line-price { font-weight: 600; font-size: .92rem; white-space: nowrap; }
.line-remove {
  background: none; border: 0; color: var(--muted); cursor: pointer;
  font-size: .76rem; text-decoration: underline; padding: 0; margin-top: .15rem;
}

.totals { margin-top: 1.2rem; display: grid; gap: .45rem; font-size: .9rem; }
.totals .row { display: flex; justify-content: space-between; gap: 1rem; }
.totals .row.grand { font-size: 1.15rem; font-weight: 700; padding-top: .6rem; border-top: 1px solid var(--line); }

/* ------------------------------------------------------------ formularios */
.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field > label { font-size: .82rem; font-weight: 600; }
.field .hint { font-size: .76rem; color: var(--muted); }
.field .err { font-size: .78rem; color: var(--danger); font-weight: 500; }

input[type="text"], input[type="tel"], input[type="email"], input[type="date"],
input[type="number"], input[type="password"], select, textarea {
  font: inherit; font-size: .95rem; color: var(--ink);
  padding: .72rem .85rem; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--paper); width: 100%;
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235E6E67' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.2rem; }
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(23,97,74,.13);
}
input.invalid, select.invalid, textarea.invalid { border-color: var(--danger); }

.field-row { display: grid; gap: 1rem; }
@media (min-width: 480px) { .field-row.two { grid-template-columns: 1fr 1fr; } }

/* -------------------------------------------------------- opciones tarjeta */
.choice-list { display: grid; gap: .6rem; }
.choice {
  display: flex; gap: .8rem; align-items: flex-start;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: .9rem 1rem; background: var(--paper); cursor: pointer;
  transition: border-color .14s ease, background .14s ease;
}
.choice:hover { border-color: var(--green-300); }
.choice input { accent-color: var(--green); margin-top: .18rem; width: 17px; height: 17px; flex: none; }
.choice.selected { border-color: var(--green); background: #FBFAF7; }
.choice.disabled { opacity: .5; cursor: not-allowed; }
.choice-title { font-size: .92rem; font-weight: 600; }
.choice-sub { font-size: .8rem; color: var(--muted); }

/* ----------------------------------------------------------- días / horas */
.day-scroll {
  display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.day-chip {
  flex: none; min-width: 88px; text-align: center; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--paper);
  border-radius: var(--radius); padding: .65rem .5rem; font: inherit;
  transition: border-color .14s ease;
}
.day-chip .dow,
.day-chip .num,
.day-chip .mon { display: block; }
.day-chip .dow { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.day-chip .num { font-size: 1.3rem; font-weight: 700; line-height: 1.25; }
.day-chip .mon { font-size: .7rem; color: var(--muted); }
.day-chip.selected { border-color: var(--green); background: var(--green); color: var(--cream); }
.day-chip.selected .dow, .day-chip.selected .mon { color: rgba(245,242,236,.8); }

.slot-grid { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin-top: .9rem; }
.slot-btn {
  border: 1.5px solid var(--line); background: var(--paper); border-radius: var(--radius);
  padding: .7rem .5rem; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
}
.slot-btn.selected { border-color: var(--green); background: var(--green); color: var(--cream); }

/* ------------------------------------------------------------------- pago */
.qr-box {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.4rem; text-align: center; margin-bottom: 1.1rem;
}
.qr-box img { width: min(230px, 70%); margin: 0 auto 1rem; border-radius: 12px; }
.qr-placeholder {
  width: min(230px, 70%); aspect-ratio: 1; margin: 0 auto 1rem;
  border: 2px dashed var(--line); border-radius: 12px;
  display: grid; place-items: center; color: var(--muted); font-size: .8rem; padding: 1rem; text-align: center;
}
.pay-amount { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; }
.pay-data { display: grid; gap: .5rem; margin-top: 1rem; text-align: left; }
.pay-data .kv {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-size: .86rem; background: var(--cream); border-radius: 10px; padding: .6rem .8rem;
}
.pay-data .kv b { font-weight: 600; }
.copy-btn {
  background: none; border: 0; cursor: pointer; color: var(--green-500);
  font: inherit; font-size: .78rem; font-weight: 600; text-decoration: underline; white-space: nowrap;
}

.dropzone {
  border: 2px dashed var(--line); border-radius: var(--radius-lg);
  padding: 1.8rem 1.2rem; text-align: center; cursor: pointer; background: var(--paper);
  transition: border-color .15s ease, background .15s ease;
}
.dropzone:hover, .dropzone.drag { border-color: var(--green-500); background: #FBFAF7; }
.dropzone.has-file { border-style: solid; border-color: var(--green); text-align: left; }
.dropzone input[type="file"] { display: none; }
.preview { display: flex; align-items: center; gap: .9rem; }
.preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.preview .name { font-size: .86rem; font-weight: 600; word-break: break-all; }

.summary-box {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.2rem 1.3rem; margin-bottom: 1.1rem;
}
.summary-box dl { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; margin: 0; font-size: .88rem; }
.summary-box dt { color: var(--muted); }
.summary-box dd { margin: 0; font-weight: 600; text-align: right; }

/* ------------------------------------------------------------------ éxito */
.success { text-align: center; padding: 1.5rem 0; }
.success .tick {
  width: 68px; height: 68px; margin: 0 auto 1.2rem; border-radius: 999px;
  background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; font-size: 2rem;
}
.success .code {
  display: inline-block; font-size: 1.5rem; font-weight: 700; letter-spacing: .05em;
  background: var(--cream-dark); padding: .5rem 1.1rem; border-radius: 12px; margin: .5rem 0 1.2rem;
}

/* ----------------------------------------------------------------- footer */
.site-footer { background: var(--green); color: var(--cream); padding: 3rem 0 2rem; margin-top: 2rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; opacity: .65; margin-bottom: .9rem; }
.site-footer a { color: var(--cream); text-decoration: none; opacity: .9; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .9rem; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(245,242,236,.2);
  font-size: .78rem; opacity: .6; display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between;
}

/* ------------------------------------------------------------------ misc */
.spinner {
  width: 16px; height: 16px; border-radius: 999px;
  border: 2px solid currentColor; border-top-color: transparent;
  animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
  background: linear-gradient(90deg, var(--cream-dark) 25%, #EFEBE2 50%, var(--cream-dark) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-lg);
}
@keyframes shimmer { to { background-position: -200% 0; } }

.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;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ====================================================== cuentas de cliente */

.linklike {
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
  color: var(--green-500); font-weight: 600; text-decoration: underline;
}

.auth-backdrop {
  position: fixed; inset: 0; background: rgba(6,47,36,.45);
  opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 110;
}
.auth-backdrop.open { opacity: 1; pointer-events: auto; }

.auth-modal {
  position: fixed; z-index: 120; left: 50%; top: 50%;
  transform: translate(-50%, -46%) scale(.98);
  width: min(100% - 2rem, 460px); max-height: 90dvh; overflow-y: auto;
  background: var(--cream); border-radius: var(--radius-lg);
  padding: 2rem 1.75rem 1.75rem; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.auth-modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.auth-modal h2 { font-size: 1.3rem; margin-bottom: .3rem; }
.auth-close {
  position: absolute; top: .8rem; right: 1rem; background: none; border: 0;
  font-size: 1.7rem; line-height: 1; color: var(--green); cursor: pointer; padding: .2rem .4rem;
}

.auth-tabs {
  display: flex; gap: .3rem; background: var(--cream-dark);
  border-radius: 999px; padding: .25rem; margin: 1.2rem 0 1.4rem;
}
.auth-tabs button {
  flex: 1; border: 0; background: transparent; font: inherit; font-size: .88rem;
  font-weight: 600; color: var(--muted); padding: .55rem .5rem;
  border-radius: 999px; cursor: pointer;
}
.auth-tabs button.active { background: var(--paper); color: var(--green); box-shadow: var(--shadow); }

/* pastilla de sesión en el header */
.account-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  background: transparent; border: 1.5px solid var(--green); color: var(--green);
  font: inherit; font-weight: 600; font-size: .88rem;
  padding: .55rem 1rem; border-radius: 999px; cursor: pointer; text-decoration: none;
}
.account-btn:hover { background: rgba(6,47,36,.06); }
.account-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ------------------------------------------------------- direcciones guardadas */
.addr-list { display: grid; gap: .7rem; }
.addr-card {
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: .9rem 1rem; background: var(--paper);
  display: flex; gap: .8rem; align-items: flex-start;
}
.addr-card.selected { border-color: var(--green); background: #FBFAF7; }
.addr-card input[type="radio"] { accent-color: var(--green); margin-top: .2rem; width: 17px; height: 17px; flex: none; }
.addr-card .body { flex: 1; min-width: 0; }
.addr-label {
  font-weight: 700; font-size: .9rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.addr-label .tag {
  font-size: .62rem; text-transform: uppercase; letter-spacing: .08em;
  background: var(--green); color: var(--cream); border-radius: 999px; padding: .15rem .5rem;
}
.addr-lines { font-size: .84rem; color: var(--muted); }
.addr-actions { display: flex; gap: .8rem; margin-top: .4rem; }

/* ------------------------------------------------------------- mi cuenta */
.account-page { padding: clamp(2rem, 5vw, 3.5rem) 0 5rem; }
.account-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .account-grid { grid-template-columns: 240px 1fr; gap: 3rem; } }

.account-nav { display: flex; flex-direction: row; gap: .3rem; overflow-x: auto; }
@media (min-width: 900px) { .account-nav { flex-direction: column; position: sticky; top: 90px; } }
.account-nav button {
  flex: none; text-align: left; background: none; border: 0; font: inherit;
  font-size: .92rem; font-weight: 600; color: var(--muted);
  padding: .7rem 1rem; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.account-nav button.active { background: var(--green); color: var(--cream); }

.points-card {
  background: var(--green); color: var(--cream); border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem; margin-bottom: 1.5rem;
}
.points-card .n { font-size: 2.2rem; font-weight: 700; line-height: 1; }
.points-bar {
  height: 8px; border-radius: 999px; background: rgba(245,242,236,.22);
  margin: .9rem 0 .5rem; overflow: hidden;
}
.points-bar span { display: block; height: 100%; background: var(--cream); border-radius: 999px; }

.order-hist {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--paper); padding: 1.1rem 1.3rem; margin-bottom: .8rem;
}
.order-hist header {
  display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin-bottom: .6rem;
}
.order-hist .code { font-weight: 700; letter-spacing: .04em; font-size: .92rem; }
.order-hist .when { font-size: .82rem; color: var(--muted); }
.order-hist ul { list-style: none; margin: 0; padding: 0; font-size: .86rem; color: var(--muted); }


/* ------------------------------------------------- cabecera en móvil chico
   A 390 px la marca + "Ingresar" + "Mi pedido" no entraban: la píldora del
   carrito se salía de la pantalla y su texto se partía en dos líneas, lo que
   estiraba la cabecera y descuadraba todo lo de arriba. */
@media (max-width: 560px) {
  .header-inner { gap: .55rem; min-height: 58px; padding: .55rem 0; }
  .brand img    { width: 30px; }
  .brand-text   { font-size: 1.05rem; }
  .header-cta   { gap: .4rem; }
  .account-btn  { padding: .5rem; }
  .account-btn span { display: none; }        /* solo el icono */
  .cart-pill    { padding: .5rem .75rem; font-size: .82rem; gap: .4rem; }
  .cart-pill .count { min-width: 1.25rem; height: 1.25rem; font-size: .72rem; }
}
@media (max-width: 380px) {
  .brand-text { display: none; }              /* con el mono basta */
}


/* ------------------------------------------------------ cupos completos */
.day-chip.full, .slot-btn.full {
  opacity: .45; cursor: not-allowed; background: var(--cream-dark);
  border-style: dashed; color: var(--muted);
}
.day-chip.full .mon { font-size: .62rem; letter-spacing: .04em; }
.slot-btn { display: flex; flex-direction: column; gap: .15rem; align-items: center; }
.slot-note { font-size: .68rem; font-weight: 600; opacity: .8; }
.slot-btn.selected .slot-note { color: rgba(245,242,236,.85); }

/* tres listas para la fecha: día / mes / año, sin ambigüedad de formato */
.date-selects { display: grid; grid-template-columns: 1fr 1.5fr 1.1fr; gap: .4rem; }
.date-selects select { padding-right: 1.6rem; background-position: right .5rem center; }


/* estados de pedido (compartidos con el panel) */
.status {
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: .28rem .6rem; border-radius: 999px; white-space: nowrap;
}
.status.pending   { background: var(--warn-bg);   color: var(--warn); }
.status.confirmed { background: var(--ok-bg);     color: var(--ok); }
.status.delivered { background: var(--cream-dark); color: var(--muted); }
.status.rejected  { background: var(--danger-bg); color: var(--danger); }
