/* ============================================================
   ESSENZA PERFUMERY — Sitio público v2 "Editorial completa"
   Porcelana #FFFFFF · Tinta #1A1A1A · Oxblood #6E1423 · Ámbar #8A5A19
   Bodoni Moda (display) + Hanken Grotesk (UI) · Mobile-first
   ============================================================ */

:root {
  color-scheme: light only;
  --paper: #FFFFFF;
  --ink: #1A1A1A;
  --ink-soft: #55524E;
  --hairline: #1A1A1A;
  --hairline-soft: #E4E1DC;
  --oxblood: #6E1423;
  --amber: #8A5A19;
  --tint-arabe: #F3E7D3;
  --tint-disenador: #EFDFE0;
  --tint-agotado: #F2F0ED;
  --whatsapp: #25D366;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: #FFFFFF; }

body {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}

.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 2px; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 18px; }

/* ---------------- Topbar + navegación ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}

.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.logo {
  font-family: 'Bodoni Moda', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.logo span {
  display: block;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--oxblood);
  margin-top: 3px;
}

.nav-desktop { display: none; gap: 22px; }
.nav-link {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 6px 1px 8px;
  transition: color .15s, border-color .15s;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); border-bottom-color: var(--oxblood); }

.topbar-actions { display: flex; align-items: center; gap: 14px; }

.cart-toggle {
  background: none;
  border: none;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  padding: 2px 1px 4px;
  display: flex;
  align-items: baseline;
  gap: 7px;
  transition: color .15s, border-color .15s;
}
.cart-toggle:hover { color: var(--oxblood); border-color: var(--oxblood); }
.cart-count {
  font-family: 'Bodoni Moda', serif;
  font-size: 14px;
  color: var(--oxblood);
  transition: transform .2s;
}
.cart-count.pulso { animation: pulso .35s ease; }
@keyframes pulso { 40% { transform: scale(1.45); } }

.menu-btn {
  background: none;
  border: none;
  width: 30px;
  height: 24px;
  position: relative;
}
.menu-btn span, .menu-btn::before, .menu-btn::after {
  content: '';
  position: absolute;
  left: 3px;
  right: 3px;
  height: 2px;
  background: var(--ink);
  transition: transform .25s, opacity .2s, top .25s;
}
.menu-btn::before { top: 4px; }
.menu-btn span { top: 11px; }
.menu-btn::after { top: 18px; }
body.menu-open .menu-btn::before { top: 11px; transform: rotate(45deg); }
body.menu-open .menu-btn span { opacity: 0; }
body.menu-open .menu-btn::after { top: 11px; transform: rotate(-45deg); }

.nav-mobile {
  position: fixed;
  top: 57px;
  left: 0;
  right: 0;
  z-index: 55;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
  display: none;
  flex-direction: column;
  padding: 8px 18px 18px;
}
body.menu-open .nav-mobile { display: flex; animation: bajar .22s ease; }
@keyframes bajar { from { opacity: 0; transform: translateY(-8px); } }
.nav-mobile .nav-link { text-align: left; padding: 13px 2px; border-bottom: 1px solid var(--hairline-soft); font-size: 13px; }
.nav-mobile .nav-link.active { border-bottom-color: var(--oxblood); }

@media (min-width: 880px) {
  .nav-desktop { display: flex; }
  .menu-btn { display: none; }
}

/* ---------------- Vistas ---------------- */
.view { display: none; background: var(--paper); }
.view.active { display: block; animation: vista .3s ease; }
@keyframes vista { from { opacity: 0; transform: translateY(8px); } }

/* ---------------- Revelado al scroll ---------------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------------- Hero ---------------- */
.hero {
  background: var(--paper);
  max-width: 1100px;
  margin: 0 auto;
  padding: 58px 18px 50px;
}
.hero-eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 4px;
  color: var(--amber);
  margin-bottom: 16px;
}
.hero h1 {
  font-family: 'Bodoni Moda', serif;
  font-size: clamp(60px, 15vw, 128px);
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 0.9;
  color: var(--ink);
}
.hero-tagline {
  font-family: 'Bodoni Moda', serif;
  font-style: italic;
  font-size: clamp(18px, 4.5vw, 26px);
  color: var(--ink);
  margin-top: 20px;
  max-width: 540px;
}
.hero-ctas { margin-top: 28px; display: flex; gap: 26px; flex-wrap: wrap; align-items: baseline; }

