/* Vanessa Marachi — estilos del sitio. Solo usa variables de tokens.css. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface-100);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: var(--body-size);
  line-height: var(--body-lh);
  font-weight: 500; /* Cormorant tiene trazo fino: 500 mejora la lectura a 17px */
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--wine); }

:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.saltar {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  background: var(--wine);
  color: var(--on-wine);
  border-radius: var(--radius-sm);
}
.saltar:focus { top: var(--space-4); }

/* ---------- Tipografía de marca ---------- */
.frase {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(40px, 7vw, var(--display-md-size));
  line-height: var(--display-md-lh);
  color: var(--wine);
}

.tagline {
  font-family: var(--font-serif);
  font-size: var(--tagline-size);
  line-height: var(--tagline-lh);
  font-weight: var(--tagline-weight);
  letter-spacing: var(--tagline-tracking);
  text-transform: uppercase;
  color: var(--wine);
}

/* Eslogan con filetes rosados a los lados, como en los flyers */
.tagline--filetes {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.tagline--filetes::before,
.tagline--filetes::after {
  content: "";
  flex: 0 0 28px;
  height: 1.5px;
  background: var(--rose);
}

/* Línea divisoria con corazón centrado: el único glifo de la marca */
.divisor {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: min(240px, 70%);
  color: var(--rose-ink);
  font-size: 18px;
  line-height: 1;
}
.divisor::before,
.divisor::after {
  content: "";
  flex: 1;
  border-top: 2px dashed var(--rose);
}
.divisor--izq { margin-inline: 0; }

/* ---------- Botones y enlaces ---------- */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full);
  background: var(--wine);
  color: var(--on-wine);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: var(--label-tracking);
  text-decoration: none;
  transition: background-color .2s ease;
}
.boton:hover { background: var(--ink); }

.boton--chico {
  min-height: 40px;
  padding: var(--space-2) var(--space-4);
  font-size: var(--label-size);
}

.enlace {
  font-weight: 600;
  font-size: 18px;
  color: var(--wine);
  text-decoration: underline;
  text-decoration-color: var(--rose);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}
.enlace:hover { text-decoration-color: var(--wine); }

/* ---------- Cabecera ---------- */
.cabecera {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-2) clamp(var(--space-4), 4vw, var(--space-8));
  background: color-mix(in srgb, var(--surface-100) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
}

.cabecera__marca {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}
.cabecera__marca img {
  width: 58px;
  mix-blend-mode: multiply;
}
.cabecera__marca span {
  font-family: var(--font-script);
  font-size: 28px;
  line-height: 1;
}

.cabecera__nav {
  display: flex;
  gap: var(--space-5);
}
.cabecera__nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}
.cabecera__nav a:hover {
  color: var(--wine);
  text-decoration: underline;
  text-decoration-color: var(--rose);
  text-underline-offset: 5px;
}

/* ---------- Portada ---------- */
.portada {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: var(--space-7);
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--space-7) clamp(var(--space-4), 4vw, var(--space-8)) var(--space-8);
}

.portada__texto {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}

.lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  font-weight: 400;
}
.lockup__monograma {
  width: clamp(180px, 22vw, 260px);
  mix-blend-mode: multiply; /* funde el fondo crema del recorte con el fondo del sitio */
}
.lockup__nombre {
  font-family: var(--font-script);
  font-size: clamp(56px, 8vw, 88px); /* display-lg (112px) escalado al ancho de la columna */
  line-height: var(--display-lg-lh);
  color: var(--ink);
  white-space: nowrap;
}
.lockup .divisor { margin-top: var(--space-2); }

.portada .frase { margin-top: var(--space-3); }

.portada__bajada {
  max-width: 34ch;
  font-size: 20px;
  color: var(--ink-soft);
}

.portada__acciones {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5);
  margin-top: var(--space-3);
}

/* Vidriera: modelos colgados de una costura */
.vidriera {
  position: relative;
  aspect-ratio: 1000 / 760;
  width: 100%;
}
.vidriera__hilo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}

