/* ============================================================
   MI ROPERITO — tienda de ropa · Orizaba, Ver.
   Estilo basado en el diseño de Claude Design:
   Gloock (display) + Instrument Sans (texto) + Instrument Serif (acentos)
   Paleta rosa pastel / cacao.
   ============================================================ */

:root {
  --bg:        #fdf6f4;   /* blanco cálido */
  --bg-soft:   #faeae9;   /* rosa niebla */
  --bg-rose:   #f8dcdd;   /* rosa pastel */
  --ink:       #46292c;   /* cacao oscuro */
  --ink-soft:  #7c5c5f;
  --rose:      #c96479;   /* rosa profundo (acción) */
  --rose-deep: #a34459;
  --card:      #fffdfd;
  --line:      #eddad9;
  --radius:    22px;
  --r-md:      14px;
  --r-pill:    999px;
  --font-display: "Gloock", Georgia, serif;
  --font-body:    "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --font-accent:  "Instrument Serif", Georgia, serif;
  --ease-spring: cubic-bezier(.34,1.4,.4,1);
  --ease-out:    cubic-bezier(.22,.9,.3,1);
  --shadow: 0 2px 8px rgba(70, 41, 44, .05), 0 14px 36px rgba(70, 41, 44, .09);
}

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

/* Los elementos con [hidden] SIEMPRE se ocultan, aunque otra regla
   les ponga display (bug clásico: display:grid le gana a hidden) */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; }
h1 em, h2 em, .brand em {
  font-family: var(--font-accent); font-style: italic; color: var(--rose); font-weight: 400;
}

/* ---------- Anuncio + header ---------- */
.announcement {
  background: var(--rose-deep);
  color: #fff4f2;
  text-align: center;
  font-size: .84rem;
  letter-spacing: .03em;
  padding: .55rem 1rem;
}

.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem clamp(1rem, 4vw, 3rem);
  background: rgba(253, 246, 244, .78);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid rgba(237, 218, 217, .6);
}

.brand { display: flex; align-items: baseline; gap: .35rem; text-decoration: none; color: var(--ink); }
.brand-mark { color: var(--rose); font-size: 1rem; }
.brand-name {
  font-family: var(--font-display); font-weight: 400; font-size: 1.4rem;
  letter-spacing: .01em; text-transform: lowercase;
}
.brand-name em { font-family: var(--font-accent); font-style: italic; color: var(--rose); }

.header-nav { display: flex; align-items: center; gap: .4rem; }

.cart-btn {
  position: relative; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: var(--r-pill);
  border: none; background: transparent; color: var(--ink);
  transition: background .25s var(--ease-out), transform .25s var(--ease-spring);
}
.cart-btn:hover { background: var(--bg-rose); }
.cart-btn:active { transform: scale(.88); }
.cart-count {
  position: absolute; top: 2px; right: 0;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--r-pill); background: var(--rose); color: #fff;
  font-size: .7rem; font-weight: 600; display: grid; place-items: center;
}