.enlace {
  display: inline-block;
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--oxblood);
  text-decoration: none;
  border-bottom: 1px solid var(--oxblood);
  padding: 0 0 3px;
  transition: opacity .15s;
}
.enlace:hover { opacity: .65; }
.enlace.ink { color: var(--ink); border-color: var(--ink); }

/* ---------------- Cinta editorial (marquee) ---------------- */
.cinta {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 11px 0;
}
.cinta-pista { display: flex; width: max-content; animation: cinta 26s linear infinite; }
.cinta span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3.5px;
  white-space: nowrap;
  padding-right: 12px;
}
.cinta i { font-style: normal; color: var(--tint-arabe); padding-right: 12px; }
@keyframes cinta { to { transform: translateX(-50%); } }

/* ---------------- Secciones de inicio ---------------- */
.seccion { padding: 54px 0; }
.seccion-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 26px; }
.seccion h2 {
  font-family: 'Bodoni Moda', serif;
  font-size: clamp(26px, 6vw, 34px);
  font-weight: 500;
  color: var(--ink);
}
.seccion-sub { color: var(--ink-soft); font-size: 13px; margin-top: 6px; }

/* Dos actos */
.actos { display: grid; gap: 16px; }
@media (min-width: 720px) { .actos { grid-template-columns: 1fr 1fr; gap: 22px; } }

.acto {
  position: relative;
  padding: 26px 24px 24px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  cursor: pointer;
  border: none;
  text-align: left;
  transition: transform .2s ease;
}
.acto:hover { transform: translateY(-3px); }
.acto.arabe { background: var(--tint-arabe); }
.acto.disenador { background: var(--tint-disenador); }
.acto-palabra {
  position: absolute;
  top: 6px;
  right: 14px;
  font-family: 'Bodoni Moda', serif;
  font-style: italic;
  font-size: clamp(64px, 14vw, 110px);
  line-height: 1;
  opacity: .35;
}
.acto.arabe .acto-palabra { color: var(--amber); }
.acto.disenador .acto-palabra { color: var(--oxblood); }
.acto-num { font-size: 10px; letter-spacing: 3px; font-weight: 500; }
.acto.arabe .acto-num { color: var(--amber); }
.acto.disenador .acto-num { color: var(--oxblood); }
.acto h3 { font-family: 'Bodoni Moda', serif; font-size: 26px; font-weight: 500; color: var(--ink); margin: 6px 0 8px; }
.acto p { font-size: 13.5px; color: var(--ink-soft); max-width: 40ch; margin-bottom: 14px; }

/* Confianza */
.confianza { display: grid; gap: 0; border-top: 1px solid var(--hairline); }
@media (min-width: 720px) { .confianza { grid-template-columns: repeat(3, 1fr); } }
.confia {
  padding: 24px 4px 26px;
  border-bottom: 1px solid var(--hairline-soft);
}
@media (min-width: 720px) {
  .confia { border-bottom: none; border-right: 1px solid var(--hairline-soft); padding: 28px 22px; }
  .confia:last-child { border-right: none; }
}
.confia-num { font-family: 'Bodoni Moda', serif; font-style: italic; font-size: 20px; color: var(--oxblood); }
.confia h4 { font-family: 'Bodoni Moda', serif; font-size: 18px; font-weight: 500; margin: 8px 0 6px; color: var(--ink); }
.confia p { font-size: 13px; color: var(--ink-soft); }

/* Banda CTA */
.banda {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 52px 18px;
}
.banda h2 { font-family: 'Bodoni Moda', serif; font-size: clamp(24px, 6vw, 34px); font-weight: 500; max-width: 620px; margin: 0 auto; }
.banda p { color: rgba(255,255,255,.7); font-size: 13.5px; margin: 12px auto 22px; max-width: 520px; }
.btn-wa-linea {
  display: inline-block;
  background: var(--whatsapp);
  color: #fff;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 13px 26px;
  border-radius: 2px;
  transition: filter .15s;
}
.btn-wa-linea:hover { filter: brightness(.94); }