.etiqueta-colgante {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 30%;
  padding: var(--space-5) 7px 7px;
  background: var(--surface-100);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transform-origin: 50% 0;
  transform: rotate(var(--giro));
}
/* Ojal dorado donde pasa el hilo */
.etiqueta-colgante::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 18px;
  height: 18px;
  translate: -50% -50%;
  border-radius: var(--radius-full);
  border: 3px solid var(--gold);
  background: var(--surface-100);
  box-shadow: inset 0 0 0 1px var(--gold-light);
  z-index: 3;
}
/* Costura interna de la etiqueta */
.etiqueta-colgante::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1.5px dashed var(--rose);
  border-radius: 12px;
  pointer-events: none;
}
.etiqueta-colgante img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* El único momento de movimiento: la costura se cose y las etiquetas se cuelgan */
@media (prefers-reduced-motion: no-preference) {
  .hilo-trazo {
    stroke-dasharray: 1 1;
    stroke-dashoffset: 1;
    animation: coser 1.4s cubic-bezier(.55, .1, .35, 1) .2s forwards;
  }
  .etiqueta-colgante {
    opacity: 0;
    animation: colgar 1.1s cubic-bezier(.3, 1.4, .5, 1) forwards;
    animation-delay: calc(.9s + var(--orden) * .18s);
  }
}
@keyframes coser { to { stroke-dashoffset: 0; } }
@keyframes colgar {
  0%   { opacity: 0; transform: translateY(-18px) rotate(calc(var(--giro) * -2)); }
  35%  { opacity: 1; }
  60%  { transform: translateY(0) rotate(calc(var(--giro) * 1.6)); }
  100% { opacity: 1; transform: translateY(0) rotate(var(--giro)); }
}

/* ---------- Beneficios ---------- */
.beneficios {
  border-block: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  background: var(--surface-blush);
}
.beneficios ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--space-6) clamp(var(--space-4), 4vw, var(--space-8));
}
.beneficios li {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.insignia {
  flex: none;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--blush);
}
.insignia img { width: 36px; height: 36px; }
.beneficios h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: var(--label-lh);
}
.beneficios p {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* ---------- Secciones ---------- */
.seccion {
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--space-8) clamp(var(--space-4), 4vw, var(--space-8));
}
.seccion__cabecera {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
  margin-bottom: var(--space-7);
}
.seccion__bajada {
  max-width: 46ch;
  font-size: 19px;
  color: var(--ink-soft);
}

/* ---------- Filtros ---------- */
.filtros {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.filtros button {
  min-height: 40px;
  padding: var(--space-2) var(--space-4);
  border: 1.5px solid var(--rose);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.filtros button:hover { border-color: var(--wine); }
.filtros button[aria-pressed="true"] {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--on-wine);
}
.filtros .cuenta {
  font-weight: 400;
  opacity: .8;
}

/* ---------- Grilla de productos ---------- */
.grilla {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-6) var(--space-5);
}

.producto {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
  height: 100%;
  padding: var(--space-2) var(--space-2) var(--space-4);
  border: 0;
  border-radius: var(--radius-md);
  background: var(--surface-100);
  box-shadow: var(--shadow-sm);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
/* Costura: se oscurece a wine al pasar o enfocar */
.producto::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1.5px dashed var(--blush);
  border-radius: 13px;
  pointer-events: none;
  transition: border-color .2s ease;
}
.producto:hover::after,
.producto:focus-visible::after { border-color: var(--wine); }

.producto img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--surface-blush);
}
.producto__nombre {
  padding-inline: var(--space-2);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
}
.producto__tipo {
  margin-top: auto;
  padding-inline: var(--space-2);
  font-size: var(--caption-size);
  line-height: var(--caption-lh);
  color: var(--ink-soft);
}
.producto__consultar {
  padding-inline: var(--space-2);
  font-size: var(--label-size);
  font-weight: var(--label-weight);
  color: var(--rose-ink);
}

.grilla__error {
  text-align: center;
  color: var(--wine);
}

/* ---------- Video ---------- */
.video-banda {
  background: var(--surface-blush);
  border-block: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
}
.video {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-8);
  max-width: 1040px;
  margin: 0 auto;
  padding: var(--space-8) clamp(var(--space-4), 4vw, var(--space-8));
}
.video__marco {
  width: min(300px, 70vw);
  padding: 8px;
  border-radius: var(--radius-lg);
  background: var(--surface-100);
  box-shadow: var(--shadow-md);
  position: relative;
}
.video__marco::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1.5px dashed var(--rose);
  border-radius: 24px;
  pointer-events: none;
}
.video__marco video {
  width: 100%;
  aspect-ratio: 478 / 850;
  object-fit: cover;
  border-radius: 20px;
  background: var(--surface-blush);
}
.video__texto {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}
.video__texto .frase { max-width: 12ch; }
.video__texto p { max-width: 40ch; font-size: 19px; color: var(--ink-soft); }


