/* MAISON BAG | Acceso visual a álbumes de promociones.
   Solo afecta a la nueva sección #oportunidades. */
#oportunidades.mb-opportunities {
  padding: 27px 22px 29px;
  background: linear-gradient(180deg, rgba(255,250,246,.94) 0%, rgba(248,238,231,.94) 100%);
  border-top: 1px solid rgba(225,207,194,.68);
  border-bottom: 1px solid rgba(225,207,194,.68);
}
#oportunidades .mb-opportunities-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 19px;
}
#oportunidades .mb-opportunities-heading > div { min-width: 0; }
#oportunidades .mb-opportunities-heading .eyebrow {
  margin: 0 0 7px;
  color: #a57b53;
  font-size: 9px;
  letter-spacing: .19em;
}
#oportunidades .mb-opportunities-heading h2 {
  margin: 0;
  color: #392b27;
  font-family:'Manrope',Arial,sans-serif;
  font-size: clamp(24px, 4vw, 29px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -.025em;
}
#oportunidades .mb-opportunities-heading h2 em {
  color: #b78379;
  font-weight: 400;
}
#oportunidades .mb-opportunities-intro {
  max-width: 365px;
  margin: 9px 0 0;
  color: #817067;
  font-size: 11px;
  line-height: 1.55;
}
#oportunidades .mb-opportunities-count {
  flex: 0 0 auto;
  margin-bottom: 2px;
  padding: 7px 9px;
  border: 1px solid #e6d6ca;
  border-radius: 30px;
  background: rgba(255,255,255,.66);
  color: #947763;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .1em;
  white-space: nowrap;
}
#oportunidades .mb-opportunities-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
#oportunidades .mb-opportunity-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e8d9ce;
  border-radius: 15px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 5px 15px rgba(76,48,39,.065);
  color: #3b2d28;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
#oportunidades .mb-opportunity-card:hover,
#oportunidades .mb-opportunity-card:focus-visible {
  transform: translateY(-3px);
  border-color: #cba88e;
  box-shadow: 0 10px 22px rgba(76,48,39,.12);
}
#oportunidades .mb-opportunity-card:focus-visible { outline: 2px solid #8c624c; outline-offset: 3px; }
#oportunidades .mb-opportunity-visual {
  position: relative;
  display: block;
  height: 117px;
  overflow: hidden;
  background: #ead9d1;
  isolation: isolate;
}
#oportunidades .mb-opportunity-visual::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(42,28,24,.02) 20%, rgba(42,28,24,.32) 100%);
  content: '';
  pointer-events: none;
}
#oportunidades .mb-opportunity-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
#oportunidades .mb-opportunity-card:hover .mb-opportunity-visual img { transform: scale(1.055); }
#oportunidades .mb-opportunity-stamp {
  position: absolute;
  z-index: 1;
  left: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  padding: 5px 7px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 4px;
  background: rgba(255,249,243,.92);
  color: #6c493b;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
}
#oportunidades .mb-opportunity-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 12px 11px 11px;
}
#oportunidades .mb-opportunity-index {
  color: #a27b61;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: .105em;
  line-height: 1.35;
}
#oportunidades .mb-opportunity-title {
  display: block;
  color: #3c2c27;
  font-family:'Manrope',Arial,sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.16;
}
#oportunidades .mb-opportunity-description {
  display: block;
  min-height: 34px;
  color: #817067;
  font-size: 10px;
  line-height: 1.45;
}
#oportunidades .mb-opportunity-cta {
  display: flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-top: auto;
  padding: 0 9px;
  border-radius: 6px;
  background: #49332c;
  color: #fff9f3;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .045em;
  line-height: 1.2;
  white-space: nowrap;
}
#oportunidades .mb-opportunity-cta b { font-size: 15px; font-weight: 400; }
#oportunidades .mb-opportunity-card:hover .mb-opportunity-cta { background: #6b4939; }
@media (max-width: 540px) {
  #oportunidades.mb-opportunities { padding: 24px 19px 26px; }
  #oportunidades .mb-opportunities-heading { align-items: flex-start; margin-bottom: 16px; }
  #oportunidades .mb-opportunities-heading h2 { font-size: 26px; }
  #oportunidades .mb-opportunities-count { margin-top: 2px; padding: 6px 7px; font-size: 7px; }
  #oportunidades .mb-opportunities-intro { font-size: 11px; }
  #oportunidades .mb-opportunities-grid { grid-template-columns: 1fr; gap: 10px; }
  #oportunidades .mb-opportunity-card { display: grid; grid-template-columns: 112px minmax(0,1fr); min-height: 132px; border-radius: 13px; }
  #oportunidades .mb-opportunity-visual { height: 100%; min-height: 132px; }
  #oportunidades .mb-opportunity-stamp { left: 6px; bottom: 6px; padding: 4px 5px; font-size: 6.5px; letter-spacing: .025em; }
  #oportunidades .mb-opportunity-body { justify-content: center; gap: 5px; padding: 10px 11px; }
  #oportunidades .mb-opportunity-index { font-size: 7.5px; }
  #oportunidades .mb-opportunity-title { font-size: 18px; }
  #oportunidades .mb-opportunity-description { min-height: 0; font-size: 10.5px; }
  #oportunidades .mb-opportunity-cta { min-height: 30px; margin-top: 2px; padding: 0 9px; font-size: 8.5px; }
}
@media (max-width: 365px) {
  #oportunidades.mb-opportunities { padding-right: 14px; padding-left: 14px; }
  #oportunidades .mb-opportunities-heading h2 { font-size: 23px; }
  #oportunidades .mb-opportunity-card { grid-template-columns: 96px minmax(0,1fr); }
  #oportunidades .mb-opportunity-body { padding: 9px; }
  #oportunidades .mb-opportunity-title { font-size: 16px; }
  #oportunidades .mb-opportunity-description { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  #oportunidades .mb-opportunity-card,
  #oportunidades .mb-opportunity-visual img { transition: none !important; }
}


