/* ============================================================
   BRAVA — Dirección A «Sello de Estancia»
   tokens.css va primero. Acá solo lo propio del proyecto.
   Signature move: la PERSIANA — las franjas verticales del escudo
   se levantan en el hero y vuelven como separador.
   ============================================================ */

@font-face {
  font-family: "Roboto Slab"; src: url("fonts/RobotoSlab-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  /* Paleta tomada del logo (marrón, salmón, verde de la estrella) */
  --fondo:        oklch(95.5% 0.014 65);
  --fondo-alt:    oklch(91.5% 0.022 60);
  --carbon:       oklch(27% 0.028 48);          /* marrón profundo: bandas oscuras */
  --texto:        oklch(29% 0.030 50);
  --texto-suave:  oklch(29% 0.030 50 / 0.66);
  --salmon:       oklch(76% 0.095 20);          /* rayas del escudo (relleno) */
  --acento:       oklch(76% 0.095 20);
  --acento-texto: oklch(48% 0.130 25);          /* salmón profundo: pasa AA como texto */
  --verde:        oklch(46% 0.085 148);         /* la estrella: botón de WhatsApp */
  --crema:        oklch(94% 0.020 62);          /* texto sobre carbón */
  --linea:        oklch(29% 0.03 50 / 0.13);
  --linea-fuerte: oklch(29% 0.03 50 / 0.30);

  --alto-cab: 4.25rem;
  --t-display: clamp(2.9rem, 7.4vw, 7rem);
  --arco: 9rem;   /* el radio del escudo: arriba grande, abajo casi recto */
}

html { scroll-padding-top: calc(var(--alto-cab) + 4.5rem); }
body { overflow-x: hidden; }
body.bloqueado { overflow: hidden; }
em { font-style: normal; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.saltar { position: fixed; left: 1rem; top: -4rem; z-index: 200; background: var(--carbon); color: var(--crema); padding: .6rem 1rem; border-radius: 999px; transition: top var(--dur-rapida) var(--ease-suave); }
.saltar:focus { top: 1rem; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--carbon); --fg: var(--crema);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font: 500 1rem/1 var(--f-texto); letter-spacing: .01em;
  padding: 1.05rem 1.7rem; border-radius: 999px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bg);
  text-decoration: none; cursor: pointer;
  transition: background var(--dur-media) var(--ease-suave), color var(--dur-media) var(--ease-suave), border-color var(--dur-media) var(--ease-suave), transform var(--dur-media) var(--ease-suave);
}
.btn:hover { --bg: var(--acento-texto); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--linea { background: transparent; color: var(--texto); border-color: var(--linea-fuerte); }
.btn--linea:hover { --bg: var(--carbon); color: var(--crema); border-color: var(--carbon); }
.btn--wa { --bg: var(--verde); }
.btn--wa:hover { --bg: oklch(38% 0.08 148); }
.btn--full { width: 100%; }

/* ---------- Cabecera flotante (se esconde al bajar) ---------- */
.cab {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--alto-cab);
  display: flex; align-items: center; gap: 2rem;
  padding: 0 var(--s-borde);
  background: oklch(95.5% 0.014 65 / .88); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--linea);
  transition: transform var(--dur-lenta) var(--ease-suave);
}
.cab.oculta { transform: translateY(-100%); }
.cab__marca { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.cab__marca img { height: 2.9rem; width: auto; }
.cab__marca span { font: 700 1.25rem/1 var(--f-display); letter-spacing: .12em; }
.cab__nav { display: none; margin-left: auto; gap: 2.2rem; }
.cab__nav a { font-size: .95rem; text-decoration: none; padding: .4rem 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size var(--dur-media) var(--ease-suave); }
.cab__nav a:hover { background-size: 100% 1px; }
.cab__carrito {
  margin-left: auto; display: flex; align-items: center; gap: .7rem;
  background: none; border: 1px solid var(--linea-fuerte); border-radius: 999px;
  padding: .55rem .55rem .55rem 1.1rem; cursor: pointer; color: var(--texto);
  transition: border-color var(--dur-media) var(--ease-suave);
}
.cab__carrito:hover { border-color: var(--carbon); }
.cab__carrito .etiqueta { color: var(--texto); }
.cab__cuenta { min-width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border-radius: 999px; background: var(--carbon); color: var(--crema); font: 500 .8rem var(--f-mono); transition: transform var(--dur-media) var(--ease-suave), background var(--dur-media) var(--ease-suave); }
.cab__cuenta.salta { transform: scale(1.35); background: var(--acento-texto); }
@media (min-width: 60rem) { .cab__nav { display: flex; } .cab__carrito { margin-left: 0; } }

/* ---------- HERO ---------- */
.hero {
  display: grid; gap: 3rem; align-items: center;
  padding: calc(var(--alto-cab) + 3rem) 0 clamp(4rem, 8vw, 7rem) var(--s-borde);
  max-width: 96rem; margin-inline: auto;
  min-height: min(100svh, 62rem);
}
.hero__texto { padding-right: var(--s-borde); position: relative; z-index: 2; }
.hero__titulo { margin: 1.4rem 0 1.8rem; font-weight: 500; }
.hero__titulo em { color: var(--acento-texto); font-weight: 400; }
.hero__bajada { font-size: 1.2rem; color: var(--texto-suave); max-width: 44ch; margin-bottom: 2.2rem; }
.hero__acciones { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero__foto { position: relative; margin: 0; }
.arco {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5;
  border-radius: var(--arco) 0 0 .6rem;           /* sangra por el borde derecho */
  background: var(--carbon);
}
.arco img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; }
.hero__sello {
  position: absolute; left: clamp(-3rem, -4vw, -1rem); bottom: 3.5rem; z-index: 3;
  width: 9.2rem; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; text-align: center; gap: .25rem;
  background: var(--carbon); color: var(--crema); transform: rotate(-9deg);
  outline: 1px solid var(--crema); outline-offset: -.5rem;
}
.hero__sello .etiqueta { color: var(--salmon); font-size: .62rem; }
.hero__sello strong { font: 600 1.3rem/1 var(--f-display); }

/* La persiana: franjas que se levantan una a una */
.persiana { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.persiana i {
  position: absolute; top: 0; bottom: 0; width: 11.4%;
  background: var(--salmon);
  border-radius: 0 0 1.4rem 1.4rem;
  animation: levantar 1.5s var(--ease-suave) both;
  animation-delay: calc(.35s + var(--k) * 85ms);
}
.persiana i:nth-child(even) { background: var(--fondo); }
@keyframes levantar { to { transform: translateY(-104%); } }

@media (min-width: 60rem) {
  .hero { grid-template-columns: 1.1fr 1fr; padding-right: 0; }
  .arco { aspect-ratio: 4 / 5.2; }
}
@media (max-width: 59.99rem) {
  :root { --arco: 6rem; }
  .hero { padding-right: 0; gap: 2.5rem; }
  .hero__sello { width: 7.4rem; bottom: 2rem; left: 1rem; }
}

/* ---------- MARQUEE (efecto portado de componentes/09, re-teñido) ---------- */
.marquee { background: var(--carbon); color: var(--crema); overflow: hidden; padding: 1.4rem 0; }
.marquee__pista { display: flex; width: max-content; gap: 2.2rem; align-items: center; animation: correr 46s linear infinite; }
.marquee:hover .marquee__pista { animation-play-state: paused; }
.marquee span { font: 400 clamp(1.4rem, 2.8vw, 2.2rem)/1 var(--f-display); white-space: nowrap; letter-spacing: -.01em; }
.marquee i { font-style: normal; color: var(--salmon); font-size: 1rem; }
@keyframes correr { to { transform: translateX(-50%); } }

/* ---------- TIENDA ---------- */
.tienda { padding: var(--s-seccion) var(--s-borde) clamp(5rem, 10vw, 9rem); max-width: var(--ancho-amplio); margin-inline: auto; }
.tienda__cab { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.5rem; }
.tienda__titulo { font-size: var(--t-h1); font-weight: 500; line-height: 1; margin-top: .9rem; max-width: 16ch; }
.buscar input {
  width: min(100%, 20rem); font: inherit; font-size: 1rem; color: inherit;
  padding: .85rem 1.2rem; border-radius: 999px; background: transparent;
  border: 1px solid var(--linea-fuerte);
  transition: border-color var(--dur-media) var(--ease-suave);
}
.buscar input:focus { outline: none; border-color: var(--carbon); }

.chips-wrap {
  position: sticky; top: var(--alto-cab); z-index: 30;
  margin: 0 calc(var(--s-borde) * -1) 2.2rem; padding: .8rem var(--s-borde);
  background: oklch(95.5% 0.014 65 / .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linea);
  transition: top var(--dur-lenta) var(--ease-suave);
}
.chips-wrap.sube { top: 0; }
.chips { display: flex; gap: .55rem; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; font: 500 .92rem/1 var(--f-texto); color: var(--texto);
  padding: .75rem 1.15rem; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--linea-fuerte);
  transition: background var(--dur-media) var(--ease-suave), color var(--dur-media) var(--ease-suave), border-color var(--dur-media) var(--ease-suave);
}
.chip:hover { border-color: var(--carbon); }
.chip[aria-selected="true"] { background: var(--carbon); color: var(--crema); border-color: var(--carbon); }
.chip small { font: 400 .72rem var(--f-mono); opacity: .6; margin-left: .45rem; }

.grilla { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .grilla { grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); gap: 1.6rem; } }

