/* ==========================================================================
   hc-n2.css — NIVEL 2: rediseño visual completo, mismo contenido e IA.
   Se carga después de styles.css, hc-taste.css y hc-n1.css.
   Cambios grandes solo en escritorio (>=901px). El celular conserva el
   layout optimizado actual + la capa de tipografía/estados.
   ========================================================================== */
@media (min-width: 901px) {

  /* ---------- Ritmo: más aire, encabezados alineados a la izquierda ---------- */
  section { padding: 96px 0; }
  .section-head { text-align: left; max-width: 640px; margin: 0 0 48px; }
  .section-head h2 { font-size: clamp(30px, 3.4vw, 44px); margin: 0 0 14px; }
  .section-head p { font-size: 18px; max-width: 34em; }
  /* Restricción de eyebrows: solo en Categorías (1 cada 3 secciones) */
  .products .section-head .kicker,
  .values .section-head .kicker,
  .about .kicker { display: none !important; }
  .section-head .kicker { background: none; padding: 0; color: var(--gray-500); letter-spacing: .14em; margin-bottom: 14px; }

  /* ---------- Destacados: tarjetas más limpias ---------- */
  .products { background: var(--gray-50); padding-bottom: 88px; }
  .product-card { border-radius: var(--radius-lg); border-color: transparent; box-shadow: 0 1px 0 rgba(11,29,54,.06), 0 10px 30px -18px rgba(11,29,54,.25); }
  .product-price { font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

  /* ---------- Categorías: bento con foto real, 6 celdas exactas ---------- */
  .cat-n2 { background: var(--white); }
  .bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 340px; gap: 16px; }
  .bento-cell {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 28px; border-radius: var(--radius-lg);
    background: var(--navy-50); color: var(--navy-900);
    transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
  }
  .bc-ilum { grid-column: span 5; background: var(--amber-50); }
  .bc-elec { grid-column: span 4; background: var(--navy-50); }
  .bc-herr { grid-column: span 3; background: var(--gray-100); }
  .bc-jard { grid-column: span 3; background: #e9f0e4; }
  .bc-video { grid-column: span 3; background: var(--navy-800); color: #fff; }
  .bc-mot { grid-column: span 3; background: var(--gray-100); }
  .bc-cons { grid-column: span 3; background: var(--navy-50); }
  .bento-text { position: relative; z-index: 2; max-width: 62%; }
  .bento-cell h3 { margin: 0 0 6px; font-size: 24px; letter-spacing: -0.03em; font-weight: 700; color: inherit; }
  .bento-cell p { margin: 0 0 14px; font-size: 14px; line-height: 1.45; color: var(--gray-700); }
  .bc-video p { color: rgba(255,255,255,.72); }
  .bento-cell .cat-brands { margin-top: 0; }
  .bento-cell img {
    position: absolute; z-index: 1; right: 4%; bottom: 4%;
    width: 52%; height: 72%; object-fit: contain; object-position: right bottom;
    mix-blend-mode: multiply;               /* fondos blancos de foto desaparecen sobre el tinte */
    transition: transform 420ms var(--ease-out);
  }
  .bc-video img { mix-blend-mode: normal; }
  /* Celdas angostas (3 columnas): texto arriba, foto abajo a la derecha */
  .bc-herr .bento-text, .bc-jard .bento-text, .bc-video .bento-text,
  .bc-mot .bento-text, .bc-cons .bento-text { max-width: 100%; }
  .bc-herr img  { width: 74%; height: 42%; }
  .bc-jard img  { width: 78%; height: 44%; }
  .bc-video img { width: 60%; height: 42%; }
  .bc-mot img   { width: 56%; height: 44%; }
  .bc-cons img  { width: 82%; height: 34%; }
  /* Celda ancha: texto a la izquierda, foto a la derecha */
  .bc-elec img { width: 40%; height: 46%; }
  /* El título no pisa la flecha de la esquina */
  .bento-cell h3 { padding-right: 42px; font-size: 22px; }
  .bento-arrow {
    position: absolute; z-index: 3; top: 22px; right: 22px;
    width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center;
    background: #fff; color: var(--navy-900);
    box-shadow: 0 6px 16px -8px rgba(11,29,54,.5);
    transition: transform 240ms var(--ease-out), background-color 160ms ease;
  }
  .bento-arrow svg { width: 16px; height: 16px; }
  @media (hover: hover) {
    .bento-cell:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -24px rgba(11,29,54,.45); }
    .bento-cell:hover img { transform: scale(1.06); }
    .bento-cell:hover .bento-arrow { transform: translate(2px,-2px); background: var(--amber-500); }
  }
  .bento-cell:active { transform: scale(.99); }

  /* ---------- Mayoristas: bloque propio (antes estaba escondido) ---------- */
  .wholesale { background: var(--white); padding: 0 0 96px; }
  .wholesale-card {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px;
    background: var(--navy-900); color: #fff; border-radius: var(--radius-lg);
    padding: 48px 56px; position: relative; overflow: hidden; isolation: isolate;
  }
  .wholesale-card::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(700px 320px at 100% 0%, rgba(212,160,23,.22), transparent 65%);
  }
  .wholesale-card h2 { margin: 0 0 10px; font-size: clamp(28px, 3vw, 38px); letter-spacing: -0.03em; }
  .wholesale-card p { margin: 0; max-width: 34em; color: rgba(255,255,255,.78); font-size: 17px; }
  .wholesale-min { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
  .wholesale-min .lbl { font-size: 13px; color: rgba(255,255,255,.65); }
  .wholesale-min .num {
    font-size: clamp(40px, 4.4vw, 60px); font-weight: 700; letter-spacing: -0.045em; line-height: 1;
    color: var(--amber-400); font-variant-numeric: tabular-nums; margin-bottom: 14px;
  }

  /* ---------- Por qué elegirnos: lista numerada dividida (sin cajitas) ---------- */
  .values { background: var(--white); padding-top: 24px; }
  .value-grid { counter-reset: v; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--gray-200); }
  .value-card {
    counter-increment: v; background: none; border: 0; border-radius: 0; box-shadow: none;
    padding: 28px 28px 8px 0; margin-right: 28px; border-right: 1px solid var(--gray-200);
  }
  .value-card:last-child { border-right: 0; margin-right: 0; }
  .value-card:hover { transform: none; box-shadow: none; }
  .value-card::before {
    content: counter(v, decimal-leading-zero); display: block; margin-bottom: 40px;
    font-size: 14px; font-weight: 600; color: var(--amber-500); font-variant-numeric: tabular-nums; letter-spacing: .04em;
  }
  .value-card .value-icon { display: none; }
  .value-card h3 { font-size: 19px; letter-spacing: -0.02em; margin-bottom: 10px; }

  /* ---------- Nosotros: fondo oscuro con cifras grandes ---------- */
  .about { background: var(--navy-900); color: #fff; }
  .about h2, .about .about-stat .num { color: #fff; }
  .about p { color: rgba(255,255,255,.76); }
  .about .about-stat .lbl { color: rgba(255,255,255,.6); }
  .about .btn-dark { background: var(--amber-500); color: var(--navy-900); }
  .about .btn-dark:hover { background: var(--amber-400); }
  .about-stats { border-top: 1px solid rgba(255,255,255,.14); padding-top: 28px; margin-top: 36px; }
  .about-stat .num { font-size: 44px; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }

  /* ---------- Contacto: separa del bloque oscuro anterior ---------- */
  .cta-strip { border-top: 1px solid rgba(255,255,255,.08); }
}

/* Parallax suave del escenario del hero (solo si el navegador lo soporta) */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 901px) {
    @keyframes stage-drift { to { transform: translateY(-36px); } }
    .hero-n1 .hero-stage {
      animation: stage-drift linear both;
      animation-timeline: scroll(root);
      animation-range: 0 600px;
    }
  }
}

