/* =========================================================
   RR Audiocar — rr_ml_info_cards (home info cards + modal)
   Estilos extraídos del inline <style> y refinamientos modernos.
   ========================================================= */

:root{
  --rric-red:#d00000;
  --rric-red-dark:#8f0000;
  --rric-text:#111827;
  --rric-muted:#6b7280;
  --rric-border:#e5e7eb;
}

/* Refinamiento de las cards (transition base sigue en rr-modern-2026.css) */
.rr-ml-cards-wrap{
  margin:24px auto;
  max-width:1280px;
  padding:0 12px;
}
.rr-ml-cards{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap:14px;
}

.rr-ml-card{
  background:#fff;
  border:1px solid var(--rric-border);
  border-radius:14px;
  padding:18px 16px 16px;
  display:flex;
  flex-direction:column;
  gap:8px;
  position:relative;
  overflow:hidden;
}
.rr-ml-card::after{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height:3px;
  background:linear-gradient(90deg, var(--rric-red), var(--rric-red-dark));
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .25s ease;
}
.rr-ml-card:hover::after{ transform:scaleX(1); }

.rr-ml-card__title{
  font-size:13px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--rric-muted);
}
.rr-ml-card__desc{
  font-size:13.5px;
  color:var(--rric-text);
  line-height:1.4;
  flex:1 1 auto;
}

.rr-ml-icon{
  width:46px;
  height:46px;
  position:relative;
  margin-top:2px;
}
.rr-ml-icon__circle{
  position:absolute; inset:0;
  background:linear-gradient(135deg, #fff5f5, #ffe0e0);
  border-radius:50%;
}
.rr-ml-icon__svg{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  color:var(--rric-red);
}
.rr-ml-icon__svg svg{
  width:22px; height:22px; fill:currentColor;
}

.rr-ml-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  margin-top:8px;
  padding:10px 14px;
  background:#fff;
  color:var(--rric-red) !important;
  border:1px solid var(--rric-red);
  border-radius:10px;
  font-size:13px;
  font-weight:700;
  text-decoration:none !important;
  transition:background .15s, color .15s;
}
.rr-ml-btn:hover{
  background:var(--rric-red);
  color:#fff !important;
}

/* Card "Visto recientemente" (cuando hay datos) */
.rr-ml-card--last .rr-ml-lastview{
  display:flex;
  gap:10px;
  align-items:center;
  text-decoration:none !important;
  color:var(--rric-text) !important;
}
.rr-ml-card--last .rr-ml-lastview__thumb img{
  width:56px;
  height:56px;
  object-fit:contain;
  border-radius:8px;
  border:1px solid var(--rric-border);
  background:#fff;
}
.rr-ml-card--last .rr-ml-lastview__name{
  font-size:13px;
  font-weight:600;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.rr-ml-card--last .rr-ml-lastview__price .amount{
  font-weight:800;
  color:var(--rric-red-dark);
}

/* Empty state (sin productos vistos) */
.rr-ml-lastview-empty{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.rr-ml-lastview-empty__title{
  font-size:13px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:var(--rric-muted);
}
.rr-ml-lastview-empty__sub{
  font-size:13.5px;
  color:var(--rric-text);
  flex:1 1 auto;
}

/* =====================
   Modal de medios de pago
   ===================== */
.rr-modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.7);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
  display:none;
  justify-content:center;
  align-items:center;
  z-index:99999;
  padding:20px;
}
.rr-modal-overlay[aria-hidden="false"]{ display:flex; }
.rr-modal-content{
  background:#fff;
  border-radius:14px;
  max-width:640px;
  width:100%;
  position:relative;
  overflow:hidden;
  line-height:0;
  animation:rrModalIn .22s ease-out;
  box-shadow:0 30px 80px rgba(0,0,0,.4);
}
@keyframes rrModalIn{
  from{ transform:translateY(8px) scale(.98); opacity:0; }
  to  { transform:translateY(0)   scale(1);    opacity:1; }
}
.rr-modal-close{
  position:absolute;
  top:10px;
  right:10px;
  background:#fff;
  border-radius:50%;
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-size:20px;
  font-weight:bold;
  border:1px solid var(--rric-border);
  line-height:1;
  z-index:2;
  transition:background .15s, color .15s;
}
.rr-modal-close:hover{
  background:var(--rric-red);
  color:#fff;
  border-color:var(--rric-red);
}
.rr-modal-content img{
  width:100%;
  height:auto;
  display:block;
}
body.modal-open{ overflow:hidden; }

/* =====================
   Responsive
   ===================== */
@media (max-width: 1100px){
  .rr-ml-cards{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px){
  .rr-ml-cards{ grid-template-columns: repeat(2, 1fr); }
  .rr-ml-card{ padding:14px; }
  .rr-ml-card__desc{ font-size:13px; }
}
@media (max-width: 480px){
  .rr-ml-cards{ grid-template-columns: 1fr; }
}
