/* =====================================================================
   NATHVIA ELECTRODOMÉSTICO — ESTILOS
   Paleta inspirada en KN GOLD: negro, blanco, dorado y gris oscuro.
   Para cambiar colores, edita solo las variables de :root.
   ===================================================================== */

:root {
  --black: #0b0b0c;
  --ink: #161618;
  --graphite: #232327;
  --gray-700: #3a3a40;
  --gray-500: #6e6e76;
  --gray-300: #c9c9cf;
  --gray-100: #f2f1ee;
  --white: #ffffff;
  --cream: #faf8f3;

  --gold: #d4af37;
  --gold-light: #ecd27a;
  --gold-deep: #a8862a;
  --gold-grad: linear-gradient(135deg, #f1dc8c 0%, #d4af37 45%, #a8862a 100%);

  --wa: #25d366;
  --wa-deep: #1da851;

  --font-display: "Cormorant", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(11, 11, 12, .06);
  --shadow: 0 18px 40px -18px rgba(11, 11, 12, .28);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --header-h: 68px;
}

/* ------------------------------ Base ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
body.no-scroll { overflow: hidden; }
[hidden] { display: none !important; }  /* que "hidden" gane sobre display:flex/grid */

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 28px; } }

.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(212, 175, 55, .18); }

.kicker {
  font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-deep);
}

/* ----------------------------- Botones ----------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: 0 1.5rem; border-radius: 999px;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  will-change: transform;
}
.btn:active { transform: scale(.97); }
.btn--gold { background: var(--gold-grad); color: var(--black); box-shadow: 0 10px 24px -10px rgba(212, 175, 55, .7); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(212, 175, 55, .85); }
.btn--outline { border: 1.5px solid rgba(255, 255, 255, .35); color: var(--white); }
.btn--outline:hover { border-color: var(--gold); color: var(--gold-light); }
.btn--whatsapp { background: var(--wa); color: var(--white); box-shadow: 0 10px 24px -10px rgba(37, 211, 102, .7); }
.btn--whatsapp:hover { background: var(--wa-deep); transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn--lg { min-height: 56px; font-size: 1.02rem; }
.btn--sm { min-height: 40px; padding: 0 1.1rem; font-size: .85rem; }
.btn:disabled { opacity: .45; pointer-events: none; }

.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  transition: background .2s;
}
.icon-btn:hover { background: var(--gray-100); }
.link-btn { display: block; margin: .8rem auto 0; font-size: .85rem; color: var(--gray-500); text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--ink); }

/* ------------------------------ Header ------------------------------ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-color: rgba(11, 11, 12, .06); box-shadow: var(--shadow-sm); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: .6rem; }
.brand__icon { width: 44px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.55rem; letter-spacing: .04em; color: var(--black); }
.brand__sub { font-size: .62rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); margin-top: 3px; }

.nav { display: none; }
.nav a { position: relative; font-weight: 600; font-size: .92rem; color: var(--gray-700); padding: .4rem 0; transition: color .2s; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--black); }
.nav a:hover::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: .35rem; }
.cart-btn {
  position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--black); color: var(--white); transition: transform .25s var(--ease);
}
.cart-btn:hover { transform: translateY(-1px); }
.cart-btn__count {
  position: absolute; top: -3px; right: -3px; min-width: 21px; height: 21px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 999px; border: 2px solid var(--white);
  background: var(--gold); color: var(--black); font-size: .7rem; font-weight: 800;
}
.cart-btn.bump { animation: bump .5s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.18); } 100% { transform: scale(1); } }

.menu-btn { width: 44px; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-btn span { width: 22px; height: 2px; border-radius: 2px; background: var(--black); transition: transform .3s var(--ease), opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menú móvil desplegable */
@media (max-width: 859px) {
  .nav {
    display: flex; flex-direction: column; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--white); padding: .5rem 16px 1.2rem; box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .3s var(--ease), opacity .25s, visibility .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: .9rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--gray-100); }
  .nav a::after { display: none; }
}
@media (min-width: 860px) {
  .nav { display: flex; gap: 2rem; }
  .menu-btn { display: none; }
}