.prod {
  display: grid; grid-template-columns: 7.2rem 1fr; gap: 1rem; align-items: start;
  padding: .8rem; border: 1px solid var(--linea); border-radius: var(--radio);
  background: var(--fondo);
  transition: border-color var(--dur-media) var(--ease-suave), transform var(--dur-media) var(--ease-suave);
}
.prod:hover { border-color: var(--linea-fuerte); }
.prod.en-pedido { border-color: var(--carbon); }
.prod__foto {
  aspect-ratio: 1; border-radius: 2.2rem 2.2rem .5rem .5rem; position: relative; overflow: hidden;
  background: var(--carbon);
}
.prod__foto img { width: 100%; height: 100%; object-fit: cover; object-position: var(--ox) var(--oy); transform-origin: var(--tx) var(--ty); transform: scale(var(--z)); }
.prod__cuerpo { display: flex; flex-direction: column; gap: .35rem; min-width: 0; height: 100%; }
.prod__tag { align-self: flex-start; font: 500 .62rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--verde); border: 1px solid currentColor; border-radius: 999px; padding: .3rem .55rem; }
.prod h3 { font-size: 1.3rem; font-weight: 500; line-height: 1.1; }
.prod__desc { font-size: .9rem; line-height: 1.45; color: var(--texto-suave); margin: 0; }
.prod__pie { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: .8rem; padding-top: .6rem; }
.prod__precio { display: flex; flex-direction: column; gap: .15rem; }
.prod__precio b { font: 500 1.1rem/1 var(--f-mono); letter-spacing: -.02em; }
.prod__precio span { font: 400 .68rem/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--texto-suave); }

