/* ============================================================
   SESCOM — Catálogo de radios
   Hover = "Ver detalle" · Clic = popup (foto izq / detalle der)
   El detalle (specs) del hover original queda oculto y se usa
   como fuente de datos para el popup. Prefijo .rc- (radio card).
   ============================================================ */

/* El overlay de specs del hover ya no se muestra: solo alimenta el popup */
#modelos .hover-op-1 { display: none !important; }
/* El nombre (etiqueta inferior) queda siempre visible */
#modelos .hover-op-0 { opacity: 1 !important; z-index: 4; }

/* "Ver detalle" al pasar el mouse */
#modelos .rc-verdetalle{
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5,18,40,.55); opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
#modelos .hover:hover .rc-verdetalle{ opacity: 1; }
#modelos .rc-verdetalle span{
  border: 2px solid #fff; color: #fff; font-weight: 700; font-size: .95rem;
  letter-spacing: .5px; padding: 10px 22px; border-radius: 8px; background: rgba(0,0,0,.3);
}

/* ===================== Popup ===================== */
.rc-overlay{
  position: fixed; inset: 0; z-index: 99990; display: none;
  align-items: center; justify-content: center; padding: 16px;
  background: rgba(3,10,22,.82); backdrop-filter: blur(5px);
}
.rc-overlay.open{ display: flex; }

.rc-modal{
  position: relative; width: 100%; max-width: 820px; max-height: 92vh;
  display: grid; grid-template-columns: 1fr 1fr;
  background: #0b1a30; color: #eaf3fb; border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,.6);
  animation: rcIn .25s cubic-bezier(.2,.8,.2,1);
}
@keyframes rcIn{ from{ opacity:0; transform:translateY(20px) scale(.97);} to{ opacity:1; transform:none;} }

.rc-close{
  position: absolute; top: 12px; right: 14px; z-index: 5; width: 36px; height: 36px;
  border: none; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff;
  font-size: 20px; line-height: 1; cursor: pointer; transition: .25s;
  display: flex; align-items: center; justify-content: center;
}
.rc-close:hover{ background: rgba(255,255,255,.28); transform: rotate(90deg); }

.rc-img{ background: #fff; display: flex; align-items: center; justify-content: center; padding: 26px; }
.rc-img img{ max-width: 100%; max-height: 340px; object-fit: contain; }

.rc-info{ padding: 32px 30px; overflow-y: auto; }
.rc-brand{
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: #04223a; padding: 4px 12px; border-radius: 20px; margin-bottom: 12px;
}
.rc-name{ font-size: 24px; color: #fff; margin: 0 0 4px; font-weight: 700; }
.rc-tag{ font-weight: 600; font-size: 14px; margin: 0 0 16px; }
.rc-specs{ margin: 0 0 22px; padding: 0; list-style: none; }
.rc-specs li{ padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 14px; color: #d6e3f0; }
.rc-cta{
  width: 100%; border: none; color: #04223a; font-weight: 800; font-size: 15px;
  padding: 14px 20px; border-radius: 8px; cursor: pointer; transition: filter .2s;
}
.rc-cta:hover{ filter: brightness(1.08); }

@media (max-width: 680px){
  .rc-modal{ grid-template-columns: 1fr; }
  .rc-img{ padding: 18px; }
  .rc-img img{ max-height: 200px; }
  .rc-info{ padding: 22px 20px; }
  .rc-name{ font-size: 20px; }
}
