/* RR – Promociones (Ruta y Redes) v1.1.7
   CSS completo + hover neon (rápido) + caja inferior condiciones (borde degradé 4px)
   ✅ FIX: vuelve el “rayado diagonal” (como tu versión antigua) — las líneas ahora van ARRIBA del degradé
*/

.rrp-wrap{
  background:#fff;
  padding: clamp(28px, 4vw, 56px) 16px;
  font-family: "Comfortaa", system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:#0f172a;
}

.rrp-inner{max-width: 1180px; margin: 0 auto;}
.rrp-head{margin-bottom: 18px; text-align:center;}

/* Título +5px y color fijo */
.rrp-wrap .rrp-h2{
  font-size: clamp(20px, 2.2vw, 30px);   /* igual a .rrs-title */
  line-height: 1.12;                     /* igual a .rrs-title */
  letter-spacing: -0.01em;               /* igual a .rrs-title */
  font-weight: 700;                      /* mismo “grosor” */
  margin: 0 0 10px;
  color:#050c29 !important;
}

/* Subtítulo color fijo */
.rrp-wrap .rrp-sub{
  margin:0 auto;
  max-width: 820px;
  font-size: 15.5px;
  line-height:1.55;
  font-weight: 400;
  color:#050c29 !important;
  opacity: 1;
}

.rrp-grid{
  display:grid;
  gap: clamp(14px, 2.2vw, 22px);
  margin-top: 24px;
}
.rrp-cols-1{grid-template-columns:1fr;}
.rrp-cols-2{grid-template-columns:repeat(2, minmax(0,1fr));}
.rrp-cols-3{grid-template-columns:repeat(3, minmax(0,1fr));}
.rrp-cols-4{grid-template-columns:repeat(4, minmax(0,1fr));}

@media (max-width: 980px){
  .rrp-cols-3, .rrp-cols-4{grid-template-columns:repeat(2, minmax(0,1fr));}
}
@media (max-width: 620px){
  .rrp-cols-2, .rrp-cols-3, .rrp-cols-4{grid-template-columns:1fr;}
}

/* ===== Card base ===== */
.rrp-card{
  position:relative;
  overflow:hidden;
  border-radius: 24px;
  padding: 22px 20px 18px;
  min-height: 440px;

  display:flex;
  flex-direction:column;

  /* stroke interno visible incluso sin hover */
  box-shadow:
    0 18px 46px rgba(15, 23, 42, .10),
    0 26px 80px var(--rrp-sh1),
    0 50px 130px var(--rrp-sh2),
    inset 0 0 0 1px rgba(255,255,255,.22);

  color: rgba(255,255,255,.95);
  text-align: center;

  transform: translateZ(0);
  will-change: transform, box-shadow, filter;

  /* ✅ más rápido */
  transition:
    transform .14s cubic-bezier(.2,.9,.2,1),
    box-shadow .14s cubic-bezier(.2,.9,.2,1),
    filter .14s cubic-bezier(.2,.9,.2,1);
}

/* ✅ Fondo + rayado (rayas ARRIBA del degradé) */
.rrp-card::before{
  content:"";
  position:absolute; inset:-2px;
  border-radius: 26px;
  z-index:0;
  pointer-events:none;

  /* capas (de ARRIBA hacia ABAJO):
     1) rayas diagonales (VISIBLE)
     2) highlight radial
     3) degradé base del tema
  */
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,.12) 0px,
      rgba(255,255,255,.12) 1px,
      rgba(255,255,255,0) 1px,
      rgba(255,255,255,0) 10px
    ),
    radial-gradient(1200px 520px at 20% 12%, rgba(255,255,255,.18), rgba(255,255,255,0) 55%),
    linear-gradient(160deg, var(--rrp-c1), var(--rrp-c2));

  /* radial en modo "screen" para brillo suave, rayas y base normales */
  background-blend-mode: normal, screen, normal;
  opacity: 1;
}