/* ---------------- Tienda ---------------- */
.tienda-toolbar { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.tienda-fila { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.buscador {
  flex: 1;
  min-width: 200px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 14px;
  padding: 11px 14px;
  border: 1px solid var(--hairline-soft);
  background: var(--paper);
  color: var(--ink);
  outline: none;
  transition: border-color .15s;
}
.buscador:focus { border-color: var(--ink); }

.orden {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 12.5px;
  padding: 11px 12px;
  border: 1px solid var(--hairline-soft);
  background: var(--paper);
  color: var(--ink);
  outline: none;
}

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  background: var(--paper);
  border: 1px solid var(--hairline-soft);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 20px;
  transition: all .15s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.activo { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip.activo.chip-arabe { background: var(--amber); border-color: var(--amber); }
.chip.activo.chip-disenador { background: var(--oxblood); border-color: var(--oxblood); }
.chip.activo.chip-fav { background: var(--oxblood); border-color: var(--oxblood); }

.tienda-count { font-size: 11.5px; color: var(--ink-soft); letter-spacing: .4px; }

/* Grid de productos */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 14px;
}
@media (min-width: 640px)  { .grid { grid-template-columns: repeat(3, 1fr); gap: 32px 20px; } }
@media (min-width: 960px)  { .grid { grid-template-columns: repeat(4, 1fr); gap: 36px 24px; } }

.producto { display: flex; flex-direction: column; }

.producto-visual {
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: flex-end;
  padding: 12px 14px;
  position: relative;
  transition: transform .22s ease;
}
.producto:hover .producto-visual { transform: translateY(-4px); }
.producto-visual.cat-arabe { background: var(--tint-arabe); }
.producto-visual.cat-disenador { background: var(--tint-disenador); }
.producto-visual.agotado { background: var(--tint-agotado); }

.producto-palabra {
  font-family: 'Bodoni Moda', serif;
  font-style: italic;
  font-size: clamp(22px, 6vw, 32px);
  line-height: 1;
}
.cat-arabe .producto-palabra { color: var(--amber); }
.cat-disenador .producto-palabra { color: var(--oxblood); }
.agotado .producto-palabra { color: #A8A49E; }

.producto-agotado-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.oferta-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--oxblood);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .6px;
  padding: 5px 8px;
}

.fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, .82);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 15px;
  line-height: 1;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s, color .15s;
}
.fav-btn:hover { transform: scale(1.12); }
.fav-btn.on { color: var(--oxblood); }

