/* =====================================================================
   Colección Eterna — banner promocional en pantalla de Descuentos
   2026-06-12 · 7 items legendarios non-race con 35% off, timer al 18/06
   ===================================================================== */

.featured-eternal-collection {
  position: relative;
  margin: 0 0 18px 0;
  padding: 18px 20px 20px;
  border-radius: 14px;
  background-color: #1a1428;
  border: 1px solid rgba(184,132,255,.45);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 8px 30px rgba(0,0,0,.45),
    0 0 60px rgba(184,132,255,.15);
  overflow: hidden;
}
/* Background image cósmica (Grieta del Cósmos) + tinte púrpura encima para legibilidad */
.featured-eternal-collection::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(184,132,255,.55) 0%, rgba(26,20,40,.85) 55%, rgba(26,20,40,.95) 100%),
    radial-gradient(100% 100% at 100% 100%, rgba(255,212,74,.25) 0%, transparent 60%),
    url('../assets/zones/event_grieta_cosmos.jpg') center center / cover no-repeat;
  z-index: 0;
  pointer-events: none;
}
.featured-eternal-collection::after {
  content: "";
  position: absolute;
  top: -50%; left: -10%;
  width: 30%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,212,74,.08), transparent);
  transform: skewX(-20deg);
  animation: fec-shine 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes fec-shine {
  0%, 100% { left: -10%; }
  50%      { left: 110%; }
}

/* ===== Head ===== */
.fec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
.fec-head-left  { flex: 1 1 280px; }
.fec-head-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.fec-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #b884ff, #7a4ed1);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(184,132,255,.45);
}
.fec-title {
  margin-top: 8px;
  font-family: 'Cinzel', serif;
  font-size: 24px;
  font-weight: 800;
  color: #ffd24a;
  letter-spacing: .3px;
  text-shadow: 0 2px 12px rgba(0,0,0,.6), 0 0 18px rgba(255,212,74,.25);
}
.fec-sub {
  margin-top: 4px;
  color: #c8b6e0;
  font-size: 13px;
}
.fec-disc-badge {
  padding: 8px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff5a78, #d12a4a);
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: .5px;
  box-shadow: 0 4px 16px rgba(255,90,120,.5);
}
.fec-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,212,74,.35);
  border-radius: 8px;
  color: #ffd24a;
  font-size: 12px;
}
.fec-timer i { color: #ffd24a; }
.fec-timer b { font-size: 13px; color: #fff; letter-spacing: .5px; }

/* ===== Grid de 7 cards ===== */
.fec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  position: relative;
  z-index: 2;
}

.fec-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 10px 10px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(40,30,60,.94), rgba(28,22,42,.97));
  border: 1.5px solid rgba(255,212,74,.3);
  box-shadow: 0 4px 14px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.05);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.fec-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,212,74,.6);
  box-shadow: 0 8px 22px rgba(0,0,0,.5), 0 0 18px rgba(255,212,74,.18);
}
.fec-card.rb-legendary { border-color: rgba(255,170,80,.5); }
.fec-card.rb-legendary:hover { border-color: rgba(255,170,80,.85); box-shadow: 0 8px 22px rgba(0,0,0,.5), 0 0 24px rgba(255,170,80,.3); }

