@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500&family=DM+Sans:wght@300;400;500&display=swap');
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --rosa:       #D4537E;
  --rosa-light: #FBEAF0;
  --carbon:     #2C2C2A;
  --gris:       #888780;
  --gris-light: #F1EFE8;
  --borde:      #E8E6E0;
  --fondo:      #FAFAF8;
  --blanco:     #ffffff;
  --font-serif: 'Playfair Display', serif;
  --font-sans:  'DM Sans', sans-serif;
}
body { font-family: var(--font-sans); background: var(--fondo); color: var(--carbon); min-height: 100vh; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font-sans); }
img { max-width: 100%; display: block; }
/* NAVBAR */
.navbar { position: sticky; top: 0; z-index: 100; background: var(--blanco); border-bottom: 0.5px solid var(--borde); padding: 0 20px; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: var(--font-serif); font-size: 22px; color: var(--carbon); }
.nav-logo span { color: var(--rosa); }
.nav-links { display: none; gap: 28px; }
.nav-links a { font-size: 14px; color: var(--gris); transition: color .2s; }
.nav-links a:hover { color: var(--carbon); }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.nav-btn { background: none; border: none; color: var(--gris); font-size: 22px; display: flex; align-items: center; transition: color .2s; }
.nav-btn:hover { color: var(--carbon); }
.cart-count { position: relative; }
.cart-count::after { content: attr(data-count); position: absolute; top: -7px; right: -9px; background: var(--rosa); color: #fff; font-size: 10px; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 500; }
.cart-count[data-count="0"]::after { display: none; }
/* SEARCH */
.search-bar { display: none; position: fixed; top: 60px; left: 0; right: 0; background: var(--blanco); border-bottom: 0.5px solid var(--borde); padding: 12px 20px; z-index: 99; gap: 12px; }
.search-bar.open { display: flex; }
.search-bar input { flex: 1; border: 0.5px solid var(--borde); border-radius: 24px; padding: 10px 18px; font-size: 14px; font-family: var(--font-sans); outline: none; }
.search-bar input:focus { border-color: var(--rosa); }
/* HERO */
.hero { background: var(--blanco); border-bottom: 0.5px solid var(--borde); padding: 40px 20px; display: flex; flex-direction: column; gap: 28px; }
.hero-text h1 { font-family: var(--font-serif); font-size: 32px; font-weight: 400; line-height: 1.2; margin-bottom: 12px; }
.hero-text h1 em { color: var(--rosa); font-style: normal; }
.hero-text p { font-size: 15px; color: var(--gris); line-height: 1.7; margin-bottom: 24px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-rosa { background: var(--rosa); color: #fff; border: none; padding: 12px 28px; border-radius: 28px; font-size: 14px; font-weight: 500; transition: opacity .2s; }
.btn-rosa:hover { opacity: .88; }
.btn-outline { background: transparent; color: var(--carbon); border: 0.5px solid var(--borde); padding: 12px 28px; border-radius: 28px; font-size: 14px; transition: border-color .2s; }
.btn-outline:hover { border-color: var(--carbon); }
.hero-cards { display: flex; gap: 12px; justify-content: center; }
.hero-card { border-radius: 16px; width: 90px; height: 100px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 28px; }
.hero-card small { font-size: 10px; color: var(--gris); }
.hero-card-1 { background: var(--rosa-light); }
.hero-card-2 { background: var(--gris-light); }
.hero-card-3 { background: #E1F5EE; }
/* CATEGORIAS */
.cats-bar { background: var(--blanco); border-bottom: 0.5px solid var(--borde); padding: 12px 20px; display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.cats-bar::-webkit-scrollbar { display: none; }
.cat-btn { padding: 8px 18px; border-radius: 22px; font-size: 13px; font-weight: 500; white-space: nowrap; border: 0.5px solid var(--borde); background: var(--blanco); color: var(--gris); transition: all .2s; }
.cat-btn:hover { border-color: var(--carbon); color: var(--carbon); }
.cat-btn.active { background: var(--carbon); color: #fff; border-color: var(--carbon); }
/* PRODUCTOS */
.section-header { display: flex; align-items: baseline; justify-content: space-between; padding: 24px 20px 16px; }
.section-title { font-family: var(--font-serif); font-size: 22px; font-weight: 400; }
.section-link { font-size: 13px; color: var(--rosa); cursor: pointer; }
.productos-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 20px 28px; }
/* CARD */
.prod-card { background: var(--blanco); border-radius: 14px; border: 0.5px solid var(--borde); overflow: hidden; cursor: pointer; transition: transform .2s; }
.prod-card:hover { transform: translateY(-2px); }
.prod-img { position: relative; background: var(--gris-light); aspect-ratio: 1; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; }
.prod-img-placeholder { font-size: 40px; }
.badge-oferta { position: absolute; top: 10px; left: 10px; background: var(--rosa); color: #fff; font-size: 10px; padding: 4px 10px; border-radius: 12px; font-weight: 500; }
.prod-info { padding: 12px; }
.prod-cat { font-size: 10px; color: var(--gris); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 4px; }
.prod-name { font-size: 13px; font-weight: 500; color: var(--carbon); margin-bottom: 8px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod-prices { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.prod-price { font-size: 15px; font-weight: 500; color: var(--carbon); }
.prod-price-old { font-size: 11px; color: var(--gris); text-decoration: line-through; }
.btn-agregar { width: 100%; background: var(--carbon); color: #fff; border: none; padding: 9px; border-radius: 9px; font-size: 12px; font-weight: 500; transition: background .2s; display: flex; align-items: center; justify-content: center; gap: 6px; }
.btn-agregar:hover { background: var(--rosa); }
/* BANNER WA */
.banner-wa { background: var(--carbon); margin: 0 20px 28px; border-radius: 18px; padding: 24px 20px; display: flex; flex-direction: column; gap: 16px; }
.banner-wa h3 { font-family: var(--font-serif); font-size: 18px; color: #fff; font-weight: 400; }
.banner-wa p { font-size: 13px; color: var(--gris); line-height: 1.6; }
.btn-wa { background: #25D366; color: #fff; border: none; padding: 11px 22px; border-radius: 22px; font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; transition: opacity .2s; }
.btn-wa:hover { opacity: .88; }
/* CARRITO DRAWER */
.carrito-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 200; }
.carrito-overlay.open { display: block; }
.carrito-drawer { position: fixed; top: 0; right: -100%; width: 100%; max-width: 420px; height: 100dvh; background: var(--blanco); z-index: 201; display: flex; flex-direction: column; transition: right .3s ease; }
.carrito-drawer.open { right: 0; }
.carrito-header { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 0.5px solid var(--borde); }
.carrito-header h2 { font-family: var(--font-serif); font-size: 20px; font-weight: 400; }
.btn-cerrar { background: none; border: none; font-size: 22px; color: var(--gris); }
.carrito-items { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.carrito-vacio { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 12px; color: var(--gris); font-size: 14px; }
.carrito-vacio i { font-size: 48px; opacity: .3; }
.carrito-item { display: flex; gap: 12px; align-items: flex-start; }
.carrito-item-img { width: 64px; height: 64px; border-radius: 10px; background: var(--gris-light); flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.carrito-item-img img { width: 100%; height: 100%; object-fit: cover; }
.carrito-item-info { flex: 1; }
.carrito-item-name { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.carrito-item-precio { font-size: 14px; color: var(--rosa); font-weight: 500; }
.carrito-item-qty { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.qty-btn { width: 26px; height: 26px; border-radius: 50%; border: 0.5px solid var(--borde); background: var(--blanco); font-size: 14px; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.qty-btn:hover { background: var(--gris-light); }
.qty-num { font-size: 14px; font-weight: 500; min-width: 20px; text-align: center; }
.btn-eliminar { background: none; border: none; color: var(--gris); font-size: 18px; padding: 4px; transition: color .2s; }
.btn-eliminar:hover { color: #E24B4A; }
.carrito-footer { border-top: 0.5px solid var(--borde); padding: 20px; }
.carrito-total { display: flex; justify-content: space-between; font-size: 16px; font-weight: 500; margin-bottom: 16px; }
.carrito-total span:last-child { color: var(--rosa); }
.btn-checkout { width: 100%; background: var(--rosa); color: #fff; border: none; padding: 14px; border-radius: 12px; font-size: 15px; font-weight: 500; transition: opacity .2s; }
.btn-checkout:hover { opacity: .88; }
/* TOAST */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--carbon); color: #fff; padding: 12px 24px; border-radius: 24px; font-size: 14px; font-weight: 500; z-index: 300; transition: transform .3s ease; white-space: nowrap; }
.toast.show { transform: translateX(-50%) translateY(0); }
/* CHECKOUT */
.checkout-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 300; align-items: center; justify-content: center; padding: 20px; }
.checkout-overlay.open { display: flex; }
.checkout-modal { background: var(--blanco); border-radius: 20px; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; }
.checkout-header { padding: 20px 24px; border-bottom: 0.5px solid var(--borde); display: flex; align-items: center; justify-content: space-between; }
.checkout-header h2 { font-family: var(--font-serif); font-size: 20px; font-weight: 400; }
.checkout-body { padding: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: var(--gris); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; border: 0.5px solid var(--borde); border-radius: 10px; padding: 11px 14px; font-size: 14px; font-family: var(--font-sans); outline: none; background: var(--blanco); color: var(--carbon); transition: border-color .2s; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--rosa); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkout-resumen { background: var(--fondo); border-radius: 12px; padding: 16px; margin: 16px 0; }
.checkout-resumen-item { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; color: var(--gris); }
.checkout-resumen-total { display: flex; justify-content: space-between; font-size: 15px; font-weight: 500; padding-top: 10px; border-top: 0.5px solid var(--borde); margin-top: 8px; }
.checkout-resumen-total span:last-child { color: var(--rosa); }
.btn-pagar { width: 100%; background: var(--rosa); color: #fff; border: none; padding: 14px; border-radius: 12px; font-size: 15px; font-weight: 500; margin-top: 8px; transition: opacity .2s; display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-pagar:hover { opacity: .88; }
.btn-pagar-wa { width: 100%; background: #25D366; color: #fff; border: none; padding: 14px; border-radius: 12px; font-size: 15px; font-weight: 500; margin-top: 8px; transition: opacity .2s; display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-pagar-wa:hover { opacity: .88; }
.pago-divider { text-align: center; font-size: 12px; color: var(--gris); margin: 12px 0; position: relative; }
.pago-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 0.5px; background: var(--borde); }
.pago-divider span { background: var(--blanco); padding: 0 12px; position: relative; }
/* LOADING */
.productos-loading { grid-column: 1 / -1; padding: 48px; text-align: center; color: var(--gris); font-size: 14px; }
.spinner { width: 32px; height: 32px; border: 2px solid var(--borde); border-top-color: var(--rosa); border-radius: 50%; animation: spin .7s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
.sin-resultados { grid-column: 1 / -1; padding: 48px 20px; text-align: center; color: var(--gris); }
.sin-resultados i { font-size: 48px; opacity: .25; margin-bottom: 12px; }
/* FOOTER */
.footer { background: var(--carbon); color: #D3D1C7; padding: 32px 20px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 24px; }
.footer-brand { font-family: var(--font-serif); font-size: 20px; color: #fff; margin-bottom: 8px; }
.footer-brand span { color: var(--rosa); }
.footer-desc { font-size: 13px; color: var(--gris); line-height: 1.7; }
.footer-col h4 { font-size: 13px; font-weight: 500; color: #fff; margin-bottom: 12px; }
.footer-col a { display: block; font-size: 13px; color: var(--gris); margin-bottom: 8px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 0.5px solid #444441; padding-top: 20px; font-size: 12px; color: var(--gris); text-align: center; }
/* RESPONSIVE */
@media (min-width: 768px) {
  .navbar { padding: 0 40px; }
  .nav-links { display: flex; }
  .hero { flex-direction: row; align-items: center; justify-content: space-between; padding: 56px 40px; }
  .hero-text { max-width: 440px; }
  .hero-text h1 { font-size: 42px; }
  .hero-cards { flex-direction: row; }
  .hero-card { width: 110px; height: 130px; font-size: 36px; }
  .cats-bar { padding: 14px 40px; }
  .section-header { padding: 28px 40px 16px; }
  .section-title { font-size: 26px; }
  .productos-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0 40px 32px; }
  .banner-wa { flex-direction: row; align-items: center; justify-content: space-between; margin: 0 40px 32px; padding: 28px 32px; }
  .footer { padding: 48px 40px 32px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 1100px) {
  .navbar { padding: 0 80px; }
  .hero { padding: 64px 80px; }
  .hero-text h1 { font-size: 48px; }
  .cats-bar { padding: 14px 80px; }
  .section-header { padding: 32px 80px 20px; }
  .productos-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 0 80px 40px; }
  .banner-wa { margin: 0 80px 40px; }
  .footer { padding: 56px 80px 32px; }
}
/* ── METODOS DE PAGO CHECKOUT ────────────────────────────────────────── */
.metodo-pago-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--borde);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.metodo-pago-opt:has(input:checked) {
  border-color: var(--rosa);
  background: var(--rosa-light);
}
.metodo-pago-opt input[type="radio"] { flex-shrink: 0; accent-color: var(--rosa); }
.metodo-pago-info { display: flex; align-items: center; gap: 12px; }
.metodo-pago-icon { font-size: 24px; }
.metodo-pago-nombre { font-size: 14px; font-weight: 500; color: var(--carbon); }
.metodo-pago-desc { font-size: 12px; color: var(--gris); margin-top: 2px; }
.cuota-opt {
  flex: 1;
  border: 1.5px solid var(--borde);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all .2s;
}
.cuota-opt:has(input:checked) {
  border-color: var(--rosa);
  background: var(--rosa-light);
  color: var(--rosa);
}
.cuota-opt input { display: none; }
.pago-alerta {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #856404;
  margin-top: 10px;
}
/* ── CHECKOUT PASOS ──────────────────────────────────────────────────── */
.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border-bottom: 0.5px solid var(--borde);
  gap: 0;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--borde);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--gris);
  background: var(--blanco);
  transition: all .3s;
}
.step.active .step-num {
  background: var(--rosa);
  border-color: var(--rosa);
  color: #fff;
}
.step.done .step-num {
  background: #22C55E;
  border-color: #22C55E;
  color: #fff;
}
.step-label {
  font-size: 10px;
  color: var(--gris);
  font-weight: 500;
  white-space: nowrap;
}
.step.active .step-label { color: var(--rosa); }
.step.done .step-label { color: #22C55E; }
.step-line {
  flex: 1;
  height: 2px;
  background: var(--borde);
  margin: 0 8px;
  margin-bottom: 14px;
  transition: background .3s;
  min-width: 30px;
}
.step-line.done { background: #22C55E; }
.paso-desc {
  font-size: 14px;
  color: var(--gris);
  margin-bottom: 20px;
}
/* Entrega opts */
.entrega-opts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.entrega-opt {
  border: 1.5px solid var(--borde);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: all .2s;
  display: block;
}
.entrega-opt:has(input:checked) {
  border-color: var(--rosa);
  background: var(--rosa-light);
}
.entrega-opt input { display: none; }
.entrega-opt-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}
.entrega-icon { font-size: 28px; flex-shrink: 0; }
.entrega-nombre { font-size: 14px; font-weight: 500; color: var(--carbon); }
.entrega-desc { font-size: 12px; color: var(--gris); margin-top: 2px; }
/* Metodos pago */
.metodos-pago-lista {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.metodo-pago-opt {
  border: 1.5px solid var(--borde);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: all .2s;
  display: block;
}
.metodo-pago-opt:has(input:checked) {
  border-color: var(--rosa);
  background: var(--rosa-light);
}
.metodo-pago-opt input { display: none; }
.metodo-pago-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}
.metodo-icon { font-size: 24px; flex-shrink: 0; }
.metodo-nombre { font-size: 14px; font-weight: 500; color: var(--carbon); }
.metodo-desc { font-size: 12px; color: var(--gris); margin-top: 2px; }
/* Cuotas */
.cuota-opt {
  flex: 1;
  border: 1.5px solid var(--borde);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all .2s;
  background: var(--blanco);
}
.cuota-opt:has(input:checked) {
  border-color: var(--rosa);
  background: var(--rosa-light);
  color: var(--rosa);
}
.cuota-opt input { display: none; }
/* ── BOTON AVISO STOCK ───────────────────────────────────────────────── */
.btn-aviso {
  width: 100%;
  background: var(--rosa);
  color: #fff;
  border: none;
  padding: 9px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 500;
  transition: background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-aviso:hover {
  background: var(--carbon);
}
