/* ============================================================
   SANTA MONIKA — estilos
   Paleta oficial: Cherry #4A0E15 · Wine #6B1A22 · Cream #F7EFE3
                   Blush #D8B4B1 · Dusty Pink #E7A1A7
   ============================================================ */

:root {
  --cherry: #4A0E15;
  --wine: #6B1A22;
  --cream: #F7EFE3;
  --beige: #EFE2CF;
  --sand: #E6D3B8;
  --blush: #D8B4B1;
  --pink: #E7A1A7;
  --gold: #C9A66B;

  --serif: "Cormorant Garamond", Georgia, serif;
  --type: "Courier Prime", "Courier New", monospace;
  --script: "Pinyon Script", cursive;

  --radius: 14px;
  --shadow: 0 1px 0 rgba(74, 14, 21, .08), 0 14px 30px -18px rgba(74, 14, 21, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  color: var(--cherry);
  background-color: var(--cream);
  background-image:
    radial-gradient(ellipse at top, rgba(255, 255, 255, .55), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(216, 180, 177, .25), transparent 60%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 500; line-height: 1.05; margin: 0; }

/* Grano de papel */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: .22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .29  0 0 0 0 .05  0 0 0 0 .08  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Textos utilitarios */
.eyebrow {
  font-family: var(--type);
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--wine);
  margin: 0 0 .9rem;
}
.eyebrow--light { color: var(--blush); }

.script {
  font-family: var(--script);
  font-size: 1.9rem;
  color: var(--wine);
  margin: .2rem 0 0;
  line-height: 1.2;
}
.script--light { color: var(--pink); }

em { font-style: italic; color: var(--wine); }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--type);
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 1.7rem;
  border-radius: 999px;
  border: 1.5px solid var(--cherry);
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}
.btn--wine {
  background: var(--wine);
  color: var(--cream);
  box-shadow: 0 3px 0 var(--cherry);
}
.btn--wine:hover { background: var(--cherry); transform: translateY(-2px); box-shadow: 0 5px 0 #2c060b; }
.btn--ghost { background: transparent; color: var(--cherry); }
.btn--ghost:hover { background: var(--cherry); color: var(--cream); }
.btn--full { width: 100%; }

/* ---------------- Cinta superior ---------------- */
.ribbon {
  background: var(--cherry);
  color: var(--cream);
  overflow: hidden;
  font-family: var(--type);
  font-size: .72rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  padding: .55rem 0;
}
.ribbon__track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.ribbon__track i { font-style: normal; color: var(--pink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------- Navegación ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem clamp(1rem, 4vw, 3rem);
  background: rgba(247, 239, 227, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.nav.is-scrolled { border-color: rgba(74, 14, 21, .15); box-shadow: 0 8px 24px -20px rgba(74, 14, 21, .6); }
.nav__brand img { height: 52px; width: auto; transition: transform .4s; }
.nav__brand:hover img { transform: rotate(-6deg) scale(1.05); }
.nav__links { display: flex; gap: 2.2rem; }
.nav__links a, .nav__ig {
  font-family: var(--type);
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform .3s;
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__ig { display: inline-flex; align-items: center; gap: .5rem; }
.nav__ig svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.nav__ig .dot { fill: currentColor; stroke: none; }

/* ---------------- Hero ---------------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.2rem, 4vw, 3rem) 3rem;
}
.hero h1 {
  font-size: clamp(3rem, 7vw, 5.6rem);
  letter-spacing: -.01em;
}
.hero h1 em { display: block; }
.hero .script { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.hero__lead { max-width: 30rem; margin: 1.4rem 0 2.2rem; opacity: .85; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__art { position: relative; justify-self: center; width: min(100%, 440px); }

.arch {
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 18px 18px;
  padding: 12px;
  border: 1.5px solid var(--cherry);
  background: var(--cream);
  box-shadow: var(--shadow);
}
.arch__inner {
  height: 100%;
  border-radius: 999px 999px 10px 10px;
  border: 1px solid rgba(74, 14, 21, .4);
  background:
    url("../assets/patron.png") center / 260px repeat,
    var(--beige);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.arch__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 55%, rgba(239, 226, 207, .97) 0 42%, rgba(239, 226, 207, .75) 70%, rgba(239, 226, 207, .55));
}
.arch__logo {
  position: relative;
  width: 78%;
  filter: drop-shadow(0 10px 14px rgba(74, 14, 21, .25));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px) rotate(-1.5deg); } }

.stamp {
  position: absolute;
  width: 130px;
  height: 130px;
  right: -28px;
  bottom: 40px;
  display: grid;
  place-items: center;
  background: var(--pink);
  border-radius: 50%;
  box-shadow: var(--shadow);
}
.stamp svg { position: absolute; inset: 0; animation: spin 22s linear infinite; }
.stamp text { font-family: var(--type); font-size: 15.5px; letter-spacing: 3px; fill: var(--cherry); font-weight: 700; }
.stamp__ring { fill: none; stroke: var(--cherry); stroke-width: 1.2; }
.stamp__heart { font-size: 2rem; color: var(--cherry); }
@keyframes spin { to { transform: rotate(360deg); } }

.sparkle { position: absolute; color: var(--wine); animation: twinkle 3s ease-in-out infinite; }
.s1 { top: 6%; left: -8%; font-size: 1.8rem; }
.s2 { top: 30%; right: -10%; font-size: 1.2rem; animation-delay: 1s; }
.s3 { bottom: 4%; left: -4%; font-size: 1.4rem; color: var(--pink); animation-delay: 2s; }
@keyframes twinkle { 50% { opacity: .3; transform: scale(.75) rotate(20deg); } }

/* ---------------- Ornamento ---------------- */
.ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 560px;
  margin: 1rem auto 0;
  padding: 0 1.5rem;
}
.ornament__line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--cherry)); }
.ornament__line:last-child { background: linear-gradient(90deg, var(--cherry), transparent); }
.ornament svg { width: 110px; flex: none; }
.ornament path { fill: none; stroke: var(--cherry); stroke-width: 1.3; }
.ornament .fill { fill: var(--wine); stroke: none; }

/* ---------------- Secciones ---------------- */
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(2.6rem, 5vw, 3.8rem); }

