/* MABI EYEWEAR — V6 | Mejoras 1, 2, 3, 4, 5, 7, 8
   Instalación aditiva: no altera stock, promociones, BRIX ni la grilla. */
:root { --mabi-v6-negro:#121212; --mabi-v6-amarillo:#F2C200; --mabi-v6-marfil:#F6F5F1; }

/* 1. Numeración editorial discreta, sin alterar títulos existentes */
.mabi-v6-numero {
  display:block; width:max-content; margin:0 0 13px;
  color:#555; font:700 10px/1.2 'Space Grotesk',Arial,sans-serif;
  letter-spacing:.19em; text-transform:uppercase;
}
.coleccion-titulo .mabi-v6-numero,
.mas-vendidas-titulo .mabi-v6-numero,
.mabi-moods-header .mabi-v6-numero,
.mabi-pinta .mabi-v6-numero { opacity:.9; }

/* 2. Precio real del modelo en cada tarjeta, debajo del nombre */
#productos-coleccion > .producto .mabi-v6-precio {
  display:block !important; margin:5px 0 6px !important;
  font:700 clamp(13px,1.1vw,17px)/1.3 'Space Grotesk',Arial,sans-serif !important;
  letter-spacing:-.015em !important; color:#151515 !important;
  text-transform:none !important; opacity:1 !important;
}

/* 3. Sólo colores con stock verdadero del catálogo maestro */
#productos-coleccion > .producto .mabi-v6-swatches {
  display:flex; align-items:center; flex-wrap:wrap; gap:5px;
  margin:9px 0 13px; min-height:18px;
}
#productos-coleccion .mabi-v6-swatch {
  display:inline-block; flex:0 0 auto; width:13px; height:13px;
  border:1px solid rgba(0,0,0,.2); border-radius:50%;
  background:var(--tono,#999); box-shadow:0 0 0 1px rgba(255,255,255,.8);
}
#productos-coleccion .mabi-v6-swatch[data-aprox="true"] {
  border-style:dashed;
}
#productos-coleccion .mabi-v6-colores-label {
  color:#737373; margin-left:3px; font:600 9px/1.4 'Space Grotesk',Arial,sans-serif;
  letter-spacing:.04em;
}
#productos-coleccion .producto.mabi-v6-con-colores .producto-colores-indicador { display:none !important; }

/* 4. Indicador pasivo, nunca intercepta swipe ni botones */
.ficha-imagen { position:relative; }
#mabi-v6-fotos-indicador {
  position:absolute; top:14px; right:14px; z-index:12; pointer-events:none;
  background:rgba(250,249,245,.94); border:1px solid rgba(0,0,0,.1);
  border-radius:99px; padding:8px 11px; color:#111;
  font:700 11px/1 'Space Grotesk',Arial,sans-serif;
  letter-spacing:.08em; backdrop-filter:blur(6px);
}
#mabi-v6-fotos-indicador[hidden] { display:none !important; }

/* 5. Franja editorial de cierre, sólo homepage */
.mabi-v6-cierre {
  background:#131313; color:white; padding:clamp(58px,8vw,112px) max(18px,5vw);
  text-align:center; overflow:hidden; isolation:isolate;
}
.mabi-v6-cierre .mabi-v6-cierre-kicker {
  margin:0 0 14px; color:var(--mabi-v6-amarillo); font:700 10px/1.6 'Space Grotesk',Arial,sans-serif;
  letter-spacing:.25em; text-transform:uppercase;
}
.mabi-v6-cierre h2 {
  margin:0 auto; max-width:1100px; color:white;
  font:700 clamp(33px,6.6vw,86px)/.98 'Space Grotesk',Arial,sans-serif;
  letter-spacing:-.055em; text-transform:uppercase; text-wrap:balance;
}
.mabi-v6-cierre h2 span { color:var(--mabi-v6-amarillo); }
.mabi-v6-cierre .mabi-v6-cierre-linea {
  width:52px; height:3px; background:var(--mabi-v6-amarillo); margin:24px auto 0;
}