/* ---------- Celular (<=900px): el bloque mayorista y el bento se apilan ---------- */
@media (max-width: 900px) {
  .bento { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .bento-cell { position: relative; padding: 18px; border-radius: 18px; min-height: 190px; background: var(--navy-50); color: var(--navy-900); display: flex; flex-direction: column; }
  .bento-cell img { display: none; }
  .bento-arrow { display: none; }
  .bento-cell h3 { font-size: 16px; margin: 0 0 4px; }
  .bento-cell p { font-size: 12px; margin: 0 0 10px; }
  .wholesale { padding: 0 0 40px; }
  .wholesale-card { background: var(--navy-900); color: #fff; border-radius: 20px; padding: 28px 22px; display: grid; gap: 22px; }
  .wholesale-card h2 { margin: 0 0 8px; font-size: 24px; }
  .wholesale-card p { margin: 0; color: rgba(255,255,255,.78); font-size: 15px; }
  .wholesale-min .num { display: block; font-size: 40px; font-weight: 700; letter-spacing: -0.04em; color: var(--amber-400); margin-bottom: 12px; }
  .wholesale-min .lbl { display: block; font-size: 12px; color: rgba(255,255,255,.65); }
}

/* Orden del bloque mayorista: justo después de categorías (escritorio y celular) */
body > .wholesale { order: 3; }