.catalog, .howto {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1.2rem, 4vw, 3rem);
}

/* Filtros */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  margin-bottom: 3rem;
}
.filter {
  font-family: var(--type);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cherry);
  background: transparent;
  border: 1px solid rgba(74, 14, 21, .35);
  border-radius: 999px;
  padding: .6rem 1.2rem;
  cursor: pointer;
  transition: all .25s;
}
.filter:hover { border-color: var(--cherry); }
.filter.is-active { background: var(--cherry); color: var(--cream); border-color: var(--cherry); }

/* Grilla */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(1.4rem, 3vw, 2.4rem);
}

.card {
  cursor: pointer;
  outline: none;
  animation: cardIn .6s both;
  animation-delay: var(--d);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); } }

.card__frame {
  position: relative;
  padding: 9px;
  border: 1.5px solid var(--cherry);
  border-radius: 999px 999px var(--radius) var(--radius);
  background: var(--cream);
  transition: transform .35s ease, box-shadow .35s ease;
}
.card__media {
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 8px 8px;
  border: 1px solid rgba(74, 14, 21, .3);
  background: linear-gradient(180deg, var(--beige), #f3e7d6);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.bag-illus { width: 84%; margin-top: 8%; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }

.card:hover .card__frame,
.card:focus-visible .card__frame { transform: translateY(-6px); box-shadow: var(--shadow); }
.card:hover .bag-illus,
.card:hover .card__media img { transform: scale(1.06) rotate(-2deg); }
.card:focus-visible .card__frame { outline: 2px dashed var(--wine); outline-offset: 4px; }

.card.is-sold .card__media { filter: grayscale(.55) opacity(.75); }

.tag {
  position: absolute;
  top: 30px;
  right: -10px;
  font-family: var(--type);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  background: var(--pink);
  color: var(--cherry);
  padding: .35rem .8rem;
  border: 1px solid var(--cherry);
  transform: rotate(6deg);
  box-shadow: 2px 2px 0 var(--cherry);
}
.tag--sold { background: var(--cherry); color: var(--cream); }
.tag--soon { background: var(--blush); color: var(--cherry); border-color: var(--cherry); }

.card__body { text-align: center; padding: 1.1rem .4rem 0; }
.card__cat {
  font-family: var(--type);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .7;
  margin: 0 0 .3rem;
}
.card__name { font-size: 1.65rem; font-style: italic; }
.card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: .7rem;
  padding-top: .7rem;
  border-top: 1px dashed rgba(74, 14, 21, .35);
}
.card__price { font-family: var(--type); font-weight: 700; font-size: 1rem; }
.card__more { font-family: var(--type); font-size: .72rem; letter-spacing: .1em; opacity: .7; transition: opacity .3s, transform .3s; }
.card:hover .card__more { opacity: 1; transform: translateX(3px); }

.empty { grid-column: 1 / -1; text-align: center; font-style: italic; }

/* ---------------- Nosotros ---------------- */
.about {
  background:
    radial-gradient(ellipse at center, rgba(107, 26, 34, .0), rgba(30, 4, 8, .35)),
    var(--cherry);
  color: var(--cream);
  padding: clamp(4rem, 8vw, 6.5rem) clamp(1.2rem, 4vw, 3rem);
  position: relative;
}
.about::before, .about::after {
  /* borde festoneado vintage */
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 16px;
  background: radial-gradient(circle at 12px 0, var(--cream) 11px, transparent 12px) 0 0 / 24px 16px repeat-x;
}
.about::before { top: 0; }
.about::after { bottom: 0; transform: rotate(180deg); }

.about__frame {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  border: 1px solid rgba(247, 239, 227, .35);
  outline: 1px solid rgba(247, 239, 227, .2);
  outline-offset: 8px;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: 6px;
}
.about__logo { width: 100%; opacity: .95; }
.about h2 { font-size: clamp(2.3rem, 4.5vw, 3.3rem); margin-bottom: 1rem; }
.about em { color: var(--pink); }
.about p { opacity: .92; }

/* ---------------- Cómo pedir ---------------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.step {
  text-align: center;
  padding: 2.2rem 1.6rem;
  border: 1px solid rgba(74, 14, 21, .3);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .35);
  position: relative;
}
.step::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(74, 14, 21, .2);
  border-radius: 10px;
  pointer-events: none;
}
.step__num {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--blush);
  border: 1px solid var(--cherry);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.7rem; font-style: italic; margin-bottom: .4rem; }
.step p { margin: 0; opacity: .85; font-size: 1.05rem; }

/* ---------------- CTA Instagram ---------------- */
.ig-cta {
  padding: clamp(3rem, 6vw, 5rem) clamp(1.2rem, 4vw, 3rem);
  background:
    linear-gradient(rgba(247, 239, 227, .55), rgba(247, 239, 227, .55)),
    url("../assets/patron.png") center / 340px repeat,
    var(--cream);
}
.ig-cta__card {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  background: var(--cream);
  border: 1.5px solid var(--cherry);
  outline: 1px solid var(--cherry);
  outline-offset: -10px;
  border-radius: 6px;
  padding: 3rem 2rem;
  box-shadow: var(--shadow);
}
.ig-cta__handle {
  display: inline-block;
  font-size: clamp(2rem, 5vw, 3rem);
  font-style: italic;
  font-weight: 500;
  text-decoration: none;
  color: var(--wine);
  margin-bottom: .4rem;
}
.ig-cta__handle:hover { color: var(--cherry); }
.ig-cta p:not(.eyebrow) { margin: 0 0 1.6rem; }

/* ---------------- Footer ---------------- */
.footer { text-align: center; padding: 3.5rem 1rem 2.5rem; }
.footer__logo { width: 110px; margin: 0 auto .4rem; }
.footer__small { font-family: var(--type); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; opacity: .65; margin-top: 1rem; }

/* ---------------- Modal ---------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity .3s, visibility .3s;
}
.modal.is-open { visibility: visible; opacity: 1; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(42, 6, 11, .6); backdrop-filter: blur(3px); }
.modal__card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  width: min(880px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: var(--cream);
  border-radius: 8px;
  padding: 2rem;
  border: 1.5px solid var(--cherry);
  outline: 1px solid rgba(74, 14, 21, .35);
  outline-offset: -10px;
  transform: translateY(20px) scale(.98);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.modal.is-open .modal__card { transform: none; }
.modal__close {
  position: absolute;
  top: .8rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--cherry);
  background: var(--cream);
  color: var(--cherry);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.modal__close:hover { background: var(--cherry); color: var(--cream); }
.modal__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  border: 1.5px solid var(--cherry);
  background: linear-gradient(180deg, var(--beige), #f3e7d6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(74, 14, 21, .08);
}
.modal__media .bag-illus { width: 74%; margin: auto; }
.modal__media .tag { top: 12px; right: 10px; z-index: 8; }

/* GalerÃ­a en Modal: La foto queda 100% limpia y sin botones encima */
.gallery {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.gallery__stage {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(255, 255, 255, .7) 0%, rgba(247, 239, 227, .9) 80%);
  touch-action: pan-y;
  user-select: none;
}
.gallery__stage img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 8px;
  box-sizing: border-box;
  transition: opacity .15s ease;
}

