/* ═══════════════════════════════════════════════════════════════════════════
   shared.css — BigLow Web · Estilos globales (rebuilt 2026-04-10)
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Reset ──────────────────────────────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
[hidden]{display:none!important}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{
  font-family:'Inter',system-ui,sans-serif;
  font-size:15px;line-height:1.55;color:#1A1A1A;
  background:#FAFAFA;overflow-x:hidden;min-height:100dvh;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
img{max-width:100%;display:block}
button,input,select,textarea{font:inherit;color:inherit}
a{color:inherit;text-decoration:none}
ul,ol{list-style:none}

h1,h2,h3,h4,h5,h6{
  font-family:'Montserrat',sans-serif;
  font-weight:800;
  letter-spacing:-1px;
}
button,
.btn,
.price{
  font-family:'Poppins',sans-serif;
  font-weight:600;
  letter-spacing:-0.3px;
}

/* ── Skip link ──────────────────────────────────────────────────────────── */
.skip-link{
  position:absolute;top:-100%;left:16px;padding:8px 16px;
  background:#D62828;color:#fff;border-radius:0 0 8px 8px;z-index:100000;
  font-weight:600;font-size:.85rem;
}
.skip-link:focus{top:0}

/* ── Container ──────────────────────────────────────────────────────────── */
.container{width:100%;max-width:1200px;margin:0 auto;padding:0 1.25rem}