.producto-info { padding-top: 10px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.producto-cat { font-size: 9px; font-weight: 500; letter-spacing: 2.2px; text-transform: uppercase; }
.producto-cat.cat-arabe { color: var(--amber); }
.producto-cat.cat-disenador { color: var(--oxblood); }
.producto-nombre {
  font-family: 'Bodoni Moda', serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
}
.producto-pie { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.precio-grupo { display: flex; align-items: baseline; gap: 7px; }
.producto-precio { font-size: 15px; font-weight: 500; color: var(--ink); }
.precio-antes { font-size: 12px; color: var(--ink-soft); text-decoration: line-through; }

.btn-agregar {
  background: none;
  border: none;
  border-bottom: 1px solid var(--oxblood);
  color: var(--oxblood);
  font-size: 12px;
  font-weight: 500;
  padding: 0 0 3px;
  transition: opacity .15s;
  white-space: nowrap;
}
.btn-agregar:hover:not(:disabled) { opacity: .6; }
.btn-agregar:disabled { color: #A8A49E; border-bottom-color: transparent; cursor: not-allowed; }

.estado { text-align: center; color: var(--ink-soft); padding: 46px 10px; font-size: 14px; }

/* ---------------- Nosotros ---------------- */
.nosotros-cita {
  font-family: 'Bodoni Moda', serif;
  font-style: italic;
  font-size: clamp(26px, 7vw, 44px);
  line-height: 1.15;
  color: var(--ink);
  max-width: 700px;
  padding: 10px 0 34px;
}
.nosotros-cols { display: grid; gap: 26px; }
@media (min-width: 780px) { .nosotros-cols { grid-template-columns: 1.2fr .8fr; gap: 48px; } }
.nosotros-cols p { font-size: 14.5px; color: var(--ink); margin-bottom: 16px; max-width: 60ch; }
.nosotros-cols p em { font-family: 'Bodoni Moda', serif; }

.nosotros-ficha {
  background: var(--tint-arabe);
  padding: 26px 24px;
  align-self: start;
}
.nosotros-ficha h4 { font-family: 'Bodoni Moda', serif; font-size: 19px; font-weight: 500; margin-bottom: 14px; }
.nosotros-ficha li {
  list-style: none;
  font-size: 13px;
  color: var(--ink);
  padding: 9px 0;
  border-bottom: 1px solid rgba(26,26,26,.12);
}
.nosotros-ficha li:last-child { border-bottom: none; }
.nosotros-firma { font-family: 'Bodoni Moda', serif; font-style: italic; font-size: 17px; margin-top: 26px; color: var(--ink); }

/* ---------------- Políticas ---------------- */
.politicas-intro { color: var(--ink-soft); font-size: 14px; max-width: 62ch; margin-bottom: 26px; }
.acordeon { border-top: 1px solid var(--hairline); }
.acordeon details { border-bottom: 1px solid var(--hairline-soft); }
.acordeon summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 20px 2px;
  font-family: 'Bodoni Moda', serif;
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  transition: color .15s;
}
.acordeon summary::-webkit-details-marker { display: none; }
.acordeon summary::after { content: '+'; font-family: 'Hanken Grotesk'; font-size: 18px; color: var(--oxblood); transition: transform .2s; }
.acordeon details[open] summary::after { transform: rotate(45deg); }
.acordeon summary:hover { color: var(--oxblood); }
.acordeon .cuerpo { padding: 0 2px 22px; font-size: 14px; color: var(--ink-soft); max-width: 68ch; }
.acordeon .cuerpo p { margin-bottom: 10px; }

/* ---------------- Footer ---------------- */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 46px 0 30px;
  font-size: 13px;
}
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; } }
.footer-brand { font-family: 'Bodoni Moda', serif; font-size: 26px; color: #fff; }
.footer-tag { font-style: italic; font-family: 'Bodoni Moda', serif; margin-top: 8px; color: rgba(255,255,255,.75); }
.footer h5 { font-size: 10px; letter-spacing: 2.5px; color: var(--tint-arabe); margin-bottom: 12px; font-weight: 500; }
.footer a, .footer button.linkf {
  display: block;
  background: none;
  border: none;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  font-size: 13px;
  padding: 4px 0;
  text-align: left;
  transition: color .15s;
}
.footer a:hover, .footer button.linkf:hover { color: #fff; }
.footer-base { border-top: 1px solid rgba(255,255,255,.15); margin-top: 34px; padding-top: 18px; font-size: 11px; color: rgba(255,255,255,.45); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------------- Carrito ---------------- */
.cart-overlay { position: fixed; inset: 0; background: rgba(26, 26, 26, 0.4); z-index: 90; }
.cart {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(400px, 92vw);
  background: var(--paper);
  border-left: 1px solid var(--hairline);
  z-index: 100;
  display: flex;
  flex-direction: column;
  animation: slideIn .22s ease;
}
@keyframes slideIn { from { transform: translateX(100%); } }

.cart-head { border-bottom: 1px solid var(--hairline); padding: 20px; display: flex; align-items: baseline; justify-content: space-between; }
.cart-head h3 { font-family: 'Bodoni Moda', serif; font-size: 24px; font-weight: 500; }
.cart-close { background: none; border: none; color: var(--ink); font-size: 26px; line-height: 1; }
.cart-close:hover { color: var(--oxblood); }

.cart-items { flex: 1; overflow-y: auto; padding: 6px 20px; }
.cart-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--hairline-soft); }
.cart-item-nombre { font-family: 'Bodoni Moda', serif; font-size: 16px; font-weight: 500; }
.cart-item-precio { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.cart-item-controles { display: flex; align-items: center; gap: 10px; }
.qty-btn {
  width: 26px; height: 26px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.qty-btn:hover { background: var(--ink); color: var(--paper); }
.qty-num { font-size: 14px; font-weight: 500; min-width: 18px; text-align: center; }
.cart-vaciar { background: none; border: none; font-size: 11px; color: var(--ink-soft); text-decoration: underline; padding: 10px 0 0; }
.cart-vaciar:hover { color: var(--oxblood); }
.cart-empty { padding: 32px 22px; text-align: center; color: var(--ink-soft); font-size: 13.5px; }

.cart-foot { border-top: 1px solid var(--hairline); padding: 18px 20px 22px; background: var(--paper); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-soft); }
.cart-total strong { font-family: 'Bodoni Moda', serif; font-size: 30px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink); }
.btn-whatsapp {
  width: 100%;
  background: var(--whatsapp);
  color: #fff;
  border: none;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 500;
  padding: 15px;
  transition: filter .15s;
}
.btn-whatsapp:hover:not(:disabled) { filter: brightness(.94); }
.btn-whatsapp:disabled { background: var(--tint-agotado); color: #A8A49E; cursor: not-allowed; }
.btn-tarjeta {
  width: 100%;
  margin-top: 9px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 500;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: filter .15s;
}
.btn-tarjeta svg { width: 20px; height: 13px; flex: none; }
.btn-tarjeta:hover:not(:disabled) { filter: brightness(1.35); }
.btn-tarjeta:disabled { background: var(--tint-agotado); color: #A8A49E; cursor: not-allowed; }

.cart-note { margin-top: 10px; font-size: 11px; color: var(--ink-soft); text-align: center; }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  border-left: 3px solid var(--oxblood);
  padding: 12px 18px;
  font-size: 13px;
  z-index: 120;
  animation: toastIn .28s cubic-bezier(.2,.8,.3,1);
  max-width: 92vw;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 14px); } }

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