/* Barra de fotos inferior (flechas y miniaturas abajo, fuera de la foto) */
.gallery__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .4rem .6rem;
  background: rgba(239, 226, 207, .98);
  border-top: 1px solid rgba(74, 14, 21, .15);
  z-index: 6;
  flex: none;
}
.gallery__nav {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cream);
  border: 1.2px solid var(--cherry);
  color: var(--cherry);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
  transition: all .2s;
  box-shadow: 0 1px 3px rgba(74, 14, 21, .15);
}
.gallery__nav:hover {
  background: var(--cherry);
  color: var(--cream);
  transform: scale(1.08);
}
.gallery__thumbs {
  display: flex;
  gap: .45rem;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: none;
}
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  border: 1.5px solid rgba(74, 14, 21, .3);
  overflow: hidden;
  cursor: pointer;
  background: var(--cream);
  padding: 0;
  flex: none;
  opacity: .55;
  transition: all .2s;
}
.gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery__thumb:hover {
  opacity: .95;
  border-color: var(--wine);
}
.gallery__thumb.is-active {
  opacity: 1;
  border-color: var(--cherry);
  outline: 2px solid var(--cherry);
  transform: scale(1.05);
}
.modal__info { display: flex; flex-direction: column; justify-content: center; padding-right: .5rem; }
.modal__info h3 { font-size: clamp(2.2rem, 4vw, 3rem); font-style: italic; }
.modal__price { font-family: var(--type); font-weight: 700; font-size: 1.25rem; margin: .5rem 0 1rem; }
.modal__details {
  list-style: none;
  padding: 1rem 0;
  margin: 1rem 0 1.5rem;
  border-top: 1px dashed rgba(74, 14, 21, .35);
  border-bottom: 1px dashed rgba(74, 14, 21, .35);
  font-family: var(--type);
  font-size: .85rem;
}
.modal__details li { padding: .2rem 0; }
.modal__details li::before { content: "✦ "; color: var(--pink); }
.modal__hint { font-size: .9rem; font-style: italic; opacity: .7; text-align: center; margin: .8rem 0 0; }