.agregar { font: 500 .9rem/1 var(--f-texto); padding: .7rem 1.1rem; border-radius: 999px; cursor: pointer; background: transparent; color: var(--texto); border: 1px solid var(--carbon); transition: background var(--dur-media) var(--ease-suave), color var(--dur-media) var(--ease-suave); }
.agregar:hover { background: var(--carbon); color: var(--crema); }
.paso { display: inline-flex; align-items: center; border-radius: 999px; background: var(--carbon); color: var(--crema); }
.paso button { width: 2.5rem; height: 2.5rem; border: 0; background: none; color: inherit; font: 400 1.3rem/1 var(--f-texto); cursor: pointer; border-radius: 50%; transition: background var(--dur-rapida) var(--ease-suave); }
.paso button:hover { background: oklch(100% 0 0 / .14); }
.paso output { min-width: 1.5rem; text-align: center; font: 500 .95rem var(--f-mono); }

@media (min-width: 40rem) {
  .prod { grid-template-columns: 1fr; gap: 1rem; padding: .8rem .8rem 1.1rem; }
  .prod__foto { aspect-ratio: 4 / 3.2; border-radius: 4.5rem 4.5rem .6rem .6rem; }
  .prod__cuerpo { padding: 0 .4rem; }
  .prod h3 { font-size: 1.45rem; }
}
.sin-resultados { grid-column: 1 / -1; padding: 3rem 0; color: var(--texto-suave); }
.nota-peso { margin: 2.5rem 0 0; font-size: .85rem; color: var(--texto-suave); max-width: 70ch; }