/* Complementos visuales para las portadas de oportunidades: etiquetas y contador real. */
#oportunidades .mb-opportunity-corner-badge {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  max-width: calc(100% - 16px);
  padding: 5px 7px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 4px;
  background: rgba(255,249,243,.94);
  color: #6c493b;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .11em;
  line-height: 1.2;
  text-align: center;
}
#oportunidades .mb-offer-countdown {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: calc(100% - 16px);
  padding: 6px 8px 7px;
  border: 1px solid rgba(255,249,243,.35);
  border-radius: 7px;
  background: rgba(54,37,32,.92);
  color: #fff9f3;
  box-shadow: 0 3px 10px rgba(40,25,20,.17);
  backdrop-filter: blur(3px);
}
#oportunidades .mb-offer-countdown-label {
  display: block;
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1.1;
}
#oportunidades .mb-offer-countdown-units {
  display: flex;
  align-items: baseline;
  gap: 7px;
}
#oportunidades .mb-offer-countdown-unit {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  white-space: nowrap;
}
#oportunidades .mb-offer-countdown-unit b {
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
#oportunidades .mb-offer-countdown-unit small {
  color: #e8c8b4;
  font-size: 7px;
  font-weight: 600;
}
#oportunidades .mb-offer-countdown.is-expired {
  gap: 0;
  background: rgba(54,37,32,.94);
}
#oportunidades .mb-offer-countdown.is-expired .mb-offer-countdown-label {
  font-size: 7px;
  letter-spacing: .08em;
}
#oportunidades .mb-offer-countdown.is-expired .mb-offer-countdown-units { display: none; }
@media (max-width: 540px) {
  #oportunidades .mb-opportunity-corner-badge { top: 6px; right: 5px; padding: 4px 4px; font-size: 5.7px; letter-spacing: .04em; }
  #oportunidades .mb-offer-countdown { top: 6px; left: 5px; gap: 3px; max-width: calc(100% - 10px); padding: 5px 5px 6px; border-radius: 5px; }
  #oportunidades .mb-offer-countdown-label { font-size: 5.3px; letter-spacing: .07em; }
  #oportunidades .mb-offer-countdown-units { gap: 4px; }
  #oportunidades .mb-offer-countdown-unit { gap: 1px; }
  #oportunidades .mb-offer-countdown-unit b { font-size: 11px; }
  #oportunidades .mb-offer-countdown-unit small { font-size: 6px; }
  #oportunidades .mb-offer-countdown.is-expired .mb-offer-countdown-label { font-size: 5.5px; }
}


/* MAISON BAG | Portadas oficiales OUTLET / OFERTAS / PACKS (2026-10-28)
   Imágenes cuadradas individuales obtenidas del tríptico aprobado.
   El contador sigue funcionando, pero se ubica en la descripción para no tapar la gráfica. */