/* Formulario de pedido */
.order {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  margin-top: .6rem;
  padding-top: .8rem;
  border-top: 1px dashed rgba(74, 14, 21, .3);
}
.order__title {
  font-family: var(--type);
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--wine);
  margin: 0;
  font-weight: 700;
}
.field {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  font-family: var(--type);
  font-size: .75rem;
  letter-spacing: .08em;
  color: var(--cherry);
}
.field span { text-transform: uppercase; font-size: .72rem; }
.field span small { text-transform: none; opacity: .7; }
.field input[type="text"],
.field input[type="password"],
.field select,
.field textarea {
  font-family: var(--type);
  font-size: .85rem;
  color: var(--cherry);
  background: rgba(255, 255, 255, .7);
  border: 1.2px solid rgba(74, 14, 21, .35);
  border-radius: 6px;
  padding: .55rem .75rem;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
  outline: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--cherry);
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(107, 26, 34, .15);
}
.chips {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.chips label {
  cursor: pointer;
  margin: 0;
}
.chips input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chips i {
  display: inline-block;
  font-style: normal;
  font-family: var(--type);
  font-size: .72rem;
  letter-spacing: .06em;
  padding: .35rem .75rem;
  border-radius: 999px;
  border: 1px solid rgba(74, 14, 21, .35);
  background: rgba(255, 255, 255, .5);
  color: var(--cherry);
  transition: all .2s;
}
.chips input[type="radio"]:checked + i {
  background: var(--wine);
  color: var(--cream);
  border-color: var(--wine);
}
.wa-ico {
  width: 19px;
  height: 19px;
  fill: currentColor;
  flex: none;
}

/* ---------------- Burbuja Flotante WhatsApp ---------------- */
.wa-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  cursor: pointer;
  filter: drop-shadow(0 6px 14px rgba(74, 14, 21, .35));
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.wa-bubble:hover {
  transform: translateY(-4px) scale(1.03);
}
.wa-bubble__tip {
  background: var(--cream);
  color: var(--cherry);
  font-family: var(--type);
  font-size: .72rem;
  letter-spacing: .05em;
  padding: .45rem .85rem;
  border-radius: 999px;
  border: 1.2px solid var(--cherry);
  box-shadow: 2px 2px 0 var(--wine);
  white-space: nowrap;
  pointer-events: none;
  animation: pulseTip 4s infinite ease-in-out;
}
.wa-bubble__tip em {
  font-family: var(--serif);
  font-style: italic;
  font-size: .95rem;
  font-weight: 600;
  color: var(--wine);
}
@keyframes pulseTip {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-4px); }
}
.wa-bubble__btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wine), var(--cherry));
  border: 2px solid var(--cream);
  outline: 1.5px solid var(--cherry);
  display: grid;
  place-items: center;
  color: var(--cream);
  box-shadow: 0 4px 10px rgba(74, 14, 21, .4);
}
.wa-bubble__btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* ---------------- Panel de Admin Secreto ---------------- */
.admin {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(42, 6, 11, .7);
  backdrop-filter: blur(6px);
  display: none;
  overflow-y: auto;
}
.admin.is-open {
  display: flex;
}
.admin [hidden] {
  display: none !important;
}