/* ---------- Placeholders SVG rayados (del diseño original) ---------- */
.ph {
  background: repeating-linear-gradient(-52deg, #f7dbdf 0 12px, #fbebea 12px 24px);
}
.ph--deep {
  background: repeating-linear-gradient(-52deg, #f2c9d1 0 12px, #f6d9dc 12px 24px);
}

/* ---------- Hero (animado por scroll) ---------- */
.hero { position: relative; height: 74dvh; }
.hero-pin {
  position: sticky; top: 0; height: 70dvh; overflow: clip;
  display: grid; place-items: end center;
}
.hero-media {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-copy {
  position: relative; z-index: 2; text-align: center;
  padding: 0 24px 9dvh;
}
.hero-eyebrow {
  text-transform: uppercase; letter-spacing: .32em; font-size: .74rem;
  color: var(--rose-deep); font-weight: 600; margin-bottom: .9rem;
  animation: rise .6s var(--ease-out) both;
}
.hero-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3.2rem, 12vw, 7.5rem); letter-spacing: .01em; line-height: 1.02;
  text-transform: lowercase;
  animation: rise .6s .08s var(--ease-out) both;
}
.hero-tagline {
  color: var(--ink-soft); max-width: 34ch; margin: 1rem auto 0;
  animation: rise .6s .16s var(--ease-out) both;
}
.hero-cta { margin-top: 1.6rem; animation: rise .6s .24s var(--ease-out) both; }

/* Indicador de "haz scroll" (mouse con ruedita animada) */
.hero-scrollhint {
  position: absolute; bottom: 22px; left: 50%; translate: -50% 0; z-index: 2;
  width: 26px; height: 42px; border: 1.5px solid var(--ink-soft); border-radius: 14px;
}
.hero-scrollhint::after {
  content: ""; position: absolute; left: 50%; top: 8px; translate: -50% 0;
  width: 4px; height: 8px; border-radius: 4px; background: var(--rose);
  animation: wheel 1.6s var(--ease-out) infinite;
}
@keyframes wheel {
  60% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* Zoom del fondo y desvanecido del texto dirigidos por el scroll */
@supports (animation-timeline: scroll()) {
  .hero-media {
    animation: hero-zoom linear both;
    animation-timeline: scroll(root);
    animation-range: 0 60dvh;
  }
  .hero-copy {
    animation: hero-copy linear both;
    animation-timeline: scroll(root);
    animation-range: 0 42dvh;
  }
}
@keyframes hero-zoom {
  from { transform: scale(1); filter: brightness(1); }
  to   { transform: scale(1.18); filter: brightness(.86); }
}
@keyframes hero-copy {
  to { opacity: 0; transform: translateY(-40px); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* Reveals al hacer scroll (como el diseño) */
@supports (animation-timeline: view()) {
  .reveal {
    animation: rise .8s var(--ease-out) both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }
}

/* ---------- Secciones de la portada ---------- */
.home-sec { padding: 56px clamp(1rem, 4vw, 3rem) 8px; max-width: 1400px; margin: 0 auto; }
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 24px;
}
.sec-head h2 { font-size: clamp(1.9rem, 5.5vw, 3.2rem); }
.sec-head a {
  font-size: .88rem; font-weight: 600; white-space: nowrap; color: var(--rose-deep);
  border-bottom: 1px solid currentColor; padding-bottom: 2px; text-decoration: none;
}
.sec-head a:hover { color: var(--rose); }

/* Categorías: tarjetas altas */
.cats { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px)  { .cats { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .cats { gap: 20px; } }
.cat-card {
  position: relative; aspect-ratio: 3 / 4.2; border-radius: var(--radius); overflow: clip;
  display: grid; align-items: end; color: var(--ink); isolation: isolate;
  border: none; background: none; padding: 0; text-align: left; cursor: pointer;
}
.cat-card .cat-img {
  position: absolute; inset: 0; z-index: -1;
  background-size: cover; background-position: center;
  transition: transform .8s var(--ease-out);
}
.cat-card:hover .cat-img { transform: scale(1.07); }
.cat-label {
  margin: 12px; padding: 10px 16px; border-radius: var(--r-pill);
  background: rgba(255, 253, 253, .8);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-weight: 600; font-size: .88rem;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  transition: background .3s, transform .35s var(--ease-spring);
}
.cat-card:hover .cat-label { background: #fff; transform: translateY(-3px); }
.cat-label span:last-child { color: var(--rose); }

/* Carrusel de productos con scroll-snap */
.rail-wrap { overflow: hidden; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(64vw, 300px);
  gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 6px clamp(1rem, 4vw, 3rem) 22px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: center; }
@media (min-width: 1200px) { .rail { grid-auto-columns: 320px; } }

.prod-card {
  display: grid; gap: 10px; text-align: left; color: var(--ink);
  border: none; background: none; padding: 0; cursor: pointer;
  transition: transform .35s var(--ease-spring);
  animation: rise .5s var(--ease-out) both;
}
.prod-card:active { transform: scale(.97); }
.prod-media {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: clip;
}
.prod-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.prod-card:hover .prod-media img { transform: scale(1.06); }
.prod-fav {
  position: absolute; top: 10px; right: 10px; width: 38px; height: 38px;
  border-radius: var(--r-pill); border: none; z-index: 2;
  background: rgba(255, 253, 253, .84); backdrop-filter: blur(8px);
  display: grid; place-items: center; color: var(--ink); cursor: pointer;
  transition: transform .3s var(--ease-spring), color .2s;
}
.prod-fav:hover { color: var(--rose); }
.prod-fav.on { color: var(--rose); }
.prod-fav.on svg { fill: currentColor; }
.prod-fav:active { transform: scale(.8); }
.prod-name { font-weight: 600; font-size: .95rem; }
.prod-cat { font-size: .76rem; color: var(--ink-soft); letter-spacing: .06em; text-transform: uppercase; }
.prod-price { font-family: var(--font-accent); font-size: 1.18rem; }
.prod-price s { color: var(--ink-soft); font-size: .9rem; margin-left: 8px; }

/* Banda editorial */
.editorial {
  margin: 26px clamp(1rem, 4vw, 3rem); border-radius: calc(var(--radius) + 8px);
  overflow: clip; position: relative; min-height: 64dvh;
  display: grid; align-items: end; isolation: isolate;
  max-width: 1400px;
}
@media (min-width: 1500px) { .editorial { margin-inline: auto; } }
.editorial .editorial-bg { position: absolute; inset: 0; z-index: -1; }
.editorial-copy {
  padding: 30px 26px 34px;
  background: linear-gradient(to top, rgba(250, 232, 231, .94), transparent);
}
.editorial-copy h2 { font-size: clamp(2.1rem, 7vw, 4rem); margin-bottom: 10px; }
.editorial-copy p { color: var(--ink-soft); max-width: 36ch; margin-bottom: 20px; }

/* ---------- Catálogo ---------- */
.catalog { max-width: 1240px; margin: 0 auto; padding: 1rem clamp(1rem, 4vw, 3rem) 4rem; }

.toolbar {
  display: flex; flex-wrap: wrap; gap: .8rem; align-items: center;
  justify-content: space-between; margin-bottom: 1.8rem;
}
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  border: 1.5px solid var(--line); background: transparent; color: var(--ink);
  border-radius: var(--r-pill); padding: .42rem 1.05rem; font-size: .88rem; font-weight: 600;
  transition: all .22s var(--ease-out);
}
.chip:hover { border-color: var(--rose); color: var(--rose-deep); background: var(--bg-rose); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.search {
  border: 1.5px solid var(--line); border-radius: var(--r-pill);
  padding: .55rem 1.2rem; min-width: 220px; background: var(--card); color: var(--ink);
  outline: none; transition: border-color .25s, box-shadow .25s;
}
.search::placeholder { color: var(--ink-soft); }
.search:focus { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(201, 100, 121, .14); }

.grid {
  display: grid; gap: 1.3rem 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.card {
  background: transparent; border: none;
  overflow: visible; display: flex; flex-direction: column;
  animation: rise .5s var(--ease-out) both;
}
.card:hover .card-img { transform: translateY(-4px); box-shadow: var(--shadow); }

.card-img {
  aspect-ratio: 3 / 4; width: 100%; object-fit: cover; cursor: pointer;
  background: var(--bg-soft); border-radius: var(--radius);
  transition: transform .35s var(--ease-spring), box-shadow .35s var(--ease-out);
}
.card-img.placeholder { display: grid; place-items: center; color: var(--rose); font-size: 2rem; }

.card-body { padding: .8rem .2rem .4rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.card-name {
  font-family: var(--font-body); font-size: .98rem; font-weight: 600; cursor: pointer;
  line-height: 1.3;
}
.card-name:hover { color: var(--rose-deep); }
.card-prices { display: flex; align-items: baseline; gap: .5rem; margin-top: auto; flex-wrap: wrap; }
.price { font-family: var(--font-accent); font-weight: 400; font-size: 1.15rem; color: var(--ink); }
.price-old { color: var(--ink-soft); text-decoration: line-through; font-size: .88rem; }
.badge-sale {
  background: var(--rose); color: #fff; font-size: .68rem; font-weight: 700;
  border-radius: 6px; padding: .12rem .45rem; letter-spacing: .04em;
}
.badge-out { color: var(--rose-deep); font-size: .82rem; font-weight: 700; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: var(--r-pill); font-weight: 600;
  padding: .68rem 1.5rem;
  transition: transform .3s var(--ease-spring), background .25s, box-shadow .3s;
}
.btn:active { transform: scale(.96); }
.btn-primary {
  background: var(--rose); color: #fff;
  box-shadow: 0 12px 28px -12px rgba(163, 68, 89, .6);
}
.btn-primary:hover { background: var(--rose-deep); transform: translateY(-2px); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 10px 26px -12px rgba(70, 41, 44, .5); }
.btn-dark:hover { background: var(--rose-deep); color: #fff; transform: translateY(-2px); }
.btn-ghost {
  background: transparent; border: none; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn-ghost:hover { background: var(--bg-rose); }
.btn-block { width: 100%; }
.btn-add { margin-top: .55rem; padding: .6rem 1.2rem; font-size: .9rem; }

.empty-state { grid-column: 1 / -1; text-align: center; color: var(--ink-soft); padding: 3rem 0; }

/* ---------- Banda de beneficios ---------- */
.perks {
  max-width: 1240px; margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem) 3.4rem;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.perk {
  background: var(--bg-soft); border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.perk .perk-icon { font-size: 1.5rem; margin-bottom: .5rem; display: block; }
.perk h3 { font-family: var(--font-body); font-weight: 600; font-size: 1rem; margin-bottom: .2rem; }
.perk p { color: var(--ink-soft); font-size: .9rem; }

/* ---------- Overlays, modales y drawer ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(62, 35, 38, .38); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 1rem;
}

.modal {
  position: relative; background: var(--bg); border-radius: var(--radius);
  max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto;
  padding: 1.7rem; box-shadow: var(--shadow);
  animation: pop .3s var(--ease-out) both;
}
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(10px); } to { opacity: 1; transform: none; } }

.modal-close {
  position: absolute; top: .7rem; right: .7rem; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: var(--bg-rose); color: var(--ink); font-size: 1.25rem; line-height: 1;
  transition: background .2s, transform .25s var(--ease-spring);
}
.modal-close:hover { background: var(--line); }
.modal-close:active { transform: scale(.85); }
.modal-title { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 1rem; }

.drawer {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(440px, 100vw);
  background: var(--bg); display: flex; flex-direction: column;
  border-radius: 26px 0 0 26px;
  box-shadow: -20px 0 60px rgba(70, 41, 44, .18);
  animation: slideIn .45s var(--ease-spring) both;
}
@media (max-width: 480px) { .drawer { border-radius: 0; } }
@keyframes slideIn { from { transform: translateX(105%); } to { transform: none; } }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.15rem 1.4rem; border-bottom: 1px solid var(--line);
}
.drawer-head h2 { font-family: var(--font-display); font-size: 1.5rem; }
.drawer-head .modal-close { position: static; }

.drawer-items { flex: 1; overflow-y: auto; padding: 1rem 1.4rem; display: flex; flex-direction: column; gap: 1.1rem; }

.cart-item { display: grid; grid-template-columns: 70px 1fr auto; gap: .9rem; align-items: center; animation: itemIn .4s var(--ease-out) both; }
@keyframes itemIn { from { opacity: 0; transform: translateX(20px); } }
.cart-item img, .cart-item .thumb-ph {
  width: 70px; height: 88px; border-radius: var(--r-md); object-fit: cover; background: var(--bg-soft);
}
.cart-item .thumb-ph { display: grid; place-items: center; color: var(--rose); }
.ci-name { font-weight: 600; font-size: .92rem; }
.ci-price { color: var(--ink-soft); font-size: .85rem; font-family: var(--font-accent); }
.qty { display: inline-flex; align-items: center; gap: .55rem; margin-top: .3rem; }
.qty button {
  width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line);
  background: transparent; font-weight: 700; color: var(--ink-soft);
  transition: all .2s;
}
.qty button:hover { border-color: var(--rose); color: var(--rose-deep); }
.ci-remove {
  border: none; background: none; color: var(--ink-soft); font-size: .78rem;
  border-bottom: 1px solid var(--line); padding-bottom: 1px;
}
.ci-remove:hover { color: var(--rose); }

.drawer-foot { border-top: 1px solid var(--line); padding: 1.15rem 1.4rem calc(1.15rem + env(safe-area-inset-bottom)); }

.totals { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .95rem; font-size: .95rem; }
.totals .row { display: flex; justify-content: space-between; }
.totals .row.total { font-weight: 600; font-size: 1.15rem; border-top: 1px solid var(--line); padding-top: .5rem; margin-top: .25rem; }
.totals .row.total span:last-child { font-family: var(--font-accent); font-weight: 400; font-size: 1.4rem; }
.totals .row.discount { color: var(--rose-deep); font-weight: 600; }

/* ---------- Cupón (checkout) ---------- */
.coupon-row { display: flex; gap: .5rem; }
.coupon-row input {
  flex: 1; border: 1.5px solid var(--line); border-radius: var(--r-md); padding: .55rem .9rem;
  text-transform: uppercase; background: var(--card);
}
.coupon-row input:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px rgba(201, 100, 121, .14); }

/* ---------- Formularios ---------- */
.form { display: flex; flex-direction: column; gap: .95rem; }
.form label {
  display: flex; flex-direction: column; gap: .35rem;
  font-weight: 600; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-soft);
}
.form input, .form textarea, .form select {
  border: 1.5px solid var(--line); border-radius: var(--r-md); padding: .7rem .9rem;
  background: var(--card); color: var(--ink); font-weight: 400; outline: none;
  text-transform: none; letter-spacing: normal;
  transition: border-color .25s, box-shadow .25s;
}
.form input:focus, .form textarea:focus, .form select:focus {
  border-color: var(--rose); box-shadow: 0 0 0 4px rgba(201, 100, 121, .14);
}
.form-hint { font-size: .8rem; color: var(--ink-soft); text-align: center; }

/* ---------- Footer y toast ---------- */
.site-footer {
  margin-top: 2.5rem;
  background: var(--bg-rose);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 3.2rem clamp(1.2rem, 4vw, 3rem) 2.4rem;
}
.foot-brand {
  font-family: var(--font-display); font-size: clamp(2.8rem, 10vw, 6.5rem);
  color: var(--ink); line-height: 1; text-transform: lowercase; margin-bottom: 1.8rem;
}
.foot-brand em { font-family: var(--font-accent); font-style: italic; color: var(--rose); }
.foot-cols {
  display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  max-width: 1240px;
}
.foot-cols h3 {
  font-family: var(--font-body); font-size: .72rem; letter-spacing: .22em;
  text-transform: uppercase; font-weight: 600; margin-bottom: .7rem; color: var(--ink-soft);
}
.foot-cols p, .foot-cols a { display: block; padding: .15rem 0; color: var(--ink); font-size: .93rem; text-decoration: none; }
.foot-cols a:hover { color: var(--rose-deep); }
.foot-note { margin-top: 2.2rem; font-size: .8rem; color: var(--ink-soft); }
.footer-credit { margin-top: .35rem; font-size: .74rem; color: var(--ink-soft); opacity: .75; }

/* ---------- Página de producto (producto.html) ---------- */
.product-page { max-width: 1100px; margin: 0 auto; padding: 1.6rem clamp(1rem, 4vw, 3rem) 4rem; }
.back-link {
  display: inline-block; margin-bottom: 1.4rem; color: var(--ink-soft);
  text-decoration: none; font-weight: 600; font-size: .9rem;
}
.back-link:hover { color: var(--rose-deep); }
.product-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 4vw, 3.2rem);
  animation: rise .5s var(--ease-out) both;
}
.pd-img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--bg-soft);
  border-radius: var(--radius);
}
.pd-img.placeholder { display: grid; place-items: center; color: var(--rose); font-size: 3rem; }
.product-detail .pm-info { padding: clamp(.4rem, 2vw, 1.4rem) 0; }
.pm-info { display: flex; flex-direction: column; gap: .85rem; }
.pm-cat {
  text-transform: uppercase; letter-spacing: .26em; font-size: .7rem;
  color: var(--rose-deep); font-weight: 600;
}
.pm-name { font-family: var(--font-display); font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.08; }
.pm-desc { color: var(--ink-soft); font-size: .96rem; white-space: pre-line; max-width: 52ch; }
.pm-info .price { font-size: 1.6rem; }
.pm-info .card-prices { margin-top: 0; }
.pd-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: .3rem; }
.pd-actions .btn { padding: .85rem 1.8rem; }
.pd-stock { color: var(--rose-deep); font-weight: 600; font-size: .85rem; }

/* Acordeones de detalles (del diseño) */
.pdp-details { margin-top: 1rem; border-top: 1px solid var(--line); }
.pdp-details details { border-bottom: 1px solid var(--line); }
.pdp-details summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  padding: 15px 2px; font-weight: 600; font-size: .95rem; cursor: pointer;
}
.pdp-details summary::-webkit-details-marker { display: none; }
.pdp-details summary::after { content: "+"; font-size: 20px; color: var(--rose); transition: rotate .3s var(--ease-out); }
.pdp-details details[open] summary::after { rotate: 45deg; }
.pdp-details .d-body { padding: 0 2px 15px; color: var(--ink-soft); font-size: .9rem; }
@media (max-width: 700px) { .product-detail { grid-template-columns: 1fr; } }

/* Modal de producto (fallback) */
.product-modal { max-width: 780px; padding: 0; }
.product-modal-body { display: grid; grid-template-columns: 1fr 1fr; }
.product-modal-body .pm-img { aspect-ratio: 3/4; object-fit: cover; width: 100%; height: 100%; background: var(--bg-soft); }
.product-modal .pm-info { padding: 1.7rem; }
@media (max-width: 640px) { .product-modal-body { grid-template-columns: 1fr; } }

/* ---------- Hero con banner (imagen desde el admin > Apariencia) ---------- */
/* La imagen se aplica sobre .hero-media; se oscurece para que el texto se lea */
.hero.hero-banner .hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(58, 28, 32, .32), rgba(58, 28, 32, .5));
}
.hero.hero-banner .hero-title,
.hero.hero-banner .hero-tagline { color: #fff8f6; }
.hero.hero-banner .hero-title em { color: #ffc9d2; }
.hero.hero-banner .hero-eyebrow { color: #ffd9dd; }
.hero.hero-banner .hero-scrollhint { border-color: #fff8f6; }

/* ---------- Métodos de envío (checkout) ---------- */
.shipping-box {
  border: 1.5px dashed var(--line); border-radius: var(--r-md);
  padding: .85rem; display: flex; flex-direction: column; gap: .5rem;
}
.shipping-box legend {
  font-weight: 600; font-size: .78rem; padding: 0 .4rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft);
}
.ship-opt {
  display: flex !important; flex-direction: row !important; align-items: center;
  gap: .7rem !important; font-weight: 500 !important; text-transform: none !important;
  letter-spacing: normal !important; color: var(--ink) !important;
  border: 1.5px solid var(--line); border-radius: var(--r-md); padding: .7rem .9rem;
  cursor: pointer; transition: all .25s var(--ease-out); background: var(--card);
}
.ship-opt:hover { border-color: var(--ink-soft); }
.ship-opt.selected { border-color: var(--rose); background: rgba(248, 220, 221, .45); }
.ship-opt input { accent-color: var(--rose); }
.ship-name { flex: 1; font-size: .95rem; }
.ship-cost { font-family: var(--font-accent); font-weight: 400; color: var(--rose-deep); }

/* ---------- Variantes ---------- */
.card-variants { font-size: .78rem; color: var(--ink-soft); }
.variant-picker { display: flex; flex-direction: column; gap: .5rem; }
.variant-label { font-size: .85rem; color: var(--ink-soft); }
.variant-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.variant-opt {
  display: inline-flex; align-items: center; gap: .45rem;
  border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--card);
  padding: .38rem .7rem; font-size: .88rem; font-weight: 600;
  transition: all .22s var(--ease-out);
}
.variant-opt img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; }
.variant-opt:hover { border-color: var(--ink); }
.variant-opt.selected { border-color: var(--ink); background: var(--ink); color: #fff; }
.variant-opt.soldout { opacity: .45; text-decoration: line-through; }
.ci-variant { font-weight: 400; color: var(--ink-soft); }

/* ---------- Cuenta de cliente ---------- */
.auth-tabs { margin-bottom: 1.1rem; }
.orders-title { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: .6rem; }
.my-orders { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1.1rem; max-height: 50vh; overflow-y: auto; }
.my-order { border: 1px solid var(--line); border-radius: var(--r-md); padding: .75rem .95rem; background: var(--card); }
.mo-head { display: flex; align-items: center; gap: .6rem; }
.mo-total { margin-left: auto; font-family: var(--font-accent); }
.mo-items { font-size: .85rem; color: var(--ink-soft); margin-top: .25rem; }
.mo-date { font-size: .75rem; color: var(--ink-soft); margin-top: .15rem; }

.tag { font-size: .72rem; font-weight: 700; border-radius: 6px; padding: .12rem .5rem; }
.tag.pendiente  { background: #fdeacc; color: #9a5b00; }
.tag.pagado     { background: #d9efd9; color: #226b22; }
.tag.confirmado { background: #d8e9f7; color: #1c5b8e; }
.tag.enviado    { background: #e4dcf5; color: #5b3f9e; }
.tag.entregado  { background: #d9efd9; color: #226b22; }
.tag.cancelado  { background: #f7dcd8; color: #a2372a; }

.toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff8f6; border-radius: var(--r-pill);
  padding: .7rem 1.5rem; font-weight: 500; font-size: .9rem; z-index: 90;
  animation: rise .35s var(--ease-spring) both;
  box-shadow: 0 16px 40px -10px rgba(70, 41, 44, .5);
}

/* ---------- Mapa (Encuéntranos) ---------- */
.map-sec { max-width: 1400px; margin: 0 auto; padding: 40px clamp(1rem, 4vw, 3rem) 56px; }
.map-note { color: var(--ink-soft); margin: -12px 0 18px; }
.map-wrap {
  border-radius: var(--radius); overflow: hidden; height: min(440px, 60dvh);
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Burbuja de WhatsApp ---------- */
.wa-bubble {
  position: fixed; right: 18px; bottom: 18px; z-index: 45;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6);
  transition: transform .3s var(--ease-spring), box-shadow .3s;
}
.wa-bubble:hover { transform: scale(1.1); color: #fff; box-shadow: 0 16px 36px -8px rgba(37, 211, 102, .7); }
.wa-bubble:active { transform: scale(.92); }
.wa-bubble svg { width: 30px; height: 30px; }

/* ---------- Páginas informativas (Quiénes somos, FAQ) ---------- */
.page-doc { max-width: 760px; margin: 0 auto; padding: 2.4rem clamp(1rem, 4vw, 3rem) 4rem; }
.page-doc h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); margin-bottom: .4rem; }
.page-doc .page-sub { color: var(--rose-deep); font-weight: 600; font-size: .78rem; letter-spacing: .26em; text-transform: uppercase; margin-bottom: 1rem; }
.page-doc h2 { font-size: 1.5rem; margin: 2rem 0 .6rem; }
.page-doc p, .page-doc li { color: var(--ink-soft); margin-bottom: .8rem; }
.page-doc ul { padding-left: 1.2rem; }
.page-doc strong { color: var(--ink); }
.faq { border-top: 1px solid var(--line); margin-top: 1.4rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  padding: 16px 2px; font-weight: 600; font-size: 1rem; cursor: pointer; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--rose); transition: rotate .3s var(--ease-out); flex: none; }
.faq details[open] summary::after { rotate: 45deg; }
.faq .d-body { padding: 0 2px 16px; color: var(--ink-soft); font-size: .95rem; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