/* ---------- Franjas: la persiana vuelve como separador ---------- */
.franjas {
  height: 4rem;
  background: repeating-linear-gradient(90deg, var(--salmon) 0 1.05rem, transparent 1.05rem 2.1rem);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
          mask-image: linear-gradient(to bottom, #000 30%, transparent);
}

/* ---------- NOSOTROS (asimétrico 5/7, foto que se monta) ---------- */
.nosotros { display: grid; gap: 3rem; max-width: var(--ancho-amplio); margin-inline: auto; padding: var(--s-seccion) var(--s-borde); align-items: center; }
.nosotros__foto { margin: 0; position: relative; }
.nosotros__foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 40% 60%; border-radius: var(--arco) var(--arco) .6rem .6rem; background: var(--carbon); }
.nosotros__titulo { font-size: var(--t-h1); font-weight: 500; line-height: 1; margin: 1rem 0 1.8rem; max-width: 14ch; }
.nosotros p { color: var(--texto-suave); }
.datos { margin: 2.5rem 0 0; border-top: 1px solid var(--linea); }
.datos div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--linea); }
.datos dt { padding-top: .25rem; }
.datos dd { margin: 0; font: 500 1.15rem/1.3 var(--f-display); }
@media (min-width: 60rem) {
  .nosotros { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; }
  .nosotros__texto { padding-left: clamp(2rem, 6vw, 6rem); margin-left: -4rem; position: relative; z-index: 2; }
  .nosotros__foto { z-index: 1; }
  .nosotros__titulo { background: var(--fondo); padding: .3rem 1rem .3rem 0; width: max-content; max-width: min(100%, 14ch); }
}

/* ---------- CÓMO PEDIR (banda oscura, full-bleed) ---------- */
.como { background: var(--carbon); color: var(--crema); padding: var(--s-seccion) var(--s-borde); }
.como .etiqueta { color: var(--salmon); }
.como__in { max-width: var(--ancho-normal); margin-inline: auto; display: grid; gap: 3.5rem; }
.como__cab h2 { font-size: var(--t-h1); font-weight: 500; line-height: 1; margin-top: 1rem; max-width: 12ch; }
.pasos { list-style: none; margin: 0; padding: 0; border-top: 1px solid oklch(94% .02 62 / .22); }
.pasos li { display: grid; grid-template-columns: clamp(6rem, 13vw, 10.5rem) 1fr; gap: clamp(1.2rem, 4vw, 3rem); align-items: center; padding: 2rem 0; border-bottom: 1px solid oklch(94% .02 62 / .22); }
.paso__n { font: 300 clamp(4rem, 9vw, 7.5rem)/.9 var(--f-display); letter-spacing: -.04em; color: var(--salmon); }
.pasos h3 { font-size: 1.7rem; font-weight: 500; margin-bottom: .5rem; }
.pasos p { margin: 0; color: oklch(94% .02 62 / .72); }
@media (min-width: 60rem) { .como__in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 6rem; } .como__cab { position: sticky; top: 8rem; align-self: start; } }

/* ---------- PIE ---------- */
.pie { background: var(--fondo-alt); padding: clamp(4rem, 8vw, 7rem) var(--s-borde) 6rem; display: grid; gap: 3rem; justify-items: start; max-width: none; }
.pie > * { max-width: var(--ancho-normal); }
.pie__logo { width: 9.5rem; height: auto; }
.pie__cuerpo h2 { font-size: var(--t-h1); font-weight: 500; line-height: 1; margin-bottom: 1.2rem; max-width: 14ch; }
.pie__legal { margin: 3rem 0 0; }
@media (min-width: 52rem) { .pie { grid-template-columns: auto 1fr; gap: 6rem; align-items: center; justify-content: center; } .pie__logo { width: 14rem; } }

/* ---------- Barra móvil ---------- */
.barra {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 70;
  display: flex; align-items: center; gap: .9rem; padding: .8rem 1.2rem .8rem .8rem;
  background: var(--carbon); color: var(--crema); border: 0; border-radius: 999px; cursor: pointer;
  font: 500 1rem var(--f-texto);
  animation: aparece var(--dur-lenta) var(--ease-suave) both;
}
.barra[hidden] { display: none; }
.barra__n { width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; background: var(--salmon); color: var(--carbon); font: 500 .85rem var(--f-mono); }
.barra__t { margin-left: auto; font: 500 1rem var(--f-mono); }
@keyframes aparece { from { transform: translateY(150%); } }
@media (min-width: 64rem) { .barra { left: 50%; right: auto; width: 26rem; translate: -50% 0; } }