/* Login Admin */
.admin__login {
  margin: auto;
  padding: 1.5rem;
  width: min(440px, 94vw);
}
.login-card {
  position: relative;
  background: var(--cream);
  border: 1.8px solid var(--cherry);
  outline: 1px solid var(--wine);
  outline-offset: -8px;
  border-radius: 12px;
  padding: 2.8rem 2.2rem 2.2rem;
  box-shadow: var(--shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.login-card__logo {
  width: 80px;
  margin: 0 auto .2rem;
}
.login-card h2 {
  font-size: 2.2rem;
  margin-bottom: .4rem;
}
.admin__x {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--cherry);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.admin__x:hover {
  background: rgba(74, 14, 21, .1);
}
.pass {
  position: relative;
  display: flex;
  align-items: center;
}
.pass input {
  width: 100%;
  padding-right: 3.2rem !important;
}
.pass__eye {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--wine);
  font-family: var(--type);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  padding: .3rem .4rem;
}
.login-card__error {
  font-family: var(--type);
  font-size: .75rem;
  color: #a31212;
  margin: 0;
  min-height: 1rem;
  font-weight: 700;
}
.shake {
  animation: shake 0.4s ease-in-out;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

/* Panel Principal Admin */
.admin__panel {
  background: var(--cream);
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  color: var(--cherry);
}
.admin__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(239, 226, 207, .9);
  border-bottom: 1.5px solid var(--cherry);
}
.admin__title {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.admin__title img {
  height: 48px;
  width: auto;
}
.admin__title h2 {
  font-size: 1.6rem;
}
.admin__title .eyebrow {
  margin: 0 0 .2rem;
}
.admin__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.abtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--type);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .55rem 1rem;
  border-radius: 999px;
  border: 1.2px solid var(--cherry);
  background: var(--cream);
  color: var(--cherry);
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
  box-shadow: 1px 1px 0 var(--cherry);
}
.abtn:hover {
  background: var(--beige);
  transform: translateY(-1px);
}
.abtn--ghost {
  background: transparent;
  border-color: rgba(74, 14, 21, .35);
  box-shadow: none;
}
.abtn--ghost:hover {
  border-color: var(--cherry);
  background: rgba(74, 14, 21, .06);
}
.abtn--publish {
  background: linear-gradient(135deg, var(--wine), var(--cherry));
  color: var(--cream);
  border: 1.5px solid var(--cherry);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(74, 14, 21, .3), 1px 1px 0 var(--wine);
}
.abtn--publish:hover {
  background: var(--cherry);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(74, 14, 21, .4);
}
.abtn--dark {
  background: var(--cherry);
  color: var(--cream);
}
.abtn--dark:hover {
  background: #2a0509;
  color: var(--cream);
}
.abtn--danger {
  background: transparent;
  border-color: #a31212;
  color: #a31212;
  box-shadow: none;
}
.abtn--danger:hover {
  background: #a31212;
  color: #fff;
}
.abtn--full {
  width: 100%;
}

