/* =========================================================
   ALBICELESTE — Tienda Selección Argentina
   Paleta oficial: celeste · blanco · sol de mayo
   ========================================================= */
:root {
  --celeste: #75aadb;
  --celeste-2: #8fc0e8;
  --celeste-deep: #3f82c4;
  --navy: #0e2a47;
  --sol: #f4b942;
  --sol-deep: #e09f1e;
  --white: #ffffff;
  --paper: #eef5fb;
  --ink: #0e2a47;
  --muted: #5b7088;
  --ok: #1e9e5a;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -18px rgba(14, 42, 71, 0.35);
  --shadow-sm: 0 8px 24px -12px rgba(14, 42, 71, 0.4);
  --display: "Anton", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.hl { color: var(--sol-deep); }
.stars { color: var(--sol); letter-spacing: 2px; }

/* ---------- Confetti ---------- */
#confetti {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 9999;
}

/* ---------- Topbar marquee ---------- */
.topbar {
  background: var(--navy); color: #cfe3f6;
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
  overflow: hidden; white-space: nowrap; padding: 8px 0;
}
.marquee { display: inline-flex; animation: marquee 28s linear infinite; }
.marquee span { padding-right: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(14, 42, 71, 0.08);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, var(--celeste), var(--celeste-deep));
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.brand__mark .stars { font-size: 11px; color: var(--white); }
.brand__name { font-family: var(--display); font-size: 24px; letter-spacing: .04em; color: var(--navy); }
.nav { display: flex; gap: 26px; font-weight: 600; font-size: 15px; }
.nav a { position: relative; color: var(--navy); opacity: .85; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--sol); transition: width .25s;
}
.nav a:hover { opacity: 1; }
.nav a:hover::after { width: 100%; }

.cart-btn {
  position: relative; border: 0; cursor: pointer;
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--navy); color: #fff; display: grid; place-items: center;
  transition: transform .2s, background .2s;
}
.cart-btn:hover { transform: translateY(-2px); background: var(--celeste-deep); }
.cart-btn.bump { animation: bump .4s; }
@keyframes bump { 0%,100%{transform:scale(1)} 30%{transform:scale(1.18)} 60%{transform:scale(.94)} }
.cart-btn__count {
  position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px;
  padding: 0 6px; border-radius: 11px; background: var(--sol); color: var(--navy);
  font-size: 12px; font-weight: 800; display: grid; place-items: center;
  border: 2px solid #fff;
}

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 90vh; display: flex; align-items: center;
  padding: clamp(40px, 8vw, 90px) clamp(16px, 4vw, 40px);
  color: var(--white);
}
.hero__flag { position: absolute; inset: -10% -5%; z-index: 0; }
.hero__flag .band { position: absolute; left: -5%; width: 110%; height: 40%; }
.band--celeste { background: linear-gradient(180deg, var(--celeste-2), var(--celeste)); }
.band--white { background: #f3f9ff; }
.hero__flag .band:nth-child(1) { top: 0; animation: wave 7s ease-in-out infinite; }
.hero__flag .band:nth-child(2) { top: 33.3%; animation: wave 7s ease-in-out infinite .6s; }
.hero__flag .band:nth-child(3) { top: 66.6%; animation: wave 7s ease-in-out infinite 1.2s; }
@keyframes wave {
  0%,100% { transform: translateX(0) skewY(0deg); }
  50% { transform: translateX(-1.5%) skewY(-1.1deg); }
}
/* brillo diagonal que recorre la bandera */
.hero__flag::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%);
  background-size: 250% 250%; animation: sheen 9s linear infinite;
}
@keyframes sheen { from { background-position: 120% 0; } to { background-position: -60% 0; } }