/* ✅ Borde neon (apagado por defecto) */
.rrp-card::after{
  content:"";
  position:absolute; inset:-2px;
  border-radius: 26px;
  pointer-events:none;
  z-index:1;

  background: linear-gradient(90deg, var(--rrp-neon1), var(--rrp-neon2));

  /* máscara para que sea SOLO borde */
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;

  padding: 2px; /* grosor del borde neon */
  opacity: 0;
  filter: blur(.25px);
  transition: opacity .14s cubic-bezier(.2,.9,.2,1);
}

/* overlays */
.rrp-glow{
  position:absolute; inset:-1px;
  border-radius: 24px;
  background: linear-gradient(90deg, rgba(255,255,255,.32), rgba(255,255,255,0), rgba(255,255,255,.22));
  opacity: 0;
  filter: blur(12px);
  z-index:2;
  pointer-events:none;
}

.rrp-scan{
  position:absolute; inset:-2px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,0) 40%, rgba(255,255,255,.06));
  opacity:0;
  transform: translateY(-20%);
  z-index:2;
  pointer-events:none;
}

.rrp-card > *{position:relative; z-index:3;}

/* Burbuja más ancha */
.rrp-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin: 0 auto;

  padding: 13px 28px;
  border-radius: 999px;
  min-width: 190px;
  max-width: 100%;

  font-weight: 700;
  letter-spacing: .11em;
  font-size: 14.5px;
  text-transform: uppercase;

  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.rrp-card-sub{
  margin-top: 10px;
  font-size: 14px;
  color: rgba(255,255,255,.93);
  line-height: 1.35;
  font-weight: 400;
}

.rrp-price{
  margin-top: 16px;
  display:flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  flex-wrap:wrap;
}
.rrp-price-prefix{
  font-weight:600;
  opacity:.95;
  font-size: 13px;
  letter-spacing:.02em;
}
.rrp-price-main{
  font-weight: 700;
  font-size: clamp(30px, 2.6vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1;
}

/* Lista */
.rrp-list{
  margin: 18px 0 0;
  padding-left: 18px;
  list-style: disc;
  text-align: left;
}
.rrp-list li{
  margin: 10px 0;
  line-height: 1.40;
  font-size: 15px;
  color: rgba(255,255,255,.95);
  font-weight: 400;
}
.rrp-list li::marker{color: rgba(255,255,255,.85);}

.rrp-spacer{flex:1;}

/* ===== Botón ===== */
.rrp-btn{
  margin-top: 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 12px;

  text-decoration:none;
  border-radius: 999px;
  padding: 14px 18px;

  background: rgba(255,255,255,.96);
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .18);

  transition:
    transform .14s cubic-bezier(.2,.9,.2,1),
    background .14s cubic-bezier(.2,.9,.2,1),
    box-shadow .14s cubic-bezier(.2,.9,.2,1),
    border-color .14s cubic-bezier(.2,.9,.2,1);
}

.rrp-btn:hover{
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow:
    0 18px 40px rgba(15, 23, 42, .22),
    0 0 0 3px rgba(37, 209, 103, .12);
  border-color: rgba(15, 23, 42, .10);
}

.rrp-btn:focus-visible{
  outline: 3px solid rgba(15, 23, 42, .15);
  outline-offset: 3px;
}

/* Texto botón 400 */
.rrp-btn-txt{
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1;
}

