/* =========================================================================
   IMPORTADOS BUENOS AIRES — estilos (tienda)
   Paleta: rojo #D60000 · blanco · negro · gris claro
   Tipografías: Poppins (títulos) · Inter (texto)
   ========================================================================= */
:root {
  --red: #d60000;
  --red-dark: #a80000;
  --red-light: #ff2a2a;
  --black: #0e0f12;
  --ink: #1a1c20;
  --ink-soft: #4a4f5a;
  --muted: #8b909c;
  --line: #ececf0;
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --bg-gray: #f0f1f4;
  --white: #ffffff;
  --wa: #25d366;
  --wa-dark: #1da851;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 4px 14px rgba(20, 23, 28, 0.06);
  --shadow: 0 14px 34px rgba(20, 23, 28, 0.10);
  --shadow-red: 0 18px 40px rgba(214, 0, 0, 0.22);
  --container: 1200px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .brand__text strong { font-family: "Poppins", sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: "Poppins", sans-serif;
  font-weight: 600; font-size: .95rem;
  padding: 12px 24px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn--lg { padding: 15px 30px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px rgba(214,0,0,.3); }
.btn--primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: var(--shadow-red); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--red); color: var(--red); }
.btn--white { background: #fff; color: var(--red); }
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,.2); }
.btn--wa { background: var(--wa); color: #fff; box-shadow: 0 10px 24px rgba(37,211,102,.3); }
.btn--wa:hover { background: var(--wa-dark); transform: translateY(-2px); }

/* ===== Topbar ===== */
.topbar { background: var(--black); color: #d7dae1; font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; justify-content: center; gap: 12px; height: 38px; flex-wrap: wrap; }
.topbar__sep { color: var(--red); }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 22px; height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mark {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(135deg, var(--red), var(--red-light));
  color: #fff; font-family: "Poppins", sans-serif; font-weight: 800; font-size: 1rem; letter-spacing: .5px;
  box-shadow: 0 8px 18px rgba(214,0,0,.34);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font-size: 1.05rem; font-weight: 800; letter-spacing: .4px; }
.brand__text span { font-size: .7rem; font-weight: 600; color: var(--red); letter-spacing: 2.8px; }

.searchbox {
  flex: 1; max-width: 460px; display: flex; align-items: center; gap: 10px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 999px; padding: 0 16px; color: var(--muted);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.searchbox:focus-within { border-color: var(--red); background: #fff; }
.searchbox input {
  flex: 1; border: none; background: transparent; outline: none;
  padding: 12px 0; font-size: .95rem; font-family: inherit; color: var(--ink);
}
.searchbox--mobile { display: none; margin: 0 22px 14px; }

.nav { display: flex; gap: 26px; }
.nav a { font-family: "Poppins", sans-serif; font-weight: 500; font-size: .95rem; color: var(--ink-soft); position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 2px; background: var(--red); transition: width .2s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.icon-btn {
  position: relative; display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 13px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  cursor: pointer; transition: all .2s var(--ease);
}
.icon-btn:hover { border-color: var(--red); color: var(--red); transform: translateY(-1px); }
.icon-btn--wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.icon-btn--wa:hover { background: var(--wa-dark); border-color: var(--wa-dark); color: #fff; }
.cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 21px; height: 21px; padding: 0 5px;
  border-radius: 999px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 800;
  display: grid; place-items: center; border: 2px solid #fff;
}

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 460px at 88% -10%, rgba(214,0,0,.14), transparent 60%),
    linear-gradient(180deg, #fff, var(--bg-soft));
  padding: 70px 0 64px; border-bottom: 1px solid var(--line);
}
.hero__inner { display: grid; gap: 40px; align-items: center; }
.hero__badge {
  display: inline-block; background: rgba(214,0,0,.1); color: var(--red-dark);
  font-weight: 600; font-size: .8rem; padding: 8px 15px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.7rem); font-weight: 800; line-height: 1.07; letter-spacing: -1px; }
.hero h1 span { color: var(--red); }
.hero p { margin-top: 18px; font-size: 1.12rem; color: var(--ink-soft); max-width: 540px; }
.hero__cta { margin-top: 30px; display: flex; gap: 13px; flex-wrap: wrap; }
.hero__stats { margin-top: 38px; display: flex; gap: 34px; flex-wrap: wrap; }
.hero__stats strong { display: block; font-family: "Poppins", sans-serif; font-size: 1.7rem; font-weight: 800; color: var(--red); }
.hero__stats span { font-size: .85rem; color: var(--muted); }

.hero__art { position: relative; min-height: 320px; display: none; }
.hero__glow { position: absolute; inset: 10% 5%; background: radial-gradient(circle, rgba(214,0,0,.16), transparent 70%); filter: blur(20px); }
.hero__card {
  position: absolute; width: 130px; height: 130px; border-radius: 26px; background: #fff;
  display: grid; place-items: center; font-size: 3.6rem; box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.hero__card--1 { top: 6%; left: 12%; animation-delay: 0s; }
.hero__card--2 { top: 0; right: 18%; width: 110px; height: 110px; font-size: 3rem; animation-delay: 1.2s; }
.hero__card--3 { bottom: 8%; left: 24%; animation-delay: 2.1s; }
.hero__card--4 { bottom: 0; right: 10%; width: 120px; height: 120px; animation-delay: .6s; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-16px) rotate(2deg); } }

/* ===== Secciones genéricas ===== */
.section { padding: 70px 0; }
.section--soft { background: var(--bg-soft); }
.section--gray { background: var(--bg-gray); }
.section__head { margin-bottom: 34px; }
.section__head--center { text-align: center; max-width: 620px; margin-left: auto; margin-right: auto; }
.section__kicker { display: inline-block; font-family: "Poppins", sans-serif; font-weight: 700; font-size: .78rem; letter-spacing: 2px; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.section__kicker--light { color: var(--red-light); }
.section__head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.5px; }
.section__head--center h2::after { margin-left: auto; margin-right: auto; }
.section__head h2::after { content: ""; display: block; width: 58px; height: 4px; background: var(--red); border-radius: 4px; margin-top: 12px; }
.section__head p { color: var(--muted); margin-top: 14px; font-size: 1.02rem; }

/* ===== Categorías (tarjetas) ===== */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cat-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 16px; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), border-color .2s var(--ease);
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-red); border-color: rgba(214,0,0,.3); }
.cat-card__ico {
  width: 66px; height: 66px; border-radius: 18px; display: grid; place-items: center; font-size: 2rem;
  background: linear-gradient(135deg, #fff0f0, #ffe2e2); transition: transform .25s var(--ease);
}
.cat-card:hover .cat-card__ico { transform: scale(1.08) rotate(-4deg); }
.cat-card__name { font-family: "Poppins", sans-serif; font-weight: 600; font-size: .98rem; }

/* ===== Chips (filtro) ===== */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font-family: "Poppins", sans-serif;
  font-weight: 500; font-size: .9rem; color: var(--ink-soft); cursor: pointer; transition: all .18s var(--ease);
}
.chip:hover { border-color: var(--red); color: var(--red); }
.chip.active { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 8px 18px rgba(214,0,0,.28); }

