/* ══════════════════════════════════════════════════════════
   AMARANTO FLORERÍA — sistema visual
   Paleta derivada del kit floristería, desplazada a tonos
   amaranto (carmesí profundo) en vez del rosa original.
   ══════════════════════════════════════════════════════════ */

:root {
  --bg:      #0b0708;
  --bg2:     #130c0f;
  --bg3:     #1c1216;
  --bg4:     #26181d;

  --amar:    #d4527a;   /* amaranto principal */
  --amar2:   #f0a3bc;   /* amaranto claro (precios, acentos) */
  --amar3:   #9c2f52;   /* amaranto profundo (botones) */
  --cream:   #f2e8dc;
  --text:    #c2ada2;
  --muted:   #7d6660;
  --green:   #5a8a68;
  --wa:      #25D366;
  --warn:    #d99a3c;
  --border:  rgba(212, 82, 122, 0.14);

  --r:   0.32s ease;
  --rad: 10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--amar3) var(--bg2);
}
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--amar3); border-radius: 3px; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.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;
}

/* ══════════════════════════════ NAVBAR ══════════════════════════════ */
nav {
  position: fixed; inset: 0 0 auto;
  z-index: 500; padding: 20px 0;
  transition: background var(--r), padding var(--r);
}
nav.stuck {
  background: rgba(11, 7, 8, .95);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 600;
  letter-spacing: 1px; color: var(--cream);
}
.nav-logo em { font-style: italic; color: var(--amar); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 13px; font-weight: 500; color: var(--muted);
  transition: color var(--r); letter-spacing: .3px;
}
.nav-links a:hover { color: var(--amar); }
.nav-right { display: flex; align-items: center; gap: 14px; }

.cart-nav-btn {
  position: relative; background: none; border: 1px solid var(--border);
  cursor: pointer; color: var(--cream); padding: 8px 16px;
  border-radius: 50px; display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; transition: all var(--r);
}
.cart-nav-btn:hover { border-color: var(--amar); color: var(--amar); }
.cart-nav-btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--amar); color: var(--bg);
  font-size: 10px; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.6);
  transition: opacity .25s, transform .25s;
}
.cart-badge.visible { opacity: 1; transform: scale(1); }
.cart-badge.bump { animation: badgeBump .4s ease; }
@keyframes badgeBump { 0%,100% { transform: scale(1); } 45% { transform: scale(1.45); } }

.nav-wa-btn {
  background: var(--amar3); color: #fff;
  padding: 9px 20px; border-radius: 50px;
  font-size: 13px; font-weight: 600; border: none; cursor: pointer;
  transition: background var(--r), transform var(--r); white-space: nowrap;
}
.nav-wa-btn:hover { background: var(--amar); transform: scale(1.04); color: var(--bg); }

