/* Fuente propia (Montserrat, licencia OFL): sin pedirla a Google en cada visita */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --wine: #5c0a26;
  --wine-2: #7a1438;
  --pink: #e91e63;
  --blush: #f8dce4;
  --cream: #fff7f9;
  --ink: #2a0a14;
  --muted: #7d5a66;
  --line: #f0d3dc;
  --wa: #1fae55;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(92, 10, 38, 0.12);
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--cream); line-height: 1.45; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.wrap { width: min(1120px, 100%); margin: 0 auto; padding: 0 18px; }

/* Promo strip (motion) */
.promo { background: var(--wine); color: #fff; overflow: hidden; white-space: nowrap; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; }
.promo-track { display: inline-flex; gap: 40px; padding: 9px 0; animation: marquee 26s linear infinite; }
.promo-track span::before { content: "✦"; color: #ff8fb6; margin-right: 10px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Hero */
.hero { padding-top: 26px; padding-bottom: 8px; }
.brand { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pink); margin-bottom: 6px; }
.hero h1 { font-size: clamp(34px, 7vw, 56px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; color: var(--wine); }
.hero .lead { margin-top: 10px; font-size: clamp(19px, 3.6vw, 24px); font-weight: 700; color: var(--ink); }
.hero .lead mark { background: var(--pink); color: #fff; padding: 0 8px; border-radius: 6px; }
.hero .sub { margin-top: 6px; color: var(--muted); font-size: 15px; max-width: 560px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.trust span { font-size: 12.5px; font-weight: 700; color: var(--wine); background: var(--blush); padding: 6px 11px; border-radius: 999px; }

/* Slider */
.slider-head { display: flex; align-items: end; justify-content: space-between; margin: 22px 0 10px; }
.slider-head h2, .section-title { font-size: 20px; font-weight: 800; color: var(--wine); letter-spacing: -0.01em; }
.hint { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.hint-arrow { display: inline-block; color: var(--pink); font-weight: 800; animation: hintx 1.4s ease-in-out infinite; }
@keyframes hintx { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
.hint-mouse { display: none; }

/* Flechas del slider: solo en equipos con mouse */
.slider-wrap { position: relative; }
.nav { display: none; position: absolute; top: calc(4px + min(78vw, 290px) * 0.375); z-index: 3; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--wine); box-shadow: 0 8px 22px rgba(92, 10, 38, 0.25); place-items: center; transform: translateY(-50%); transition: transform .15s, opacity .2s, background .2s; }
.nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.nav:hover { background: var(--wine); color: #fff; }
.nav:active { transform: translateY(-50%) scale(0.92); }
.nav:disabled { opacity: 0; pointer-events: none; }
.nav-prev { left: -6px; }
.nav-next { right: -6px; }
@media (hover: hover) and (pointer: fine) {
  .nav { display: grid; }
  .hint-touch { display: none; }
  .hint-mouse { display: inline; }
}

/* Empujoncito lateral al aparecer el slider */
.slides.nudge { animation: nudge 1.5s cubic-bezier(.45, 0, .25, 1) both; }
@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  22% { transform: translateX(-56px); }
  45% { transform: translateX(0); }
  65% { transform: translateX(-24px); }
  82% { transform: translateX(0); }
}
.slider { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 18px; scrollbar-width: none; padding: 4px 18px 18px; margin: 0 -18px; }
.slider::-webkit-scrollbar { display: none; }
.slides { display: flex; gap: 14px; width: max-content; }
.card { width: min(78vw, 290px); scroll-snap-align: start; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; animation: rise 0.6s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--blush); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media.is-art { display: grid; place-items: center; }
.card-media.art-0 { background: linear-gradient(135deg, #5c0a26, #b0154f); }
.card-media.art-1 { background: linear-gradient(135deg, #e91e63, #ff8fb6); }
.card-media.art-2 { background: linear-gradient(135deg, #7a1438, #e91e63); }
.card-media svg { width: 42%; height: auto; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0.95; }
.badge { position: absolute; left: 10px; bottom: 10px; background: #fff; color: var(--pink); font-size: 12px; font-weight: 800; padding: 6px 10px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,0.15); }
.badge::before { content: "🎁 "; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 18px; font-weight: 800; color: var(--wine); line-height: 1.15; }
.card-body h3 small { font-size: 13px; font-weight: 600; color: var(--muted); }
.card-body ul { list-style: none; display: grid; gap: 4px; font-size: 14px; flex: 1; }
.card-body li { padding-left: 16px; position: relative; }
.card-body li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); }
.btn-ghost { margin-top: 6px; border: 2px solid var(--wine); color: var(--wine); font-weight: 800; font-size: 14px; padding: 10px 12px; border-radius: 12px; transition: background .2s, color .2s; }
.btn-ghost:hover { background: var(--wine); color: #fff; }
.dots { display: flex; gap: 6px; justify-content: center; margin-top: -4px; }
.dots span { width: 7px; height: 7px; border-radius: 999px; background: var(--line); transition: width .3s, background .3s; }
.dots span.on { width: 22px; background: var(--pink); }

/* Buscador + selección */
.shop { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin: 26px auto 40px; scroll-margin-top: 12px; }
.shop > * { min-width: 0; }
@media (min-width: 900px) { .shop { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; } .selection { position: sticky; top: 16px; } }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.search { position: relative; margin-top: 12px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2.4; }
.search input { width: 100%; font: inherit; font-size: 16px; padding: 13px 14px 13px 42px; border: 2px solid var(--line); border-radius: 14px; outline: none; background: var(--cream); transition: border-color .2s; }
.search input:focus { border-color: var(--pink); background: #fff; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 12px 0 4px; }
.chips::-webkit-scrollbar { display: none; }
.chips button { white-space: nowrap; font-size: 13px; font-weight: 700; padding: 8px 12px; border-radius: 999px; background: var(--blush); color: var(--wine); transition: background .2s, color .2s; }
.chips button.on { background: var(--wine); color: #fff; }

/* Fila de categorías: bordes desvanecidos cuando hay más a los lados */
.chips-wrap { position: relative; }
.chips.fade-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
.chips.fade-l { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); }
.chips.fade-l.fade-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); }

/* Flechitas de la fila de categorías: solo en equipos con mouse */
.chip-nav { display: none; position: absolute; top: calc(50% + 4px); z-index: 2; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--wine); box-shadow: 0 4px 12px rgba(92, 10, 38, 0.25); place-items: center; transform: translateY(-50%); transition: opacity .2s, background .2s; }
.chip-nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chip-nav:hover { background: var(--wine); color: #fff; }
.chip-nav:disabled { opacity: 0; pointer-events: none; }
.chip-prev { left: -10px; }
.chip-next { right: -10px; }
@media (hover: hover) and (pointer: fine) { .chip-nav { display: grid; } }

/* Móvil: empujoncito lateral de las categorías */
.chips.nudge > button { animation: nudge-chip 1.5s cubic-bezier(.45, 0, .25, 1) both; }
@keyframes nudge-chip {
  0%, 100% { transform: translateX(0); }
  22% { transform: translateX(-44px); }
  45% { transform: translateX(0); }
  65% { transform: translateX(-18px); }
  82% { transform: translateX(0); }
}
.pick-title { margin-top: 10px; font-size: 15px; font-weight: 800; color: var(--pink); }
.list-head { display: flex; justify-content: flex-end; margin-top: 12px; padding: 0 8px; font-size: 13px; font-weight: 800; color: var(--pink); }
.results { list-style: none; margin-top: 4px; max-height: 380px; overflow-y: auto; border-top: 1px solid var(--line); }
.results li { display: flex; align-items: center; gap: 10px; padding: 11px 8px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 10px; transition: background .2s; }
.results li:hover { background: var(--cream); }
.results li.is-focus { background: var(--blush); }
.r-name { flex: 1; min-width: 0; }

/* Detalle del servicio: ventana al frente (sube desde abajo en el celular) */
dialog.sheet { padding: 0; width: min(100vw, 460px); max-width: 100vw; max-height: 88vh; overflow: auto; margin: auto auto 0; border-radius: 22px 22px 0 0; }
dialog.sheet[open] { animation: sheetUp .32s cubic-bezier(.2,.9,.3,1); }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 700px) { dialog.sheet { margin: auto; border-radius: 22px; } }
.d-media { position: relative; aspect-ratio: 16 / 8; background: var(--blush); display: grid; place-items: center; }
.d-close { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--wine); font-size: 22px; line-height: 1; }
.d-added { font-weight: 800; color: var(--wa); font-size: 14px; margin: 0 0 6px !important; }
.d-media img { width: 100%; height: 100%; object-fit: cover; }
.d-media.art-0 { background: linear-gradient(135deg, #5c0a26, #b0154f); }
.d-media.art-1 { background: linear-gradient(135deg, #e91e63, #ff8fb6); }
.d-media.art-2 { background: linear-gradient(135deg, #7a1438, #e91e63); }
.d-media svg { width: 26%; height: auto; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.d-body { padding: 14px 16px 16px; }
.d-cat { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--pink); }
.d-body h3 { font-size: 20px; font-weight: 800; color: var(--wine); line-height: 1.15; margin-top: 2px; }
.d-gift { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 800; color: var(--pink); background: var(--blush); padding: 5px 10px; border-radius: 999px; }
.d-body p { margin-top: 8px; font-size: 14.5px; color: var(--ink); }
.d-body .d-price { font-weight: 800; color: var(--wine); font-size: 17px; }
.d-actions { display: flex; gap: 8px; margin-top: 12px; }
.btn-main { flex: 1; background: var(--pink); color: #fff; font-weight: 800; font-size: 15px; padding: 13px; border-radius: 12px; transition: background .2s; }
.btn-main.is-on { background: var(--wine); }
.btn-main.is-soft { background: var(--blush); color: var(--wine); }
.btn-main.is-wa { background: var(--wa); }
.results li.empty, .sel li.empty { display: block; color: var(--muted); font-size: 14px; padding: 16px 2px; border: 0; }
.r-name strong { display: block; font-size: 15px; font-weight: 700; }
.r-name span { font-size: 12px; color: var(--muted); }
.r-price { font-size: 14px; font-weight: 800; color: var(--wine); white-space: nowrap; }
.add { width: 38px; height: 38px; border-radius: 50%; background: var(--pink); color: #fff; font-size: 22px; font-weight: 700; line-height: 1; display: grid; place-items: center; transition: transform .15s, background .2s; }
.add:active { transform: scale(0.9); }
.add.on { background: var(--wine); font-size: 18px; }

.selection h2 { display: flex; align-items: center; gap: 8px; }
.sel { list-style: none; margin-top: 12px; }
.sel li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.sel li em { font-style: normal; font-weight: 800; color: var(--wine); white-space: nowrap; }
.sel li button { width: 28px; height: 28px; border-radius: 50%; background: var(--blush); color: var(--wine); font-size: 18px; line-height: 1; }
.sel li.gift { grid-template-columns: 1fr auto; color: var(--pink); font-weight: 700; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; font-weight: 800; }
.total span:first-child { font-size: 15px; color: var(--muted); }
.total strong { font-size: 19px; color: var(--wine); text-align: right; }
.btn-wa { margin-top: 14px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--wa); color: #fff; font-weight: 800; font-size: 16px; padding: 15px; border-radius: 14px; box-shadow: 0 8px 20px rgba(31, 174, 85, 0.35); transition: transform .15s, opacity .2s; }
.btn-wa:active { transform: scale(0.98); }
.btn-wa:disabled { opacity: 0.45; box-shadow: none; cursor: not-allowed; }
.btn-wa svg { width: 22px; height: 22px; fill: #fff; }
.note { margin-top: 10px; font-size: 12.5px; color: var(--muted); text-align: center; }

/* Pie */
footer { background: var(--wine); color: #f6dbe4; padding: 26px 0 110px; font-size: 13px; }
footer p + p { margin-top: 8px; }
footer strong { color: #fff; }

/* Barra fija móvil */
.bar { position: fixed; left: 10px; right: 10px; bottom: 10px; display: none; align-items: center; gap: 10px; background: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(42, 10, 20, 0.25); padding: 10px 10px 10px 16px; z-index: 20; }
.bar-info { flex: 1; min-width: 0; }
.bar-info strong { display: block; font-size: 14px; color: var(--wine); }
.bar-info span { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .btn-wa { width: auto; margin: 0; padding: 12px 14px; font-size: 14px; }
@media (max-width: 899px) { body.has-sel .bar { display: flex; animation: up .3s ease-out; } }
@keyframes up { from { transform: translateY(120%); } }

/* Botón de música */
.music { position: fixed; left: 12px; bottom: 12px; z-index: 21; width: 48px; height: 48px; border-radius: 50%; background: var(--wine); color: #fff; box-shadow: 0 8px 20px rgba(42, 10, 20, 0.3); display: grid; place-items: center; transition: bottom .3s, transform .15s, background .2s; }
.music:active { transform: scale(0.92); }
.music svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; grid-area: 1 / 1; }
.music .eq { grid-area: 1 / 1; display: none; align-items: flex-end; gap: 3px; height: 18px; }
.music .eq i { width: 4px; height: 6px; background: #fff; border-radius: 2px; animation: eq 1.1s ease-in-out infinite; }
.music .eq i:nth-child(2) { animation-delay: .2s; }
.music .eq i:nth-child(3) { animation-delay: .45s; }
@keyframes eq { 0%, 100% { height: 5px; } 50% { height: 17px; } }
.music .ico-on { display: none; }
.music.on { background: var(--pink); }
.music.on .ico-off { display: none; }
.music.on .eq { display: flex; }
.music-label { position: fixed; left: 68px; bottom: 23px; z-index: 21; background: #fff; color: var(--wine); font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; box-shadow: 0 6px 16px rgba(42, 10, 20, 0.18); pointer-events: none; transition: opacity .6s, transform .6s, bottom .3s; animation: labelIn .5s ease-out .8s backwards; }
.music-label.out { opacity: 0; transform: translateX(-8px); }
@keyframes labelIn { from { opacity: 0; transform: translateX(-8px); } }
@media (max-width: 899px) { body.has-sel .music { bottom: 88px; } body.has-sel .music-label { bottom: 99px; } }

/* Modal de vista previa (cuando aún no hay número de WhatsApp) */
dialog { margin: auto; border: 0; border-radius: 18px; padding: 20px; width: min(92vw, 420px); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(42, 10, 20, 0.5); }
#modal h3 { color: var(--wine); font-size: 17px; }
#modal p { font-size: 13px; color: var(--muted); margin-top: 4px; }
#modal pre { white-space: pre-wrap; font-family: inherit; font-size: 14px; background: #e7f8ec; border-radius: 12px; padding: 12px; margin-top: 12px; }
#modal button { margin-top: 14px; width: 100%; padding: 12px; border-radius: 12px; background: var(--wine); color: #fff; font-weight: 800; }

@media (prefers-reduced-motion: reduce) { .promo-track, .card, .hint-arrow, .slides.nudge, .chips.nudge > button, .music .eq i { animation: none; } html { scroll-behavior: auto; } }