/* ===== Grid de productos ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .22s var(--ease), box-shadow .28s var(--ease), border-color .2s var(--ease);
  animation: cardIn .4s var(--ease) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-red); border-color: rgba(214,0,0,.28); }
.card__media {
  position: relative; height: 200px; display: grid; place-items: center; font-size: 4.6rem;
  background: linear-gradient(135deg, #fff6f6, #ffeaea); overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__tag {
  position: absolute; top: 13px; left: 13px; color: #fff; font-family: "Poppins", sans-serif;
  font-size: .72rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; letter-spacing: .4px;
}
.tag--nuevo { background: #1769ff; }
.tag--oferta { background: var(--red); }
.tag--vendido { background: #ff9500; color: #1a1c20; }
.card__body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.card__cat { font-size: .72rem; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 1px; }
.card__name { font-family: "Poppins", sans-serif; font-size: 1.04rem; font-weight: 600; margin-top: 6px; line-height: 1.3; }
.card__desc { font-size: .86rem; color: var(--muted); margin-top: 8px; flex: 1; }
.card__foot { margin-top: 16px; }
.card__price { font-family: "Poppins", sans-serif; font-size: 1.35rem; font-weight: 800; }
.card__price.consultar { font-size: 1rem; font-weight: 700; color: var(--muted); }
.card__actions { display: flex; gap: 8px; margin-top: 14px; }
.card__wa {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--wa); color: #fff; font-family: "Poppins", sans-serif; font-weight: 600; font-size: .85rem;
  padding: 11px 12px; border-radius: 12px; border: none; cursor: pointer; transition: background .2s var(--ease);
}
.card__wa:hover { background: var(--wa-dark); }
.card__add {
  display: grid; place-items: center; width: 46px; flex-shrink: 0; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--red); font-size: 1.4rem; line-height: 1; cursor: pointer; transition: all .2s var(--ease);
}
.card__add:hover { background: var(--red); color: #fff; border-color: var(--red); }

.empty { text-align: center; color: var(--muted); padding: 50px 0; font-weight: 500; }

/* ===== Beneficios ===== */
.benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.benefit {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; text-align: center;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease);
}
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.benefit__ico {
  width: 70px; height: 70px; margin: 0 auto 16px; border-radius: 20px; display: grid; place-items: center; font-size: 2.1rem;
  background: linear-gradient(135deg, #fff0f0, #ffe2e2);
}
.benefit h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.benefit p { color: var(--ink-soft); font-size: .92rem; }

/* ===== Testimonios ===== */
.section--dark { background: var(--black); color: #fff; }
.section--dark .section__head h2 { color: #fff; }
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial {
  background: #16181d; border: 1px solid #24272e; border-radius: var(--radius); padding: 28px 24px;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.testimonial:hover { transform: translateY(-4px); border-color: var(--red); }
.stars { color: #ffb800; letter-spacing: 2px; margin-bottom: 14px; }
.testimonial blockquote { font-size: 1rem; color: #d7dae1; line-height: 1.6; }
.testimonial figcaption { margin-top: 18px; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9rem; color: #aeb3bd; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--red), var(--red-light)); color: #fff; font-family: "Poppins", sans-serif; font-weight: 700; }

/* ===== CTA ===== */
.section--cta {
  background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; padding: 56px 0;
}
.cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
.cta p { margin-top: 8px; color: rgba(255,255,255,.92); }

/* ===== Footer ===== */
.footer { background: var(--black); color: #aeb3bd; padding-top: 56px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 40px; }
.brand--footer .brand__text strong { color: #fff; }
.footer__about { margin-top: 16px; font-size: .9rem; max-width: 300px; }
.footer__col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer__list li { margin-bottom: 10px; font-size: .9rem; }
.footer__list li:hover { color: #fff; }
.socials { display: flex; flex-direction: column; gap: 10px; }
.socials a { font-size: .9rem; transition: color .2s var(--ease); }
.socials a:hover { color: var(--red-light); }
.admin-link { display: inline-block; margin-top: 18px; font-size: .82rem; color: #6b7280; }
.admin-link:hover { color: var(--red-light); }
.footer__bottom { border-top: 1px solid #1e2127; padding: 20px 0; font-size: .82rem; text-align: center; }

/* ===== Botón flotante WhatsApp ===== */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 40;
  width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 26px rgba(37,211,102,.45);
  transition: transform .2s var(--ease); animation: pulse 2.4s infinite;
}
.wa-float: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 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* ===== Drawer (carrito) ===== */
.drawer-overlay { position: fixed; inset: 0; background: rgba(14,15,18,.5); z-index: 60; opacity: 0; animation: fade .2s forwards; }
@keyframes fade { to { opacity: 1; } }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 400px; max-width: 92vw; background: #fff; z-index: 70;
  display: flex; flex-direction: column; transform: translateX(100%);
  transition: transform .3s var(--ease); box-shadow: -20px 0 50px rgba(0,0,0,.2);
}
.drawer.open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 22px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-size: 1.25rem; font-weight: 700; }
.drawer__close { border: none; background: var(--bg-soft); width: 38px; height: 38px; border-radius: 11px; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink-soft); }
.drawer__close:hover { background: #ffe9e8; color: var(--red); }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px 22px; }
.drawer__empty { text-align: center; color: var(--muted); padding: 50px 0; }
.cart-item { display: flex; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.cart-item__icon { width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center; font-size: 1.7rem; background: linear-gradient(135deg, #fff6f6, #ffeaea); flex-shrink: 0; overflow: hidden; }
.cart-item__icon img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-weight: 600; font-size: .9rem; }
.cart-item__price { color: var(--muted); font-size: .82rem; }
.cart-item__qty { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.cart-item__qty button { width: 27px; height: 27px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 700; color: var(--ink); }
.cart-item__qty button:hover { border-color: var(--red); color: var(--red); }
.cart-item__qty span { min-width: 22px; text-align: center; font-weight: 700; }
.cart-item__remove { border: none; background: none; color: var(--muted); cursor: pointer; font-size: 1.1rem; }
.cart-item__remove:hover { color: var(--red); }
.drawer__foot { padding: 20px 22px; border-top: 1px solid var(--line); }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.drawer__total span { color: var(--ink-soft); font-weight: 600; }
.drawer__total strong { font-family: "Poppins", sans-serif; font-size: 1.5rem; font-weight: 800; }
.drawer__note { font-size: .76rem; color: var(--muted); text-align: center; margin-top: 10px; }

/* ===== Responsive ===== */
@media (min-width: 720px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .benefits { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 880px) {
  .hero__inner { grid-template-columns: 1.15fr .85fr; }
  .hero__art { display: block; }
}
@media (max-width: 980px) {
  .nav { display: none; }
}
@media (max-width: 760px) {
  .searchbox:not(.searchbox--mobile) { display: none; }
  .searchbox--mobile { display: flex; }
  .testimonials { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cta { flex-direction: column; text-align: center; align-items: stretch; }
}
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 22px; }
}