.burger-btn { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.burger-btn span { display: block; width: 24px; height: 1.5px; background: var(--cream); transition: var(--r); }

.drawer {
  display: none; position: fixed; inset: 0; z-index: 499; background: var(--bg);
  flex-direction: column; align-items: center; justify-content: center; gap: 26px;
}
.drawer.open { display: flex; }
.drawer a {
  font-family: 'Playfair Display', serif; font-size: 26px;
  color: var(--cream); letter-spacing: 1px; transition: color var(--r);
}
.drawer a:hover { color: var(--amar); }
.drawer-close { position: absolute; top: 20px; right: 24px; background: none; border: none; color: var(--muted); font-size: 26px; cursor: pointer; }

@media (max-width: 768px) {
  .nav-links, .nav-wa-btn { display: none; }
  .burger-btn { display: flex; }
}

/* ══════════════════════════════ HERO ══════════════════════════════ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; background: var(--bg); }
/* Sin filtro: el brillo y la saturación ya vienen aplicados en el encode del
   video, que es más barato que hacer que el navegador filtre cada cuadro. */
.hero-bg img,
.hero-bg video { width: 100%; height: 100%; object-fit: cover; }
/* El poster se pinta con las mismas reglas, así no hay salto visual cuando el
   video arranca. */
.hero-bg video { display: block; }
/* Antes eran dos capas oscuras encima de un video ya oscuro y el hero se veía
   apagado. Ahora oscurece solo donde hace falta: arriba para que se lea el
   menú y abajo para fundir con el fondo. El centro queda casi limpio y la
   legibilidad del título la resuelve su propia sombra. */
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(11,7,8,.72) 0%,
      rgba(11,7,8,.28) 28%,
      rgba(11,7,8,.30) 62%,
      rgba(11,7,8,.92) 92%,
      var(--bg) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 0 24px; max-width: 820px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 9.5px; font-weight: 700; letter-spacing: 4px;
  text-transform: uppercase; color: var(--amar);
  margin-bottom: 22px; animation: fadeUp .9s ease both;
}
.hero-tag::before, .hero-tag::after { content: '✦'; font-size: 7px; opacity: .7; }
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 5.6vw, 68px);
  font-weight: 400; color: var(--cream); line-height: 1.12;
  margin-bottom: 20px; animation: fadeUp .9s ease .15s both;
  /* La sombra reemplaza al overlay pesado: el texto se lee sin apagar el video. */
  text-shadow: 0 2px 24px rgba(11,7,8,.9), 0 1px 4px rgba(11,7,8,.7);
}
.hero-title em { font-style: italic; color: var(--amar2); }
.hero-sub {
  font-size: clamp(14px, 1.5vw, 16.5px); color: var(--cream);
  max-width: 620px; margin: 0 auto 34px; line-height: 1.85;
  animation: fadeUp .9s ease .28s both;
  text-shadow: 0 2px 16px rgba(11,7,8,.95), 0 1px 3px rgba(11,7,8,.8);
}
.hero-tag { text-shadow: 0 2px 12px rgba(11,7,8,.9); }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; animation: fadeUp .9s ease .4s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 30px; border-radius: 50px; border: none; cursor: pointer;
  font-size: 12.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  transition: all var(--r); white-space: nowrap;
}
.btn-primary { background: var(--amar3); color: #fff; }
.btn-primary:hover { background: var(--amar); color: var(--bg); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--cream); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--amar); color: var(--amar); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { filter: brightness(1.12); transform: translateY(-2px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn svg { width: 16px; height: 16px; fill: currentColor; }

.hero-scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 9px;
  font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted);
}
.hero-scroll::before { content: ''; width: 1px; height: 38px; background: linear-gradient(to bottom, transparent, var(--amar3)); }

/* ══════════════════════════════ REVEAL ══════════════════════════════ */
.rv  { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.rvL { opacity: 0; transform: translateX(-28px); transition: opacity .8s ease, transform .8s ease; }
.rvR { opacity: 0; transform: translateX(28px); transition: opacity .8s ease, transform .8s ease; }
.rv.on, .rvL.on, .rvR.on { opacity: 1; transform: none; }
.d1 { transition-delay: .09s } .d2 { transition-delay: .17s } .d3 { transition-delay: .25s } .d4 { transition-delay: .33s }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv, .rvL, .rvR { opacity: 1; transform: none; transition: none; }
  .hero-tag, .hero-title, .hero-sub, .hero-btns { animation: none; }
  /* Quien pidió menos movimiento no debería recibir un video en bucle: se
     oculta y queda el poster, que es el fondo del contenedor. */
  .hero-bg video { display: none; }
  .hero-bg {
    background: url('../video/hero-poster.jpg') center/cover no-repeat var(--bg);
  }
}

/* ══════════════════════════════ SECCIONES ══════════════════════════════ */
.section { padding: 100px 0; }
.section-alt { background: var(--bg2); }
.sec-tag {
  font-size: 9.5px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase;
  color: var(--amar); display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.sec-tag::before { content: ''; width: 26px; height: 1px; background: var(--amar); }
.sec-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 400; color: var(--cream); line-height: 1.15;
}
.sec-title em { font-style: italic; color: var(--amar); }
.sec-head { text-align: center; margin-bottom: 56px; }
.sec-head .sec-tag { justify-content: center; }
.sec-head .sec-tag::before { display: none; }
.sec-sub { font-size: 14px; color: var(--muted); max-width: 560px; margin: 14px auto 0; }