.fec-card-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  background:
    radial-gradient(ellipse at center, rgba(255,212,74,.18) 0%, transparent 65%),
    rgba(0,0,0,.25);
  border-radius: 8px;
  padding: 6px;
}
.fec-card-icon-wrap iconify-icon,
.fec-card-icon-wrap iconify-icon.gi,
.fec-card-icon-wrap .iconify,
.fec-card-icon-wrap svg {
  font-size: 80px !important;
  width: 80px !important;
  height: 80px !important;
  color: #ffd24a !important;
  filter: drop-shadow(0 3px 10px rgba(255,212,74,.55));
  display: inline-block;
}
.fec-card-img {
  max-width: 86px;
  max-height: 86px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 10px rgba(255,212,74,.45));
  transition: transform .15s ease;
}
.fec-card:hover .fec-card-img { transform: scale(1.05); }
.fec-card-rarity-pill {
  position: absolute;
  top: -4px; right: -4px;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.fec-card-rarity-pill.r-legendary { background: linear-gradient(135deg,#ff8a3d,#ff5a3d); color:#fff; }

.fec-card-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffd24a;
  text-align: center;
  line-height: 1.2;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fec-card-goldgen {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  color: #ffd24a;
  background: rgba(255,212,74,.1);
  border-radius: 6px;
  padding: 3px 6px;
}
.fec-card-goldgen i { color: #ffd24a; font-size: 12px; }

.fec-card-prices {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.fec-card-price-old {
  font-size: 11px;
  color: #888;
  opacity: .7;
}
.fec-card-price-old i { color: #888; }
.fec-card-price-new {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 800;
  color: #b884ff;
}
.fec-card-price-new i { color: #b884ff; }

.fec-card-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px;
  margin-top: auto;
}
.fec-eye-btn {
  width: 36px;
  height: 34px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.fec-buy-btn {
  height: 34px;
  padding: 0 10px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
}
.fec-buy-btn span { white-space: nowrap; }

.fec-card-sold-out {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  background: rgba(0,0,0,.7);
  color: #ff5a78;
  border: 2px solid #ff5a78;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 1px;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
  z-index: 2;
  pointer-events: none;
}

/* ===== Modal (ojito) — usa contenedor .modal nativo ===== */
.fec-modal-card {
  max-width: 560px !important;
  width: 95vw;
  background: linear-gradient(135deg, #1a1428 0%, #261d3a 50%, #1a1428 100%) !important;
  border: 1px solid rgba(184,132,255,.5) !important;
  box-shadow: 0 12px 40px rgba(0,0,0,.7), 0 0 60px rgba(184,132,255,.18) !important;
}
.fec-modal-card .modal-title {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-family: 'Cinzel', serif;
  font-size: 19px !important;
  color: #ffd24a !important;
  position: relative;
}
.fec-modal-card .modal-title > span { flex: 1; }
.fec-modal-close {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  width: 30px; height: 30px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background .15s ease;
}
.fec-modal-close:hover { background: rgba(255,90,120,.25); border-color: rgba(255,90,120,.5); color: #ff7d8e; }
.fec-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}
.fec-modal-actions > * { flex: 1; }

.fec-modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 2px;
}
.fec-modal-hero {
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 14px;
  align-items: start;
  padding: 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(40,30,60,.7), rgba(28,22,42,.7));
  border: 1px solid rgba(255,212,74,.3);
}
.fec-modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at center, rgba(255,212,74,.2) 0%, transparent 65%),
    rgba(0,0,0,.35);
  border-radius: 10px;
  height: 124px;
  padding: 8px;
}
.fec-modal-icon iconify-icon,
.fec-modal-icon iconify-icon.gi,
.fec-modal-icon .iconify,
.fec-modal-icon svg {
  font-size: 100px !important;
  width: 100px !important;
  height: 100px !important;
  color: #ffd24a !important;
  filter: drop-shadow(0 3px 12px rgba(255,212,74,.6));
  display: inline-block;
}
.fec-modal-img {
  max-width: 108px;
  max-height: 108px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 12px rgba(255,212,74,.5));
}
.fec-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.fec-modal-pill {
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,.08);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
}
.fec-modal-pill.r-legendary { background: linear-gradient(135deg,#ff8a3d,#ff5a3d); color:#fff; }
.fec-modal-desc {
  font-size: 12px;
  color: #c8b6e0;
  font-style: italic;
  line-height: 1.4;
}

.fec-modal-section { display: flex; flex-direction: column; gap: 8px; }
.fec-modal-section-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: #ffd24a;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.fec-modal-section-title i { color: #ffd24a; }

.fec-modal-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 6px;
}
.fec-modal-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(0,0,0,.3);
  border-left: 3px solid var(--sc, #ffd24a);
}
.fec-modal-stat-lbl { font-size: 11px; color: #c8b6e0; font-weight: 600; }
.fec-modal-stat-val { font-size: 13px; color: var(--sc, #ffd24a); font-weight: 800; }

.fec-modal-buffs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 6px;
}
.fec-modal-buff {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(184,132,255,.15), rgba(184,132,255,.05));
  border: 1px solid rgba(184,132,255,.35);
}
.fec-modal-buff-lbl { font-size: 11px; color: #d6c5f0; font-weight: 700; }
.fec-modal-buff-val { font-size: 13px; color: #d984ff; font-weight: 800; }

/* Info button per buff + desc tooltip (2026-06-24) */
.fec-modal-buff-info {
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(184,132,255,.18);
  border: 1px solid rgba(184,132,255,.45);
  color: #d984ff;
  cursor: pointer;
  padding: 0; margin-left: 4px;
  transition: background .15s, transform .15s, color .15s;
}
.fec-modal-buff-info i { font-size: 11px; }
.fec-modal-buff-info:hover { background: rgba(184,132,255,.32); transform: scale(1.1); }
.fec-modal-buff-info.is-open {
  background: #b884ff;
  color: #1a0f2e;
  border-color: #b884ff;
}
.fec-modal-buff-desc {
  grid-column: 1 / -1;
  padding: 8px 11px;
  font-size: 11.5px; line-height: 1.45;
  color: rgba(214,197,240,.88);
  background: rgba(0,0,0,.32);
  border-left: 2px solid #b884ff;
  border-radius: 0 6px 6px 0;
  margin-top: -2px;
}

.fec-modal-goldgen {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(255,212,74,.08);
  border: 1px solid rgba(255,212,74,.3);
  border-radius: 8px;
  color: #ffd24a;
  font-size: 13px;
}
.fec-modal-goldgen i { color: #ffd24a; font-size: 16px; }
.fec-modal-goldgen b { margin-left: 2px; }

.fec-modal-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  padding: 12px;
  background: rgba(0,0,0,.35);
  border-radius: 10px;
  border: 1px solid rgba(255,212,74,.25);
}
.fec-modal-price-old { font-size: 14px; color: #888; }
.fec-modal-price-old i { color: #888; }
.fec-modal-price-new {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 24px;
  font-weight: 900;
  color: #b884ff;
}
.fec-modal-price-new i { color: #b884ff; }
.fec-modal-disc {
  padding: 4px 10px;
  background: linear-gradient(135deg,#ff5a78,#d12a4a);
  color: #fff;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}
.fec-modal-buy-btn {
  width: 100%;
  height: 44px;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ===== Mobile ===== */
@media (max-width: 640px) {
  .featured-eternal-collection { padding: 14px 12px 16px; }
  .fec-title { font-size: 19px; }
  .fec-sub { font-size: 12px; }
  .fec-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .fec-card { padding: 10px 8px; }
  .fec-card-name { font-size: 12px; min-height: 28px; }
  .fec-card-price-new { font-size: 14px; }
  .fec-buy-btn span { display: none; }
  .fec-buy-btn { padding: 0 !important; min-width: 0; }
  .fec-eye-btn { width: 32px; height: 32px; }
  .fec-card-actions { grid-template-columns: 1fr 1fr; }
  .fec-modal-hero { grid-template-columns: 64px 1fr; }
  .fec-modal-icon { height: 64px; }
  .fec-modal-icon .iconify,
  .fec-modal-icon svg { width: 44px !important; height: 44px !important; }
  .fec-modal-name { font-size: 17px; }
}
