/* lv.css — estilos del template Local de Ventas (todo bajo .lv para no chocar con el tema) */

.lv
{
  --lv-wine: oklch(0.33 0.13 17);
  --lv-olive-900: #1b4332;
  --lv-olive-700: #4f7a37;
  --lv-olive-500: #6d9a50;
  --lv-olive-200: #e1ead4;
  --lv-ink: oklch(0.23 0.035 30);
  --lv-ink-soft: oklch(0.46 0.03 40);
  --lv-line: oklch(0.84 0.035 60);
  font-family: 'Archivo', system-ui, -apple-system, sans-serif;
  --lv-wine-900: oklch(0.24 0.09 18);
  color: var(--lv-ink);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01' 1;
}

.lv-body { margin: 0; background: #fff; }
.lv-body ::selection { background: oklch(0.33 0.13 17); color: #fff; }

/* textura de grano — da calidez de papel sin usar fotos */
.lv::before
{
  content: '';
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* reset tipo preflight, sin especificidad para no pisar las clases lv-* */
:where(.lv) a { color: inherit; text-decoration: inherit; }
:where(.lv) img,
:where(.lv) iframe { display: block; max-width: 100%; }
:where(.lv) img { height: auto; }

.lv *,
.lv *::before,
.lv *::after { box-sizing: border-box; }

.lv h1,
.lv h2,
.lv h3,
.lv p { margin: 0; }

.lv h1,
.lv h2,
.lv h3,
.lv .lv-display { font-family: 'Poppins', system-ui, sans-serif; }

.lv .material-symbols-outlined
{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 1.25rem;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  flex-shrink: 0;
}

.lv-wrap { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: 1.25rem; }

@media (min-width: 640px)
{
  .lv-wrap { padding-inline: 2rem; }
}

.lv-eyebrow
{
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  line-height: 1.3333;
  color: var(--lv-olive-700);
  margin-bottom: 0.75rem;
}

.lv-h2
{
  font-weight: 600;
  letter-spacing: -0.025em;
  font-size: 1.875rem;
  line-height: 1.25;
}

@media (min-width: 640px)
{
  .lv-h2 { font-size: 2.25rem; }
}

.lv-ink-underline { position: relative; white-space: nowrap; z-index: 0; }

.lv-ink-underline::after
{
  content: '';
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.03em;
  height: 0.09em;
  background-color: var(--lv-olive-500);
  z-index: -1;
}

/* revelado al hacer scroll */
.lv .reveal
{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.lv .reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce)
{
  .lv .reveal { opacity: 1; transform: none; transition: none; }
}

/* -------------------------------------------------------------- header */

.lv-header
{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--lv-olive-900);
  color: #fff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.lv-header-in
{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-block: 0.75rem;
}

.lv-header-logo { flex-shrink: 0; }
.lv-header-logo img { height: 1.75rem; width: auto; }

.lv-badge-estado
{
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1.3333;
  font-weight: 600;
  white-space: nowrap;
}

.lv-badge-estado i { width: 0.375rem; height: 0.375rem; border-radius: 999px; background: #ef4444; }
.lv-badge-estado[data-abierto="true"] i { background: var(--lv-olive-500); }

.lv-header-volver
{
  order: 9;
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.875rem;
  line-height: 1.4286;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.15s ease;
}

.lv-header-volver:hover { color: #fff; }
.lv-header-volver .material-symbols-outlined { font-size: 1.125rem; }

@media (min-width: 640px)
{
  .lv-header-logo img { height: 2rem; }
  .lv-badge-estado { order: 3; }

  .lv-header-volver
  {
    order: 2;
    margin-left: auto;
    width: auto;
    padding-top: 0;
    border: 0;
  }
}

/* ---------------------------------------------------------------- hero */

.lv-hero { position: relative; overflow: hidden; }

@media (min-width: 768px)
{
  .lv-hero { min-height: calc(100svh - var(--header-h, 3.5rem)); display: flex; align-items: center; }
}

.lv-hero-grid
{
  display: grid;
  gap: 3rem 3.5rem;
  align-items: center;
  padding-block: 2.5rem 3rem;
}

@media (min-width: 768px)
{
  .lv-hero-grid { grid-template-columns: 1fr 1fr; padding-block: 3.5rem; }
}

.lv-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

.lv-hero-kicker
{
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.625;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--lv-olive-700);
  max-width: 28rem;
  margin-bottom: 1.25rem;
}

.lv-hero-title
{
  font-weight: 600;
  letter-spacing: -0.025em;
  font-size: 2.3rem;
  line-height: 1.1;
}

@media (min-width: 640px)
{
  .lv-hero-title { font-size: 3rem; line-height: 1.08; }
}

.lv-hero-title span { display: block; color: var(--lv-wine); margin-top: 0.25rem; }

.lv-hero-text
{
  margin-top: 1.5rem;
  max-width: 32rem;
  font-size: 1rem;
  line-height: 1.625;
  color: var(--lv-ink-soft);
}

@media (min-width: 640px)
{
  .lv-hero-text { font-size: 1.125rem; line-height: 1.625; }
}

.lv-hero-cta
{
  margin-top: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--lv-wine);
  color: var(--lv-wine);
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  line-height: 1.4286;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lv-hero-cta:hover { background: var(--lv-wine); color: #fff; }
.lv-hero-cta .material-symbols-outlined { font-size: 1.125rem; }

.lv-hero-img
{
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 0.5rem;
  overflow: hidden;
}

.lv-hero-img img
{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left;
}

@media (min-width: 768px)
{
  .lv-hero-img { position: absolute; inset-block: 0; right: 0; width: 50%; aspect-ratio: auto; border-radius: 0; }
}

/* cartel */
.lv-cartel
{
  position: relative;
  z-index: 10;
  justify-self: end;
  width: 100%;
  max-width: 16rem;
  transform: rotate(-5deg);
  background: #fff;
  border: 2px dashed color-mix(in oklch, var(--lv-wine) 40%, transparent);
  border-radius: 0.75rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  padding: 1rem 1.25rem;
  margin-top: -3.5rem;
  margin-right: 0.75rem;
}

@media (min-width: 768px)
{
  .lv-cartel { position: absolute; right: 2rem; bottom: 2.5rem; margin: 0; }
}

@media (min-width: 1024px)
{
  .lv-cartel { right: 3rem; }
}

.lv-estado
{
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
  font-size: 0.875rem;
  line-height: 1.4286;
  font-weight: 600;
}

.lv-estado-punto
{
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #ef4444;
}

.lv-estado[data-abierto="true"] .lv-estado-punto { background: var(--lv-olive-500); }

.lv-cartel-linea
{
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 13px;
  line-height: 1.375;
  color: var(--lv-ink-soft);
}

.lv-cartel-linea + .lv-cartel-linea { margin-top: 0.375rem; }
.lv-cartel-linea .material-symbols-outlined { font-size: 1rem; color: var(--lv-olive-700); }

/* ---------------------------------------------------------- newsletter */

.lv-news
{
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--lv-olive-900);
  color: #fff;
}

.lv-news-bg
{
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.lv-news-grad
{
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to right, var(--lv-olive-900), color-mix(in srgb, var(--lv-olive-900) 90%, transparent), color-mix(in srgb, var(--lv-olive-900) 60%, transparent));
}

.lv-news-top { padding-top: 5rem; }

@media (min-width: 768px)
{
  .lv-news-top { padding-top: 6rem; }
}

.lv-antes
{
  list-style: none;
  margin: 0;
  padding: 0 0 3.5rem;
  display: grid;
  gap: 2rem 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.875rem;
  line-height: 1.375;
  color: rgba(255, 255, 255, 0.85);
}

@media (min-width: 640px)
{
  .lv-antes { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px)
{
  .lv-antes { padding-bottom: 4rem; }
}

@media (min-width: 1024px)
{
  .lv-antes { grid-template-columns: repeat(4, 1fr); }
}

.lv-antes li { display: flex; align-items: flex-start; gap: 0.75rem; }
.lv-antes .material-symbols-outlined { font-size: 1.5rem; color: var(--lv-olive-500); }
.lv-antes strong { color: #fff; font-weight: 600; }
.lv-antes .lv-antes-wide { grid-column: 1 / -1; }

.lv-antes .lv-antes-aviso
{
  align-items: center;
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  background: #fef08a;
  color: #422006;
  font-weight: 500;
}

.lv-antes .lv-antes-aviso .material-symbols-outlined { color: #854d0e; }

.lv-news-body
{
  padding-block: 4rem;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px)
{
  .lv-news-body { padding-block: 6rem; grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.lv-news .lv-eyebrow-news
{
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--lv-olive-500);
  line-height: 1.4286;
  margin-bottom: 1.25rem;
}

.lv-news-title { font-weight: 600; letter-spacing: -0.025em; font-size: 1.875rem; line-height: 1.1; }

@media (min-width: 640px)
{
  .lv-news-title { font-size: 3rem; }
}

.lv .lv-news-text { margin-top: 1.25rem; max-width: 28rem; font-size: 1.125rem; line-height: 1.625; color: rgba(255, 255, 255, 0.8); }

.lv-news-form { display: grid; gap: 0.75rem; }

.lv-news-row { display: flex; flex-direction: column; gap: 0.75rem; }

@media (min-width: 640px)
{
  .lv-news-row { flex-direction: row; }
}

.lv-news-field { position: relative; flex: 1; min-width: 0; }

.lv-news-field .material-symbols-outlined
{
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--lv-ink-soft);
  pointer-events: none;
}

.lv-news-field input
{
  width: 100%;
  border: 2px solid transparent;
  border-radius: 0.375rem;
  background: #fff;
  color: var(--lv-ink);
  padding: 1rem 1rem 1rem 3rem;
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.2s ease;
}

.lv-news-field input::placeholder { color: color-mix(in oklch, var(--lv-ink-soft) 70%, transparent); }
.lv-news-field input:focus { border-color: var(--lv-olive-500); }
.lv-news-field input[aria-invalid="true"] { border-color: #f87171; }

.lv-news-btn
{
  flex-shrink: 0;
  border: 0;
  border-radius: 0.375rem;
  background: var(--lv-olive-500);
  color: var(--lv-olive-900);
  font: inherit;
  font-weight: 600;
  line-height: 1.5;
  padding: 1rem 2rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.lv-news-btn:hover { background: #fff; }

.lv-news-msg { margin-top: 0.75rem; min-height: 1.25rem; font-size: 0.875rem; color: #fecaca; }

.lv-com { display: grid; gap: 0.75rem; margin-top: 0.5rem; }

.lv-com-texto
{
  width: 100%;
  border: 2px solid transparent;
  border-radius: 0.375rem;
  background: #fff;
  color: var(--lv-ink);
  padding: 1rem;
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease;
}

.lv-com-texto:focus { border-color: var(--lv-olive-500); }
.lv-com .lv-news-msg { margin-top: 0; }
.lv-com .lv-news-btn:disabled { opacity: 0.6; cursor: wait; }

.lv-news-ok { display: flex; align-items: center; gap: 1rem; }
.lv-news-ok[hidden] { display: none; }

.lv-news-ok-icon
{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--lv-olive-500);
  color: var(--lv-olive-900);
}

.lv-news-ok-icon .material-symbols-outlined { font-size: 1.5rem; }
.lv-news-ok-title { font-weight: 600; font-size: 1.25rem; line-height: 1.4; }
.lv-news-ok-text { margin-top: 0.25rem; font-size: 0.875rem; color: rgba(255, 255, 255, 0.8); }
.lv-news-ok-text strong { color: #fff; word-break: break-all; }

/* ------------------------------------------------------------ secciones */

.lv-section { scroll-margin-top: 6rem; background: #fff; padding-block: 5rem; }

@media (min-width: 768px)
{
  .lv-section { padding-block: 7rem; }
}

.lv-section-head { max-width: 36rem; margin-bottom: 3rem; }

.lv .lv-stock-fecha
{
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--lv-ink-soft);
}

.lv-stock-fecha .material-symbols-outlined { font-size: 1rem; }

/* ---------------------------------------------------- productos + lateral */

.lv-prod-layout
{
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 1024px)
{
  .lv-prod-layout.has-lateral { grid-template-columns: minmax(0, 1fr) 24rem; gap: 3.5rem; }
}

.lv-cats { display: flex; flex-direction: column; gap: 0.75rem; }

.lv-cat
{
  border: 1px solid var(--lv-line);
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
}

.lv-cat summary
{
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
}

.lv-cat summary::-webkit-details-marker { display: none; }

.lv-cat-ico
{
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: var(--lv-olive-700);
  color: #fff;
}

.lv-cat-titulo { flex: 1; font-weight: 500; font-size: 1.125rem; line-height: 1.5556; }
.lv-cat .lv-chevron { color: var(--lv-ink-soft); transition: transform 0.25s ease; }
.lv-cat[open] .lv-chevron { transform: rotate(180deg); }
.lv-cat[open] summary { border-bottom: 1px solid var(--lv-line); }

.lv-prod-lista
{
  list-style: none;
  margin: 0;
  padding: 0;
  animation: lv-panel-fade 0.25s ease;
}

@keyframes lv-panel-fade
{
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.lv-prod
{
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1.25rem;
  font-size: 0.9375rem;
}

.lv-prod + .lv-prod { border-top: 1px solid var(--lv-line); }
.lv-prod[hidden] { display: none; }
.lv-prod-nombre { font-weight: 500; }
.lv-prod-precio { font-weight: 600; white-space: nowrap; }

.lv-prod-unidad { font-weight: 400; font-size: 0.8125rem; color: var(--lv-ink-soft); }

.lv-prod.sin-stock .lv-prod-nombre,
.lv-prod.sin-stock .lv-prod-precio { color: var(--lv-ink-soft); text-decoration: line-through; text-decoration-thickness: 1px; }

.lv-badge
{
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

.lv-badge.en-stock { background: var(--lv-olive-200); color: var(--lv-olive-700); }
.lv-badge.sin-stock { background: #f3e3e7; color: var(--lv-wine); }

/* banners laterales (4:5) */
.lv-lateral { width: 100%; max-width: 24rem; margin-inline: auto; }

@media (min-width: 1024px)
{
  .lv-lateral { position: sticky; top: 7rem; max-width: none; }
}

.lv-lateral-marco
{
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid var(--lv-line);
  background: #fff;
}

.lv-lateral-slide
{
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

/* la slide activa define el alto del marco (alto natural de la imagen); las demás quedan superpuestas */
.lv-lateral-slide[data-activo] { position: relative; inset: auto; opacity: 1; pointer-events: auto; }
.lv-lateral-slide img { width: 100%; height: 100%; object-fit: cover; }
.lv-lateral-slide[data-activo] img { height: auto; }

.lv-lateral-puntos { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1rem; }

.lv-lateral-puntos button
{
  width: 1.5rem;
  height: 0.375rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--lv-olive-500) 30%, transparent);
  cursor: pointer;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.lv-lateral-puntos button[aria-current="true"] { width: 2.5rem; background: var(--lv-olive-700); }

/* --------------------------------------------------------------- galería */

.lv-galeria
{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 11rem;
  gap: 0.75rem;
}

@media (min-width: 640px)
{
  .lv-galeria { grid-auto-rows: 14rem; gap: 1rem; }
}

@media (min-width: 768px)
{
  .lv-galeria { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px)
{
  .lv-galeria { grid-auto-rows: 16rem; }
}

.lv-galeria figure { position: relative; margin: 0; overflow: hidden; border-radius: 0.5rem; }

.lv-galeria figure:nth-child(8n + 1),
.lv-galeria figure:nth-child(8n + 6) { grid-column: span 2; }

.lv-galeria figure:nth-child(8n + 2),
.lv-galeria figure:nth-child(8n + 3) { grid-row: span 2; }

.lv-galeria img
{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.lv-galeria figure:hover img { transform: scale(1.05); }

@media (prefers-reduced-motion: reduce)
{
  .lv-lateral-slide,
  .lv-galeria img { transition: none; }
}

/* ---------------------------------------------------------------- footer */

.lv-footer { background: var(--lv-olive-900); color: rgba(255, 255, 255, 0.8); }
.lv-footer-in { padding-top: 2.5rem; padding-bottom: 2rem; }

.lv-footer-grid { display: grid; gap: 2rem; }

@media (min-width: 768px)
{
  .lv-footer-grid { grid-template-columns: 1fr 1fr; align-items: center; }
}

.lv-footer-col { display: flex; flex-direction: column; gap: 1.5rem; }
.lv-footer-logo { align-self: flex-start; }
.lv-footer-logo img { height: 2.5rem; width: auto; }

@media (min-width: 640px)
{
  .lv-footer-logo img { height: 3rem; }
}

.lv-footer-text { max-width: 24rem; font-size: 0.875rem; line-height: 1.625; }

.lv-footer-dir
{
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.4286;
  font-weight: 600;
  color: #fff;
}

.lv-footer-dir:hover { text-decoration: underline; }
.lv-footer-dir .material-symbols-outlined { font-size: 1.125rem; color: var(--lv-olive-500); }

.lv-footer-mapa
{
  width: 100%;
  height: 14rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.75rem;
}

@media (min-width: 768px)
{
  .lv-footer-mapa { height: 16rem; }
}

.lv-footer-copy { background: var(--lv-wine-900); }
.lv-footer-copy p { padding-block: 0.75rem; font-size: 0.75rem; line-height: 1.3333; color: rgba(255, 255, 255, 0.7); }