/* ══════════════════════════════ NOSOTROS ══════════════════════════════ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-img { position: relative; border-radius: var(--rad); overflow: hidden; }
.about-img img { width: 100%; height: 540px; object-fit: cover; }
.about-img-badge {
  position: absolute; bottom: 24px; left: 24px;
  background: rgba(11,7,8,.82); backdrop-filter: blur(10px);
  padding: 14px 20px; border-left: 2px solid var(--amar); border-radius: 4px;
}
.about-img-badge .big { font-family: 'Playfair Display', serif; font-size: 32px; color: var(--cream); line-height: 1; }
.about-img-badge .small { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--amar); margin-top: 4px; }
.about-text { font-size: 14px; color: var(--muted); line-height: 1.9; margin: 18px 0 28px; }
.about-checks { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.acheck { display: flex; align-items: flex-start; gap: 11px; font-size: 13.5px; font-weight: 500; color: var(--cream); }
.acheck::before { content: '✦'; color: var(--amar); font-size: 10px; flex-shrink: 0; margin-top: 5px; }
.acheck span { color: var(--muted); font-weight: 400; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img img { height: 360px; }
}

/* ══════════════════════════════ CATÁLOGO ══════════════════════════════ */
#catalogo { padding: 80px 0 100px; }

.cat-toolbar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-bottom: 26px;
}
.cat-search {
  flex: 1; min-width: 220px;
  background: var(--bg3); border: 1px solid var(--border); border-radius: 50px;
  padding: 11px 20px; color: var(--cream); font-size: 13px;
}
.cat-search::placeholder { color: var(--muted); }
.cat-search:focus { outline: none; border-color: var(--amar); }
.cat-sort {
  background: var(--bg3); border: 1px solid var(--border); border-radius: 50px;
  padding: 11px 18px; color: var(--cream); font-size: 12.5px; cursor: pointer;
}
.cat-sort:focus { outline: none; border-color: var(--amar); }

.cat-tabs {
  display: flex; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--border); margin-bottom: 40px;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 13px 22px; font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted);
  border: none; border-bottom: 2px solid transparent;
  white-space: nowrap; background: none; cursor: pointer; transition: all var(--r);
}
.cat-tab:hover { color: var(--amar); }
.cat-tab.active { color: var(--amar); border-bottom-color: var(--amar); }
.cat-tab .n { font-size: 10px; opacity: .6; }

.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1024px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

.pcard {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--rad); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--r), box-shadow var(--r), border-color var(--r);
}
.pcard:hover { transform: translateY(-7px); box-shadow: 0 20px 50px rgba(0,0,0,.5); border-color: rgba(212,82,122,.32); }
.pcard-img { position: relative; overflow: hidden; aspect-ratio: 3/4; background: var(--bg4); cursor: pointer; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.pcard:hover .pcard-img img { transform: scale(1.06); }
.pcard-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--amar3); color: #fff;
  font-size: 9px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 4px 11px; border-radius: 50px;
}
.pcard-more {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(11,7,8,.78); color: var(--cream);
  font-size: 10px; padding: 3px 9px; border-radius: 50px;
}
.pcard-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.pcard-name { font-family: 'Playfair Display', serif; font-size: 17px; color: var(--cream); margin-bottom: 4px; line-height: 1.3; }
.pcard-desc { font-size: 11.5px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; flex: 1; }
.pcard-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 13px; border-top: 1px solid var(--border); gap: 10px; }
.pcard-price { font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 500; color: var(--amar2); }

.mbtn-cart {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--amar3); color: #fff; border: none; border-radius: 50px;
  padding: 8px 15px; font-size: 11px; font-weight: 700;
  cursor: pointer; transition: all var(--r); white-space: nowrap;
}
.mbtn-cart:hover { background: var(--amar); color: var(--bg); transform: scale(1.05); }
.mbtn-cart.added { background: var(--wa); }

.cat-empty { text-align: center; padding: 70px 0; color: var(--muted); font-size: 14px; }
.cat-more { display: flex; justify-content: center; margin-top: 42px; }

/* ══════════════════════════════ COMPLEMENTOS ══════════════════════════════ */
.extras-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.extra {
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--rad);
  padding: 28px 18px; text-align: center; transition: all var(--r);
}
.extra:hover { border-color: rgba(212,82,122,.34); transform: translateY(-5px); }
.extra .ico { font-size: 2rem; margin-bottom: 12px; }
.extra h4 { font-family: 'Playfair Display', serif; font-size: 16px; color: var(--cream); font-weight: 400; margin-bottom: 6px; }
.extra p { font-size: 11.5px; color: var(--muted); line-height: 1.6; }
@media (max-width: 900px) { .extras-grid { grid-template-columns: repeat(2, 1fr); } }