#oportunidades .mb-opportunity-visual {
  height: auto;
  aspect-ratio: 1 / 1;
  background: #f3e3d7;
}
#oportunidades .mb-opportunity-visual::after { display: none; }
#oportunidades .mb-opportunity-visual img { object-fit: cover; }
#oportunidades .mb-opportunity-body .mb-offer-countdown {
  position: static;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  margin: 2px 0 4px;
  padding: 7px 8px;
  border-color: #e2cfc5;
  border-radius: 6px;
  background: #f8e9e2;
  color: #6a433a;
  box-shadow: none;
  backdrop-filter: none;
}
#oportunidades .mb-opportunity-body .mb-offer-countdown-label {
  font-size: 7px;
  letter-spacing: .06em;
  line-height: 1.2;
}
#oportunidades .mb-opportunity-body .mb-offer-countdown-units { gap: 5px; }
#oportunidades .mb-opportunity-body .mb-offer-countdown-unit { gap: 1px; }
#oportunidades .mb-opportunity-body .mb-offer-countdown-unit b { font-size: 11px; }
#oportunidades .mb-opportunity-body .mb-offer-countdown-unit small { color: #a57762; font-size: 6px; }
#oportunidades .mb-opportunity-body .mb-offer-countdown.is-expired {
  background: #f1dcd2;
  justify-content: center;
}
@media(max-width:540px) {
  #oportunidades .mb-opportunity-visual {
    height: 100%;
    min-height: 148px;
    aspect-ratio: auto;
  }
  #oportunidades .mb-opportunity-card {
    grid-template-columns: 128px minmax(0,1fr);
    min-height: 148px;
  }
  #oportunidades .mb-opportunity-body .mb-offer-countdown {
    position: static;
    padding: 5px 6px;
    margin: 0 0 2px;
    max-width: 100%;
  }
  #oportunidades .mb-opportunity-body .mb-offer-countdown-label { font-size: 6.3px; }
  #oportunidades .mb-opportunity-body .mb-offer-countdown-unit b { font-size: 10px; }
  #oportunidades .mb-opportunity-body .mb-offer-countdown-unit small { font-size: 5.5px; }
}
@media(max-width:365px) {
  #oportunidades .mb-opportunity-card { grid-template-columns: 102px minmax(0,1fr); }
  #oportunidades .mb-opportunity-body .mb-offer-countdown { gap: 3px; }
  #oportunidades .mb-opportunity-body .mb-offer-countdown-label { font-size: 5.5px; }
  #oportunidades .mb-opportunity-body .mb-offer-countdown-unit b { font-size: 9px; }
}


/* MAISON BAG | Textos centrados en la sección de oportunidades (2026-10-28).
   Solo se modifica la alineación, sin cambiar imágenes, enlaces ni contador. */
#oportunidades .mb-opportunities-heading {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}
#oportunidades .mb-opportunities-heading > div { width: 100%; }
#oportunidades .mb-opportunities-intro { margin: 9px auto 0; }
#oportunidades .mb-opportunities-count { align-self: center; margin: 0; }
#oportunidades .mb-opportunity-body {
  align-items: center;
  text-align: center;
}
#oportunidades .mb-opportunity-index,
#oportunidades .mb-opportunity-title,
#oportunidades .mb-opportunity-description {
  width: 100%;
  text-align: center;
}
#oportunidades .mb-opportunity-cta {
  position: relative;
  justify-content: center;
  text-align: center;
  padding-right: 25px;
  padding-left: 25px;
}
#oportunidades .mb-opportunity-cta b {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
}
#oportunidades .mb-opportunity-body .mb-offer-countdown { justify-content: center; }
#oportunidades .mb-offer-countdown-label { text-align: center; }
@media (max-width:540px) {
  #oportunidades .mb-opportunities-heading { align-items: center; }
  #oportunidades .mb-opportunity-body { align-items: center; text-align: center; }
}


/* MAISON BAG | Etiquetas de disponibilidad más visibles y duración explícita. */
#oportunidades .mb-opportunity-index {
  display: inline-flex;
  align-self: center;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  padding: 5px 9px;
  border: 1px solid #ead7ca;
  border-radius: 999px;
  background: #fbf2ec;
  color: #8c6049;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: .09em;
  line-height: 1.2;
}
#oportunidades .mb-offer-duration {
  display: inline-flex;
  align-self: center;
  justify-content: center;
  max-width: 100%;
  margin: 0 0 2px;
  padding: 5px 9px;
  border: 1px solid #e7c9bb;
  border-radius: 999px;
  background: #f8e9e2;
  color: #875440;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .07em;
  line-height: 1.2;
  text-align: center;
}
@media (max-width: 540px) {
  #oportunidades .mb-opportunity-index { padding: 4px 7px; font-size: 7px; }
  #oportunidades .mb-offer-duration { padding: 4px 7px; font-size: 6.5px; }
}


/* MAISON BAG | Banderín rojo de urgencia en la esquina inferior izquierda.
   Deja libre el logotipo de Maison Bag en la parte superior de las portadas. */
#oportunidades .mb-opportunity-visual { position: relative; overflow: hidden; }
#oportunidades .mb-opportunity-ribbon {
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: 9px;
  top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 94px;
  min-height: 42px;
  padding: 6px 14px 6px 7px;
  background: #d9272e;
  color: #fff;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 1px 1px rgba(90,0,0,.15);
  box-shadow: 0 3px 7px rgba(90,0,0,.2);
  clip-path: polygon(0 0, 86% 0, 100% 50%, 86% 100%, 0 100%);
  pointer-events: none;
}
@media (max-width: 540px) {
  #oportunidades .mb-opportunity-ribbon { left: 0; bottom: 7px; top: auto; width: 78px; min-height: 36px; padding: 5px 12px 5px 5px; font-size: 6.8px; }
}