.hero__sol {
  position: absolute; z-index: 1;
  top: -120px; right: -120px; width: 520px; height: 520px;
  filter: drop-shadow(0 12px 40px rgba(224, 159, 30, .45));
  animation: spin 80s linear infinite;
  opacity: .96;
}
.hero__sol svg { width: 100%; height: 100%; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__content { position: relative; z-index: 2; max-width: 680px; }
.hero__eyebrow {
  display: inline-block; font-weight: 800; letter-spacing: .12em; font-size: 13px;
  background: rgba(14,42,71,.85); color: #fff; padding: 7px 14px; border-radius: 999px;
  margin-bottom: 18px;
}
.hero__title {
  font-family: var(--display); font-weight: 400; line-height: .96;
  font-size: clamp(46px, 8.5vw, 104px); color: var(--navy);
  text-shadow: 0 4px 0 rgba(255,255,255,.45);
}
.hero__title .hl { color: var(--white); -webkit-text-stroke: 2px var(--sol-deep); }
.hero__sub {
  margin: 22px 0 30px; font-size: clamp(16px, 2vw, 20px); max-width: 520px;
  color: var(--navy); font-weight: 500;
}
.hero__sub strong { color: var(--sol-deep); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 800; font-size: 16px; padding: 15px 26px; border-radius: 14px;
  border: 0; cursor: pointer; transition: transform .18s, box-shadow .18s, background .2s;
}
.btn--sol { background: var(--sol); color: var(--navy); box-shadow: var(--shadow); }
.btn--sol:hover { transform: translateY(-3px); box-shadow: 0 22px 50px -16px rgba(224,159,30,.7); }
.btn--ghost { background: rgba(255,255,255,.65); color: var(--navy); border: 2px solid var(--navy); }
.btn--ghost:hover { background: #fff; transform: translateY(-3px); }

.countdown {
  margin-top: 34px; display: inline-flex; flex-direction: column; gap: 10px;
  background: rgba(14,42,71,.9); padding: 16px 20px; border-radius: 16px;
  box-shadow: var(--shadow);
}
.countdown__label { color: #ffd98a; font-weight: 700; font-size: 13.5px; letter-spacing: .03em; }
.countdown__clock { display: flex; gap: 10px; }
.cd { background: rgba(255,255,255,.1); border-radius: 10px; padding: 8px 12px; min-width: 58px; text-align: center; }
.cd b { font-family: var(--display); font-size: 30px; color: #fff; display: block; line-height: 1; }
.cd i { font-style: normal; font-size: 11px; color: #aacbe9; letter-spacing: .08em; text-transform: uppercase; }

.hero__scrollcue {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: var(--navy); font-size: 12px; font-weight: 700; letter-spacing: .1em;
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-transform: uppercase;
}
.hero__scrollcue span {
  width: 22px; height: 36px; border: 2px solid var(--navy); border-radius: 12px; position: relative;
}
.hero__scrollcue span::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 7px; border-radius: 2px;
  background: var(--navy); transform: translateX(-50%); animation: scrolldot 1.6s infinite;
}
@keyframes scrolldot { 0%{opacity:1;top:7px} 80%{opacity:0;top:20px} 100%{opacity:0} }

/* ---------- Secciones genéricas ---------- */
section { padding: clamp(50px, 7vw, 90px) clamp(16px, 4vw, 40px); }
.section-head { max-width: var(--maxw); margin: 0 auto 40px; text-align: center; }
.section-title { font-family: var(--display); font-size: clamp(32px, 5vw, 56px); color: var(--navy); line-height: 1; }
.section-sub { margin-top: 12px; color: var(--muted); font-size: 17px; }

/* ---------- Niveles de descuento ---------- */
.tiers { background: var(--paper); }
.tier-track {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.tier-card {
  position: relative; background: #fff; border-radius: var(--radius); padding: 28px 22px;
  text-align: center; box-shadow: var(--shadow-sm); border: 2px solid transparent;
  overflow: hidden; transition: transform .25s, border-color .25s;
}
.tier-card:hover { transform: translateY(-6px); }
.tier-card[data-top="true"] { border-color: var(--sol); }
.tier-card[data-top="true"]::before {
  content: "MÁXIMO"; position: absolute; top: 14px; right: -34px; transform: rotate(45deg);
  background: var(--sol); color: var(--navy); font-size: 10px; font-weight: 800;
  padding: 4px 40px; letter-spacing: .1em;
}
.tier-card__stars { font-size: 18px; color: var(--sol); height: 22px; letter-spacing: 3px; }
.tier-card__off { font-family: var(--display); font-size: 52px; color: var(--navy); line-height: 1; margin: 8px 0 4px; }
.tier-card__off small { font-size: 20px; }
.tier-card__name { font-weight: 800; font-size: 18px; color: var(--celeste-deep); }
.tier-card__qty { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* ---------- Filtros ---------- */
.filters {
  max-width: var(--maxw); margin: 0 auto 28px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.chip {
  border: 2px solid rgba(14,42,71,.15); background: #fff; color: var(--navy);
  padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer;
  transition: all .2s;
}
.chip:hover { border-color: var(--celeste); }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Grid de productos ---------- */
.grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card__thumb {
  position: relative; aspect-ratio: 1/1;
  background: radial-gradient(circle at 50% 35%, #fff, var(--paper));
  display: grid; place-items: center; overflow: hidden;
}
.card__thumb svg { width: 78%; height: 78%; transition: transform .35s; }
.card__thumb .media-img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card__thumb svg { transform: scale(1.06) rotate(-2deg); }
.card:hover .card__thumb .media-img { transform: scale(1.06); }
.card__badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--sol); color: var(--navy); font-weight: 800; font-size: 11px;
  padding: 5px 11px; border-radius: 999px; letter-spacing: .03em;
}
.card__cat {
  position: absolute; top: 12px; right: 12px;
  background: rgba(14,42,71,.85); color: #fff; font-size: 10.5px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; letter-spacing: .05em; text-transform: uppercase;
}
.card__body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__name { font-weight: 800; font-size: 17px; color: var(--navy); }
.card__sub { color: var(--muted); font-size: 13.5px; margin-top: -4px; }
.card__price { font-family: var(--display); font-size: 30px; color: var(--navy); margin-top: auto; }
.card__price span { font-family: var(--body); font-size: 12px; color: var(--muted); font-weight: 600; display: block; }

.sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.size {
  border: 2px solid rgba(14,42,71,.18); background: #fff; color: var(--navy);
  min-width: 38px; padding: 6px 8px; border-radius: 9px; font-weight: 700; font-size: 13px; cursor: pointer;
  transition: all .15s;
}
.size:hover { border-color: var(--celeste); }
.size.active { background: var(--celeste); border-color: var(--celeste); color: #fff; }

.card__add {
  margin-top: 4px; width: 100%; border: 0; cursor: pointer;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 15px;
  padding: 13px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .2s, transform .15s;
}
.card__add:hover { background: var(--celeste-deep); }
.card__add:active { transform: scale(.97); }

/* ---------- Beneficios ---------- */
.benefits {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.benefit { text-align: center; padding: 26px 18px; border-radius: var(--radius); background: var(--paper); }
.benefit__ico { font-size: 40px; }
.benefit h3 { margin: 12px 0 6px; font-size: 18px; color: var(--navy); }
.benefit p { color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy); color: #cfe0f1;
  padding: 56px clamp(16px, 4vw, 40px) 30px;
  display: grid; gap: 30px; grid-template-columns: 1.4fr 2fr;
  max-width: 100%;
}
.footer__brand strong { font-family: var(--display); font-size: 26px; color: #fff; display: block; margin: 6px 0; letter-spacing: .04em; }
.footer__brand p { color: #9fbada; max-width: 320px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.footer__cols h4 { color: #fff; margin-bottom: 12px; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; }
.footer__cols a { display: block; padding: 5px 0; color: #aac4e0; transition: color .2s; }
.footer__cols a:hover { color: var(--sol); }
.footer__legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; font-size: 13px; color: #88a4c4; }

/* ---------- WhatsApp ---------- */
.wsp {
  position: fixed; bottom: 22px; left: 22px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,.7);
  animation: pulse 2.4s infinite;
}
.wsp:hover { transform: scale(1.08); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Overlay + Carrito ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(14,42,71,.5); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: .3s; z-index: 300;
}
.overlay.show { opacity: 1; visibility: visible; }
.cart {
  position: fixed; top: 0; right: 0; height: 100%; width: 420px; max-width: 92vw; z-index: 400;
  background: #fff; box-shadow: -20px 0 60px -20px rgba(14,42,71,.5);
  transform: translateX(105%); transition: transform .35s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
}
.cart.open { transform: translateX(0); }
.cart__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px; border-bottom: 1px solid rgba(14,42,71,.08);
}
.cart__head h3 { font-family: var(--display); font-size: 24px; color: var(--navy); letter-spacing: .03em; }
.cart__close { border: 0; background: var(--paper); width: 36px; height: 36px; border-radius: 10px; cursor: pointer; font-size: 16px; color: var(--navy); }
.cart__close:hover { background: #dde9f5; }

.levelbar { padding: 16px 22px; background: linear-gradient(135deg, var(--celeste), var(--celeste-deep)); color: #fff; }
.levelbar__top { display: flex; justify-content: space-between; font-weight: 800; font-size: 15px; }
.levelbar__track { height: 9px; background: rgba(255,255,255,.3); border-radius: 999px; margin: 10px 0 8px; overflow: hidden; }
.levelbar__fill { height: 100%; width: 0; background: var(--sol); border-radius: 999px; transition: width .5s cubic-bezier(.4,0,.2,1); }
.levelbar__hint { font-size: 12.5px; opacity: .95; }

.shipbar { padding: 12px 22px; background: var(--paper); font-size: 13px; color: var(--navy); font-weight: 600; }
.shipbar__track { height: 7px; background: #d7e6f4; border-radius: 999px; margin-top: 8px; overflow: hidden; }
.shipbar__fill { height: 100%; width: 0; background: var(--ok); border-radius: 999px; transition: width .5s; }
.shipbar.done { color: var(--ok); }

.cart__items { flex: 1; overflow-y: auto; padding: 8px 22px; }
.citem { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(14,42,71,.07); }
.citem__thumb { width: 64px; height: 64px; border-radius: 12px; background: var(--paper); display: grid; place-items: center; overflow: hidden; }
.citem__thumb svg { width: 80%; height: 80%; }
.citem__thumb .media-img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.citem__info { display: flex; flex-direction: column; gap: 4px; }
.citem__name { font-weight: 800; font-size: 14px; color: var(--navy); line-height: 1.2; }
.citem__meta { font-size: 12px; color: var(--muted); }
.citem__price { font-weight: 800; color: var(--navy); font-size: 14px; }
.citem__right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button { width: 26px; height: 26px; border-radius: 8px; border: 0; background: var(--paper); color: var(--navy); font-weight: 800; cursor: pointer; font-size: 15px; }
.qty button:hover { background: #d7e6f4; }
.qty span { min-width: 20px; text-align: center; font-weight: 800; font-size: 14px; }
.citem__remove { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 12px; text-decoration: underline; }
.citem__remove:hover { color: #d23b3b; }

.cart__empty { flex: 1; display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 40px; color: var(--muted); }
.cart__empty p { font-size: 20px; font-weight: 800; color: var(--navy); }
.cart.empty .cart__items, .cart.empty .cart__summary { display: none; }
.cart.empty .cart__empty { display: flex; }

.cart__summary { padding: 18px 22px 22px; border-top: 1px solid rgba(14,42,71,.08); background: #fff; }
.row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 15px; color: var(--navy); }
.row--discount { color: var(--ok); font-weight: 700; display: none; }
.row--discount.show { display: flex; }
.row--total { font-family: var(--display); font-size: 26px; padding-top: 12px; margin-top: 6px; border-top: 1px dashed rgba(14,42,71,.2); }
.btn--checkout {
  width: 100%; margin-top: 14px; background: #009ee3; color: #fff; flex-direction: column; gap: 2px;
  padding: 14px; border-radius: 14px; line-height: 1.1;
}
.btn--checkout:hover { background: #0089c7; transform: translateY(-2px); }
.btn--checkout span:first-child { font-size: 12px; font-weight: 600; opacity: .9; }
.mp-logo { font-size: 19px; font-weight: 800; }
.mp-logo b { font-weight: 800; }
.cart__note { text-align: center; font-size: 12px; color: var(--muted); margin-top: 10px; }
.mp-wallet { margin-top: 14px; }
.mp-loading { text-align: center; font-size: 13px; color: var(--muted); padding: 12px; }
.mp-methods { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
.mp-methods span { font-size: 11px; font-weight: 700; color: var(--muted); background: var(--paper); border: 1px solid rgba(14, 42, 71, 0.1); padding: 3px 8px; border-radius: 6px; }
.mp-methods .mp-methods__mp { color: #fff; background: #009ee3; border-color: #009ee3; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 120px);
  background: var(--navy); color: #fff; padding: 14px 22px; border-radius: 14px;
  font-weight: 700; box-shadow: var(--shadow); z-index: 500; opacity: 0; transition: .35s;
  display: flex; align-items: center; gap: 10px; max-width: 90vw;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast .toast__ico { font-size: 20px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid, .tier-track, .benefits { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .hero { min-height: 84vh; }
  .hero__sol { width: 360px; height: 360px; top: -90px; right: -90px; }
  .footer { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); }
  .countdown__clock .cd { min-width: 50px; padding: 7px 9px; }
  .hero__scrollcue { display: none; }
}
@media (max-width: 480px) {
  .grid, .benefits { grid-template-columns: 1fr; }
  .tier-track { grid-template-columns: repeat(2, 1fr); }
  .cd b { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee, .hero__flag .band, .hero__flag::after, .hero__sol, .wsp, .hero__scrollcue span::after { animation: none !important; }
  html { scroll-behavior: auto; }
}