.admin__note {
  background: rgba(216, 180, 177, .35);
  border-bottom: 1px dashed rgba(74, 14, 21, .3);
  padding: .65rem clamp(1rem, 4vw, 3rem);
  font-family: var(--type);
  font-size: .75rem;
  color: var(--cherry);
}
.admin__note code {
  background: var(--cream);
  padding: .15rem .35rem;
  border: 1px solid rgba(74, 14, 21, .25);
  border-radius: 4px;
}

.admin__body {
  display: grid;
  grid-template-columns: 340px 1fr;
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 3vw, 2.5rem);
  gap: 2rem;
}

/* Lista de Carteras en Admin */
.admin__list {
  background: rgba(255, 255, 255, .4);
  border: 1.2px solid rgba(74, 14, 21, .3);
  border-radius: 8px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
}
.admin__list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px dashed rgba(74, 14, 21, .25);
}
.admin__list-head h3 {
  font-size: 1.2rem;
  font-style: italic;
}
.admin__list-head .btn {
  padding: .45rem .9rem;
  font-size: .7rem;
}
#adm-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.item {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .6rem;
  border: 1px solid rgba(74, 14, 21, .2);
  border-radius: 6px;
  background: var(--cream);
  cursor: pointer;
  transition: all .2s;
}
.item:hover {
  border-color: var(--wine);
  background: #fff;
  transform: translateX(3px);
}
.item.is-active {
  border-color: var(--wine);
  background: rgba(231, 161, 167, .25);
  outline: 1.5px solid var(--wine);
}
.item__thumb {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  border: 1px solid rgba(74, 14, 21, .2);
  background: var(--beige);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: none;
}
.item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.item__thumb svg {
  width: 80%;
  height: auto;
}
.item__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.item__info strong {
  font-size: .95rem;
  font-family: var(--serif);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.item__info span {
  font-family: var(--type);
  font-size: .68rem;
  opacity: .75;
}
.item__info em {
  font-style: normal;
  color: var(--wine);
  font-weight: 700;
}
.item__order {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.item__order button {
  background: transparent;
  border: 1px solid rgba(74, 14, 21, .2);
  border-radius: 3px;
  font-size: .55rem;
  padding: 2px 4px;
  cursor: pointer;
  color: var(--cherry);
}
.item__order button:disabled {
  opacity: .2;
  cursor: default;
}

/* Editor en Admin */
.admin__editor {
  background: rgba(255, 255, 255, .5);
  border: 1.5px solid var(--cherry);
  border-radius: 8px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  box-shadow: var(--shadow);
}
.admin__editor h3 {
  font-size: 1.8rem;
  font-style: italic;
  padding-bottom: .6rem;
  border-bottom: 1px dashed rgba(74, 14, 21, .3);
}
.editor-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
}
.editor-photo {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.photo-box {
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 8px 8px;
  border: 1.5px solid var(--cherry);
  background: var(--beige);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-box svg {
  width: 75%;
}
.photo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  max-height: 140px;
  overflow-y: auto;
  padding: 2px;
}
.photo-item {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 6px;
  border: 1.5px solid rgba(74, 14, 21, .3);
  background: var(--cream);
  overflow: hidden;
  cursor: pointer;
  transition: all .2s;
}
.photo-item:hover {
  border-color: var(--wine);
  transform: translateY(-2px);
}
.photo-item.is-cover {
  border-color: var(--cherry);
  box-shadow: 0 0 0 2px var(--wine);
}
.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-item__badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(74, 14, 21, .9);
  color: var(--cream);
  font-family: var(--type);
  font-size: .48rem;
  text-align: center;
  padding: 1px 0;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.photo-item__del {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(163, 18, 18, .92);
  color: #fff;
  border: none;
  font-size: .75rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s;
}
.photo-item__del:hover {
  background: #c70000;
}
.field--inline {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.field--inline input[type="color"] {
  border: 1px solid var(--cherry);
  background: transparent;
  border-radius: 4px;
  width: 38px;
  height: 28px;
  cursor: pointer;
  padding: 0;
}
.tiny {
  font-family: var(--type);
  font-size: .65rem;
  opacity: .7;
  margin: 0;
  line-height: 1.3;
}
.editor-fields {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.editor-actions {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(74, 14, 21, .3);
}
.spacer {
  flex: 1;
}

@media (max-width: 900px) {
  .admin__body {
    grid-template-columns: 1fr;
  }
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .photo-box {
    width: 200px;
    margin: 0 auto;
  }
  .admin__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .wa-bubble__tip {
    display: none;
  }
  .wa-bubble {
    bottom: 18px;
    right: 18px;
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 300;
  transform: translate(-50%, 30px);
  opacity: 0;
  background: var(--cherry);
  color: var(--cream);
  font-family: var(--type);
  font-size: .82rem;
  letter-spacing: .06em;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: all .35s;
  pointer-events: none;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* Revelado al hacer scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__art { width: min(82%, 380px); }
  .about__frame { grid-template-columns: 1fr; text-align: center; }
  .about__logo { width: 200px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .nav__links { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 18px; }
  .nav__ig span { display: none; }
  .nav__brand img { height: 44px; }
  .stamp { width: 100px; height: 100px; right: -14px; }
  .stamp text { font-size: 15px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .card__name { font-size: 1.25rem; }
  .card__more { display: none; }
  .card__row { justify-content: center; }
  .tag { right: -6px; font-size: .58rem; padding: .25rem .5rem; }
  .modal__card { grid-template-columns: 1fr; padding: 1.2rem; gap: 1rem; }
  .modal__media {
    aspect-ratio: 4 / 4.6;
    max-height: 52vh;
    min-height: 290px;
    margin: 0 auto;
    width: 100%;
    border-radius: 14px;
  }
  .modal__media .tag { top: 8px; right: 8px; font-size: .62rem; padding: .25rem .55rem; }
  .gallery__stage img { padding: 6px; }
  .gallery__thumb { width: 40px; height: 40px; }
  .gallery__nav { width: 30px; height: 30px; font-size: 1.1rem; }
}

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

/* ---------------- Estudio de Stories (admin) ---------------- */
.story {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(42, 6, 11, .75);
  backdrop-filter: blur(6px);
  overflow-y: auto;
  padding: clamp(.5rem, 2vw, 1.5rem);
}
.story__card {
  background: var(--cream);
  color: var(--cherry);
  border: 1.5px solid var(--cherry);
  border-radius: 14px;
  max-width: 1100px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.story__head {
  position: relative;
  padding: 1rem 1.4rem;
  border-bottom: 1.5px solid var(--cherry);
  background: rgba(239, 226, 207, .9);
  border-radius: 14px 14px 0 0;
}
.story__head .eyebrow { margin: 0 0 .2rem; }
.story__head h2 { font-size: 1.7rem; }
.story__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 1.6rem;
  padding: 1.4rem;
  align-items: start;
}
.story__preview {
  position: sticky;
  top: 0;
  text-align: center;
}
.story__preview canvas {
  display: block;
  width: auto;
  height: min(76vh, 760px);
  max-width: 100%;
  aspect-ratio: 9 / 16;
  margin: 0 auto .5rem;
  border-radius: 10px;
  border: 1.5px solid var(--cherry);
  box-shadow: 0 10px 30px -12px rgba(74, 14, 21, .5);
  background: var(--beige);
  touch-action: none;
  cursor: grab;
}
.story__preview canvas:active { cursor: grabbing; }
.story__controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.story__group {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: .9rem 1rem;
  border: 1px dashed rgba(74, 14, 21, .35);
  border-radius: 10px;
  background: rgba(255, 255, 255, .35);
}
.story__label {
  font-family: var(--type);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--wine);
}
.story__range,
.story__check {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--type);
  font-size: .8rem;
  color: var(--cherry);
}
.story__range span { text-transform: uppercase; font-size: .72rem; letter-spacing: .08em; }
.story__range input { flex: 1; accent-color: var(--wine); }
.story__check input { accent-color: var(--wine); width: 18px; height: 18px; }
.story__actions { display: flex; flex-direction: column; gap: .6rem; }

@media (max-width: 800px) {
  .story { padding: 0; }
  .story__card { border-radius: 0; border: none; min-height: 100%; }
  .story__head { border-radius: 0; }
  .story__body { grid-template-columns: 1fr; padding: 1rem; gap: 1rem; }
  .story__preview { position: static; }
  .story__preview canvas { height: auto; width: min(100%, 360px); }
}