/* 7. Botón volver arriba: más discreto, la lógica existente controla cuándo aparece */
#mabiVolverArriba.mabi-volver-arriba {
  width:36px !important; height:36px !important;
  border:1px solid rgba(17,17,17,.16) !important;
  background:rgba(250,249,246,.96) !important; color:#151515 !important;
  border-radius:50% !important; font-size:17px !important;
  box-shadow:0 4px 14px rgba(0,0,0,.11) !important;
  backdrop-filter:blur(7px);
  transition:opacity .24s ease, transform .24s ease, background .24s ease !important;
}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  #mabiVolverArriba.mabi-volver-arriba.visible:hover {
    transform:translateY(-3px) !important;
    background:var(--mabi-v6-amarillo) !important;
  }
}

/* 8. Footer: iconos + alineación premium sin cambiar URL */
footer.footer { background:#111 !important; color:#eee !important; }
footer.footer .footer-principal {
  align-items:start; column-gap:clamp(24px,4vw,70px); row-gap:30px;
}
footer.footer .footer-columna h3 {
  font-size:11px; letter-spacing:.14em; text-transform:uppercase;
}
footer.footer .footer-columna a {
  display:inline-flex; align-items:center; gap:9px;
  min-height:29px; transition:opacity .22s ease, color .22s ease;
}
footer.footer .footer-columna a .mabi-v6-social-icon {
  width:15px; height:15px; flex:none; fill:currentColor; display:block;
}
footer.footer .footer-columna a:hover { opacity:.7; }
footer.footer .footer-final { border-top:1px solid rgba(255,255,255,.15); }
footer.footer .mabi-v6-credito {
  font:500 10px/1.4 'Space Grotesk',Arial,sans-serif;
  letter-spacing:.04em; opacity:.64;
}

@media (max-width:768px) {
  .mabi-v6-numero { font-size:9px; letter-spacing:.15em; margin-bottom:10px; }
  #productos-coleccion > .producto .mabi-v6-precio { font-size:13px !important; margin:5px 0 !important; }
  #productos-coleccion .mabi-v6-swatch { width:11px; height:11px; }
  #productos-coleccion .mabi-v6-swatches { gap:4px; margin:7px 0 10px; }
  #productos-coleccion .mabi-v6-colores-label { font-size:8px; }
  #mabi-v6-fotos-indicador { top:9px; right:9px; font-size:10px; padding:7px 10px; }
  .mabi-v6-cierre { padding:54px 18px; }
  .mabi-v6-cierre h2 { font-size:clamp(29px,8vw,44px); }
  #mabiVolverArriba.mabi-volver-arriba {
    right:calc(12px + env(safe-area-inset-right)) !important;
    bottom:calc(85px + env(safe-area-inset-bottom)) !important;
  }
  footer.footer .footer-principal { row-gap:26px; }
  footer.footer .footer-columna a { min-height:33px; }
}
@media (prefers-reduced-motion:reduce) {
  #mabiVolverArriba.mabi-volver-arriba, footer.footer .footer-columna a { transition:none !important; }
}