/* ══════════════════════════════ CONFIANZA ══════════════════════════════ */
.trust-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: center; }
.trust-score {
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--rad);
  padding: 40px 28px; text-align: center;
}
.trust-score .num { font-family: 'Playfair Display', serif; font-size: 62px; color: var(--amar2); line-height: 1; }
.trust-score .stars { color: var(--amar); font-size: 16px; letter-spacing: 3px; margin: 10px 0 8px; }
.trust-score .lbl { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.trust-reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.treason .ico { font-size: 1.6rem; margin-bottom: 10px; }
.treason h4 { font-family: 'Playfair Display', serif; font-size: 17px; color: var(--cream); font-weight: 400; margin-bottom: 7px; }
.treason p { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
@media (max-width: 900px) {
  .trust-grid { grid-template-columns: 1fr; gap: 32px; }
  .trust-reasons { grid-template-columns: 1fr; }
}

/* ══════════════════════════════ CONTACTO ══════════════════════════════ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.cinfo { display: flex; flex-direction: column; gap: 24px; }
.cbox {
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--rad);
  padding: 22px 24px; border-left: 2px solid var(--amar3);
}
.cbox h4 { font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--amar); margin-bottom: 9px; }
.cbox p, .cbox a { font-size: 14px; color: var(--cream); line-height: 1.7; display: block; }
.cbox a:hover { color: var(--amar2); }
.cbox .sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.map-wrap { border-radius: var(--rad); overflow: hidden; border: 1px solid var(--border); min-height: 400px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 400px; border: 0; filter: grayscale(.35) invert(.9) hue-rotate(180deg); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════ FOOTER ══════════════════════════════ */
footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 62px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; margin-bottom: 44px; }
.foot-logo { font-family: 'Playfair Display', serif; font-size: 24px; color: var(--cream); margin-bottom: 12px; }
.foot-logo em { font-style: italic; color: var(--amar); }
.foot-desc { font-size: 13px; color: var(--muted); line-height: 1.8; max-width: 320px; }
.foot-col h5 { font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--amar); margin-bottom: 16px; }
.foot-col a, .foot-col p { display: block; font-size: 13px; color: var(--muted); margin-bottom: 9px; transition: color var(--r); }
.foot-col a:hover { color: var(--amar2); }
.foot-social { display: flex; gap: 12px; margin-top: 18px; }
.foot-social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: all var(--r);
}
.foot-social a:hover { border-color: var(--amar); color: var(--amar); }
.foot-social svg { width: 16px; height: 16px; fill: currentColor; }
.foot-bottom { border-top: 1px solid var(--border); padding-top: 22px; text-align: center; font-size: 11.5px; color: var(--muted); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ══════════════════════════════ WHATSAPP FLOTANTE ══════════════════════════════ */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 450;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(37, 211, 102, .38);
  transition: transform var(--r);
}
.wa-float:hover { transform: scale(1.09); }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }

/* ══════════════════════════════ CARRITO ══════════════════════════════ */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.72);
  z-index: 600; opacity: 0; pointer-events: none; transition: opacity .4s;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-sidebar {
  position: fixed; top: 0; right: 0;
  width: 440px; max-width: 100vw; height: 100vh;
  background: var(--bg2); border-left: 1px solid var(--border);
  z-index: 601; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .42s ease; overflow: hidden;
}
.cart-sidebar.open { transform: translateX(0); }

.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 22px 18px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.cart-title { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--cream); }
.cart-count-label { font-size: 11px; color: var(--muted); margin-top: 2px; }
.cart-close-btn {
  background: none; border: none; cursor: pointer; color: var(--muted);
  padding: 6px; border-radius: 8px; transition: all var(--r); display: flex;
}
.cart-close-btn:hover { color: var(--cream); background: var(--bg3); }
.cart-close-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }

.cart-items { flex: 1; overflow-y: auto; padding: 18px 22px; }
.cart-items::-webkit-scrollbar { width: 3px; }
.cart-items::-webkit-scrollbar-thumb { background: var(--border); }

.cart-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; gap: 14px; color: var(--muted); text-align: center;
}
.cart-empty .empty-ico { font-size: 2.8rem; }
.cart-empty p { font-size: 13px; max-width: 220px; line-height: 1.6; }

