/* USA COLLECTION · tienda catálogo
   Marca: marino #0F1B3D, dorado champán #C9A35B, marfil #F8F3EA, rojo #B5172F solo de acento.
   Letras propias (sin servicios externos): Playfair Display 800 y Montserrat. */

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/playfair-display-800-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
}

:root {
  --marino: #0F1B3D;
  --marino-2: #1D2E63;
  --oro: #C9A35B;
  --oro-claro: #F5E3B5;
  --oro-texto: #77581C;       /* dorado oscuro para texto sobre marfil: contraste AA */
  --rojo: #B5172F;
  --marfil: #F8F3EA;
  --crema: #F1E6CF;
  --mantequilla: #F8F3EA;     /* marfil de la marca, con borde dorado */
  --lila: #F5E3B5;            /* dorado claro de la marca */
  --wa: #25D366;
  --wa-hover: #1EBE5A;
  --tinta: #0F1B3D;
  --tinta-suave: #3A4566;
  --foco: #0F1B3D;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Segoe UI", Roboto, Arial, sans-serif;
  --ancho: 1180px;
  --margen: clamp(1.1rem, 4.5vw, 2.5rem);
  --radio: 14px;
  --dientes: repeating-linear-gradient(90deg, var(--oro) 0 4px, transparent 4px 8px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  background: var(--marfil);
  color: var(--tinta);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--foco); outline-offset: 3px; border-radius: 6px; }
.barra, .portada, .encargo__caja, .pie, .visor { --foco: var(--oro-claro); }

.ico { width: 1.25em; height: 1.25em; flex: none; }

.saltar {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--oro); color: var(--marino); padding: .7rem 1rem; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.saltar:focus { top: 1rem; }
.saltar:focus-visible { outline-color: var(--marino); box-shadow: 0 0 0 6px var(--oro-claro); }

.solo-lector, .catalogo__estado {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .8rem 1.4rem;
  border-radius: 999px; border: 0;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .2s, transform .2s;
}
.boton:active { transform: translateY(1px); }
.boton--oro { background: var(--oro); color: var(--marino); }
.boton--oro:hover { background: var(--oro-claro); }
.boton--wa { background: var(--wa); color: var(--marino); }
.boton--wa:hover { background: var(--wa-hover); }
.boton--chico { min-height: 44px; padding: .6rem 1rem; font-size: .92rem; width: 100%; }

