/* She by Shai · estilos v2 (sobrio)
   Paleta y tipografía según el Manual de Marca 2026. No cambiar los colores.
   Regla de la v2: crema domina, una sola línea fina como separador,
   color de marca solo en precio y en el botón principal. */

:root {
  --crema: #F6EDE4;
  --arena: #E9D9C7;
  --petalo: #E8B7B0;
  --malva: #B9727A;        /* solo el nombre gigante del hero */
  --rosa: #8E4B55;         /* palo de rosa: botón principal y precio */
  --cacao: #3B2A2A;        /* texto */
  --cacao-suave: #6E5A57;  /* texto secundario, 5.5:1 sobre crema */
  --linea: rgba(59, 42, 42, .12);

  --f-titulo: "Fraunces", Georgia, serif;
  --f-texto: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 20px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lock { overflow: hidden; }
body {
  margin: 0;
  background: var(--crema);
  color: var(--cacao);
  font-family: var(--f-texto);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--petalo); color: var(--cacao); }
img { display: block; max-width: 100%; }
button, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 1px solid var(--rosa); outline-offset: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--rosa); color: var(--crema); padding: 10px 16px; z-index: 50; }
.skip:focus { left: 8px; }
.noscript { padding: 24px var(--gutter); text-align: center; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Tipos ---------- */
.label {
  font-weight: 500;
  font-size: .66rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cacao-suave);
}
.h2 {
  font-family: var(--f-titulo);
  font-weight: 300;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--cacao);
}
.h2--sm { font-size: clamp(1.7rem, 4vw, 2.2rem); }
.sec-sub { margin-top: 10px; color: var(--cacao-suave); font-size: .92rem; max-width: 42ch; }

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: 99px;
  font-weight: 500; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: background .3s var(--ease);
}
.btn--wa { background: var(--rosa); color: var(--crema); }
.btn--wa:hover { background: #7c404a; }
.btn svg { width: 16px; height: 16px; flex: none; }
.link {
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: .68rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
  text-decoration-color: var(--linea);
  transition: text-decoration-color .3s;
}
.link:hover { text-decoration-color: currentColor; }
.link--rosa { color: var(--rosa); }
.link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.5; }

.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-variant-numeric: tabular-nums lining-nums; }
.price s { color: var(--cacao-suave); font-size: .86em; text-decoration-thickness: 1px; }
.price strong { color: var(--rosa); font-weight: 500; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  display: flex; flex-direction: column;
  overflow: hidden;
  background: var(--crema);
  isolation: isolate;
}
.hero__circle {
  position: absolute; z-index: -1;
  width: 70vw; aspect-ratio: 1; border-radius: 50%;
  right: -36vw; top: -34vw;
  background: var(--petalo);
  opacity: .32;
}
.hero__top {
  position: relative; z-index: 5;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: max(18px, env(safe-area-inset-top)) var(--gutter) 0;
}
.brand__logo img { width: 140px; height: auto; } /* mínimo de marca: 140 px */
.brand__line { margin-top: 8px; font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cacao-suave); line-height: 1.6; max-width: 34ch; }
.nav { display: flex; gap: 22px; padding-top: 10px; }
.nav__link {
  font-size: .66rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav__link:hover { border-bottom-color: currentColor; }
.nav__link--wa { color: var(--rosa); }

/* Estudio */
.stage {
  position: relative;
  height: 46svh; min-height: 300px;
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
  cursor: grab; outline: none;
}
.stage:active { cursor: grabbing; }
.stage:focus-visible { box-shadow: inset 0 0 0 1px var(--rosa); }
.stage__name {
  position: absolute; left: 50%; top: 14%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--f-titulo); font-weight: 300;
  font-size: clamp(4rem, 22vw, 13rem);
  line-height: .9; letter-spacing: -.04em;
  color: var(--malva); opacity: .1;
  pointer-events: none;
  transition: opacity .5s var(--ease);
}
.stage__name.is-out { opacity: 0; }
.stage__floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 20%;
  background: linear-gradient(to bottom, rgba(233, 217, 199, .5), rgba(233, 217, 199, 0));
  pointer-events: none;
}
.stage__track { position: absolute; left: 50%; bottom: 20%; width: 0; height: 70%; }
.stage__track.is-anim .sp { transition: transform .8s var(--ease), opacity .6s var(--ease); }