.cart-item { display: flex; gap: 13px; padding: 15px 0; border-bottom: 1px solid var(--border); animation: slideIn .3s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.cart-item-img { width: 68px; height: 68px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--bg3); }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-cat { font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--amar); margin-bottom: 2px; }
.cart-item-name { font-size: 13.5px; font-weight: 600; color: var(--cream); margin-bottom: 8px; line-height: 1.25; }
.cart-item-controls { display: flex; align-items: center; gap: 11px; }
.qty-controls { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 50px; overflow: hidden; }
.qty-btn {
  background: var(--bg3); border: none; color: var(--cream);
  width: 28px; height: 28px; font-size: 15px; cursor: pointer;
  transition: background var(--r); display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: var(--amar3); }
.qty-value { width: 30px; text-align: center; font-size: 13px; font-weight: 700; color: var(--cream); }
.cart-item-price { font-size: 13.5px; font-weight: 700; color: var(--amar2); }
.remove-item-btn { background: none; border: none; cursor: pointer; color: var(--muted); font-size: 16px; padding: 2px 4px; transition: color var(--r); }
.remove-item-btn:hover { color: var(--amar3); }

/* ─────────── Complementos dentro del carrito ─────────── */
.cart-addons {
  flex-shrink: 0; padding: 16px 0 14px;
  border-top: 1px solid var(--border); background: var(--bg3);
}
.cart-addons-head { padding: 0 22px 12px; }
.cart-addons-title {
  display: block; font-size: 13.5px; font-weight: 700; color: var(--cream);
}
.cart-addons-sub { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.cart-addons-row {
  display: flex; gap: 10px; overflow-x: auto; padding: 0 22px 4px;
  scrollbar-width: none;
}
.cart-addons-row::-webkit-scrollbar { display: none; }

.addon {
  flex: 0 0 108px; background: var(--bg2);
  border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; cursor: pointer; transition: all var(--r);
  display: flex; flex-direction: column;
}
.addon:hover { border-color: var(--amar); transform: translateY(-2px); }
.addon-img { aspect-ratio: 1; background: var(--bg4); }
.addon-img img { width: 100%; height: 100%; object-fit: cover; }
.addon-body { padding: 8px 9px 9px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.addon-name {
  font-size: 11px; color: var(--cream); line-height: 1.3; font-weight: 500;
  /* Dos líneas máximo: los nombres largos no deben descuadrar la fila. */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.addon-price { font-size: 12px; font-weight: 700; color: var(--amar2); margin-top: auto; }
/* Aviso de que ese complemento obliga a cotizar por WhatsApp en vez de pagar
   con SINPE, para que no sea una sorpresa después de agregarlo. */
.addon-nota {
  font-size: 9.5px; color: var(--warn); letter-spacing: .3px;
  text-transform: uppercase; font-weight: 700;
}
.addon-add {
  margin-top: 5px; width: 100%; border: none; border-radius: 50px;
  background: var(--amar3); color: #fff; padding: 6px; font-size: 11px;
  font-weight: 700; cursor: pointer; transition: background var(--r);
}
.addon:hover .addon-add { background: var(--amar); color: var(--bg); }

.cart-footer { padding: 18px 22px 26px; border-top: 1px solid var(--border); flex-shrink: 0; }
.cart-subtotal { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.cart-subtotal-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 2px; font-weight: 700; }
.cart-subtotal-value { font-family: 'Playfair Display', serif; font-size: 28px; color: var(--cream); }
.cart-note { font-size: 11px; color: var(--muted); margin-bottom: 18px; line-height: 1.5; }
.cart-actions { display: flex; flex-direction: column; gap: 9px; }

/* ══════════════════════════════ MODALES ══════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.82);
  z-index: 700; display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; pointer-events: none; transition: opacity .3s;
  overflow-y: auto;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 14px;
  width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
  transform: translateY(18px) scale(.98); transition: transform .3s ease;
}
.modal-overlay.open .modal { transform: none; }
.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 24px 26px 18px; border-bottom: 1px solid var(--border); gap: 16px;
}
.modal-head h3 { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--cream); font-weight: 400; }
.modal-head p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.modal-body { padding: 24px 26px; }
.modal-foot { padding: 0 26px 26px; display: flex; flex-direction: column; gap: 10px; }

/* Detalle de producto */
.pdetail { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.pdetail-gallery { background: var(--bg4); }
.pdetail-main { aspect-ratio: 3/4; }
.pdetail-main img { width: 100%; height: 100%; object-fit: cover; }
.pdetail-thumbs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; }
.pdetail-thumbs img {
  width: 54px; height: 54px; object-fit: cover; border-radius: 6px;
  cursor: pointer; opacity: .55; transition: opacity var(--r); flex-shrink: 0;
}
.pdetail-thumbs img.active, .pdetail-thumbs img:hover { opacity: 1; outline: 1px solid var(--amar); }
.pdetail-info { padding: 26px; display: flex; flex-direction: column; }
@media (max-width: 700px) { .pdetail { grid-template-columns: 1fr; } }

/* Formularios */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg3); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 14px; color: var(--cream); font-size: 13.5px;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--amar); }
.field textarea { resize: vertical; min-height: 80px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field-error { font-size: 11.5px; color: var(--amar2); margin-top: 5px; display: none; }
.field.invalid .field-error { display: block; }
.field.invalid input, .field.invalid textarea { border-color: var(--amar); }

/* Bloque SINPE */
.sinpe-box {
  background: var(--bg3); border: 1px solid var(--border); border-left: 2px solid var(--amar);
  border-radius: 8px; padding: 18px 20px; margin-bottom: 20px;
}
.sinpe-box h4 { font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--amar); margin-bottom: 12px; }
.sinpe-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13.5px; padding: 6px 0; }
.sinpe-row .k { color: var(--muted); font-size: 12px; }
.sinpe-row .v { color: var(--cream); font-weight: 600; }
.sinpe-row .v.total { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--amar2); }
.copy-btn {
  background: none; border: 1px solid var(--border); color: var(--muted);
  border-radius: 50px; padding: 3px 10px; font-size: 10.5px; cursor: pointer; transition: all var(--r);
}
.copy-btn:hover { border-color: var(--amar); color: var(--amar); }