/* ---------- Pasos ---------- */
.pasos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  counter-reset: paso;
  max-width: 980px;
  margin: 0 auto;
}
.pasos li {
  counter-increment: paso;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
}
.pasos li::before {
  content: counter(paso);
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-2);
  border-radius: var(--radius-full);
  border: 1.5px dashed var(--gold);
  font-family: var(--font-script);
  font-size: 32px;
  line-height: 1;
  color: var(--gold-ink);
}
.pasos h3 { font-size: 22px; font-weight: 600; line-height: 1.2; }
.pasos p { max-width: 26ch; color: var(--ink-soft); }
.pasos__nota {
  margin-top: var(--space-7);
  text-align: center;
  font-style: italic;
  font-size: 19px;
}

/* ---------- Pie ---------- */
.pie {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-8) var(--space-4) calc(var(--space-8) + 24px);
  border-top: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  text-align: center;
}
.pie img { width: 120px; mix-blend-mode: multiply; }
.pie__nombre {
  font-family: var(--font-script);
  font-size: var(--display-sm-size);
  line-height: var(--display-sm-lh);
}
.pie__contacto {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-6);
  margin-top: var(--space-3);
}
.pie__contacto a { font-weight: 600; }
.pie__legal {
  margin-top: var(--space-4);
  font-size: var(--caption-size);
  color: var(--ink-soft);
}

/* ---------- Botón flotante (solo celular) ---------- */
.boton--flotante {
  display: none;
  position: fixed;
  left: var(--space-4);
  right: var(--space-4);
  bottom: calc(var(--space-4) + env(safe-area-inset-bottom));
  z-index: 30;
  box-shadow: var(--shadow-md);
}

/* ---------- Detalle de producto ---------- */
.detalle {
  width: min(960px, calc(100% - 2 * var(--space-4)));
  max-height: calc(100dvh - 2 * var(--space-4));
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--surface-100);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  overflow: auto;
}
.detalle::backdrop {
  background: rgba(27, 21, 18, 0.55);
}
.detalle__cuerpo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.detalle__foto img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--surface-blush);
}
.detalle__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-7) var(--space-6) var(--space-6);
}
.detalle__categoria {
  font-size: var(--caption-size);
  color: var(--ink-soft);
}
.detalle__nombre {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
}
.detalle__titular.frase {
  font-size: var(--display-sm-size);
  line-height: var(--display-sm-lh);
}
.detalle__texto { max-width: 44ch; }
.detalle h4 {
  margin-top: var(--space-2);
  font-size: var(--label-size);
  font-weight: var(--label-weight);
  letter-spacing: var(--label-tracking);
  color: var(--wine);
}
.detalle__materiales li {
  position: relative;
  padding-left: var(--space-5);
  line-height: 1.4;
}
.detalle__materiales li + li { margin-top: var(--space-1); }
.detalle__materiales li::before {
  content: "♡";
  position: absolute;
  left: 0;
  color: var(--rose-ink);
}
.detalle__cta { margin-top: var(--space-4); }
.detalle__id {
  font-size: var(--caption-size);
  color: var(--ink-soft);
}
.detalle__cerrar {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--surface-100);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.detalle__cerrar:hover { color: var(--wine); }

@media (prefers-reduced-motion: no-preference) {
  .detalle[open] { animation: abrir .25s ease-out; }
  .detalle[open]::backdrop { animation: velo .25s ease-out; }
}
@keyframes abrir { from { opacity: 0; transform: translateY(12px); } }
@keyframes velo { from { opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .portada {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding-top: var(--space-6);
  }
  .vidriera { max-width: 620px; margin: 0 auto; }

  .beneficios ul { grid-template-columns: 1fr; gap: var(--space-5); max-width: 520px; }

  .video {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: var(--space-6);
    text-align: center;
  }
  .video__marco { order: 2; }
  .video__texto { align-items: center; }
  .video__texto .frase { max-width: none; }
  .divisor--izq { margin-inline: auto; }
}

@media (max-width: 720px) {
  .cabecera__nav,
  .cabecera .boton { display: none; }
  .boton--flotante { display: inline-flex; }

  .grilla {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4) var(--space-3);
  }
  .producto__nombre { font-size: 17px; }

  .pasos { grid-template-columns: 1fr; gap: var(--space-6); }

  .detalle__cuerpo { grid-template-columns: 1fr; }
  .detalle__foto img { height: auto; max-height: 55dvh; }
  .detalle__info { padding: var(--space-5) var(--space-4) var(--space-6); }
}

@media (max-width: 380px) {
  .lockup__nombre { font-size: 48px; }
}

@media (max-width: 400px) {
  .tagline--filetes::before,
  .tagline--filetes::after { flex-basis: 12px; }
  .tagline { letter-spacing: 2px; }
}
