/* Musa Fundas: bordó y rosa, tipografía de packaging (Bodoni) */
:root {
  --berry: #720002;        /* Berry Jam */
  --vino: #4E0A0B;         /* fondo del logo, para bloques oscuros */
  --frutilla: #DB8291;     /* Strawberry Milk */
  --espuma: #F4D6DC;       /* Pink Foam */
  --leche: #FCF1F3;
  --tinta: #3A0607;
  --tinta-suave: #6E3A3F;
  --linea: #EBC3CB;
  --focus: #720002;
  --hdr: 72px;
  --display: 'Bodoni Moda', 'Didot', Georgia, serif;
  --texto: 'Jost', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--hdr); }
html.no-scroll { overflow: hidden; }
body {
  margin: 0; background: var(--leche); color: var(--tinta);
  font: 400 17px/1.55 var(--texto);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; line-height: 1.02; }
p { margin: 0; }
a { color: inherit; }
button, select, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--berry); color: var(--espuma); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font-weight: 500; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.btn--berry { background: var(--berry); color: var(--leche); }
.btn--berry:hover { background: var(--vino); }
.btn--light { background: var(--espuma); color: var(--berry); }
.btn--light:hover { background: var(--leche); }
.btn--line { background: transparent; color: var(--berry); border-color: var(--berry); }
.btn--line:hover { background: var(--espuma); }
.btn--wide { width: 100%; }

/* ---------- Encabezado ---------- */
.top {
  position: sticky; top: 0; z-index: 500;
  height: var(--hdr);
  display: flex; align-items: center; gap: 24px;
  padding: 0 clamp(16px, 4vw, 48px);
  background: var(--espuma);
  border-bottom: 1px solid var(--linea);
}
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > a, .nav-drop-btn {
  padding: 10px 14px; border-radius: 999px; text-decoration: none;
  font-weight: 500; color: var(--berry); background: none; border: 0; cursor: pointer;
}
.nav > a:hover, .nav-drop-btn:hover, .nav-drop-btn[aria-expanded="true"] { background: var(--leche); }
.nav .nav-wa { background: var(--berry); color: var(--leche); margin-left: 8px; }
.nav .nav-wa:hover { background: var(--vino); }
.nav-drop { position: relative; }
.nav-drop-btn { display: inline-flex; align-items: center; gap: 8px; }
.nav-drop-btn svg { width: 12px; height: 8px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .2s; }
.nav-drop-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-drop-panel {
  position: absolute; top: calc(100% + 10px); right: -120px;
  width: min(680px, 92vw);
  display: none; grid-template-columns: repeat(4, 1fr); gap: 18px 22px;
  padding: 22px 24px; border-radius: 18px;
  background: var(--leche); border: 1px solid var(--linea);
  box-shadow: 0 18px 40px rgba(78, 10, 11, .16);
}
.nav-drop-panel.is-open { display: grid; }
.gen-col h3 { font-size: 22px; color: var(--berry); margin-bottom: 6px; }
.gen-col ul { list-style: none; margin: 0; padding: 0; }
.gen-col a { display: block; padding: 3px 0; font-size: 15px; color: var(--tinta-suave); text-decoration: none; }
.gen-col a:hover { color: var(--berry); text-decoration: underline; }
.menu-btn {
  display: none; margin-left: auto;
  border: 1.5px solid var(--berry); color: var(--berry); background: none; border-radius: 999px;
  padding: 8px 18px; font-weight: 500; cursor: pointer;
}