/* ---------- barra superior ---------- */
.barra {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .55rem max(var(--margen), calc((100vw - var(--ancho)) / 2 + var(--margen)));
  background: var(--marino); color: var(--marfil);
}
.barra__marca { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.barra__marca img { width: 38px; height: 38px; object-fit: contain; }
.barra__nombre { font-weight: 600; font-size: .78rem; letter-spacing: .16em; white-space: nowrap; }
.barra__wa {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .45rem .95rem;
  border: 1px solid rgba(201, 163, 91, .7); border-radius: 999px;
  color: var(--oro-claro); font-weight: 600; font-size: .9rem; text-decoration: none;
}
.barra__wa:hover { background: rgba(201, 163, 91, .14); }

/* ---------- portada ---------- */
.portada {
  position: relative; overflow: hidden;
  display: grid; gap: 1.6rem;
  padding: 2.2rem var(--margen) 3.6rem;
  background: radial-gradient(120% 90% at 85% 10%, var(--marino-2) 0%, var(--marino) 60%);
  color: var(--marfil);
}
.portada__etiqueta { order: -1; display: flex; justify-content: center; }
.etiqueta {
  width: min(62vw, 270px);
  transform-origin: 14% 4%;
  animation: mecer 1.8s cubic-bezier(.3, .7, .4, 1) .15s both;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .35));
}
.portada__titulo {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(2.9rem, 13vw, 5.8rem); line-height: 1.02; letter-spacing: -.01em;
  color: var(--marfil);
}
.portada__apoyo { margin-top: 1rem; max-width: 34ch; font-size: 1.06rem; color: #E9E1CF; }
.portada__acciones { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }
.portada__acciones .boton { flex: 1 1 14rem; }

/* el zíper se corre al entrar */
.ziper { position: absolute; left: 0; right: 0; bottom: 1.3rem; height: 10px; }
.ziper__dientes {
  position: absolute; inset: 0;
  background: var(--dientes);
  -webkit-mask: linear-gradient(#000 0 0);
  transform-origin: left center;
  animation: abrir .95s cubic-bezier(.6, 0, .25, 1) .35s both;
}
.ziper__jalador {
  position: absolute; top: -7px; left: 0; width: 18px; height: 24px;
  border-radius: 4px 4px 9px 9px;
  background: linear-gradient(180deg, var(--oro-claro), var(--oro) 55%, #9E7B38);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .35);
  animation: jalar .95s cubic-bezier(.6, 0, .25, 1) .35s both;
}
@keyframes abrir { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes jalar { from { left: 0; } to { left: calc(100% - 18px - var(--margen)); } }
@keyframes mecer {
  0% { transform: rotate(-9deg); }
  35% { transform: rotate(5deg); }
  62% { transform: rotate(-2.5deg); }
  82% { transform: rotate(1deg); }
  100% { transform: rotate(0); }
}

/* ---------- secciones ---------- */
.seccion { max-width: var(--ancho); margin: 0 auto; padding: 3.2rem var(--margen); }
.seccion + .seccion { position: relative; }
.seccion + .seccion::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 112px; height: 6px; margin-left: -56px;
  background: var(--dientes); opacity: .8;
}
.seccion__titulo {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(1.85rem, 6.4vw, 2.7rem); line-height: 1.12;
}
.seccion__texto { margin-top: .6rem; max-width: 52ch; color: var(--tinta-suave); }

/* categorías */
.categorias__lista {
  list-style: none; margin-top: 1.6rem;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem;
}
.cat {
  display: grid; grid-template-rows: 1fr auto; height: 100%;
  border-radius: var(--radio); overflow: hidden; text-decoration: none;
  background: var(--crema);
  transition: transform .25s;
}
.cat:hover { transform: translateY(-3px); }
.cat img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: 12% 12% 4%;
  filter: drop-shadow(0 10px 12px rgba(15, 27, 61, .18));
}
.cat span { padding: .2rem .9rem .9rem; font-weight: 600; font-size: .95rem; line-height: 1.3; }
.cat--mantequilla, .producto--mantequilla .producto__foto { background: var(--mantequilla); box-shadow: inset 0 0 0 1px rgba(201, 163, 91, .45); }
.cat--lila, .producto--lila .producto__foto { background: var(--lila); }
.cat--crema, .producto--crema .producto__foto { background: var(--crema); }

/* catálogo */
.catalogo:focus { outline: none; }
.filtros {
  position: sticky; top: 0; z-index: 10;
  margin: 1.4rem calc(var(--margen) * -1) 0; padding: .7rem var(--margen);
  background: rgba(248, 243, 234, .94);
  border-bottom: 1px solid rgba(15, 27, 61, .08);
}
.filtros__lista {
  list-style: none; display: flex; gap: .5rem;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity; padding: 7px; margin: -5px -7px;
}
.filtros__lista::-webkit-scrollbar { display: none; }
.filtros__lista li { flex: none; scroll-snap-align: start; }
.filtro {
  min-height: 44px; padding: .5rem 1.1rem;
  border: 1.5px solid var(--marino); border-radius: 999px;
  background: transparent; color: var(--marino);
  font: 600 .92rem/1 var(--sans); cursor: pointer;
}
.filtro:hover { background: rgba(15, 27, 61, .06); }
.filtro[aria-pressed="true"] { background: var(--oro); border-color: var(--oro); color: var(--marino); }

.grupo { margin-top: 2.4rem; }
.grupo__titulo {
  display: flex; align-items: center; gap: .9rem;
  font-family: var(--serif); font-weight: 800; font-size: 1.5rem; line-height: 1.2;
}
.grupo__titulo::after { content: ""; flex: 1; height: 5px; background: var(--dientes); opacity: .55; }

.rejilla {
  list-style: none; margin-top: 1rem;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem .8rem;
}
.producto { display: flex; flex-direction: column; }
.producto__foto {
  display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0;
  border-radius: var(--radio); overflow: hidden; cursor: zoom-in;
}
.producto__foto img {
  width: 100%; height: 100%; object-fit: contain; padding: 11%;
  filter: drop-shadow(0 12px 14px rgba(15, 27, 61, .2));
  transition: transform .35s;
}
.producto__foto:hover img { transform: scale(1.04); }
.producto__foto--foto img { object-fit: cover; padding: 0; filter: none; }
.producto__cuerpo { display: flex; flex-direction: column; gap: .3rem; flex: 1; padding-top: .7rem; }
.producto__nombre { font-weight: 600; font-size: .92rem; line-height: 1.35; }
.precio { font-weight: 600; font-size: .85rem; color: var(--oro-texto); }
.producto__cuerpo .boton { margin-top: auto; }
.producto__cuerpo .precio { margin-bottom: .5rem; }
.catalogo__aviso { margin-top: 1.5rem; padding: 1rem 1.2rem; border-left: 4px solid var(--rojo); background: #fff; }

/* encárgalo */
.encargo__caja {
  position: relative;
  padding: 2.4rem 1.6rem; border-radius: 22px;
  background: var(--marino); color: var(--marfil);
}
.encargo__caja::before {
  content: ""; position: absolute; inset: 10px; border-radius: 15px; pointer-events: none;
  border: 1.5px dashed rgba(201, 163, 91, .75);
}
.encargo__caja .seccion__texto { color: #E9E1CF; margin-bottom: 1.5rem; }
.encargo__caja .boton { position: relative; }

/* pasos */
.pasos__lista { list-style: none; counter-reset: paso; margin-top: 1.8rem; display: grid; gap: 1.6rem; }
.paso {
  counter-increment: paso; position: relative;
  display: grid; grid-template-columns: 3.4rem 1fr; column-gap: 1rem; row-gap: .15rem; align-items: start;
}
.paso::before {
  content: counter(paso); grid-row: span 3;
  font-family: var(--serif); font-weight: 800; font-size: 3.2rem; line-height: .9; color: var(--oro-texto);
}
.paso__ico { width: 26px; height: 26px; color: var(--marino); }
.paso__titulo { font-weight: 600; font-size: 1.08rem; }
.paso p { color: var(--tinta-suave); max-width: 40ch; }

/* envíos */
.envios__deptos {
  list-style: none; margin-top: 1.6rem;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem 1.4rem;
  font-family: var(--serif); font-weight: 800; font-size: clamp(1.1rem, 4.4vw, 1.55rem); line-height: 1.5;
}
.envios__deptos li { display: inline-flex; align-items: center; }
.envios__deptos li::before {
  content: ""; flex: none; width: 9px; height: 9px; margin-right: .55rem;
  background: var(--rojo);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* preguntas */
.pregunta { margin-top: 1rem; border-bottom: 1px solid rgba(15, 27, 61, .15); }
.preguntas .seccion__titulo + .pregunta { margin-top: 1.4rem; }
.pregunta summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 48px; padding: .6rem 0; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.02rem;
}
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta summary::after { content: "+"; font: 800 1.5rem/1 var(--serif); color: var(--oro-texto); }
.pregunta[open] summary::after { content: "−"; }
.pregunta p { padding: 0 0 1rem; color: var(--tinta-suave); max-width: 60ch; }

/* redes */
.redes__lista { list-style: none; margin-top: 1.4rem; display: grid; gap: .7rem; }
.red {
  display: flex; align-items: center; gap: .9rem; min-height: 56px; padding: .8rem 1.1rem;
  border: 1.5px solid var(--marino); border-radius: var(--radio);
  text-decoration: none; font-size: 1rem;
}
.red .ico { width: 26px; height: 26px; }
.red strong { font-weight: 600; }
.red:hover { background: var(--marino); color: var(--marfil); }

.acerca p { margin-top: .8rem; max-width: 66ch; color: var(--tinta-suave); }
.acerca .seccion__titulo { font-size: 1.35rem; }

/* pie */
.pie {
  margin-top: 2rem; padding: 3rem var(--margen) 7rem;
  background: var(--marino); color: #E9E1CF; text-align: center; font-size: .95rem;
}
.pie p + p { margin-top: .5rem; }
.pie a { color: var(--oro-claro); font-weight: 600; text-underline-offset: 3px; }
.pie__logo { width: 92px; margin: 0 auto 1rem; }
.pie__eslogan { font-family: var(--serif); font-weight: 800; font-size: 1.6rem; color: var(--marfil); margin-bottom: 1rem; }
.pie__privacidad { margin-top: 1.4rem !important; font-size: .85rem; color: #CFC6B2; max-width: 46ch; margin-inline: auto; }
.pie__copia { font-size: .8rem; color: #CFC6B2; }
.pie__creditos { margin: 1.2rem auto 0 !important; max-width: 60ch; font-size: .72rem; line-height: 1.5; color: #B9B09C; }
.catalogo__referencia { font-weight: 600; color: var(--oro-texto); }
.catalogo__sinjs { list-style: none; margin-top: 1rem; display: grid; gap: .5rem; }
.catalogo__sinjs a { font-weight: 600; }

/* botón flotante */
.flotante {
  position: fixed; z-index: 30;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-width: 56px; height: 56px; padding: 0 1rem; border-radius: 999px;
  background: var(--wa); color: var(--marino); text-decoration: none; font-weight: 600;
  box-shadow: 0 8px 22px rgba(15, 27, 61, .32);
  transition: opacity .25s, transform .25s;
}
.flotante--oculto { opacity: 0; transform: translateY(90px); pointer-events: none; }
.flotante:focus-visible { outline: 3px solid var(--marino); outline-offset: 3px; box-shadow: 0 0 0 3px var(--oro-claro), 0 0 0 9px var(--marino); }
.flotante .ico { width: 28px; height: 28px; }
.flotante__texto { display: none; }
.flotante:hover { background: var(--wa-hover); }

/* visor de foto */
.visor {
  width: min(92vw, 560px); max-height: 92vh; padding: 0; border: 0; border-radius: 20px;
  background: var(--marfil); color: var(--tinta);
}
.visor::backdrop { background: rgba(15, 27, 61, .82); }
.visor__caja { position: relative; display: grid; gap: .5rem; padding: 1.1rem 1.1rem 1.4rem; }
.visor__foto { background: var(--crema); border-radius: var(--radio); }
.visor__foto img { width: 100%; max-height: 60vh; margin: 0 auto; object-fit: contain; padding: 6%; }
.visor__nombre { margin-top: .5rem; font-family: var(--serif); font-weight: 800; font-size: 1.3rem; line-height: 1.25; }
.visor .precio { margin-bottom: .6rem; }
.visor__foto .visor__img--chica { max-width: 65%; }
.visor__cerrar {
  position: absolute; top: 1.5rem; right: 1.5rem; z-index: 2;
  display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--marino); color: var(--marfil); cursor: pointer;
}
.visor__cerrar { --foco: var(--marino); }
.visor { --foco: var(--marino); }

/* ---------- pantallas más grandes ---------- */
@media (min-width: 640px) {
  .rejilla { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.2rem; }
  .categorias__lista { grid-template-columns: repeat(4, 1fr); }
  .pasos__lista { grid-template-columns: repeat(3, 1fr); }
  .paso { grid-template-columns: 1fr; }
  .paso::before { grid-row: auto; margin-bottom: .4rem; }
  .redes__lista { grid-template-columns: minmax(0, 26rem); }
  .envios__deptos { display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; }
  .portada__acciones .boton { flex: 0 1 auto; }
}
@media (min-width: 960px) {
  .portada {
    grid-template-columns: 1.25fr 1fr; align-items: center; gap: 3rem;
    padding: 4.5rem max(var(--margen), calc((100vw - var(--ancho)) / 2 + var(--margen))) 5.5rem;
    min-height: min(88vh, 760px);
  }
  .portada__etiqueta { order: 0; }
  .etiqueta { width: min(36vw, 430px); }
  .portada__apoyo { font-size: 1.15rem; }
  .rejilla { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .encargo__caja { padding: 3.4rem 3.2rem; }
  .flotante__texto { display: inline; }
}
@media (max-width: 380px) {
  .envios__deptos { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ziper__jalador { left: calc(100% - 18px - var(--margen)); }
}

@media (forced-colors: active) {
  .boton, .filtro, .flotante, .red { border: 1px solid ButtonText; }
}

/* página 404 */
.portada--sola { min-height: 100vh; min-height: 100dvh; align-content: center; }
