/* ═══════════════════════════════════════════
   Tema v2 — Home
   Prefijo: v2h-  · Mobile first
═══════════════════════════════════════════ */

/* ── HERO ─────────────────────────────────── */

.v2h-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 12px;
  padding: 32px 22px 22px;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  background: #f5eef1;
  background: color-mix(in srgb, var(--v2-accent) 16%, #ffffff);
  color: var(--v2-ink);
}

.v2h-hero--photo {
  background: #2a2a2a;
  color: #fff;
}

.v2h-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v2h-hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.12) 70%);
}

.v2h-hero-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.v2h-hero-eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}

.v2h-hero-title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.v2h-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.v2h-hero--photo .v2-btn--ghost {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.v2h-hero--photo .v2-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* Tarjeta "Recién llegado" (solo desktop) */
.v2h-hero-mini {
  display: none;
}

.v2h-hero-mini-img {
  display: flex;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border: 1px solid var(--v2-line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.v2h-hero-mini-img img {
  width: 100%;
  height: 100%;
  padding: 4px;
  object-fit: contain;
}

.v2h-hero-mini-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.v2h-hero-mini-text strong {
  font-size: 12px;
  font-weight: 600;
}

.v2h-hero-mini-name {
  display: -webkit-box;
  overflow: hidden;
  color: var(--v2-muted);
  font-size: 12px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.v2h-hero-mini-price {
  font-size: 12px;
  font-weight: 600;
}

/* Columna lateral: chips + producto */
.v2h-hero-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* En móvil las categorías ya aparecen justo debajo del hero */
.v2h-hero-chips {
  display: none;
  gap: 8px;
}

.v2h-chip {
  flex-shrink: 0;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--v2-ink);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.v2h-chip:hover {
  background: #fff;
}

.v2h-hero--photo .v2h-chip {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.v2h-hero--photo .v2h-chip:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Producto destacado del hero */
.v2h-feature {
  display: grid;
  grid-template-columns: 96px 1fr;
  grid-template-areas:
    "img head"
    "img price";
  gap: 4px 14px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--v2-ink);
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.v2h-feature-head {
  grid-area: head;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: start;
  column-gap: 8px;
  padding-top: 4px;
}

.v2h-feature-head .v2-arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.v2h-feature-label {
  grid-column: 1;
  color: var(--v2-muted);
  font-size: 11px;
  font-weight: 500;
}

.v2h-feature-name {
  grid-column: 1;
  display: -webkit-box;
  margin-top: 2px;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.v2h-feature-img {
  grid-area: img;
  display: flex;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.v2h-feature-img img {
  width: 100%;
  height: 100%;
  padding: 8%;
  object-fit: contain;
}

.v2h-feature-price {
  grid-area: price;
  align-self: end;
  padding-bottom: 4px;
  font-size: 14px;
  font-weight: 600;
}

/* ── CATEGORÍAS ───────────────────────────── */

/* Móvil: carrusel horizontal para que el collage tenga tamaño */
.v2h-cats {
  display: flex;
  gap: 12px;
  margin: 0 -20px;
  padding: 2px 20px 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 20px;
  scrollbar-width: none;
}

.v2h-cats::-webkit-scrollbar {
  display: none;
}

/* La tarjeta en sí (.v2-catcard) está en theme.css */
.v2h-cats > .v2-catcard {
  flex: 0 0 74%;
  scroll-snap-align: start;
}

/* ── FRANJA GRIS (ofertas) ────────────────── */

.v2h-band {
  margin-top: 56px;
  padding: 36px 0 44px;
  background: var(--v2-soft);
}

.v2h-band + .v2-section {
  margin-top: 44px;
}

/* Lo más vendido — móvil: una sola tarjeta blanca (foto arriba, texto dentro) */
.v2h-best {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 10px 10px 22px;
  border-radius: 24px;
  background: #fff;
}

.v2h-best-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  border-radius: 16px;
  background: var(--v2-soft);
  overflow: hidden;
}

.v2h-best-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 16px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.v2h-best-info {
  padding: 0 10px;
}

.v2h-best-eyebrow {
  margin: 0 0 10px;
  color: var(--v2-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.v2h-best-name {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.v2h-best-desc {
  display: -webkit-box;
  max-width: 440px;
  margin: 14px 0 0;
  overflow: hidden;
  color: var(--v2-muted);
  font-size: 14px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.v2h-best-price {
  margin: 20px 0 0;
  font-size: 22px;
  font-weight: 700;
}

.v2h-best-price small {
  margin-left: 8px;
  color: var(--v2-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: line-through;
}

.v2h-best-out {
  color: var(--v2-muted);
  font-size: 15px;
  font-weight: 600;
}

.v2h-best-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-top: 22px;
}

/* ── Tablet ───────────────────────────────── */

@media (min-width: 700px) {
  .v2h-hero {
    padding: 32px 28px 24px;
  }

  .v2h-hero-title {
    font-size: 34px;
  }

  .v2h-hero-chips {
    display: flex;
    flex-wrap: wrap;
  }

  .v2h-cats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .v2h-cats > .v2-catcard {
    flex: none;
  }
}

/* ── Desktop ──────────────────────────────── */

@media (min-width: 900px) {
  .v2h-hero {
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 32px;
    min-height: 460px;
    margin-top: 16px;
    padding: 36px;
    border-radius: 28px;
  }

  .v2h-hero--photo::before {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.12) 55%, rgba(0, 0, 0, 0) 100%);
  }

  .v2h-hero-main {
    flex: 1;
    gap: 32px;
  }

  .v2h-hero-copy {
    margin: auto 0;
  }

  .v2h-hero-title {
    max-width: 620px;
    font-size: 44px;
  }

  .v2h-hero-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 320px;
    padding: 10px 16px 10px 10px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(20, 24, 35, 0.08);
    color: var(--v2-ink);
    text-decoration: none;
  }

  .v2h-hero-side {
    flex-shrink: 0;
    align-items: flex-end;
    width: 272px;
  }

  .v2h-hero-chips {
    flex-wrap: wrap;
    justify-content: flex-end;
    overflow: visible;
  }

  .v2h-feature {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 14px;
    border-radius: 22px;
  }

  .v2h-feature-head {
    padding: 2px 2px 0 4px;
  }

  .v2h-feature-name {
    font-size: 18px;
  }

  .v2h-feature-img {
    border-radius: 16px;
  }

  .v2h-feature-price {
    align-self: flex-start;
    padding: 0 4px 2px;
    font-size: 15px;
  }

  .v2h-cats {
    gap: 20px;
  }

  .v2h-band {
    margin-top: 72px;
    padding: 56px 0 64px;
  }

  .v2h-band + .v2-section {
    margin-top: 64px;
  }

  .v2h-best {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 64px;
    padding: 0;
    border-radius: 0;
    background: none;
  }

  .v2h-best-media {
    aspect-ratio: 5 / 4;
    border-radius: 24px;
    background: #fff;
  }

  .v2h-best-media img {
    padding: 40px;
    mix-blend-mode: normal;
  }

  .v2h-best-info {
    padding: 0;
  }

  .v2h-best-name {
    font-size: 32px;
  }

  .v2h-best-desc {
    font-size: 15px;
  }

  .v2h-best-price {
    margin-top: 24px;
    font-size: 24px;
  }
}

@media (min-width: 1200px) {
  .v2h-hero-title {
    font-size: 52px;
  }
}