.dropzone {
  border: 1px dashed var(--border); border-radius: 10px;
  padding: 28px 20px; text-align: center; cursor: pointer;
  transition: all var(--r); background: var(--bg3);
}
.dropzone:hover, .dropzone.drag { border-color: var(--amar); background: var(--bg4); }
.dropzone .ico { font-size: 1.8rem; margin-bottom: 8px; }
.dropzone p { font-size: 12.5px; color: var(--muted); }
.dropzone strong { color: var(--cream); }
.dropzone-preview { margin-top: 14px; display: none; }
.dropzone-preview.show { display: block; }
.dropzone-preview img { max-height: 190px; margin: 0 auto; border-radius: 8px; }
.dropzone-preview .fname { font-size: 12px; color: var(--cream); margin-top: 8px; }

.steps { display: flex; gap: 8px; margin-bottom: 22px; }
.step { flex: 1; text-align: center; font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); padding-bottom: 8px; border-bottom: 2px solid var(--border); }
.step.active { color: var(--amar); border-bottom-color: var(--amar); }
.step.done { color: var(--green); border-bottom-color: var(--green); }

.result-ok { text-align: center; padding: 20px 0; }
.result-ok .ico { font-size: 3rem; margin-bottom: 14px; }
.result-ok h4 { font-family: 'Playfair Display', serif; font-size: 24px; color: var(--cream); margin-bottom: 10px; font-weight: 400; }
.result-ok p { font-size: 13.5px; color: var(--muted); line-height: 1.8; }
.order-code {
  display: inline-block; margin: 16px 0;
  background: var(--bg3); border: 1px solid var(--amar); border-radius: 8px;
  padding: 12px 24px; font-family: 'Playfair Display', serif;
  font-size: 22px; letter-spacing: 3px; color: var(--amar2);
}

/* ══════════════════════════════ TOAST ══════════════════════════════ */
.toast-stack { position: fixed; bottom: 92px; right: 24px; z-index: 800; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.toast {
  background: var(--bg3); border: 1px solid var(--border); border-left: 2px solid var(--amar);
  border-radius: 8px; padding: 13px 20px; font-size: 13px; color: var(--cream);
  box-shadow: 0 10px 34px rgba(0,0,0,.5);
  animation: toastIn .3s ease;
}
.toast.ok { border-left-color: var(--green); }
.toast.err { border-left-color: var(--warn); }
@keyframes toastIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