.sp {
  position: absolute; left: 0; bottom: 0; height: 100%;
  display: flex; align-items: flex-end; justify-content: center;
  transform-origin: 50% 100%;
  will-change: transform, opacity;
  -webkit-tap-highlight-color: transparent;
}
.sp__img {
  position: relative; z-index: 2;
  height: 88%; width: auto; max-width: 58vw;
  object-fit: contain; object-position: bottom;
  pointer-events: none;
}
.sp--plana .sp__img { height: 62%; border-radius: 2px; }
.sp__refl {
  position: absolute; z-index: 1; top: 100%; left: 50%;
  height: 88%; width: auto; max-width: 58vw;
  transform: translateX(-50%) scaleY(-1);
  opacity: .18;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 32%);
  mask-image: linear-gradient(to top, #000 0%, transparent 32%);
  pointer-events: none;
}
.sp--plana .sp__refl { height: 62%; }
.sp__shadow {
  position: absolute; z-index: 1; bottom: -6px; left: 50%;
  width: 64%; height: 14px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(59, 42, 42, .16), transparent);
  pointer-events: none;
}

/* Abajo del estudio */
.hero__bottom {
  position: relative; z-index: 5;
  display: grid; gap: 16px;
  padding: 0 var(--gutter) 4px;
}
.hero__phrase, .hero__hint { display: none; }
.now { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 8px; text-align: center; }
.now__arrow {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--linea);
  transition: border-color .3s;
}
.now__arrow:hover { border-color: var(--cacao); }
.now__arrow svg { width: 16px; height: 16px; fill: none; stroke: var(--cacao); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.now__count { font-size: .62rem; letter-spacing: .24em; color: var(--cacao-suave); font-variant-numeric: tabular-nums; }
.now__name { margin-top: 6px; font-family: var(--f-titulo); font-weight: 300; font-size: 1.2rem; line-height: 1.25; min-height: 3.2em; display: flex; flex-direction: column; justify-content: center; }
.now__name .label { display: block; margin-bottom: 4px; font-family: var(--f-texto); }
.now__name .tone { font-style: italic; color: var(--cacao-suave); }
.now .price { justify-content: center; margin-top: 4px; font-size: .95rem; }
.now__actions { display: flex; justify-content: center; align-items: center; gap: 22px; }

/* Tira: solo fotos, sin cajas */
.strip-wrap { position: relative; z-index: 4; padding: 22px 0 max(26px, env(safe-area-inset-bottom)); }
.strip {
  display: flex; gap: 6px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 0 var(--gutter);
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--gutter), #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--gutter), #000 calc(100% - 48px), transparent);
}
.strip::-webkit-scrollbar { display: none; }
.strip.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.sc { flex: 0 0 auto; width: 60px; scroll-snap-align: start; text-align: center; -webkit-tap-highlight-color: transparent; }
.sc__img { display: block; aspect-ratio: 1; padding: 6px; opacity: .45; transition: opacity .4s var(--ease); }
.sc__img img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.sc:hover .sc__img { opacity: .8; }
.sc[aria-current="true"] .sc__img { opacity: 1; }
.sc::after { content: ""; display: block; height: 1px; margin: 4px auto 0; width: 0; background: var(--cacao); transition: width .4s var(--ease); }
.sc[aria-current="true"]::after { width: 18px; }
.sc__txt { display: none; }

/* ============================================================
   Secciones
   ============================================================ */
section { padding: 88px 0; }

/* Catálogo */
.catalogo { border-top: 1px solid var(--linea); }
.cat-head { display: grid; gap: 28px; margin-bottom: 18px; }
.filters { display: grid; gap: 14px; }
.tabs { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; min-height: 40px; padding: 0;
  font-size: .66rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--cacao-suave); border-bottom: 1px solid transparent;
  transition: color .3s, border-color .3s;
}
.tab:hover { color: var(--cacao); }
.tab[aria-pressed="true"] { color: var(--cacao); border-bottom-color: var(--cacao); }
.select { position: relative; display: inline-block; justify-self: start; }
.select select {
  appearance: none; -webkit-appearance: none;
  min-height: 40px; padding: 0 28px 0 0; border: 0; border-bottom: 1px solid var(--linea); border-radius: 0;
  background: transparent; cursor: pointer;
  font-size: .66rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
}
.select::after { content: ""; position: absolute; right: 4px; top: 50%; width: 6px; height: 6px; border-right: 1px solid var(--cacao); border-bottom: 1px solid var(--cacao); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.count { margin: 0 0 28px; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--cacao-suave); }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 14px; }
.card { display: flex; flex-direction: column; min-width: 0; }
.card__open { display: block; text-align: left; width: 100%; }
.card__media {
  position: relative; aspect-ratio: 4 / 5;
  background: var(--arena);
  display: grid; place-items: center; padding: 16%;
  overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .9s var(--ease); }