/* ---------- CARRITO (drawer) ---------- */
.velo { position: fixed; inset: 0; z-index: 90; background: oklch(27% .028 48 / .5); opacity: 0; transition: opacity var(--dur-media) var(--ease-suave); }
.velo.abierto { opacity: 1; }
.velo[hidden] { display: none; }
.carrito {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(30rem, 100vw); display: flex; flex-direction: column;
  background: var(--fondo); border-left: 1px solid var(--linea-fuerte);
  transform: translateX(105%); visibility: hidden;
  transition: transform var(--dur-lenta) var(--ease-suave), visibility 0s linear var(--dur-lenta);
}
.carrito.abierto { transform: none; visibility: visible; transition-delay: 0s; }
.carrito__cab { display: flex; justify-content: space-between; align-items: start; padding: 1.5rem 1.5rem 1.2rem; border-bottom: 1px solid var(--linea); }
.carrito__cab h2 { font-size: 1.9rem; font-weight: 500; margin-top: .3rem; }
.carrito__cerrar { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid var(--linea-fuerte); background: none; color: var(--texto); cursor: pointer; font-size: 1rem; transition: background var(--dur-media) var(--ease-suave), color var(--dur-media) var(--ease-suave); }
.carrito__cerrar:hover { background: var(--carbon); color: var(--crema); }
.carrito__cuerpo { flex: 1; overflow-y: auto; padding: 0 1.5rem 1.5rem; overscroll-behavior: contain; }

.linea-p { display: grid; grid-template-columns: 3.6rem 1fr auto; gap: .9rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--linea); }
.linea-p .prod__foto { border-radius: 1.4rem 1.4rem .3rem .3rem; }
.linea-p b { display: block; font: 500 1.05rem/1.15 var(--f-display); }
.linea-p small { display: block; font: 400 .72rem var(--f-mono); color: var(--texto-suave); letter-spacing: .02em; }
.linea-p__der { display: flex; flex-direction: column; align-items: end; gap: .4rem; }
.linea-p__der .paso button { width: 2.1rem; height: 2.1rem; }
.linea-p__der .paso output { min-width: 1.2rem; font-size: .85rem; }
.linea-p__der span { font: 500 .85rem var(--f-mono); }

.vacio { text-align: center; padding: 3.5rem 0; color: var(--texto-suave); }
.vacio .repetir { margin-top: 1.5rem; }
.vacio img { width: 5rem; margin: 0 auto 1.2rem; opacity: .55; }
.vacio[hidden] { display: none; }

.datos-form { display: grid; gap: .9rem; padding-top: 1.8rem; }
.datos-form[hidden] { display: none; }
.datos-form label { display: grid; gap: .35rem; font-size: .85rem; color: var(--texto-suave); }
.datos-form input, .datos-form select, .datos-form textarea {
  font: inherit; font-size: 1rem; color: var(--texto); width: 100%;
  padding: .75rem .9rem; border-radius: .7rem; background: var(--fondo);
  border: 1px solid var(--linea-fuerte); resize: vertical;
  transition: border-color var(--dur-media) var(--ease-suave);
}
.datos-form input:focus, .datos-form select:focus, .datos-form textarea:focus { outline: none; border-color: var(--carbon); }
.datos-form .malo { border-color: var(--acento-texto); }
.fila2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }

.carrito__pie { padding: 1.2rem 1.5rem calc(1.2rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--linea-fuerte); background: var(--fondo-alt); }
.carrito__pie[hidden] { display: none; }
.totales { margin: 0 0 1rem; display: grid; gap: .4rem; }
.totales div { display: flex; justify-content: space-between; align-items: baseline; }
.totales dt { font-size: .9rem; color: var(--texto-suave); }
.totales dd { margin: 0; font: 500 1rem var(--f-mono); }
.carrito__aviso { margin: .8rem 0 0; font-size: .85rem; color: var(--acento-texto); min-height: 1.2em; }
.link-vaciar { background: none; border: 0; padding: .4rem 0 0; font: inherit; font-size: .82rem; color: var(--texto-suave); text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }

/* ---------- Reveal por scroll (clase puesta por JS) ---------- */
.js .scrollrev { opacity: 0; transform: translateY(1.5rem); transition: opacity var(--dur-lenta) var(--ease-suave), transform var(--dur-lenta) var(--ease-suave); transition-delay: calc(var(--i, 0) * 70ms); }
.js .scrollrev.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .persiana i { animation: none; transform: translateY(-104%); }
  .marquee__pista { animation: none; }
  .js .scrollrev { opacity: 1; transform: none; }
}