/* ── Toast ──────────────────────────────────────────────────────────────── */
.toast-stack{
  position:fixed;top:1rem;right:1rem;z-index:100010;
  display:flex;flex-direction:column;gap:.5rem;pointer-events:none;
}
.toast-item{
  pointer-events:auto;padding:.65rem 1.2rem;border-radius:10px;
  font-size:.82rem;font-weight:600;color:#fff;background:#1A1A1A;
  box-shadow:0 4px 14px rgba(0,0,0,.18);
  transform:translateX(120%);opacity:0;
  transition:transform .35s cubic-bezier(.22,1,.36,1),opacity .35s;
}
.toast-item.is-visible{transform:translateX(0);opacity:1}
.toast-item--success{background:#16A34A}
.toast-item--error{background:#DC2626}
.toast-item--warning{background:#F59E0B;color:#1A1A1A}

/* ── Topbar / Navbar ────────────────────────────────────────────────────── */
.topbar{
  position:sticky;top:0;z-index:9990;
  display:flex;align-items:center;justify-content:space-between;
  height:66px;padding:0 1.5rem;
  background:rgba(255,255,255,.96);
  -webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);
  box-shadow:0 1px 0 rgba(0,0,0,.07),0 4px 20px rgba(0,0,0,.04);
  transition:transform .3s cubic-bezier(.4,0,.2,1),box-shadow .3s;
  will-change:transform;
}
.topbar.is-hidden{
  transform:translateY(-100%);
  box-shadow:none;
  pointer-events:none;
}
.topbar.is-compact{
  box-shadow:0 1px 0 rgba(0,0,0,.05),0 2px 8px rgba(0,0,0,.06);
}
/* Red accent line on left edge */
.topbar::before{
  content:'';position:absolute;left:0;top:12px;bottom:12px;
  width:3px;border-radius:0 3px 3px 0;background:#D62828;
}
.topbar__left{display:flex;align-items:center;gap:.8rem}
.nav-logo-link{display:flex;flex-direction:column;align-items:center;gap:1px;line-height:1}
.nav-logo-img{height:38px;width:auto}
.nav-logo-tagline{font-family:'Lora',Georgia,serif;font-size:.52rem;font-style:italic;color:rgba(0,0,0,.32);letter-spacing:.04em}

/* Store status badge */
.store-status{
  display:inline-flex;align-items:center;gap:5px;
  padding:4px 10px;border-radius:20px;
  font-size:.6rem;font-weight:700;letter-spacing:.07em;
}
.status-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0}
.status-dot--open{background:#16A34A;box-shadow:0 0 0 2px rgba(22,163,74,.25)}
.status-dot--closed{background:#DC2626}
.store-status--open{background:rgba(22,163,74,.1);color:#15803D}
.store-status--closed{background:rgba(220,40,40,.08);color:#991B1B}

/* Nav links (desktop) */
.topbar__center{display:flex;gap:2rem}
.nav-link{
  position:relative;
  font-size:.76rem;font-weight:700;letter-spacing:.07em;
  text-transform:uppercase;color:#888;
  padding:.2rem 0;
  transition:color .2s;
}
.nav-link::after{
  content:'';position:absolute;bottom:-4px;left:0;right:0;
  height:2.5px;border-radius:2px;background:#D62828;
  transform:scaleX(0);transform-origin:center;
  transition:transform .25s cubic-bezier(.22,1,.36,1);
}
.nav-link:hover{color:#D62828}
.nav-link:hover::after{transform:scaleX(1)}
.nav-link[aria-current="page"]{color:#D62828}
.nav-link[aria-current="page"]::after{transform:scaleX(1)}

/* Auth area */
.topbar__right{display:flex;align-items:center;gap:.5rem}
.auth-guest,.auth-user{display:flex;align-items:center;gap:.5rem}
.auth-user{display:none}
.auth-user.is-visible{display:flex}
.auth-guest.is-hidden{display:none}

.btn-login-subtle{
  display:inline-flex;align-items:center;gap:6px;
  padding:7px 16px;border:1.5px solid rgba(0,0,0,.1);border-radius:24px;
  background:transparent;font-size:.75rem;font-weight:700;
  letter-spacing:.04em;cursor:pointer;transition:all .2s;
  color:#555;
}
.btn-login-subtle:hover{
  border-color:rgba(0,0,0,.2);
  background:rgba(0,0,0,.04);
}

.btn-profile-pill{
  display:inline-flex;align-items:center;gap:6px;
  padding:7px 14px;border:1.5px solid #D62828;border-radius:24px;
  background:transparent;color:#D62828;font-size:.75rem;font-weight:700;
  letter-spacing:.04em;cursor:pointer;transition:all .2s;
}
.btn-profile-pill:hover{background:#D62828;color:#fff}
.btn-profile-pill__name{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Cart button */
.nav-cart-btn{
  position:relative;display:inline-flex;align-items:center;justify-content:center;
  width:42px;height:42px;border-radius:13px;border:none;
  background:rgba(0,0,0,.05);cursor:pointer;
  color:#444;
  transition:background .2s,color .2s,transform .2s;
}
.nav-cart-btn:hover{
  background:rgba(214,40,40,.1);
  color:#D62828;
}
.nav-cart-btn:active{transform:scale(.88)}
.nav-cart-btn[disabled]{opacity:.4;pointer-events:none}
.nav-cart-btn i{font-size:1.15rem}
.cart-badge{
  position:absolute;top:-4px;right:-4px;
  min-width:18px;height:18px;padding:0 5px;border-radius:9px;
  background:#D62828;color:#fff;font-size:.58rem;font-weight:800;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 2px 6px rgba(214,40,40,.4);
  transform:scale(0);transition:transform .25s cubic-bezier(.34,1.56,.64,1);
}
.cart-badge.is-visible{transform:scale(1)}

/* Cart bump when item added */
@keyframes cartBump{
  0%{transform:scale(1)}
  35%{transform:scale(1.22)}
  65%{transform:scale(.92)}
  100%{transform:scale(1)}
}
.nav-cart-btn.is-bumping{animation:cartBump .45s cubic-bezier(.34,1.56,.64,1)}

/* Hamburger (mobile) */
.btn-hamburger{
  display:none;flex-direction:column;gap:5px;
  padding:9px;border-radius:11px;
  background:rgba(0,0,0,.05);border:none;cursor:pointer;
  transition:background .2s;
}
.btn-hamburger:hover{background:rgba(0,0,0,.09)}
.ham-bar{width:20px;height:2px;background:#1A1A1A;border-radius:2px;transition:.3s}

/* Icon sizes (evita inline styles) */
.btn-login-subtle i{font-size:1.1rem}
.side-drawer__close i{font-size:1.2rem}

/* ── User dropdown (eliminado — user-trigger abre el modal directamente) ── */
.auth-user{position:relative}
.user-dropdown{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  min-width:220px;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px;
  box-shadow:0 12px 32px rgba(0,0,0,.16),0 2px 8px rgba(0,0,0,.06);
  padding:.65rem;
  z-index:9000;
  animation:userDropdownIn .14s ease-out;
}
.user-dropdown__actions{
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:center;
}
@keyframes userDropdownIn{
  from{opacity:0;transform:translateY(-4px)}
  to{opacity:1;transform:translateY(0)}
}
.user-dropdown__item{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  padding:8px 16px;
  border:none;
  background:transparent;
  border:1px solid #E5E7EB;
  border-radius:8px;
  font-family:'Inter',sans-serif;
  font-size:.92rem;
  font-weight:500;
  color:#1F2937;
  cursor:pointer;
  text-align:left;
  transition:all .2s ease;
}
.user-dropdown__item i{font-size:1.05rem}
.user-dropdown__item:hover{
  background-color:#F3F4F6;
  color:#DC2626;
  border-color:#D1D5DB;
}
.user-dropdown__item--danger{color:#DC2626}
.user-dropdown__item--danger:hover{
  background-color:#FEF2F2;
  border-color:#FECACA;
}

/* ── Side drawer (mobile) ───────────────────────────────────────────────── */
.drawer-backdrop{
  position:fixed;inset:0;z-index:9992;
  background:rgba(0,0,0,.45);opacity:0;transition:opacity .3s;
}
.drawer-backdrop.is-open{opacity:1}
.drawer-backdrop[hidden]{display:none}
.side-drawer{
  position:fixed;top:0;right:-300px;z-index:9993;
  width:280px;height:100dvh;padding:1.5rem;
  background:#fff;display:flex;flex-direction:column;
  transition:right .35s cubic-bezier(.22,1,.36,1);
}
.side-drawer.is-open{right:0}
.side-drawer[hidden]{display:none}
.side-drawer__header{display:flex;align-items:center;justify-content:space-between;margin-bottom:2rem}
.side-drawer__logo{height:32px}
.side-drawer__close{background:none;border:none;cursor:pointer;padding:4px}
.side-drawer__nav{flex:1;display:flex;flex-direction:column;gap:.25rem}
.side-drawer__link{
  display:flex;align-items:center;gap:.5rem;
  padding:.75rem .5rem;font-size:.88rem;font-weight:700;
  letter-spacing:.04em;color:#555;
  border-bottom:1px solid rgba(0,0,0,.05);
  border-radius:8px;
  transition:color .15s, background .15s, padding-left .2s;
}
.side-drawer__link:hover{
  color:#D62828;
  background:rgba(214,40,40,.06);
  padding-left:1rem;
}
.side-drawer__link[aria-current="page"]{
  color:#D62828;font-weight:800;
}
.side-drawer__footer{padding-top:1.5rem;border-top:1px solid rgba(0,0,0,.06)}
.side-drawer__cta{
  width:100%;padding:.7rem;border:none;border-radius:12px;
  background:#D62828;color:#fff;font-weight:700;font-size:.82rem;
  cursor:pointer;text-align:center;letter-spacing:.04em;
}
.side-drawer__username{display:block;font-weight:700;font-size:.85rem;margin-bottom:.5rem;color:#1A1A1A}
.side-drawer__account-btn{
  display:block;width:100%;padding:.7rem;margin-bottom:.5rem;
  border:1.5px solid #D62828;border-radius:12px;
  background:transparent;color:#D62828;font-weight:700;font-size:.82rem;
  cursor:pointer;text-align:center;letter-spacing:.04em;
  transition:background .18s,color .18s;
}
.side-drawer__account-btn:hover{background:#D62828;color:#fff}
.side-drawer__logout{
  margin-top:.25rem;background:none;border:none;color:#DC2626;
  font-weight:600;font-size:.8rem;cursor:pointer;padding:.3rem 0;
}

/* ── Login / Auth Modal ─────────────────────────────────────────────────── */
.login-backdrop{
  position:fixed;inset:0;z-index:99998;
  background:rgba(0,0,0,.55);display:none;
}
.login-backdrop.is-open{display:block}

.login-modal{
  position:fixed;inset:0;z-index:99999;
  display:none;align-items:center;justify-content:center;
  padding:1rem;
}
.login-modal.is-open{display:flex}
.login-modal__inner{
  width:min(440px,calc(100vw - 2rem));
  max-height:92dvh;overflow-y:auto;
  background:#fff;border-radius:20px;
  box-shadow:0 10px 40px rgba(0,0,0,.15);
  display:flex;flex-direction:column;
  padding:1.75rem 1.75rem 1.5rem;
}
.login-modal__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}
.login-modal__title{font-family:'Bebas Neue',sans-serif;font-size:1.3rem;letter-spacing:.06em;color:#1A1A1A}
.login-modal__close{
  width:32px;height:32px;border:none;background:rgba(0,0,0,.05);
  border-radius:50%;font-size:1.1rem;cursor:pointer;
  display:flex;align-items:center;justify-content:center;transition:background .15s;
}
.login-modal__close:hover{background:rgba(0,0,0,.1)}

.login-tabs{display:flex;gap:0;margin-bottom:1.25rem;border-bottom:2px solid #eee}
.login-tab{
  flex:1;padding:.55rem 0;border:none;background:none;
  font-size:.72rem;font-weight:700;letter-spacing:.06em;
  color:#999;cursor:pointer;transition:all .2s;
  border-bottom:2px solid transparent;margin-bottom:-2px;
}
.login-tab--active{color:#D62828;border-bottom-color:#D62828}

.google-signin-btn{
  width:100%;padding:.65rem;border:1.5px solid #ddd;border-radius:12px;
  background:#fff;font-size:.82rem;font-weight:600;cursor:pointer;
  display:flex;align-items:center;justify-content:center;gap:8px;
  transition:border-color .2s,box-shadow .2s;
}
.google-signin-btn:hover{border-color:#bbb;box-shadow:0 2px 8px rgba(0,0,0,.06)}
.google-signin-btn__icon{width:18px;height:18px;flex-shrink:0}
.login-divider{
  display:flex;align-items:center;gap:.75rem;margin:1rem 0;
  font-size:.68rem;color:#aaa;font-weight:600;letter-spacing:.04em;
}
.login-divider::before,.login-divider::after{content:'';flex:1;height:1px;background:#eee}

.login-form{display:flex;flex-direction:column;gap:.75rem}
.login-form[hidden]{display:none}
.login-field{display:flex;flex-direction:column;gap:3px}
.login-field__label{font-size:.62rem;font-weight:700;color:#888;letter-spacing:.06em}
.login-field__input{
  padding:.6rem .85rem;border:1.5px solid #ddd;border-radius:10px;
  font-size:.88rem;outline:none;transition:border-color .2s;background:#fff;
}
.login-field__input:focus{border-color:#D62828}
.login-error{font-size:.75rem;font-weight:600;color:#DC2626;margin:0;padding:0}
.login-error[hidden]{display:none}

.login-submit{
  margin-top:.5rem;padding:.7rem;border:none;border-radius:12px;
  background:#D62828;color:#fff;font-weight:700;font-size:.82rem;
  letter-spacing:.04em;cursor:pointer;transition:background .2s;
}
.login-submit:hover{background:#B91C1C}
.login-submit:disabled{opacity:.5;pointer-events:none}

.privacy-check{display:flex;align-items:flex-start;gap:.5rem;margin-top:.25rem}
.privacy-check__input{margin-top:3px;accent-color:#D62828}
.privacy-check__label{font-size:.72rem;color:#555;line-height:1.45}
.privacy-check__link{color:#1A1A1A;text-decoration:underline;font-weight:600}
.privacy-check__link:hover{color:#D62828}

/* Mi Cuenta rows */
.mc-row{
  display:flex;align-items:flex-start;gap:.5rem;
  padding:.55rem .75rem;background:#F5F5F5;border-radius:8px;margin-bottom:.35rem;
}
.mc-label{
  font-size:.68rem;font-weight:700;color:#999;letter-spacing:.05em;
  text-transform:uppercase;min-width:88px;padding-top:.1rem;flex-shrink:0;
}
.mc-val{font-size:.88rem;color:#1A1A1A;font-weight:500;word-break:break-word}

/* ── Hero (landing) ─────────────────────────────────────────────────────── */
.hero{
  padding:5rem 0 4rem;
  background:linear-gradient(160deg,#FFF8F0 0%,#FFF 35%,#FFF5F0 70%,#FFF8F5 100%);
  position:relative;overflow:hidden;
}
.hero::before{
  content:'';position:absolute;top:-120px;right:-120px;
  width:420px;height:420px;border-radius:50%;
  background:radial-gradient(circle,rgba(214,40,40,.06) 0%,transparent 70%);
  pointer-events:none;
}
.hero__grid{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:center}
.hero__badge{
  display:inline-flex;align-items:center;gap:6px;
  padding:6px 16px;border-radius:20px;
  background:rgba(214,40,40,.07);color:#D62828;
  font-size:.7rem;font-weight:700;letter-spacing:.05em;
  animation:heroBadgePulse 2.5s ease-in-out infinite;
}
@keyframes heroBadgePulse{
  0%,100%{box-shadow:0 0 0 0 rgba(214,40,40,.15)}
  50%{box-shadow:0 0 0 8px rgba(214,40,40,0)}
}
.hero__title{
  font-family:'Bebas Neue',sans-serif;
  font-size:clamp(2.8rem,5.5vw,4.5rem);
  line-height:1;margin-top:1.15rem;
  letter-spacing:.02em;
}
.hero__title-em{display:block;color:#1A1A1A}
.hero__title-accent{display:block;color:#D62828}
.hero__sub{font-size:.95rem;color:#666;line-height:1.65;max-width:420px;margin-top:1.15rem}
.hero__btn{
  display:inline-flex;align-items:center;gap:8px;
  margin-top:1.75rem;padding:.9rem 2.2rem;border-radius:14px;
  background:#D62828;color:#fff;font-weight:700;font-size:.9rem;
  letter-spacing:.03em;border:none;cursor:pointer;
  transition:transform .25s cubic-bezier(.22,1,.36,1),box-shadow .25s;
  box-shadow:0 4px 16px rgba(214,40,40,.25);
}
.hero__btn:hover{
  transform:translateY(-3px);
  box-shadow:0 8px 28px rgba(214,40,40,.35);
}
.hero__perks{display:flex;gap:1.5rem;margin-top:1.75rem;flex-wrap:wrap}
.hero__perk{
  display:flex;align-items:center;gap:6px;
  font-size:.74rem;font-weight:600;color:#555;
  transition:color .2s;
}
.hero__perk:hover{color:#D62828}
.hero__img-wrap{position:relative;display:flex;justify-content:center}
.hero__img{
  max-height:420px;border-radius:28px;
  filter:drop-shadow(0 16px 40px rgba(0,0,0,.14));
  animation:heroFloat 4s ease-in-out infinite;
}
@keyframes heroFloat{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-10px)}
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer{
  background:#fff;border-top:1px solid rgba(0,0,0,.08);
  padding:3.5rem 0 0;color:#555;font-size:.82rem;
}
.footer__inner{
  display:grid;grid-template-columns:1.5fr 1fr 1.5fr 1.2fr;
  gap:2.5rem;padding-bottom:2.5rem;
}
.footer__brand-logo{
  height:40px;width:auto;margin-bottom:.85rem;display:block;
  filter:brightness(0);
}
.footer__brand-desc{font-size:.77rem;color:#aaa;line-height:1.65;max-width:210px}
.footer__col-title{
  font-family:'Bebas Neue',sans-serif;font-size:1rem;
  letter-spacing:.06em;color:#1A1A1A;margin-bottom:.9rem;
}
.footer__link{display:block;padding:.22rem 0;color:#666;transition:color .2s;text-decoration:none}
.footer__contact-item .footer__link{padding:0}
.footer__link:hover{color:#D62828}
.footer__contact-item{
  display:flex;align-items:flex-start;gap:.55rem;
  padding:.3rem 0;color:#666;line-height:1.6;
}
.footer__contact-item i{color:#D62828;flex-shrink:0;margin-top:.2rem;font-size:.9rem}
.footer__pay{display:flex;flex-direction:column;gap:.55rem}
.footer__pay-badge{
  display:inline-flex;align-items:center;gap:.5rem;
  padding:.42rem .9rem;border-radius:8px;
  background:#F4F4F5;border:1px solid rgba(0,0,0,.07);
  font-size:.72rem;font-weight:700;letter-spacing:.02em;color:#1A1A1A;
  width:fit-content;
}
.footer__pay-badge i{font-size:.85rem;color:#555}
.footer__pay-badge--bizum{background:#EFF6FF;border-color:rgba(37,99,235,.15);color:#1D4ED8}
.footer__pay-badge--bizum i{color:#1D4ED8}
.footer__pay-badge--cash{background:#F0FDF4;border-color:rgba(22,163,74,.18);color:#15803D}
.footer__pay-badge--cash i{color:#15803D}
.footer__pay-note{font-size:.69rem;color:#bbb;line-height:1.5;margin-top:.15rem}
.footer__bottom{
  border-top:1px solid rgba(0,0,0,.07);
  padding:1rem 0;
  display:flex;justify-content:space-between;align-items:center;
  flex-wrap:wrap;gap:.4rem;
}
.footer__copy{font-size:.68rem;color:#ccc}
.footer__credits{font-size:.68rem;color:#ccc}
.footer__credits a{color:#D62828;font-weight:600;text-decoration:none}
.footer__credits a:hover{text-decoration:underline}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media(max-width:768px){
  /* Header */
  .topbar__center{display:none}
  .topbar{padding:0 1rem;height:62px}
  .btn-hamburger{display:flex}
  /* Ocultar texto de botones de auth — solo iconos en móvil */
  .btn-login-subtle__text{display:none}
  .btn-profile-pill__name{display:none}
  .btn-login-subtle{padding:8px 10px;border-radius:50%;min-width:40px;min-height:40px;border-color:rgba(0,0,0,.09)}
  /* btn-profile-pill en móvil: avatar circle rojo */
  .btn-profile-pill{
    padding:0;border-radius:50%;width:38px;height:38px;min-width:38px;
    justify-content:center;border-width:2px;
    background:rgba(214,40,40,.06);
  }
  .btn-profile-pill i{font-size:1.15rem}
  /* Ocultar label del estado — solo el punto de color */
  .store-status .status-label{display:none}
  .store-status{padding:5px}
  /* Zona táctil del carrito: mínimo 44px */
  .nav-cart-btn{width:44px;height:44px;border-radius:14px}
  .topbar__right{gap:.35rem}
  /* Landing hero */
  .hero__grid{grid-template-columns:1fr;text-align:center}
  .hero__sub{margin:1rem auto 0}
  .hero__img-wrap{margin-top:2rem}
  .hero__perks{justify-content:center}
  /* Footer */
  .footer__inner{grid-template-columns:1fr 1fr}
  .footer__bottom{flex-direction:column;text-align:center;gap:.25rem}
}

@media(max-width:480px){
  .footer__inner{grid-template-columns:1fr}
}