.card__media.is-plana { padding: 0; }
.card__media.is-plana img { object-fit: cover; }
.card__open:hover .card__media img { transform: scale(1.03); }
.card__tag {
  position: absolute; top: 10px; left: 10px;
  font-size: .56rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  padding: 5px 8px; background: var(--crema); color: var(--cacao);
}
.card.is-agotado .card__media img { opacity: .45; }
.card__brand { display: block; margin-top: 14px; font-size: .58rem; }
.card__name { display: block; margin-top: 6px; font-family: var(--f-titulo); font-weight: 400; font-size: 1rem; line-height: 1.25; }
.card__tone { display: block; margin-top: 2px; font-family: var(--f-texto); font-size: .8rem; color: var(--cacao-suave); }
.card .price { margin-top: 8px; gap: 2px 10px; font-size: .88rem; }
.card__cta { margin-top: auto; padding-top: 4px; }
.card__cta .link { min-height: 40px; font-size: .6rem; }
.card__soldout { margin-top: auto; padding-top: 14px; font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cacao-suave); }
.empty { grid-column: 1 / -1; padding: 40px 0; color: var(--cacao-suave); text-align: center; }

/* Cómo comprar + Original + FAQ: misma estructura, sin cajas */
.info { border-top: 1px solid var(--linea); display: grid; gap: 72px; }
.info__grid { display: grid; gap: 28px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: paso; display: grid; }
.steps li { padding: 20px 0; border-top: 1px solid var(--linea); }
.steps li:last-child { border-bottom: 1px solid var(--linea); }
.steps h3 { font-family: var(--f-titulo); font-weight: 400; font-size: 1.15rem; line-height: 1.3; }
.steps p { margin-top: 6px; color: var(--cacao-suave); font-size: .92rem; max-width: 46ch; }
.steps:not(.steps--plain) li { counter-increment: paso; }
.steps:not(.steps--plain) h3::before { content: counter(paso) "."; font-style: italic; font-weight: 300; color: var(--cacao-suave); margin-right: 10px; }

.faq { border-top: 1px solid var(--linea); }
.faq__list details { border-top: 1px solid var(--linea); }
.faq__list details:last-child { border-bottom: 1px solid var(--linea); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 60px; padding: 16px 0;
  font-family: var(--f-titulo); font-weight: 400; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 1px solid var(--cacao); border-bottom: 1px solid var(--cacao); transform: rotate(45deg) translateY(-3px); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq details p { padding: 0 0 20px; color: var(--cacao-suave); max-width: 60ch; font-size: .95rem; }

/* Pie · Pétalo con logo Cacao (combinación del manual) */
.footer { background: var(--petalo); color: var(--cacao); padding: 56px 0 max(36px, env(safe-area-inset-bottom)); }
.footer__grid { display: grid; gap: 22px; }
.footer__grid img { width: 150px; height: auto; }
.footer__info { display: grid; gap: 4px; font-size: .9rem; }
.footer__info a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.footer__legal { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; }

/* ============================================================
   Ficha abierta
   ============================================================ */
.ficha {
  padding: 0; border: 0; margin: auto 0 0; width: 100%; max-width: 100%;
  max-height: 94svh; border-radius: 0;
  background: var(--crema); color: var(--cacao);
  overflow: auto; overscroll-behavior: contain;
}
.ficha::backdrop { background: rgba(59, 42, 42, .28); }
.ficha[open] { animation: subir .5s var(--ease); }
.ficha__inner { position: relative; display: grid; }
.ficha__close {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 44px; height: 44px; display: grid; place-items: center;
}
.ficha__close svg { width: 18px; height: 18px; stroke: var(--cacao); stroke-width: 1.2; stroke-linecap: round; fill: none; }
.ficha__media { position: relative; background: var(--arena); height: min(40svh, 360px); overflow: hidden; perspective: 900px; }
.ficha__media img { position: absolute; inset: 10% 14%; width: 72%; height: 80%; object-fit: contain; }
.ficha__media.is-plana img { inset: 10%; width: 80%; height: 80%; }
.ficha[open] .ficha__media img { animation: girar .8s var(--ease); }
.ficha__body { padding: 28px var(--gutter) max(28px, env(safe-area-inset-bottom)); display: grid; gap: 16px; }
.ficha__title { font-family: var(--f-titulo); font-weight: 300; font-size: 1.8rem; line-height: 1.12; letter-spacing: -.015em; }
.ficha__title .tone { display: block; font-style: italic; color: var(--cacao-suave); font-size: .7em; margin-top: 6px; }
.ficha__prices { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 2px 32px; padding: 6px 0 4px; }
.ficha__prices .label { font-size: .56rem; }
.ficha__prices s { font-size: 1.05rem; color: var(--cacao-suave); font-variant-numeric: tabular-nums; text-decoration-thickness: 1px; }
.ficha__prices strong { font-size: 1.3rem; color: var(--rosa); font-weight: 500; font-variant-numeric: tabular-nums; }
.ficha__ahorro { grid-column: 1 / -1; margin-top: 6px; font-size: .8rem; color: var(--cacao-suave); }
.ficha__actions { display: grid; gap: 4px; justify-items: start; }
.ficha__actions .btn { width: 100%; }
.ficha__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 14px; border-top: 1px solid var(--linea); }
.ficha__meta span { font-size: .58rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--cacao-suave); }
.ficha__meta .is-agotado { color: var(--cacao); }
.ficha__fine { font-size: .8rem; color: var(--cacao-suave); }
.ficha__agotado { font-size: .92rem; }