/* ============================================================
   V3 — CAPA DE IDENTIDAD
   ============================================================ */

::selection { background: var(--oxblood); color: #fff; }

/* Scrollbar discreta (WebKit) */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: #D8D3CA; border-radius: 10px; border: 2px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-soft); }

/* ---------------- Logo con marca ---------------- */
.logo { display: flex; align-items: center; gap: 9px; }
.logo-marca { width: auto; height: 38px; flex-shrink: 0; display: block; }
.logo-texto { line-height: 1; }

/* ---------------- Hero con arte ---------------- */
.hero { display: grid; gap: 20px; }
@media (min-width: 880px) {
  .hero { grid-template-columns: 1.15fr .85fr; align-items: center; padding-top: 44px; }
}
.hero-art { display: none; }
@media (min-width: 720px) {
  .hero-art { display: block; animation: flotar 7s ease-in-out infinite; }
}
@keyframes flotar {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(-1.2deg); }
}

/* Título por letras */
#hero-title .letra {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  animation: letraUp .6s cubic-bezier(.2, .8, .3, 1) both;
  animation-delay: calc(var(--i) * 60ms);
}
@keyframes letraUp { to { opacity: 1; transform: none; } }

/* Rotador de frases */
.hero-tagline { transition: opacity .45s ease; }
.hero-tagline.fade { opacity: 0; }

/* Stats editoriales */
.hero-stats {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 34px;
  border-top: 1px solid var(--hairline-soft);
  padding-top: 20px;
}
.hero-stats div { display: flex; flex-direction: column; gap: 3px; }
.hero-stats strong {
  font-family: 'Bodoni Moda', serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--oxblood);
  line-height: 1;
}
.hero-stats span { font-size: 11px; letter-spacing: .6px; color: var(--ink-soft); max-width: 14ch; }

/* ---------------- Frascos ilustrados ---------------- */
.producto-visual { align-items: center; justify-content: center; }
.producto-visual .producto-palabra { position: absolute; bottom: 12px; left: 14px; }
svg.botella { width: 56%; max-width: 130px; height: auto; }
svg.botella .tapa { fill: currentColor; stroke: none; }
.producto-visual.cat-arabe { color: var(--amber); }
.producto-visual.cat-disenador { color: var(--oxblood); }
.producto-visual.agotado { color: #B9B4AC; }
.producto:hover svg.botella { transform: rotate(-2deg) translateY(-3px); }
svg.botella { transition: transform .25s ease; }

.producto-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------- Contacto ---------------- */
.contacto { display: grid; gap: 24px; }
@media (min-width: 780px) { .contacto { grid-template-columns: 1.1fr .9fr; gap: 46px; align-items: start; } }
.contacto-cita {
  font-family: 'Bodoni Moda', serif;
  font-style: italic;
  font-size: clamp(24px, 6vw, 36px);
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 22px;
}
.nosotros-ficha li a { color: var(--oxblood); text-decoration: none; border-bottom: 1px solid var(--oxblood); }

/* ---------------- Cinta de notas ---------------- */
.cinta-notas { background: var(--tint-arabe); border-color: var(--hairline-soft); }
.cinta-notas .cinta-pista { animation-duration: 34s; animation-direction: reverse; }
.cinta-notas span {
  font-family: 'Bodoni Moda', serif;
  font-style: italic;
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--ink);
  text-transform: none;
}
.cinta-notas i { color: var(--amber); }