/* WhatsApp */
.rrp-btn--wa{ color: #25d167; }

.rrp-btn--wa .rrp-icwrap{
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(37, 209, 103, .10);
  border: 1px solid rgba(37, 209, 103, .28);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 10px 22px rgba(37, 209, 103, .18);
}

/* fuerza svg bonito */
.rrp-btn--wa .rrp-icwrap svg,
.rrp-btn--wa .rrp-icwrap svg *{
  fill: currentColor !important;
  stroke: currentColor !important;
}
.rrp-btn--wa .rrp-icwrap svg{
  width: 18px;
  height: 18px;
  display:block;
}

.rrp-btn--wa:hover{
  box-shadow:
    0 18px 40px rgba(15, 23, 42, .22),
    0 0 0 3px rgba(37, 209, 103, .16),
    0 18px 34px rgba(37, 209, 103, .18);
}

/* URL */
.rrp-btn--url{ color: rgba(15, 23, 42, .92); }
.rrp-btn--url .rrp-icwrap svg{ color: rgba(15, 23, 42, .92); }

/* ===== Themes + sombras tintadas + neon por tema ===== */
.rrp-theme-blue{
  --rrp-c1:#0a2a66; --rrp-c2:#0b7cff;
  --rrp-sh1: rgba(11,124,255,.30);
  --rrp-sh2: rgba(11,124,255,.16);
  --rrp-neon1: rgba(125,211,252,.95);
  --rrp-neon2: rgba(11,124,255,.95);
}

.rrp-theme-purple{
  --rrp-c1:#2a145f; --rrp-c2:#8b5cf6;
  --rrp-sh1: rgba(139,92,246,.34);
  --rrp-sh2: rgba(139,92,246,.18);
  --rrp-neon1: rgba(196,181,253,.95);
  --rrp-neon2: rgba(139,92,246,.95);
}

.rrp-theme-red{
  --rrp-c1:#5b1230; --rrp-c2:#ff2d77;
  --rrp-sh1: rgba(255,45,119,.32);
  --rrp-sh2: rgba(255,45,119,.16);
  --rrp-neon1: rgba(253,164,175,.95);
  --rrp-neon2: rgba(255,45,119,.95);
}

/* ✅ Hover estilo “neon card” */
.rrp-card:hover{
  transform: translateY(-4px);
  filter: saturate(1.08) contrast(1.02);
  box-shadow:
    0 18px 55px rgba(15, 23, 42, .18),
    0 0 26px rgba(255,255,255,.12),
    0 26px 85px var(--rrp-sh1),
    0 70px 160px var(--rrp-sh2),
    inset 0 0 0 1px rgba(255,255,255,.28);
}

.rrp-card:hover::after{ opacity: 1; }

.rrp-card:hover .rrp-glow{ opacity:.62; }

.rrp-card:hover .rrp-scan{
  opacity:.45;
  animation: rrp_scan_fast 1.05s ease-in-out infinite;
}

@keyframes rrp_scan_fast{
  0%{ transform: translateY(-26%); }
  50%{ transform: translateY(8%); }
  100%{ transform: translateY(-26%); }
}

@media (prefers-reduced-motion: reduce){
  .rrp-card, .rrp-btn{transition:none;}
  .rrp-card:hover{transform:none;}
  .rrp-card:hover .rrp-scan{animation:none;}
}

/* ===== Caja inferior condiciones (borde degradé 4px) ===== */
.rrp-foot{
  margin-top: clamp(18px, 2vw, 28px);
}

.rrp-foot-border{
  background: linear-gradient(90deg, #0b7cff 0%, #8b5cf6 50%, #ff2d77 100%);
  padding: 4px;
  border-radius: 22px;
  box-shadow: 0 18px 60px rgba(15, 23, 42, .10);
}

.rrp-foot-inner{
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 18px;
  color: #050c29;
  border: 1px solid rgba(15, 23, 42, .06);
}

.rrp-foot-title{
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #050c29;
}

.rrp-foot-text{
  font-size: 14.5px;
  line-height: 1.65;
  font-weight: 400;
  color: #050c29;
}
.rrp-foot-text p{ margin: 0 0 10px; }
.rrp-foot-text p:last-child{ margin-bottom: 0; }

.rrp-foot-text a{
  color: #0b7cff;
  text-decoration: none;
  border-bottom: 1px solid rgba(11,124,255,.35);
}
.rrp-foot-text a:hover{
  border-bottom-color: rgba(11,124,255,.7);
}

.rrp-empty{
  grid-column:1/-1;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  color:#334155;
  text-align:center;
}