@keyframes subir { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes girar { from { transform: rotateY(-50deg) scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }

/* ============================================================
   Tablet y computador
   ============================================================ */
@media (min-width: 700px) {
  :root { --gutter: 36px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 24px; }
  .ficha { margin: auto; width: min(960px, calc(100% - 64px)); max-height: 88vh; }
  .ficha[open] { animation: aparecer .5s var(--ease); }
  .ficha__inner { grid-template-columns: 1.1fr 1fr; }
  .ficha__media { height: auto; min-height: 560px; }
  .ficha__body { padding: 56px 44px; align-content: center; }
  .ficha__title { font-size: 2.2rem; }
  .footer__grid { grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; }
  .footer__info { grid-auto-flow: column; justify-content: center; gap: 28px; }
  @keyframes aparecer { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
}

@media (min-width: 1024px) {
  :root { --gutter: 48px; }
  .hero { min-height: max(100svh, 720px); }
  .hero__circle { width: 40vw; right: -14vw; top: -18vw; }
  .hero__top { padding-top: 30px; align-items: center; }
  .brand__logo img { width: 160px; }
  .brand__line { display: none; }
  .nav { padding-top: 0; gap: 32px; }

  .stage { flex: 1 1 auto; height: auto; min-height: 440px; }
  .stage__name { top: 12%; font-size: clamp(6rem, 13vw, 14rem); }
  .stage__floor { height: 26%; }
  .stage__track { bottom: 26%; height: 70%; }
  .sp__img, .sp__refl { max-width: 24vw; }

  .strip-wrap { order: 3; padding: 0 0 10px; margin-top: -40px; }
  .strip { justify-content: safe center; gap: 4px; }
  .sc { width: 58px; }

  .hero__bottom {
    order: 4;
    grid-template-columns: 1fr auto 1fr;
    align-items: end; gap: 24px;
    padding-top: 22px; padding-bottom: 34px;
  }
  .hero__phrase {
    display: block; grid-column: 1; grid-row: 1 / span 2; align-self: end;
    font-family: var(--f-titulo); font-weight: 300; font-size: 1.3rem; line-height: 1.3;
  }
  .hero__hint {
    display: block; grid-column: 3; grid-row: 1 / span 2; align-self: end; justify-self: end;
    font-size: .58rem; letter-spacing: .24em; text-transform: uppercase; color: var(--cacao-suave);
  }
  .now { grid-row: 1; grid-column: 2; grid-template-columns: 40px minmax(320px, auto) 40px; gap: 28px; }
  .now__name { min-height: 0; display: block; font-size: 1.3rem; }
  .now__actions { grid-row: 2; grid-column: 2; }

  section { padding: 128px 0; }
  .cat-head { grid-template-columns: 1fr auto; align-items: end; margin-bottom: 26px; }
  .filters { grid-auto-flow: column; align-items: center; gap: 40px; }
  .tabs { margin: 0; padding: 0; gap: 28px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 72px 28px; }
  .info { gap: 112px; }
  .info__grid { grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
  .steps:not(.faq__list) { grid-template-columns: repeat(3, 1fr); gap: 0 36px; }
  .steps li:last-child { border-bottom: 0; }
}

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 1023px) {
  .now__name .tone { display: block; }
  .now__name .dot { display: none; }
  .nav { gap: 18px; }
}