/* ---------------- Footer marca ---------------- */
.footer-marca { width: auto; height: 52px; margin-bottom: 12px; display: block; opacity: .95; }

/* ---------------- WhatsApp flotante ---------------- */
#wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
  transition: transform .18s ease, box-shadow .18s ease;
}
#wa-float svg { width: 26px; height: 26px; }
#wa-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 12px 26px rgba(0, 0, 0, .32); }

/* ============================================================
   Detalle de producto (quick view)
   ============================================================ */
.producto[data-p] { cursor: pointer; }
.detalle-overlay { position: fixed; inset: 0; background: rgba(26,26,26,.5); z-index: 110; }
.detalle {
  position: fixed;
  z-index: 115;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, 94vw);
  max-height: 90dvh;
  overflow-y: auto;
  background: var(--paper);
  display: grid;
  animation: detalleIn .28s cubic-bezier(.2,.8,.3,1);
}
@keyframes detalleIn { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } }
@media (min-width: 640px) { .detalle { grid-template-columns: .9fr 1.1fr; } }

.detalle-cerrar {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  background: var(--paper); border: 1px solid var(--hairline-soft);
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 20px; color: var(--ink);
}
.detalle-cerrar:hover { color: var(--oxblood); border-color: var(--oxblood); }

.detalle-media {
  position: relative;
  aspect-ratio: 3 / 4;
  display: flex; align-items: center; justify-content: center;
}
.detalle-media.cat-arabe { background: var(--tint-arabe); color: var(--amber); }
.detalle-media.cat-disenador { background: var(--tint-disenador); color: var(--oxblood); }
.detalle-media.agotado { background: var(--tint-agotado); color: #B9B4AC; }
.detalle-media svg.botella { width: 52%; max-width: 190px; }
.detalle-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.detalle-info { padding: 30px 26px 28px; display: flex; flex-direction: column; gap: 12px; }
.detalle-info h3 { font-family: 'Bodoni Moda', serif; font-size: clamp(24px, 5vw, 32px); font-weight: 500; line-height: 1.1; color: var(--ink); }
.detalle-desc { font-size: 14px; color: var(--ink-soft); }
.detalle-precios { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.detalle-precios .producto-precio { font-size: 24px; }
.detalle-precios .precio-antes { font-size: 15px; }
.detalle-acciones { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.btn-detalle-agregar {
  flex: 1;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 2px;
  font-size: 13.5px;
  font-weight: 500;
  padding: 14px;
  transition: background .15s;
}
.btn-detalle-agregar:hover:not(:disabled) { background: var(--oxblood); }
.btn-detalle-agregar:disabled { background: var(--tint-agotado); color: #A8A49E; cursor: not-allowed; }
.detalle-fav { position: static; width: 46px; height: 46px; background: var(--paper); border: 1px solid var(--hairline-soft); font-size: 19px; }

/* Detalle en móvil: la ficha no debe quedar bajo el pliegue */
@media (max-width: 639px) {
  .detalle-media { aspect-ratio: auto; height: 40vh; }
  .detalle-media svg.botella { max-height: 32vh; }
}

.politica-tip {
  border-left: 2px solid var(--oxblood, #6E1423);
  padding: 10px 0 10px 14px;
  margin-top: 14px !important;
  background: linear-gradient(90deg, rgba(110,20,35,.045), transparent 60%);
}

/* Sello circular: necesita aire propio y no compite con el wordmark */
.logo { gap: 11px; }
@media (max-width: 560px) {
  .logo-marca { height: 32px; }
  .logo { gap: 9px; }
}