/* ======================================
   MABI V8 — refinamientos sin archivos adicionales
   Mantiene slideshow BRIX, promociones, stock y disposicion mobile.
====================================== */
/* 1 — Header compacto al desplazarse. Menú abierto mantiene medidas originales. */
.mabi-header { transition: height .24s ease, min-height .24s ease, box-shadow .24s ease, transform .24s ease; }
.mabi-header.mabi-v8-compacto { box-shadow:0 3px 16px rgba(10,10,10,.055); }
@media (min-width: 769px) {
  .mabi-header.mabi-v8-compacto { padding-top: 8px !important; padding-bottom: 8px !important; }
  .mabi-header.mabi-v8-compacto .logo img { max-height: 34px; width:auto; object-fit:contain; }
}
@media (max-width: 768px) {
  body .mabi-header.mabi-v8-compacto {
    height:calc(54px + env(safe-area-inset-top)) !important;
    min-height:calc(54px + env(safe-area-inset-top)) !important;
  }
  body .mabi-header.mabi-v8-compacto .logo { height:54px !important; }
  body .mabi-header.mabi-v8-compacto nav { top:54px !important; }
  body .mabi-header.mabi-v8-compacto .logo img { width:119px !important; }
}
/* 2 — Fotos de producto ligeramente mayores, sin zoom que recorte marcos. */
#productos-coleccion > .producto .producto-imagen-doble img {
  object-fit:contain !important;
  object-position:center !important;
  padding:14px !important;
  transition:opacity .25s ease, transform .28s ease;
}
@media (max-width:600px) {
  #productos-coleccion > .producto .producto-imagen-doble img { padding:5px !important; }
}
/* 3 — Interludio editorial sobrio entre catálogo y picks, ancho completo. */
.mabi-v8-separador {
  display:flex;justify-content:space-between;align-items:center;gap:24px;
  padding:25px clamp(18px,6vw,85px);background:#141414;color:#fff;
  min-height:106px;border-top:2px solid #F2C200;
}
.mabi-v8-separador span {font:600 10px/1.4 'Space Grotesk',sans-serif;letter-spacing:.16em;color:#F2C200;}
.mabi-v8-separador strong {font:700 clamp(30px,5vw,68px)/.95 'Space Grotesk',sans-serif;letter-spacing:-.055em;}
/* 4 — CTA editorial limpio, sin flechas decorativas tipo emoji. */
#productos-coleccion .mabi-v8-cta-arrow { display:none !important; }
#productos-coleccion > .producto a.boton-producto { gap:0 !important; }
/* 6 — Jerarquía editorial de fichas; sin modificar estado de stock ni el botón de compra. */
.ficha-info .ficha-descripcion {
  padding-bottom:clamp(12px,2vw,18px);border-bottom:1px solid rgba(19,19,19,.11);
}
.ficha-info .ficha-estado {font-weight:700;letter-spacing:.07em;}
.ficha-info .compra-confianza-mabi {border-top:1px solid rgba(19,19,19,.11);padding-top:12px;}
.ficha-info .ficha-color-linea { border-color:#d7d5ce !important; }
/* 8 — THE MABI EDIT: productos obtenidos del maestro, nunca una lista manual. */
.mabi-v8-the-edit {background:#f6f5f1;padding:clamp(54px,7vw,100px) clamp(16px,5vw,80px);color:#111;}
.mabi-v8-edit-header,.mabi-v8-edit-grid {max-width:1500px;margin-inline:auto;}
.mabi-v8-edit-header {margin-bottom:28px;}
.mabi-v8-edit-kicker {font:700 10px/1.5 'Space Grotesk',sans-serif;letter-spacing:.19em;color:#6d6c67;margin:0 0 10px;}
.mabi-v8-edit-header h2 {font:700 clamp(36px,5vw,70px)/.98 'Space Grotesk',sans-serif;letter-spacing:-.055em;margin:0;}
.mabi-v8-edit-note {font:400 13px/1.55 'Space Grotesk',sans-serif;color:#686762;margin:13px 0 0;}
.mabi-v8-edit-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(10px,1.25vw,22px);}
.mabi-v8-edit-card {display:block;text-decoration:none;color:#111;min-width:0;}
.mabi-v8-edit-foto {background:#fff;aspect-ratio:1/1;display:grid;place-items:center;overflow:hidden;}
.mabi-v8-edit-foto img {display:block;width:100%;height:100%;object-fit:contain;object-position:center;padding:12px;transition:transform .3s ease;}
.mabi-v8-edit-label {display:flex;align-items:center;gap:10px;padding:14px 0 6px;border-bottom:1px solid #c7c7c3;}
.mabi-v8-edit-label strong {font:700 clamp(15px,1.7vw,21px)/1.2 'Space Grotesk',sans-serif;}
/* Respaldo si queda una flecha antigua en el HTML cacheado. */
.mabi-v8-edit-label > span {display:none !important;}
@media(hover:hover) and (prefers-reduced-motion:no-preference) {
  .mabi-v8-edit-card:hover .mabi-v8-edit-foto img {transform:scale(1.035);}
}
.mabi-v8-edit-card:focus-visible {outline:3px solid #F2C200;outline-offset:4px;}
@media(max-width:768px) {
  .mabi-v8-separador {padding:22px 16px;min-height:96px;gap:12px;flex-wrap:wrap;}
  .mabi-v8-separador strong {font-size:clamp(30px,8vw,45px);}
  .mabi-v8-the-edit {padding:55px 14px;}
  .mabi-v8-edit-header h2 {font-size:clamp(31px,9vw,48px);}
  .mabi-v8-edit-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 10px;}
  .mabi-v8-edit-foto img {padding:7px;}
  .mabi-v8-edit-label {padding:11px 1px 6px;}
  .mabi-v8-edit-label strong {font-size:15px;}
}
@media (prefers-reduced-motion:reduce) {
  .mabi-v8-edit-foto img {transition:none !important;}
}