/* ---------- Portada ---------- */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr;
  min-height: min(calc(100svh - var(--hdr)), 760px);
}
.hero-text {
  --focus: #F4D6DC;
  background: var(--berry); color: var(--espuma);
  padding: clamp(40px, 7vw, 96px) clamp(20px, 5vw, 72px);
  display: flex; flex-direction: column; justify-content: center; gap: 26px;
}
.hero h1 {
  font-size: clamp(50px, 7.4vw, 112px);
  font-weight: 600; letter-spacing: -.01em; line-height: .94;
  max-width: 10ch;
  margin-bottom: .22em; /* aire para la cola de la g de "girls" */
}
/* Pedido de la clienta: "girls" en letra coqueta, en el rosa del logo */
.hero h1 .girls {
  font-family: 'Great Vibes', cursive; font-weight: 400;
  font-size: 1.45em; line-height: .6; letter-spacing: 0;
  color: #F3A5B3;
}
.hero-sub { max-width: 44ch; font-family: var(--display); font-style: italic; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; color: #F8E3E7; }
.picker label { display: block; font-weight: 500; margin-bottom: 10px; }
.picker-row { display: flex; gap: 10px; flex-wrap: wrap; }
.select-wrap { position: relative; flex: 1 1 220px; max-width: 320px; }
.select-wrap::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid var(--berry); border-bottom: 2px solid var(--berry);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.picker select {
  width: 100%; min-height: 46px; padding: 0 44px 0 20px;
  appearance: none; -webkit-appearance: none;
  border: 1.5px solid var(--espuma); border-radius: 999px;
  background: var(--leche); color: var(--berry); font-weight: 500; cursor: pointer;
}
.hero .btn--light { border-color: var(--espuma); }
.hero-price { font-family: var(--display); font-size: clamp(24px, 2.4vw, 32px); font-style: italic; }
.hero-price strong { font-style: normal; font-weight: 700; }

.hero-art {
  position: relative; overflow: hidden;
  background: var(--espuma);
  display: grid; place-items: center;
  padding: 40px 16px;
}
/* Probador de fundas */
.tryon { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.phone {
  width: clamp(190px, 19vw, 260px); aspect-ratio: 300 / 620;
  perspective: 1100px;
  transform: rotate(-5deg);
}
.phone-inner { width: 100%; height: 100%; transition: transform .2s ease-in; }
.phone-inner.is-flip { transform: rotateY(90deg); }
.phone svg {
  display: block; width: 100%; height: 100%; overflow: visible;
  filter: drop-shadow(0 26px 26px rgba(78, 10, 11, .28));
}
.tryon-name {
  margin-top: 22px;
  font-family: var(--display); font-style: italic; font-weight: 600;
  font-size: clamp(32px, 3vw, 44px); line-height: 1; color: var(--berry);
}
.tryon-pick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.tryon-chip {
  min-height: 40px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--berry); background: var(--leche); color: var(--berry);
  font-weight: 500; font-size: 15px;
}
.tryon-chip:hover { background: #FBE7EB; }
.tryon-chip[aria-pressed="true"] { background: var(--berry); color: var(--leche); }
.patch {
  position: absolute; z-index: 4; width: clamp(96px, 10vw, 150px);
  left: 4%; bottom: 7%; transform: rotate(-14deg);
  filter: drop-shadow(0 8px 10px rgba(78, 10, 11, .25));
}

/* Estrellas bordadas sueltas, chiquitas, por distintas secciones */
.deco {
  position: absolute; z-index: 0; pointer-events: none;
  width: var(--s, 36px); opacity: var(--o, 1);
  transform: rotate(var(--r, 0deg));
  filter: drop-shadow(0 4px 6px rgba(58, 6, 7, .2));
}
.hero-text, .models, .steps, .foot { position: relative; }
.hero-text > :not(.deco), .models > :not(.deco), .steps > :not(.deco), .foot > :not(.deco) { position: relative; z-index: 1; }

/* ---------- Estante ---------- */
.shelf-section {
  position: relative;
  height: calc(100svh + var(--n, 18) * 22svh);
  background: var(--espuma);
}
.stage {
  position: sticky; top: var(--hdr);
  height: calc(100svh - var(--hdr));
  display: grid; grid-template-rows: auto 1fr auto;
  overflow: hidden;
  background: var(--espuma);
}
.shelf-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px clamp(16px, 4vw, 48px) 0;
}
.shelf-head h2 { font-size: clamp(30px, 3.4vw, 46px); color: var(--berry); font-style: italic; font-weight: 500; }
.hint { font-size: 15px; color: var(--tinta-suave); transition: opacity .4s; }

.shelf { position: relative; min-height: 0; outline-offset: -6px; }
.wall-patch {
  position: absolute; right: 6vw; top: 8%; width: clamp(56px, 6vw, 90px);
  transform: rotate(12deg); opacity: .9; pointer-events: none;
}
.track { list-style: none; margin: 0; padding: 0; }
.item {
  position: absolute; left: 0; bottom: 22px;
  will-change: transform, opacity;
}
.box {
  position: relative; display: flex; flex-direction: column; align-items: center;
  width: 100%; aspect-ratio: .64;
  padding: 7% 8% 5%; border: 0; border-radius: 5px 5px 3px 3px; cursor: pointer;
  transform-origin: 50% 100%;
  background: var(--bg); color: var(--fg);
  box-shadow: inset -6px 0 0 rgba(0,0,0,.12), inset 0 3px 0 rgba(255,255,255,.18);
  -webkit-tap-highlight-color: transparent;
}
.box::before { /* sombra sobre la tabla */
  content: ""; position: absolute; left: 4%; right: -4%; bottom: -6px; height: 12px;
  background: radial-gradient(closest-side, rgba(58, 6, 7, .35), transparent);
  z-index: -1;
}
.box--berry { --bg: var(--berry); --fg: var(--espuma); }
.box--rosa { --bg: #FBE7EB; --fg: var(--berry); }
.box--frutilla { --bg: var(--frutilla); --fg: var(--vino); }
.box-logo { width: 46%; height: auto; margin-bottom: 7%; }
.box-window {
  width: 100%; aspect-ratio: .7; border-radius: 9px; overflow: hidden;
  background: rgba(255,255,255,.6);
  box-shadow: 0 0 0 3px rgba(255,255,255,.35), inset 0 0 0 1px rgba(0,0,0,.08);
}
.box-window img { width: 100%; height: 100%; object-fit: cover; }
.box-name {
  margin-top: auto; padding-top: 4%;
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: var(--namefs, 20px); line-height: 1.1;
}
.box:focus-visible { outline-offset: 4px; }

.plank {
  position: absolute; left: 0; right: 0; bottom: 0; height: 30px;
  background: linear-gradient(#8C1416 0 8px, var(--berry) 8px 100%);
  box-shadow: 0 10px 18px rgba(78, 10, 11, .22);
}

.shelf-arrow {
  position: absolute; top: 44%; z-index: 300;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  border: 1.5px solid var(--berry); background: var(--leche); color: var(--berry);
}
.shelf-arrow:hover { background: var(--frutilla); }
.shelf-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.shelf-arrow--prev { left: 2vw; }
.shelf-arrow--next { right: 2vw; }
.shelf-arrow:disabled { opacity: .3; cursor: default; background: var(--leche); }

/* Etiqueta de góndola */
.label {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto auto; align-items: center; gap: 12px 32px;
  margin: 14px clamp(16px, 4vw, 48px) 18px;
  padding: 16px 26px; border-radius: 4px;
  background: var(--leche); border-left: 6px solid var(--berry);
  box-shadow: 0 6px 18px rgba(78, 10, 11, .1);
}
.label-title { font-family: var(--display); font-style: italic; font-weight: 600; font-size: clamp(30px, 3vw, 42px); line-height: 1; color: var(--berry); }
.label-desc { color: var(--tinta-suave); margin-top: 4px; }
.label-models { font-size: 15px; color: var(--tinta); }
.label-k { color: var(--tinta-suave); }
.label-price { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 2.4vw, 34px); color: var(--berry); }
.label-actions { display: flex; gap: 10px; }
.label-count { position: absolute; right: 14px; top: 8px; font-size: 13px; color: var(--tinta-suave); }

/* ---------- Por modelo ---------- */
.models { padding: clamp(56px, 8vw, 110px) clamp(16px, 4vw, 48px); }
.models-head { max-width: 640px; margin-bottom: 28px; }
.models-head h2 { font-size: clamp(36px, 4.6vw, 64px); color: var(--berry); margin-bottom: 10px; }
.models-head p { color: var(--tinta-suave); }
.gens { display: flex; flex-wrap: wrap; gap: 4px 6px; border-bottom: 1px solid var(--linea); }
.gen {
  position: relative; padding: 6px 14px 10px; border: 0; background: none; cursor: pointer;
  font-family: var(--display); font-weight: 600; font-size: clamp(30px, 3.6vw, 52px); line-height: 1;
  color: var(--frutilla);
}
.gen small { font-family: var(--texto); font-size: 14px; font-weight: 500; display: block; color: var(--tinta-suave); margin-bottom: 2px; }
.gen:hover { color: var(--berry); }
.gen[aria-pressed="true"] { color: var(--berry); }
.gen[aria-pressed="true"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px; background: var(--berry); }
.gen--all { font-style: italic; font-weight: 500; }
.variants { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.variants:empty { display: none; }
.variants:empty + .results-count { margin-top: 22px; }
.chip {
  min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--linea); background: var(--leche); color: var(--tinta);
  font-size: 15px; font-weight: 500;
}
.chip:hover { border-color: var(--frutilla); }
.chip[aria-pressed="true"] { background: var(--berry); border-color: var(--berry); color: var(--leche); }
.chip .n { opacity: .7; margin-left: 4px; font-weight: 400; }
.results-count { color: var(--tinta-suave); font-size: 15px; margin: 6px 0 20px; }

.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 36px 24px;
}
.card-btn { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.card-img { width: 100%; aspect-ratio: .7; object-fit: cover; border-radius: 14px; background: var(--espuma); }
.card-name { display: block; font-family: var(--display); font-style: italic; font-weight: 600; font-size: 28px; color: var(--berry); margin-top: 12px; line-height: 1.05; }
.card-desc { display: block; color: var(--tinta-suave); font-size: 15px; margin-top: 2px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.card-price { font-weight: 600; color: var(--tinta); }
.card-models { font-size: 13px; color: var(--tinta-suave); }
.card-wa { min-height: 40px; padding: 0 16px; font-size: 15px; }

.empty { max-width: 520px; padding: 28px; border-radius: 14px; background: var(--espuma); }
.empty-title { font-family: var(--display); font-size: 26px; line-height: 1.15; color: var(--berry); margin-bottom: 8px; }
.empty .btn { margin-top: 18px; }

/* ---------- Cómo comprar ---------- */
.steps {
  --focus: #F4D6DC;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 32px clamp(24px, 5vw, 72px);
  padding: clamp(56px, 7vw, 96px) clamp(16px, 4vw, 48px);
  background: var(--berry); color: var(--espuma);
}
.steps h2 { font-size: clamp(36px, 4.6vw, 64px); font-style: italic; font-weight: 500; }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.step-n { display: block; font-family: var(--display); font-size: 76px; line-height: .9; font-weight: 700; color: var(--frutilla); margin-bottom: 10px; }
.steps h3 { font-size: 26px; margin-bottom: 8px; }
.steps p { color: #F8E3E7; max-width: 30ch; }

/* ---------- Pie ---------- */
.foot {
  --focus: #F4D6DC;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 32px;
  padding: clamp(48px, 7vw, 96px) clamp(16px, 4vw, 48px) 28px;
  background: var(--vino); color: var(--espuma);
}
.foot-logo { width: min(100%, 560px); }
.foot-lead { font-family: var(--display); font-style: italic; font-size: 26px; margin-bottom: 14px; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 18px; }
.foot-links a { text-decoration-color: var(--frutilla); text-underline-offset: 4px; }
.foot-links a:hover { color: #fff; }
.foot-small { grid-column: 1 / -1; font-size: 14px; color: var(--frutilla); border-top: 1px solid rgba(244, 214, 220, .2); padding-top: 18px; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 600;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--berry); color: var(--espuma);
  box-shadow: 0 10px 24px rgba(78, 10, 11, .3);
  transition: transform .25s, opacity .25s;
}
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }
.wa-float:hover { background: var(--vino); }
.wa-float.is-away { transform: translateY(90px); opacity: 0; pointer-events: none; }

/* ---------- Ficha ---------- */
.detail {
  width: min(900px, calc(100vw - 24px)); max-height: calc(100svh - 24px);
  padding: 0; border: 0; border-radius: 20px;
  background: var(--leche); color: var(--tinta);
  overflow: auto;
}
.detail::backdrop { background: rgba(58, 6, 7, .55); }
.detail-close-form { position: absolute; right: 12px; top: 12px; z-index: 2; margin: 0; }
.detail-close {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--leche); color: var(--berry);
  box-shadow: 0 4px 12px rgba(58, 6, 7, .15);
}
.detail-close svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; fill: none; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; }
.detail-img { width: 100%; height: 100%; max-height: 640px; object-fit: cover; background: var(--espuma); }
.detail-info { padding: 40px 32px 32px; display: flex; flex-direction: column; gap: 14px; }
.detail-name { font-size: 54px; font-style: italic; font-weight: 600; color: var(--berry); }
.detail-desc { color: var(--tinta-suave); }
.detail-price { font-family: var(--display); font-weight: 700; font-size: 32px; color: var(--berry); }
.detail-models { border: 0; margin: 4px 0; padding: 0; }
.detail-models legend { font-weight: 500; margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-note { font-size: 15px; color: var(--tinta-suave); }

/* ---------- Celular ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { padding: 36px 16px 32px; }
  .phone { width: 180px; }
  .patch { width: 74px; left: auto; right: 6%; bottom: auto; top: 30%; }
  .label { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 14px 16px; }
  .label-models { grid-column: 1 / -1; }
  .label-actions { grid-column: 1 / -1; }
  .label-actions .btn { flex: 1; }
  .deco--desk { display: none; }
  .gens { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 6px; }
  .gens::-webkit-scrollbar { display: none; }
  .gen { flex: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .card-name { font-size: 23px; }
  .card-desc { font-size: 14px; }
  .card-foot { flex-wrap: wrap; }
  .card-wa { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .steps-list { grid-template-columns: 1fr; gap: 26px; }
  .step-n { font-size: 56px; }
  .foot { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-img { max-height: 46svh; }
  .detail-info { padding: 22px 20px 24px; }
  .detail-name { font-size: 42px; }
}

@media (max-width: 860px) {
  :root { --hdr: 62px; }
  .brand img { height: 38px; }
  .menu-btn { display: block; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--hdr); bottom: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 16px; background: var(--espuma); overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav > a, .nav-drop-btn { font-size: 20px; padding: 12px 14px; width: 100%; text-align: left; justify-content: space-between; }
  .nav .nav-wa { margin: 10px 0 0; text-align: center; }
  .nav-drop-panel { position: static; width: auto; grid-template-columns: repeat(2, 1fr); box-shadow: none; margin: 4px 0 8px; }
  .shelf-arrow { width: 42px; height: 42px; top: 38%; }
  .shelf-head { padding-top: 12px; }
  .hint { font-size: 14px; }
  .label-title { font-size: 30px; }
  .label-desc { font-size: 15px; }
  .label-price { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