/* ------------------------------- Hero ------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 2.5rem) 0 3.5rem;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(212, 175, 55, .16), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(212, 175, 55, .08), transparent 60%),
    var(--black);
  color: var(--white);
}
.hero::after { /* fina línea dorada inferior */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold-grad); opacity: .7;
}
.hero__inner { display: grid; gap: 2.5rem; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; padding: .45rem .9rem; border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, .35); background: rgba(212, 175, 55, .07);
  font-size: .8rem; color: var(--gray-300);
}
.eyebrow strong { color: var(--gold-light); font-weight: 700; }
.hero__title {
  margin-top: 1.2rem; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.6rem, 9vw, 4.6rem); letter-spacing: -.01em; line-height: 1.02;
}
.hero__title em {
  font-style: italic; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__text { margin-top: 1.1rem; max-width: 34rem; color: #bdbdc4; font-size: 1.02rem; }
.hero__ctas { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__ctas .btn { flex: 1 1 160px; }
@media (min-width: 560px) { .hero__ctas .btn { flex: 0 0 auto; } }
.hero__trust {
  list-style: none; padding: 1.4rem 0 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.hero__trust li { display: flex; flex-direction: column; gap: .15rem; }
.hero__trust strong { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--gold-light); line-height: 1; }
.hero__trust span { font-size: .76rem; color: #9b9ba3; line-height: 1.35; }

.hero__media { position: relative; max-width: 440px; width: 100%; margin: 0 auto; }
.hero__frame {
  position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5;
  background: #ececea; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8);
  outline: 1px solid rgba(212, 175, 55, .45); outline-offset: 10px;
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease); }
.hero__media:hover .hero__frame img { transform: scale(1.08); }
.hero__badge {
  position: absolute; left: -6px; bottom: 22px; padding: .75rem 1rem; border-radius: 14px;
  background: rgba(11, 11, 12, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, .35); display: flex; flex-direction: column;
  animation: float 5s ease-in-out infinite;
}
.hero__badge-label { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.hero__badge-name { font-weight: 700; font-size: .92rem; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

@media (min-width: 900px) {
  .hero { padding: calc(var(--header-h) + 4rem) 0 5rem; }
  .hero__inner { grid-template-columns: 1.15fr .85fr; gap: 4rem; }
  .hero__badge { left: -28px; }
}

/* ----------------------------- Secciones ----------------------------- */
.section { padding: 4rem 0; }
.section--soft { background: var(--cream); }
.section__head { text-align: center; margin-bottom: 2.2rem; }
.section__title { margin-top: .5rem; font-family: var(--font-display); font-weight: 600; font-size: clamp(2.1rem, 6vw, 3rem); }
.section__lead { margin-top: .5rem; color: var(--gray-500); font-size: .95rem; }
@media (min-width: 900px) { .section { padding: 5.5rem 0; } }

/* ----------------------------- Categorías ----------------------------- */
.categories { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.category {
  position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5;
  background: var(--graphite); color: var(--white); text-align: left;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.category img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.category::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(11, 11, 12, .85)); }
.category__label { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 14px; display: flex; flex-direction: column; gap: .3rem; }
.category__name { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; line-height: 1; }
.category__count { font-size: .72rem; color: var(--gold-light); font-weight: 600; white-space: nowrap; }
.category:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.category:hover img { transform: scale(1.06); }
.category--placeholder { background: radial-gradient(circle at 50% 35%, #34343a, var(--black)); }
.category--placeholder svg { position: absolute; left: 50%; top: 40%; width: 46%; transform: translate(-50%, -50%); color: var(--gold); opacity: .85; }
.categories > :last-child:nth-child(odd) { grid-column: span 2; aspect-ratio: 8 / 5; }  /* 5ª tarjeta ancha en móvil */
@media (min-width: 768px) {
  .categories { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
  .categories > :last-child:nth-child(odd) { grid-column: auto; aspect-ratio: 4 / 5; }
}

/* ------------------------------ Filtros ------------------------------ */
.filters {
  display: flex; gap: .5rem; overflow-x: auto; padding: 2px 2px 1rem; margin: 0 -16px 1rem; padding-left: 16px; padding-right: 16px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.filters::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .filters { justify-content: center; margin: 0 0 1.4rem; padding: 2px; flex-wrap: wrap; } }
.chip {
  flex: 0 0 auto; padding: .55rem 1.1rem; border-radius: 999px; font-size: .88rem; font-weight: 600;
  background: var(--white); border: 1px solid #e4e2dc; color: var(--gray-700); transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--gold); }
.chip.is-active { background: var(--black); border-color: var(--black); color: var(--white); }

/* ------------------------------ Productos ------------------------------ */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
@media (min-width: 768px) { .products { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; } }
@media (min-width: 1100px) { .products { grid-template-columns: repeat(4, 1fr); } }

.card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius);
  background: var(--white); border: 1px solid #ece9e2; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  animation: cardIn .5s var(--ease) both;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(212, 175, 55, .5); }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #efefed; cursor: zoom-in; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__tag {
  position: absolute; top: 10px; left: 10px; padding: .28rem .6rem; border-radius: 999px;
  background: var(--black); color: var(--gold-light); font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.card__photos {
  position: absolute; right: 10px; bottom: 10px; padding: .25rem .55rem; border-radius: 999px;
  background: rgba(255, 255, 255, .9); font-size: .68rem; font-weight: 700; color: var(--gray-700);
}

/* Recuadro cuando el producto aún no tiene foto */
.placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  background: radial-gradient(circle at 50% 40%, #2c2c31, var(--black)); color: var(--gold); cursor: default;
}
.placeholder svg { width: 42%; max-width: 110px; }
.placeholder span { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: #a5a5ad; font-weight: 600; }

.card__body { display: flex; flex-direction: column; gap: .35rem; padding: .9rem .9rem 1rem; flex: 1; }
.card__model { font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.card__name { font-family: var(--font-body); font-size: .95rem; font-weight: 700; line-height: 1.3; }
.card__desc {
  font-size: .82rem; color: var(--gray-500); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card__foot { margin-top: auto; padding-top: .6rem; display: flex; flex-direction: column; gap: .6rem; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; line-height: 1; color: var(--black); }
.price small { font-family: var(--font-body); font-size: .68rem; font-weight: 600; color: var(--gray-500); margin-right: .2rem; }
.price--ask { font-family: var(--font-body); font-size: .9rem; font-weight: 700; color: var(--gold-deep); }
.add-btn {
  display: flex; align-items: center; justify-content: center; gap: .4rem; width: 100%; min-height: 42px; border-radius: 12px;
  background: var(--black); color: var(--white); font-size: .84rem; font-weight: 700;
  transition: background .25s, transform .2s var(--ease), color .25s;
}
.add-btn:hover { background: var(--graphite); color: var(--gold-light); }
.add-btn:active { transform: scale(.97); }
.add-btn.is-added { background: var(--gold); color: var(--black); }
.add-btn__extra { display: none; }  /* en móvil solo dice "Agregar" para no partir la línea */
@media (min-width: 768px) { .add-btn__extra { display: inline; } }

@media (max-width: 380px) {
  .card__desc { display: none; }  /* en pantallas muy pequeñas se prioriza nombre y precio */
}
@media (min-width: 768px) {
  .card__body { padding: 1.1rem 1.15rem 1.2rem; }
  .card__name { font-size: 1.02rem; }
  .card__desc { font-size: .86rem; }
  .price { font-size: 1.6rem; }
}

/* ---------------------------- Beneficios ---------------------------- */
.perks { display: grid; gap: 1rem; }
@media (min-width: 768px) { .perks { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; } }
.perk { padding: 1.6rem; border-radius: var(--radius); border: 1px solid #ece9e2; background: var(--white); }
.perk__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--black); color: var(--gold); margin-bottom: 1rem; }
.perk__icon svg { width: 26px; height: 26px; }
.perk h3 { font-size: 1.05rem; font-weight: 800; }
.perk p { margin-top: .35rem; color: var(--gray-500); font-size: .92rem; }

/* ----------------------------- CTA final ----------------------------- */
.cta-band { padding: 0 0 4rem; }
.cta-band__inner {
  text-align: center; padding: 3rem 1.4rem; border-radius: 26px; color: var(--white);
  background: radial-gradient(600px 300px at 50% 0%, rgba(212, 175, 55, .22), transparent 70%), var(--black);
}
.cta-band h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 5vw, 2.6rem); }
.cta-band p { margin: .7rem auto 1.6rem; max-width: 30rem; color: #b5b5bd; }

/* ------------------------------ Footer ------------------------------ */
.footer { background: var(--black); color: #b9b9c0; padding: 3.5rem 0 calc(1.5rem + 70px); border-top: 2px solid var(--gold); }
.footer__grid { display: grid; gap: 2.4rem; }
@media (min-width: 768px) { .footer { padding-bottom: 1.5rem; } .footer__grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer__logo { display: inline-block; background: var(--white); border-radius: 16px; padding: .9rem 1.3rem; }
.footer__logo img { width: 170px; height: auto; }
.footer__tagline { margin-top: 1rem; color: var(--white); font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; line-height: 1.25; }
.footer__official { margin-top: .9rem; display: inline-flex; align-items: center; gap: .6rem; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-light); }
.footer__title { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.footer__list a, .footer__list span { display: inline-flex; align-items: center; gap: .6rem; transition: color .2s; }
.footer__list a:hover { color: var(--gold-light); }
.footer__ig { margin-top: 1.2rem; }
.footer__bottom { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .8rem; color: #7d7d85; }

/* --------------------- Botón flotante de WhatsApp --------------------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wa); color: var(--white);
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .7);
  transition: transform .3s var(--ease), opacity .3s;
}
.wa-float::before { /* halo pulsante */
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wa); z-index: -1;
  animation: pulse 2.4s ease-out infinite;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float.is-hidden { opacity: 0; transform: scale(.6); pointer-events: none; }
@keyframes pulse { 0% { transform: scale(1); opacity: .5; } 80%, 100% { transform: scale(1.7); opacity: 0; } }

/* ------------------------ Carrito lateral (drawer) ------------------------ */
.overlay {
  position: fixed; inset: 0; z-index: 60; background: rgba(11, 11, 12, .5);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .3s;
}
.overlay.is-visible { opacity: 1; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(420px, 100%);
  display: flex; flex-direction: column; background: var(--white);
  box-shadow: -20px 0 50px -20px rgba(0, 0, 0, .4);
  transform: translateX(100%); transition: transform .45s var(--ease); visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1rem 1rem 1.3rem; border-bottom: 1px solid var(--gray-100); }
.drawer__head h2 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; }
.drawer__body { flex: 1; overflow-y: auto; padding: .5rem 1.3rem; }
.drawer__foot { padding: 1rem 1.3rem calc(1rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--gray-100); background: var(--cream); }
.drawer__total { display: flex; align-items: baseline; justify-content: space-between; }
.drawer__total span { font-weight: 600; color: var(--gray-700); }
.drawer__total strong { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; }
.drawer__note { font-size: .78rem; color: var(--gray-500); margin: .25rem 0 .9rem; min-height: 1em; }

.cart-item {
  display: grid; grid-template-columns: 72px 1fr auto; gap: .9rem; align-items: center;
  padding: 1rem 0; border-bottom: 1px solid var(--gray-100);
  animation: cardIn .35s var(--ease) both;
}
.cart-item__img { width: 72px; height: 84px; border-radius: 10px; overflow: hidden; background: #efefed; position: relative; }
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__img .placeholder svg { width: 55%; }
.cart-item__name { font-weight: 700; font-size: .9rem; line-height: 1.3; }
.cart-item__price { font-size: .82rem; color: var(--gray-500); margin-top: .15rem; }
.cart-item__side { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid #e4e2dc; border-radius: 999px; margin-top: .5rem; }
.qty button { width: 32px; height: 32px; display: grid; place-items: center; font-size: 1.1rem; font-weight: 700; border-radius: 50%; transition: background .2s; }
.qty button:hover { background: var(--gray-100); }
.qty span { min-width: 26px; text-align: center; font-weight: 700; font-size: .9rem; }
.remove-btn { color: var(--gray-500); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; transition: color .2s, background .2s; }
.remove-btn:hover { color: #c0392b; background: #fbeeee; }
.cart-item__subtotal { font-weight: 800; font-size: .88rem; white-space: nowrap; }

.cart-empty { text-align: center; padding: 3.5rem 1rem; color: var(--gray-500); }
.cart-empty svg { width: 64px; height: 64px; margin: 0 auto 1rem; color: var(--gold); }
.cart-empty p { margin-bottom: 1.2rem; }

/* ------------------------- Modal de galería ------------------------- */
.modal {
  position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(11, 11, 12, .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .3s;
}
.modal.is-visible { opacity: 1; }
.modal__card {
  position: relative; width: 100%; max-height: 92vh; overflow-y: auto; background: var(--white);
  border-radius: 24px 24px 0 0; transform: translateY(30px); transition: transform .4s var(--ease);
}
.modal.is-visible .modal__card { transform: none; }
.modal__close { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(255, 255, 255, .9); }
.modal__main { aspect-ratio: 1 / 1; background: #efefed; }
.modal__main img { width: 100%; height: 100%; object-fit: contain; animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal__thumbs { display: flex; gap: .5rem; padding: .7rem 1.2rem 0; overflow-x: auto; }
.modal__thumbs button { flex: 0 0 56px; height: 66px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; opacity: .65; transition: all .2s; }
.modal__thumbs button.is-active { border-color: var(--gold); opacity: 1; }
.modal__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.modal__info { padding: 1.2rem 1.2rem 1.6rem; display: grid; gap: .6rem; }
.modal__info h3 { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; }
.modal__info > p:not(.kicker):not(.price) { color: var(--gray-500); font-size: .95rem; }
.modal__info .price { font-size: 2rem; margin: .3rem 0 .4rem; }
@media (min-width: 820px) {
  .modal { align-items: center; padding: 2rem; }
  .modal__card { max-width: 920px; border-radius: 24px; display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; }
  .modal__gallery { padding-bottom: 1rem; }
  .modal__info { align-content: center; padding: 2.2rem; }
}

/* ------------------------------- Toast ------------------------------- */
.toast {
  position: fixed; left: 50%; top: calc(var(--header-h) + 12px); z-index: 90; transform: translate(-50%, -14px);
  padding: .8rem 1.2rem; border-radius: 999px; background: var(--black); color: var(--white);
  font-size: .88rem; font-weight: 600; box-shadow: var(--shadow); white-space: nowrap; max-width: calc(100vw - 32px);
  overflow: hidden; text-overflow: ellipsis; opacity: 0; pointer-events: none; transition: all .35s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast b { color: var(--gold-light); }

/* ---------------------- Animación al hacer scroll ---------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
