/* =============================================================
   REGALOS FF — Sistema de diseño basado en Torneos FF
   (Garena-style: dorado #FFBA00, Teko italic uppercase,
    polygon dividers, clip-path angular cards, blur glass)
   ============================================================= */

:root {
  --header-height: 73px;
  --text-color: #000;
  --text-color-white: #fff;
  --bg-color: #000;
  --elem-color: #FFBA00;
  --elem-color-dark: #FFAF00;

  --h2-font-size: 4rem;
  --h3-font-size: 1.5rem;
  --h4-font-size: 1rem;
  --normal-font-size: .875rem;
  --small-font-size: .75rem;
  --smaller-font-size: .625rem;

  --font-heading: 'Teko', 'Impact', sans-serif;
  --font-body: 'Poppins', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  background: #000;
  color: #fff;
  line-height: 1.5;
}
main {
  padding-top: var(--header-height);
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

/* =============================================================
   CONTAINER
   ============================================================= */
.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}
@media (max-width: 1200px) { .container { padding: 0 2rem; } }
@media (max-width: 1024px) { .container { padding: 0 1.5rem; } }
@media (max-width: 520px)  { .container { padding: 0 1rem; } }

/* =============================================================
   HEADER
   ============================================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  transition: all .4s cubic-bezier(.4,0,.2,1);
  background: transparent;
}
.header.scrolled {
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
  height: var(--header-height);
}
.nav-logo { display: flex; align-items: center; transition: all .3s; }
.nav-logo:hover { transform: scale(1.05); filter: drop-shadow(0 0 10px rgba(255,186,0,0.4)); }

.nav-list { display: flex; align-items: center; gap: 0; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center;
  padding: 0 18px;
  height: var(--header-height);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  transition: color .3s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--elem-color); }

.nav-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 24px;
  background: var(--elem-color);
  color: #000;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all .3s;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.nav-download-btn:hover { background: #fff; transform: scale(1.05); }

.hamburger-btn {
  display: none;
  background: none; border: none; cursor: pointer; padding: 8px;
  color: #fff;
}
.nav-right-desktop { display: flex; align-items: center; gap: 12px; }

/* Mobile */
.mobile-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.mobile-menu-overlay.open { opacity: 1; pointer-events: all; }
.mobile-menu-panel {
  position: fixed; top: 0; right: -320px;
  width: 300px; height: 100vh;
  background: rgba(10,10,10,0.98);
  z-index: 1001;
  padding: 80px 24px 40px;
  transition: right .3s ease;
  overflow-y: auto;
}
.mobile-menu-panel.open { right: 0; }
.mobile-close-btn {
  position: absolute; top: 20px; right: 20px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.mobile-nav-link {
  display: block;
  padding: 14px 0;
  font-size: 14px; font-weight: 600;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color .3s;
}
.mobile-nav-link:hover { color: var(--elem-color); }

@media (max-width: 1024px) {
  .nav-menu-desktop { display: none; }
  .nav-right-desktop { display: none; }
  .hamburger-btn { display: block; }
}

/* =============================================================
   SECTION MODULE / DECORATIONS
   ============================================================= */
.section-module { position: relative; overflow: hidden; }

.section-decoration {
  position: absolute; top: -1px; left: 0;
  width: 100%; z-index: 5;
}
.section-decoration.trapezoid { width: 55%; }

/* =============================================================
   SECTION TITLE
   ============================================================= */
.section-title { position: relative; text-transform: uppercase; }
.section-title.big { line-height: 0.95; font-size: var(--h2-font-size); }
.section-title-text {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 2px;
  font-style: italic;
}
.title-decoration {
  display: block;
  width: 10.3125rem; height: 0.5625rem;
  margin-top: 1rem;
}
@media (max-width: 768px) {
  .section-title.big { font-size: 2.5rem; }
}

/* =============================================================
   HERO
   ============================================================= */
.home-app {
  position: relative;
  min-height: calc(50.5rem + var(--header-height));
  overflow: hidden;
}
.home-app-cover {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: calc(100% + 40px);
}
.home-app::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 35%, rgba(0,0,0,0.15) 55%, transparent 70%),
    linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  z-index: 1;
}
.home-app-content {
  position: absolute;
  bottom: 14%;
  width: 100%;
  max-width: 700px;
  padding: 0 6.2%;
  z-index: 2;
}
.hero-tagline {
  display: inline-block;
  padding: .35rem .75rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: #FFBA00;
  background: rgba(255,186,0,0.08);
  border: 1px solid rgba(255,186,0,0.25);
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(3.5rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: 2px;
  margin: 0 0 1rem;
  text-transform: uppercase;
}
.hero-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 1.5rem;
}

.home-app-list {
  display: flex; align-items: center; flex-wrap: nowrap;
  margin: 1.5rem 0 0;
  gap: .75rem;
}
.home-app-item { position: relative; }
.blur-border {
  transition: .3s;
  background-color: hsla(0,0%,100%,.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: .375rem;
  border: .5px solid rgba(255,255,255,0.3);
}
.home-app-link {
  display: flex; align-items: center;
  height: 3rem;
  padding: .5rem 1.125rem;
  font-size: var(--h4-font-size);
  color: #fff;
  gap: .625rem;
}
.home-app-link svg { width: 20px; height: 20px; fill: #fff; }

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  height: 52px;
  padding: 0 36px;
  background: var(--elem-color);
  color: #000;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all .3s;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  box-shadow: 0 8px 30px rgba(255,186,0,0.25);
}
.hero-cta-btn:hover { background: #fff; transform: scale(1.05); }

/* Diamantes flotantes */
.hero-diamonds {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-diamond {
  position: absolute;
  font-size: 2rem;
  opacity: 0.55;
  filter: drop-shadow(0 0 12px rgba(0,168,255,0.7));
  animation: floatDiamond 4s ease-in-out infinite;
}
@keyframes floatDiamond {
  0%, 100% { transform: translateY(0) rotate(-5deg); opacity: .4; }
  50%      { transform: translateY(-18px) rotate(5deg); opacity: .8; }
}

@media (max-width: 768px) {
  main { padding-top: 0; }
  .home-app { height: auto; min-height: 100vh; padding-top: var(--header-height); }
  .home-app-content { bottom: 10%; padding: 0 1.5rem; }
  .home-app-list { flex-wrap: wrap; gap: .5rem; }
  .home-app-link { font-size: .8rem; height: 2.5rem; padding: .4rem .75rem; }
  .hero-subtitle { font-size: .9rem; }
}
@media (max-width: 520px) {
  .home-app-list { display: none; }
}

/* =============================================================
   WHATSAPP RULE
   ============================================================= */
.wa-rule-wrap {
  background: linear-gradient(180deg, #000 0%, #060606 100%);
  padding: 3rem 0;
}
.wa-rule {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(37,211,102,0.08), rgba(255,186,0,0.04));
  border: 1px solid rgba(37,211,102,0.25);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}
.wa-rule-badge {
  position: absolute;
  top: 14px; right: 18px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  background: var(--elem-color);
  color: #000;
}
.wa-rule-icon {
  display: flex; align-items: flex-start; justify-content: center;
}
.wa-rule-title {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 2rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: .5rem;
  color: #fff;
}
.wa-rule-highlight { color: #25D366; }
.wa-rule-sub { color: rgba(255,255,255,0.65); font-size: .9rem; line-height: 1.6; margin-bottom: 1rem; }
.wa-rule-list { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.25rem; }
.wa-rule-list li { color: rgba(255,255,255,0.7); font-size: .85rem; }
.wa-rule-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.wa-rule-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  height: 46px;
  padding: 0 1.25rem;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 13px;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: all .3s;
}
.wa-rule-cta:hover { background: #1da851; transform: scale(1.03); }
.wa-rule-note { font-size: .75rem; color: rgba(255,255,255,0.4); }
@media (max-width: 640px) {
  .wa-rule { grid-template-columns: 1fr; padding: 1.5rem; }
  .wa-rule-icon { display: none; }
  .wa-rule-title { font-size: 1.5rem; }
}

/* =============================================================
   SECCIÓN BLANCA (variant)
   ============================================================= */
.section-content.white {
  background: #f5f5f0;
  color: #1a1a1a;
  position: relative;
  overflow: hidden;
}
.section-content.white::before {
  content: '';
  position: absolute;
  top: -20%; right: -5%;
  width: 60%; height: 140%;
  border: 2px solid rgba(0,0,0,0.04);
  transform: rotate(15deg);
  pointer-events: none;
  z-index: 0;
}
.section-content.white::after {
  content: '';
  position: absolute;
  top: -10%; right: 2%;
  width: 50%; height: 120%;
  border: 2px solid rgba(0,0,0,0.03);
  transform: rotate(15deg);
  pointer-events: none;
  z-index: 0;
}
.section-content.white .home-news-inner {
  position: relative; z-index: 1;
}
.section-content.white .section-title-text { color: #1a1a1a; }

.home-news { background: #000; }
.home-news-inner { padding: 6.5% 0 8.5%; }

/* =============================================================
   MODALIDADES / DINÁMICAS GRID (cards angulares)
   ============================================================= */
.mod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.mod-card {
  position: relative;
  background: #1a1a1a;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  transition: transform .3s, box-shadow .3s;
  overflow: hidden;
}
.mod-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(255,186,0,0.15);
}
.mod-card-accent {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, #FFBA00, #FF8C00);
  z-index: 2;
}
.mod-card-hero {
  position: relative;
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center; justify-content: center;
  overflow: hidden;
}
.mod-card-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #1a1a1a 0%, #0d0d0d 50%, #1a1a1a 100%);
  z-index: 0;
}
.mod-card-hero::after {
  content: '';
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,186,0,0.18) 0%, rgba(255,140,0,0.06) 50%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}
.mod-card-hero::before {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,186,0,0.4), transparent);
  z-index: 3;
}
.mod-emoji {
  position: relative;
  z-index: 2;
  font-size: 5rem;
  filter: drop-shadow(0 0 25px rgba(255,186,0,0.4));
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.mod-card:hover .mod-emoji { transform: scale(1.15) rotate(-5deg); }

.mod-card-inner { padding: 2rem 1.5rem 1.75rem; }
.mod-top {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  margin-bottom: 1.25rem;
}
.mod-icon-wrap {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(255,186,0,0.15), rgba(255,140,0,0.08));
  border: 1px solid rgba(255,186,0,0.25);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  margin-bottom: .75rem;
  color: #FFBA00;
}
.mod-name {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  line-height: 1;
}
.mod-sub {
  font-size: .7rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: .25rem;
}
.mod-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,186,0,0.3), transparent);
  margin-bottom: 1.25rem;
}
.mod-stats { display: flex; gap: 1rem; margin-bottom: 1rem; }
.mod-stat {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  padding: .75rem .5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.mod-stat-label {
  font-size: .6rem;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: .25rem;
}
.mod-stat-val {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFBA00;
  line-height: 1;
}
.mod-extra {
  font-size: .75rem;
  color: #FFBA00;
  text-align: center;
  padding: .5rem;
  background: rgba(255,186,0,0.06);
  border-left: 2px solid #FFBA00;
  margin-bottom: .75rem;
}
.mod-desc {
  font-size: .75rem;
  color: rgba(255,255,255,0.45);
  text-align: center;
  line-height: 1.5;
}

/* Section content white override */
.section-content.white .mod-card { background: #fff; box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.section-content.white .mod-card:hover { box-shadow: 0 12px 40px rgba(255,186,0,0.12); }
.section-content.white .mod-name { color: #1a1a1a; }
.section-content.white .mod-sub { color: rgba(0,0,0,0.35); }
.section-content.white .mod-stat { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.06); }
.section-content.white .mod-stat-label { color: rgba(0,0,0,0.4); }
.section-content.white .mod-desc { color: rgba(0,0,0,0.55); }
.section-content.white .mod-card-hero-bg { background: linear-gradient(160deg, #2a2a2a 0%, #111 50%, #2a2a2a 100%); }

@media (max-width: 768px) {
  .mod-grid { grid-template-columns: 1fr; }
}

/* =============================================================
   RULES STRIP
   ============================================================= */
.rules-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.25rem;
  background: rgba(255,186,0,0.05);
  border: 1px solid rgba(255,186,0,0.15);
}
.rules-strip-item {
  display: flex; align-items: center; gap: .75rem;
}
.rules-strip-icon { font-size: 1.75rem; }
.rules-strip-item strong {
  display: block;
  font-size: .9rem;
  color: #1a1a1a;
}
.section-content.white .rules-strip-item strong { color: #1a1a1a; }
.rules-strip-item span {
  font-size: .75rem;
  color: rgba(0,0,0,0.55);
}
@media (max-width: 768px) {
  .rules-strip { grid-template-columns: 1fr; }
}

/* =============================================================
   PAQUETES (premios grid)
   ============================================================= */
.pkg-section { padding: 6rem 0; background: linear-gradient(180deg, #000 0%, #050505 100%); }
.pkg-inner { position: relative; }
.esports-desc {
  color: rgba(255,255,255,0.6);
  font-size: .9rem;
  line-height: 1.6;
  max-width: 600px;
  margin-top: 1.5rem;
}

.premios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.premio-card {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  padding: 2rem 1.25rem 1.75rem;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,186,0,0.18);
  overflow: hidden;
  transition: all .3s;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 18px, 100% 100%, 20px 100%, 0 calc(100% - 18px));
  box-shadow: inset 0 0 0 1px rgba(255,186,0,0.28);
}
.premio-rank-1 { border-top: 3px solid #FFD700; }
.premio-rank-2 { border-top: 3px solid #C0C0C0; }
.premio-rank-3 { border-top: 3px solid #CD7F32; }
.premio-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,186,0,0.38);
  background: rgba(0,0,0,0.65);
}
.premio-badge {
  position: relative;
  width: 56px; height: 56px;
  border: 2px solid;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .75rem;
  background: rgba(0,0,0,0.4);
}
.premio-crown {
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  font-size: 1.1rem;
}
.premio-rank-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
}
.premio-rank-label {
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.premio-multiplicador {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 1rem;
  padding: .3rem .75rem;
  background: rgba(79,195,247,0.08);
  border: 1px solid rgba(79,195,247,0.2);
  border-radius: 3px;
}
.premio-diamond-icon { font-size: 1rem; }
.premio-mult-value {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #4FC3F7;
  line-height: 1;
}
.premio-titulo {
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: .4rem;
}
.premio-detalle {
  font-size: .75rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.4;
}
.premio-glow-bar {
  position: absolute;
  bottom: 0; left: 15%;
  width: 70%; height: 2px;
  opacity: .5;
}

@media (max-width: 768px) {
  .premios-grid { grid-template-columns: 1fr; }
}

/* =============================================================
   EJEMPLO CALCULO
   ============================================================= */
.ejemplo-calculo {
  margin-top: 2.5rem;
  padding: 2rem;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,186,0,0.1);
  position: relative;
}
.ejemplo-header {
  display: flex; align-items: center; justify-content: center;
  gap: .6rem;
  margin-bottom: 1.25rem;
}
.ejemplo-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  font-style: italic;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.ejemplo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
}
.ejemplo-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 1.25rem .75rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  transition: all .3s;
  gap: .2rem;
}
.ejemplo-item:hover {
  background: rgba(255,186,0,0.04);
  border-color: rgba(255,186,0,0.12);
  transform: translateY(-2px);
}
.ejemplo-item.destacado {
  background: rgba(255,186,0,0.06);
  border: 1px solid rgba(255,186,0,0.2);
}
.ejemplo-kill-icon {
  display: flex; align-items: center; gap: 3px;
  margin-bottom: .15rem;
  font-size: 1.2rem;
}
.ejemplo-kills {
  font-size: .72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ejemplo-resultado {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--elem-color);
  line-height: 1;
}
.ejemplo-diamante {
  font-size: .6rem;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 2px;
}
@media (max-width: 768px) {
  .ejemplo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================================
   CÓDIGOS GRID
   ============================================================= */
.codes-section { padding: 6rem 0; background: linear-gradient(180deg, #050505 0%, #000 100%); }
.codes-inner { position: relative; z-index: 2; }
.codes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
.code-card {
  position: relative;
  padding: 1.5rem 1.5rem 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,186,0,0.18);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  transition: all .3s;
}
.code-card:hover {
  background: rgba(255,186,0,0.05);
  border-color: rgba(255,186,0,0.4);
  transform: translateY(-4px);
}
.code-tag {
  position: absolute;
  top: 12px; right: 16px;
  padding: 3px 10px;
  background: var(--elem-color);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}
.code-label {
  font-size: .7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: .75rem;
  display: block;
}
.code-value {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: #fff;
  margin-bottom: .75rem;
  word-break: break-all;
}
.code-value span { color: var(--elem-color); margin: 0 .25rem; }
.code-desc {
  font-size: .85rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1rem;
}
.code-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .75rem;
  border-top: 1px dashed rgba(255,255,255,0.1);
}
.code-expira {
  font-size: .75rem;
  color: rgba(255,186,0,0.7);
}
.code-copy {
  background: var(--elem-color);
  color: #000;
  border: none;
  padding: .4rem 1rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition: all .3s;
}
.code-copy:hover { background: #fff; }
@media (max-width: 768px) {
  .codes-grid { grid-template-columns: 1fr; }
  .code-value { font-size: 1.5rem; }
}

/* =============================================================
   ABOUT (split panels) - VIP
   ============================================================= */
.home-about { position: relative; overflow: hidden; }
.home-about-inner {
  position: relative;
  display: flex;
  align-items: center; justify-content: center;
  padding-bottom: 52.5%;
  transition: all .3s;
}
.home-about-left, .home-about-right {
  position: absolute; top: 0;
  width: 94.5%; height: 100%;
  flex-shrink: 0;
  overflow: hidden;
}
.home-about-left {
  right: 50.25%;
  transform: translateX(8%);
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}
.home-about-right {
  left: 50.25%;
  transform: translateX(-8%);
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
}
.vip-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: all .3s ease;
}
.home-about-left:hover .vip-cover,
.home-about-right:hover .vip-cover {
  transform: scale(1.05);
}
.home-about-layer {
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 100%;
  background: linear-gradient(transparent 20%, rgba(0,0,0,0.85) 75%, #000 100%);
  z-index: 1;
}
.home-about-info {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: min(68%, 460px);
  text-align: center;
}
.home-about-left .home-about-info {
  left: 58%;
  right: auto;
}
.home-about-right .home-about-info {
  left: 42%;
  right: auto;
}

@media (min-width: 1400px) {
  .home-about-left .home-about-info { left: 60%; }
  .home-about-right .home-about-info { left: 40%; }
}
.about-logo { margin-bottom: .5rem; }
.about-desc {
  font-size: .85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-top: .5rem;
}
.home-about-border {
  position: absolute;
  left: 44%; bottom: 10%;
  width: 12%; height: 90%;
  transform: skewX(-15deg);
  border-color: transparent var(--elem-color) var(--elem-color) transparent;
  border-style: solid;
  border-width: 1px;
  z-index: 3;
  pointer-events: none;
}
@media (max-width: 768px) {
  .home-about { background: #0a0a0a; }
  .home-about-inner {
    flex-direction: column;
    padding-bottom: 0;
    gap: 1.25rem;
    padding: 1.5rem 1rem 2rem;
  }
  .home-about-left, .home-about-right {
    position: relative;
    width: 100%;
    height: 54vh;
    min-height: 380px;
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 26px, 100% 100%, 30px 100%, 0 calc(100% - 26px));
    transform: none;
    right: auto; left: auto;
  }
  .home-about-left::after, .home-about-right::after {
    content: '';
    position: absolute; inset: 0;
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 26px, 100% 100%, 30px 100%, 0 calc(100% - 26px));
    box-shadow: inset 0 0 0 2px rgba(255,186,0,0.5);
    pointer-events: none;
    z-index: 4;
  }
  .home-about-border { display: none; }
  .home-about-left .home-about-info,
  .home-about-right .home-about-info {
    position: absolute;
    top: 50%;
    bottom: auto; left: 50%; right: auto;
    width: calc(100% - 2rem);
    padding: 0;
    max-width: 100%;
    text-align: center;
    transform: translate(-50%, -50%);
  }

  .home-about-layer {
    background: linear-gradient(transparent 5%, rgba(0,0,0,0.38) 54%, rgba(0,0,0,0.62) 100%);
  }

  .vip-cover-img {
    background-position: center top !important;
    filter: brightness(1.28) contrast(1.1) saturate(1.08);
  }

  .about-logo {
    font-size: clamp(1.6rem, 8vw, 2rem) !important;
    line-height: 1;
  }

  .about-desc {
    font-size: .82rem;
    line-height: 1.45;
    color: rgba(255,255,255,0.82);
  }
}

@media (max-width: 420px) {
  .home-about-left, .home-about-right {
    height: 50vh;
    min-height: 330px;
  }
}

/* =============================================================
   HOME CHARS (How it works)
   ============================================================= */
.home-chars { position: relative; overflow: hidden; }
.home-chars-inner {
  min-height: 49rem;
  position: relative;
  padding-bottom: 4rem;
}
.section-bg-cover {
  position: absolute; inset: 0;
}
.section-gradient-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), rgba(0,0,0,0.4));
  z-index: 1;
}
.home-chars-container { position: relative; height: 100%; z-index: 2; }
.home-chars-content { position: relative; padding-top: 8rem; width: 100%; }
.section-desc {
  width: 46%;
  margin-top: 2.5rem;
  color: hsla(0,0%,100%,.6);
  line-height: 1.5;
}
@media (max-width: 1024px) {
  .home-chars-inner { min-height: auto; padding: 4rem 0; }
  .home-chars-content { padding: 0 1.5rem; }
  .section-desc { width: 100%; }
}

/* Torneo explicación / pasos */
.torneo-explicacion {
  padding: 2.5rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
}
.torneo-explicacion-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.torneo-reglas-list { display: flex; flex-direction: column; gap: 1.25rem; }
.torneo-regla-item {
  display: flex; align-items: flex-start; gap: 1.25rem;
  padding: 1.25rem;
  background: rgba(255,255,255,0.02);
  border-left: 3px solid var(--elem-color);
  transition: all .3s;
}
.torneo-regla-item:hover { background: rgba(255,186,0,0.04); }
.torneo-regla-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--elem-color);
  flex-shrink: 0;
  width: 2.5rem;
}
.torneo-regla-item strong {
  color: #fff;
  font-size: .95rem;
  display: block;
  margin-bottom: .25rem;
}
.torneo-regla-item p {
  color: rgba(255,255,255,0.5);
  font-size: .85rem;
  line-height: 1.5;
}
.section-content.white .torneo-explicacion {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.08);
}
.section-content.white .torneo-explicacion-title { color: #1a1a1a; }
.section-content.white .torneo-regla-item { background: rgba(0,0,0,0.02); }
.section-content.white .torneo-regla-item strong { color: #1a1a1a; }
.section-content.white .torneo-regla-item p { color: rgba(0,0,0,0.55); }

/* =============================================================
   CALENDARIO
   ============================================================= */
.home-event {
  position: relative;
  overflow: hidden;
  margin-top: 6rem;
  z-index: 4;
  isolation: isolate;
}
.home-event-inner {
  position: relative;
  min-height: 42rem;
}
.home-event-bg { position: absolute; inset: 0; }
.home-event-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 14.34%, transparent 63.11%);
  z-index: 1;
}
.home-event-ctx {
  position: relative;
  right: auto;
  bottom: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 8rem 4% 4rem;
  z-index: 2;
}

#calendario {
  scroll-margin-top: calc(var(--header-height) + 22px);
}

.calendario-grid {
  display: flex; flex-direction: column;
  gap: .75rem;
  width: 100%;
}
.calendario-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all .3s;
}
.calendario-card:hover {
  background: rgba(255,186,0,0.06);
  border-color: rgba(255,186,0,0.2);
}
.calendario-tipo {
  flex-shrink: 0;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--elem-color);
  color: #000;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
}
.calendario-info { flex: 1; }
.calendario-nombre { font-size: .9rem; font-weight: 700; color: #fff; }
.calendario-fecha { font-size: .75rem; color: rgba(255,255,255,0.4); margin-top: 2px; }
.calendario-precio { text-align: right; flex-shrink: 0; }
.calendario-valor { font-size: 1.25rem; font-weight: 900; color: var(--elem-color); }
.calendario-label { font-size: .9rem; margin-left: 4px; }

@media (max-width: 768px) {
  .home-event { margin-top: 3.6rem; }
  .home-event-inner { min-height: auto; }
  .home-event-ctx { padding: 6rem 1.5rem 3rem; width: 100%; }
}
@media (max-width: 520px) {
  .calendario-card { flex-wrap: wrap; }
  .calendario-precio { width: 100%; text-align: left; margin-top: .5rem; }
}

/* =============================================================
   REGLAS GRID
   ============================================================= */
.reglas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.regla-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 2.5rem 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all .3s;
}
.regla-card:hover {
  background: rgba(255,186,0,0.05);
  border-color: rgba(255,186,0,0.2);
  transform: translateY(-4px);
}
.regla-icon { color: var(--elem-color); margin-bottom: 1rem; }
.regla-icon svg { width: 36px; height: 36px; }
.regla-label {
  font-size: .7rem;
  color: rgba(0,0,0,0.5);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: .5rem;
}
.regla-value {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #FFBA00, #FF8C00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: .5rem;
}
.regla-desc { font-size: .75rem; color: rgba(0,0,0,0.5); }

.section-content.white .regla-card {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.08);
}
.section-content.white .regla-card:hover {
  background: rgba(255,186,0,0.06);
  border-color: rgba(255,186,0,0.3);
}

@media (max-width: 768px) {
  .reglas-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .regla-card { padding: 1.5rem 1rem; }
  .regla-value { font-size: 2rem; }
}
@media (max-width: 480px) {
  .reglas-grid { grid-template-columns: 1fr; }
}

/* =============================================================
   FAQ
   ============================================================= */
.home-esports { position: relative; overflow: hidden; }
.home-esports-inner {
  padding: 8rem 0 6rem;
  position: relative;
  z-index: 1;
}
.home-esports-bg { position: absolute; inset: 0; }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  max-width: 900px;
}
.faq-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: all .35s cubic-bezier(.4,0,.2,1);
}
.faq-card:hover {
  border-color: rgba(255,186,0,0.25);
  background: rgba(255,186,0,0.03);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,186,0,0.06);
}
.faq-card[open] {
  background: rgba(255,186,0,0.05);
  border-color: rgba(255,186,0,0.2);
  box-shadow: 0 4px 24px rgba(255,186,0,0.08), inset 0 1px 0 rgba(255,186,0,0.1);
}
.faq-card-header {
  display: flex !important;
  align-items: center;
  gap: .85rem;
  padding: 1.15rem 1.25rem;
  cursor: pointer;
  list-style: none;
  transition: all .3s;
}
.faq-card-header::-webkit-details-marker { display: none; }
.faq-card-header::marker { display: none; content: ''; }
.faq-icon-wrapper {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; min-width: 38px;
  border-radius: 10px;
  background: rgba(255,186,0,0.08);
  border: 1px solid rgba(255,186,0,0.15);
  color: #FFBA00;
  font-size: 1.1rem;
  transition: all .3s;
}
.faq-card:hover .faq-icon-wrapper, .faq-card[open] .faq-icon-wrapper {
  background: rgba(255,186,0,0.15);
  border-color: rgba(255,186,0,0.3);
}
.faq-card-title {
  flex: 1;
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}
.faq-card[open] .faq-card-title { color: #fff; }
.faq-card-chevron {
  flex-shrink: 0;
  color: rgba(255,255,255,0.25);
  transition: transform .35s cubic-bezier(.4,0,.2,1), color .3s;
}
.faq-card[open] .faq-card-chevron { transform: rotate(180deg); color: #FFBA00; }
.faq-card-body {
  padding: 0 1.25rem 1.15rem;
  padding-left: calc(1.25rem + 38px + .85rem);
  animation: faqFadeIn .3s ease;
}
.faq-card-body p {
  font-size: .8rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}
.faq-card-body strong { color: rgba(255,186,0,0.9); }
@keyframes faqFadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 768px) {
  .faq-grid { grid-template-columns: 1fr; }
}

/* =============================================================
   CTA Final / Download section
   ============================================================= */
.section-download {
  padding: 6rem 0;
  background: linear-gradient(180deg, #000 0%, #0a0a0a 100%);
  text-align: center;
}
.download-heading {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}
.download-sub {
  font-size: .875rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 2.5rem;
}
@media (max-width: 768px) {
  .download-heading { font-size: 2rem; }
}

/* =============================================================
   BUTTONS (primary / outline)
   ============================================================= */
.btn-ff-primary {
  display: inline-flex;
  align-items: center; justify-content: center;
  height: 48px; padding: 0 32px;
  background: var(--elem-color);
  color: #000;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none; cursor: pointer;
  transition: all .3s;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.btn-ff-primary:hover { background: #fff; transform: scale(1.05); }

.btn-ff-outline {
  display: inline-flex;
  align-items: center; justify-content: center;
  height: 48px; padding: 0 32px;
  background: transparent;
  color: var(--elem-color);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid var(--elem-color);
  cursor: pointer;
  transition: all .3s;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.btn-ff-outline:hover { background: var(--elem-color); color: #000; }

.download-btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  height: 48px;
  padding: 0 32px;
  background: var(--elem-color);
  color: #000;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all .3s;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

/* =============================================================
   FOOTER
   ============================================================= */
.footer {
  background: #0a0a0a;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 50px 40px;
}
.footer-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-logo-section { flex: 1; min-width: 200px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a {
  font-size: 12px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  transition: color .3s;
}
.footer-links a:hover { color: var(--elem-color); }
.footer-social { display: flex; gap: 12px; }
.footer-social-link {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  color: rgba(255,255,255,0.4);
  transition: all .3s;
}
.footer-social-link:hover {
  color: var(--elem-color);
  border-color: var(--elem-color);
  background: rgba(255,186,0,0.08);
}
.footer-bottom { padding-top: 24px; text-align: center; }
.footer-copyright {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  line-height: 1.6;
}
@media (max-width: 768px) {
  .footer-inner { padding: 30px 20px; }
  .footer-top { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { justify-content: center; gap: 16px; }
}

/* =============================================================
   UTILITIES
   ============================================================= */
.gradient-ff-text {
  background: linear-gradient(135deg, #FFBA00, #FF8C00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =============================================================
   ASSETS — LOGOS, PERSONAJES Y MARCAS DE AGUA
   ============================================================= */

/* Logo en navegación */
.nav-logo { gap: .65rem; }
.nav-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255,186,0,0.45));
  transition: transform .3s;
}
.nav-logo:hover .nav-logo-img { transform: rotate(-8deg) scale(1.08); }
@media (max-width: 520px) {
  .nav-logo-text { display: none; }
  .nav-logo-img { width: 38px; height: 38px; }
}

/* Logo en footer */
.footer-logo { display: inline-flex; align-items: center; gap: .65rem; }
.footer-logo-img {
  width: 48px; height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255,186,0,0.35));
}

/* HERO — imagen de fondo real */
.home-app-cover {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: calc(100% + 40px);
  overflow: hidden;
}
.home-app-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  display: block;
}
.home-app-cover-grad {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.7) 30%, rgba(0,0,0,0.25) 55%, transparent 75%),
    linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 55%);
}

/* Marcas de agua genéricas */
.watermark {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* Hero — FF Lineal grande translúcido */
.watermark-hero {
  bottom: -40px; right: -60px;
  width: 480px;
  max-width: 60%;
  opacity: 0.06;
  z-index: 2;
  filter: brightness(0) invert(1);
  transform: rotate(-8deg);
}
@media (max-width: 768px) {
  .watermark-hero { width: 320px; right: -40px; bottom: -20px; }
}

/* Booyah en sección diamantes */
.watermark-booyah {
  top: 8%; right: -60px;
  width: 320px;
  opacity: 0.08;
  transform: rotate(8deg);
  z-index: 1;
}
.watermark-ff-side {
  bottom: 6%; left: -80px;
  width: 360px;
  opacity: 0.04;
  filter: brightness(0) invert(1);
  z-index: 1;
}
@media (max-width: 768px) {
  .watermark-booyah { width: 180px; right: -18px; }
  .watermark-ff-side { display: none; }
}

/* Cómo participar — fondo escuadra */
.home-chars-bg-img {
  background:
    linear-gradient(135deg, rgba(0,0,0,0.85), rgba(0,0,0,0.7)),
    url('IMAGES/escuadra-tf.webp') center/cover no-repeat;
}
.watermark-chars {
  bottom: 4%; right: 4%;
  width: 280px;
  opacity: 0.05;
  filter: brightness(0) invert(1);
  z-index: 1;
}
@media (max-width: 768px) { .watermark-chars { width: 180px; } }

/* Calendario — fondo copa */
.home-event-bg-img {
  background:
    linear-gradient(135deg, rgba(20,0,30,0.85), rgba(0,0,0,0.75)),
    url('IMAGES/copa-tf.webp') center/cover no-repeat;
}

/* Reglas — marca de agua FR Negro sobre fondo claro */
.watermark-rules {
  top: 50%; right: 2%;
  width: 380px;
  opacity: 0.04;
  transform: translateY(-50%) rotate(-8deg);
  z-index: 1;
}
@media (max-width: 1024px) { .watermark-rules { display: none; } }

/* FAQ — personaje rojo + marca de agua */
.faq-character {
  position: absolute;
  bottom: 0; right: -40px;
  height: 75%;
  max-height: 520px;
  width: auto;
  opacity: 0.55;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 0 30px rgba(255,23,68,0.35));
}
.watermark-faq {
  top: 10%; left: -80px;
  width: 360px;
  opacity: 0.04;
  filter: brightness(0) invert(1);
  z-index: 1;
}
@media (max-width: 1024px) {
  .faq-character { opacity: 0.14; right: -120px; }
}
@media (max-width: 768px) {
  .faq-character { display: none; }
  .watermark-faq { display: none; }
}

/* Dinámicas — personajes dentro de la card hero */
.mod-card-hero { position: relative; }
.mod-character {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  height: 102%;
  width: auto;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.6));
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.mod-card:hover .mod-character {
  transform: translateX(-50%) scale(1.06) translateY(-4px);
}
.mod-emoji-floating {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 2rem !important;
  z-index: 3;
  filter: drop-shadow(0 0 12px rgba(255,186,0,0.7));
}

@media (max-width: 768px) {
  .mod-card-hero {
    height: 230px;
  }

  .mod-character {
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    transform: none;
    object-fit: cover;
    object-position: center top;
  }

  .mod-card:hover .mod-character {
    transform: scale(1.04);
  }
}

/* VIP cover responsive image */
.vip-cover-img {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  filter: brightness(1.18) contrast(1.08) saturate(1.06);
}

/* Asegura overflow y stacking en secciones con marcas de agua */
.pkg-section, .home-event, .home-chars, .home-esports, .home-app, .home-news { position: relative; }
.pkg-inner, .home-event-ctx, .home-chars-content, .home-esports-container, .home-news-inner {
  position: relative;
  z-index: 3;
}

/* =============================================================
   UID LOOKUP SECTION
   ============================================================= */
.section-uid-lookup {
  background: linear-gradient(180deg, #0a0a0a 0%, #111111 100%);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.section-uid-lookup::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255,186,0,.08) 0%, transparent 70%);
  pointer-events: none;
}

.uid-lookup-inner {
  max-width: 680px;
  text-align: center;
}

/* Form card */
.uid-form-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,186,0,.18);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  padding: 2rem 2rem 1.5rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.uid-form-row {
  display: flex;
  gap: .75rem;
  margin-bottom: .9rem;
}

/* Input */
.uid-input-wrap {
  position: relative;
  flex: 1;
}
.uid-input-icon {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--elem-color);
  pointer-events: none;
}
.uid-input {
  width: 100%;
  height: 3rem;
  padding: 0 1rem 0 2.8rem;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,186,0,.3);
  color: #fff;
  font-family: var(--font-body);
  font-size: .95rem;
  outline: none;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: border-color .2s;
}
.uid-input::placeholder { color: rgba(255,255,255,.35); }
.uid-input:focus { border-color: var(--elem-color); }

/* Search button */
.uid-search-btn {
  height: 3rem;
  padding: 0 1.6rem;
  background: linear-gradient(135deg, var(--elem-color) 0%, var(--elem-color-dark) 100%);
  border: none;
  color: #000;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: .06em;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: filter .2s, transform .15s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.uid-search-btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.uid-search-btn:active { transform: translateY(0); }
.uid-search-btn:disabled { filter: brightness(.6); cursor: not-allowed; transform: none; }

/* Spinner */
.uid-btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0,0,0,.3);
  border-top-color: #000;
  border-radius: 50%;
  animation: uid-spin .7s linear infinite;
}
@keyframes uid-spin { to { transform: rotate(360deg); } }

/* Hint */
.uid-hint {
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  text-align: left;
  line-height: 1.5;
}

/* Result card */
.uid-result { margin-top: 1.25rem; }
.uid-result-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(255,186,0,.07);
  border: 1.5px solid rgba(255,186,0,.35);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  padding: 1.2rem 1.5rem;
  text-align: left;
  animation: uid-fadein .35s ease;
}
@keyframes uid-fadein { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }

.uid-result-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,186,0,.15);
  border: 2px solid var(--elem-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--elem-color);
  flex-shrink: 0;
}
.uid-result-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.uid-result-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.45);
}
.uid-result-name {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  color: #fff;
  letter-spacing: .02em;
  line-height: 1;
}
.uid-result-sub {
  font-size: .78rem;
  color: rgba(255,255,255,.45);
}
.uid-result-antiguedad {
  font-size: .78rem;
  color: var(--elem-color);
  margin-top: .15rem;
}
.uid-result-badge {
  font-family: var(--font-heading);
  font-size: .88rem;
  letter-spacing: .07em;
  white-space: nowrap;
}

/* Error */
.uid-error {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: rgba(255,60,60,.08);
  border: 1.5px solid rgba(255,60,60,.3);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  padding: .9rem 1.2rem;
  color: #ff8080;
  font-size: .88rem;
  margin-top: .75rem;
  text-align: left;
  animation: uid-fadein .3s ease;
}

/* ---- Mobile ---- */
@media (max-width: 600px) {
  .uid-form-card { padding: 1.5rem 1rem 1.2rem; }
  .uid-form-row { flex-direction: column; gap: .6rem; }
  .uid-search-btn { width: 100%; justify-content: center; height: 3rem; }
  .uid-result-card { flex-wrap: wrap; gap: .9rem; }
  .uid-result-badge { width: 100%; }
}

/* =============================================================
   REGISTRO / YA REGISTRADO
   ============================================================= */

/* Tarjeta "Ya registrado" */
.uid-registered { margin-top: 1.25rem; animation: uid-fadein .35s ease; }
.uid-registered-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(0,200,80,.06);
  border: 1.5px solid rgba(0,220,80,.3);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  padding: 1.2rem 1.5rem;
  text-align: left;
}
.uid-registered-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(0,200,80,.12);
  border: 2px solid #00dc50;
  display: flex; align-items: center; justify-content: center;
  color: #00dc50;
  flex-shrink: 0;
}
.uid-registered-info {
  display: flex; flex-direction: column; gap: .3rem;
}
.uid-registered-badge {
  font-family: var(--font-heading);
  font-size: .88rem;
  letter-spacing: .07em;
}
.uid-registered-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: #fff;
  line-height: 1;
}
.uid-registered-details {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  align-items: center;
}
.uid-reg-sep { color: rgba(255,255,255,.25); }
.uid-registered-actions {
  margin-top: .55rem;
}
.uid-edit-btn {
  border: 1px solid rgba(255,186,0,.45);
  background: rgba(255,186,0,.08);
  color: var(--elem-color);
  font-family: var(--font-heading);
  letter-spacing: .06em;
  font-size: .9rem;
  height: 2.2rem;
  padding: 0 .9rem;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: filter .2s, transform .15s;
}
.uid-edit-btn:hover { filter: brightness(1.16); transform: translateY(-1px); }
.uid-edit-btn:active { transform: translateY(0); }

/* Formulario de registro */
.uid-reg-form {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,186,0,.18);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  padding: 1.75rem 2rem;
  margin-top: 1.25rem;
  animation: uid-fadein .35s ease;
}
.reg-form-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--elem-color);
  letter-spacing: .04em;
  margin-bottom: 1.25rem;
  text-align: center;
}
.reg-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}
.reg-field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.reg-field:first-child,
.reg-field:nth-child(2) { grid-column: span 1; }
.reg-field:nth-child(3),
.reg-field:nth-child(4),
.reg-field:nth-child(5) { grid-column: span 2; }
.reg-label {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: rgba(255,255,255,.5);
}
.reg-readonly {
  background: rgba(255,255,255,.04) !important;
  color: rgba(255,255,255,.55) !important;
  cursor: default;
}
.reg-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%23FFBA00'%3E%3Cpath d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.reg-select option { background: #111; color: #fff; }
.reg-tel-wrap {
  display: flex;
  gap: .5rem;
  align-items: center;
}
.reg-indicativo {
  background: rgba(255,186,0,.15);
  border: 1.5px solid rgba(255,186,0,.4);
  color: var(--elem-color);
  font-family: var(--font-heading);
  font-size: .95rem;
  padding: 0 .75rem;
  height: 3rem;
  display: flex;
  align-items: center;
  white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  flex-shrink: 0;
}
.reg-tel-wrap .uid-input { flex: 1; }
.reg-submit-btn {
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
  font-size: 1.05rem;
}

/* Éxito */
.uid-success {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: rgba(0,200,80,.08);
  border: 1.5px solid rgba(0,220,80,.3);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  padding: .9rem 1.2rem;
  color: #4fffaa;
  font-size: .9rem;
  margin-top: .75rem;
  animation: uid-fadein .3s ease;
}

/* =============================================================
   REFERIDOS
   ============================================================= */
.section-referrals {
  background: linear-gradient(180deg, #0d0d0d 0%, #121212 100%);
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}

.section-referrals::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 45% at 15% 0%, rgba(255,186,0,.08) 0%, transparent 68%);
  pointer-events: none;
}

.referrals-inner {
  position: relative;
  z-index: 2;
}

.ref-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.ref-card {
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,186,0,.2);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  padding: 1.4rem;
}

.ref-card-title {
  font-family: var(--font-heading);
  color: var(--elem-color);
  font-size: 1.25rem;
  letter-spacing: .04em;
  margin-bottom: .35rem;
}

.ref-card-sub {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 1rem;
}

.ref-search-row {
  display: flex;
  gap: .65rem;
}

.ref-search-row .uid-input {
  flex: 1;
}

.ref-status {
  margin-top: 1rem;
  background: rgba(255,186,0,.06);
  border: 1px solid rgba(255,186,0,.25);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  padding: 1rem;
}

.ref-level-row,
.ref-stats-row {
  display: flex;
  justify-content: space-between;
  gap: .65rem;
  align-items: center;
  margin-bottom: .4rem;
}

.ref-level-label {
  color: rgba(255,255,255,.5);
  font-size: .8rem;
}

.ref-level-value {
  font-family: var(--font-heading);
  color: var(--elem-color);
  font-size: 1.15rem;
}

.ref-stats-row span {
  font-size: .8rem;
  color: rgba(255,255,255,.65);
}

.ref-link-row {
  display: flex;
  gap: .5rem;
  margin-top: .75rem;
}

.ref-link-input {
  flex: 1;
  font-size: .75rem;
}

.ref-ranking-card {
  margin-top: 1rem;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,186,0,.2);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  padding: 1.25rem;
}

.ref-ranking-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
}

.ranking-list {
  list-style: none;
  margin: .75rem 0 0;
  padding: 0;
  display: grid;
  gap: .45rem;
}

.ranking-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: .6rem;
  align-items: center;
  background: rgba(255,186,0,.05);
  border: 1px solid rgba(255,186,0,.16);
  padding: .55rem .7rem;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.ranking-pos {
  font-family: var(--font-heading);
  color: var(--elem-color);
  letter-spacing: .05em;
  font-size: .95rem;
}

.ranking-name {
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
}

.ranking-meta {
  color: rgba(255,255,255,.62);
  font-size: .78rem;
  text-align: right;
}

/* Mobile */
@media (max-width: 900px) {
  .ref-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .uid-registered-card { flex-direction: column; align-items: flex-start; gap: .9rem; }
  .uid-edit-btn { width: 100%; }
  .ref-ranking-head { flex-direction: column; align-items: stretch; }
  .ranking-item {
    grid-template-columns: 1fr;
    gap: .25rem;
  }
  .ranking-meta { text-align: left; }
  .ref-search-row { flex-direction: column; }
  .ref-link-row { flex-direction: column; }
  .reg-fields { grid-template-columns: 1fr; }
  .reg-field:nth-child(n) { grid-column: span 1; }
  .uid-reg-form { padding: 1.25rem 1rem; }
}

/* =========================================================
   REFERIDOS — UI mejorada (header + tarjetas premio + barras)
   ========================================================= */
.ref-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.ref-decor-img {
  position: absolute;
  opacity: .07;
  filter: drop-shadow(0 0 30px rgba(255,186,0,.4));
}
.ref-decor-booyah {
  top: -40px; right: -60px;
  width: 280px;
  transform: rotate(-8deg);
}
.ref-decor-squad {
  bottom: -50px; left: -40px;
  width: 320px;
  opacity: .05;
}

.ref-header { position: relative; z-index: 2; text-align: center; }
.ref-header-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: linear-gradient(135deg, rgba(255,186,0,.18), rgba(255,140,0,.08));
  border: 1px solid rgba(255,186,0,.4);
  color: var(--elem-color);
  font-family: var(--font-heading);
  font-size: .72rem;
  letter-spacing: .15em;
  padding: .45rem 1rem;
  margin-bottom: 1rem;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

/* Tarjetas de premio (3 niveles) */
.ref-rewards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}
.ref-reward-card {
  position: relative;
  background: linear-gradient(160deg, rgba(20,20,20,.95) 0%, rgba(10,10,10,.95) 100%);
  border: 1px solid rgba(255,255,255,.08);
  padding: 1.4rem 1.2rem 1.2rem;
  text-align: center;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  transition: transform .25s ease, border-color .25s ease;
}
.ref-reward-card:hover { transform: translateY(-4px); }
.ref-reward-glow {
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at 50% 0%, var(--tier-color, rgba(255,186,0,.5)) 0%, transparent 55%);
  opacity: .35;
  pointer-events: none;
}
.ref-reward-icon {
  position: relative;
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,0,0,.6) 0%, rgba(0,0,0,.9) 100%);
  border: 2px solid var(--tier-color, var(--elem-color));
  color: var(--tier-color, var(--elem-color));
  margin-bottom: .8rem;
  box-shadow: 0 0 20px var(--tier-color, rgba(255,186,0,.5));
}
.ref-reward-tier {
  font-family: var(--font-heading);
  font-size: .7rem;
  letter-spacing: .15em;
  color: rgba(255,255,255,.55);
  margin-bottom: .15rem;
}
.ref-reward-name {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  letter-spacing: .08em;
  color: var(--tier-color, var(--elem-color));
  margin: 0 0 .4rem;
  text-shadow: 0 0 14px var(--tier-color, rgba(255,186,0,.6));
}
.ref-reward-target {
  display: inline-block;
  font-size: .75rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  padding: .2rem .65rem;
  border-radius: 999px;
  margin-bottom: .65rem;
  color: rgba(255,255,255,.7);
}
.ref-reward-prize {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: #fff;
  letter-spacing: .04em;
}
.ref-reward-silver { --tier-color: #c8d3dd; border-color: rgba(200,211,221,.3); }
.ref-reward-gold { --tier-color: #ffba00; border-color: rgba(255,186,0,.45); }
.ref-reward-diamond { --tier-color: #6ad7ff; border-color: rgba(106,215,255,.45); }

/* Tarjeta de Estado de Cuenta (cabecera con icono) */
.ref-card-head {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  margin-bottom: 1rem;
}
.ref-card-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(255,186,0,.2), rgba(255,140,0,.05));
  border: 1px solid rgba(255,186,0,.35);
  color: var(--elem-color);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

/* Mini barra de progreso en estado de cuenta */
.ref-mini-progress {
  position: relative;
  height: 8px;
  background: rgba(255,255,255,.08);
  margin: .65rem 0;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px));
}
.ref-mini-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff8c00 0%, #ffba00 50%, #ffd700 100%);
  box-shadow: 0 0 12px rgba(255,186,0,.6);
  transition: width .8s cubic-bezier(.2,.8,.2,1);
}
.ref-link-hint {
  font-size: .72rem;
  color: rgba(255,255,255,.45);
  margin-top: .55rem;
}

@media (max-width: 760px) {
  .ref-rewards-row { grid-template-columns: 1fr; }
  .ref-decor-booyah { width: 180px; }
  .ref-decor-squad { display: none; }
}

/* =========================================================
   PERFIL DE REFERIDO (vista cuando ?ref=CODE)
   ========================================================= */
body.ref-profile-active main > section:not(.ref-profile-view),
body.ref-profile-active .home-app-bottom-bar,
body.ref-profile-active footer { display: none !important; }

.ref-profile-view {
  position: relative;
  min-height: 100vh;
  background: #050505;
  color: #fff;
  padding: calc(var(--header-height, 73px) + 1.5rem) 0 3rem;
  overflow: hidden;
}
.ref-profile-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.ref-profile-bg-img {
  position: absolute;
  top: 0; right: -10%;
  height: 100%;
  width: auto;
  object-fit: cover;
  opacity: .35;
  filter: saturate(1.1) contrast(1.05);
}
.ref-profile-bg-grad {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 0% 30%, rgba(255,186,0,.18) 0%, transparent 60%),
    linear-gradient(135deg, rgba(5,5,5,.92) 0%, rgba(5,5,5,.65) 60%, rgba(5,5,5,.85) 100%);
}
.ref-profile-watermark {
  position: absolute;
  bottom: -30px; left: -30px;
  width: 240px;
  opacity: .04;
  pointer-events: none;
}

.ref-profile-inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
}

.ref-profile-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.ref-profile-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  transition: opacity .2s;
}
.ref-profile-brand:hover { opacity: .8; }
.ref-profile-brand-logo { width: 36px; height: 36px; object-fit: contain; }
.ref-profile-brand-text {
  font-family: var(--font-heading);
  font-size: .9rem;
  letter-spacing: .15em;
  color: rgba(255,255,255,.65);
}
.ref-profile-brand-text strong { color: var(--elem-color); }

.ref-profile-nav {
  display: flex;
  align-items: center;
  gap: .15rem;
  flex-wrap: wrap;
}
.ref-profile-nav-link {
  font-family: var(--font-heading);
  font-size: .7rem;
  letter-spacing: .1em;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  padding: .4rem .7rem;
  border-radius: 3px;
  transition: color .2s, background .2s;
}
.ref-profile-nav-link:hover {
  color: var(--elem-color);
  background: rgba(255,186,0,.08);
}
@media (max-width: 768px) {
  .ref-profile-nav { display: none; }
}
.ref-profile-exit {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  font-family: var(--font-heading);
  font-size: .75rem;
  letter-spacing: .1em;
  padding: .55rem 1rem;
  cursor: pointer;
  transition: background .2s;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.ref-profile-exit:hover { background: rgba(255,90,90,.18); border-color: rgba(255,90,90,.4); }

.ref-profile-loading {
  text-align: center;
  padding: 5rem 0;
  color: rgba(255,255,255,.6);
}
.ref-profile-loading .uid-btn-spinner {
  margin: 0 auto 1rem;
}
.ref-profile-error {
  text-align: center;
  padding: 4rem 1rem;
  color: rgba(255,255,255,.7);
}
.ref-profile-error svg { color: rgba(255,90,90,.7); margin-bottom: 1rem; }
.ref-profile-error h2 {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 1.5rem;
  letter-spacing: .05em;
  margin: 0 0 .5rem;
}

/* Contenido del perfil */
.ref-profile-content {
  display: grid;
  gap: 1.5rem;
}

.ref-profile-hero {
  background: linear-gradient(135deg, rgba(20,20,20,.85) 0%, rgba(10,10,10,.6) 100%);
  border: 1px solid rgba(255,186,0,.3);
  padding: 2rem 1.8rem;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  position: relative;
  overflow: hidden;
}
.ref-profile-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 240px; height: 100%;
  background: radial-gradient(circle at right, rgba(255,186,0,.2) 0%, transparent 70%);
  pointer-events: none;
}
.ref-profile-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: linear-gradient(135deg, #ffba00, #ff8c00);
  color: #000;
  font-family: var(--font-heading);
  font-size: .7rem;
  letter-spacing: .15em;
  padding: .35rem .85rem;
  margin-bottom: .8rem;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.ref-profile-hero-name {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: .04em;
  margin: 0 0 .8rem;
  color: #fff;
  text-shadow: 0 0 24px rgba(255,186,0,.5);
  line-height: 1;
}
.ref-profile-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  color: rgba(255,255,255,.75);
  font-size: .9rem;
}
.ref-profile-meta-item {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.ref-profile-meta-item svg { color: var(--elem-color); }
.ref-profile-meta-item strong { color: var(--elem-color); font-weight: 700; }

/* Secciones internas */
.ref-profile-section-title {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-family: var(--font-heading);
  color: #fff;
  font-size: 1.3rem;
  letter-spacing: .04em;
  margin: 0 0 1rem;
}
.ref-section-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #ffba00, #ff8c00);
  color: #000;
  font-family: var(--font-heading);
  font-size: .9rem;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

/* Instrucciones */
.ref-profile-instructions,
.ref-profile-progress-card,
.ref-profile-form-card {
  background: rgba(20,20,20,.78);
  border: 1px solid rgba(255,255,255,.08);
  padding: 1.5rem;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.ref-profile-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.ref-profile-step {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  padding: 1.1rem;
  text-align: left;
}
.ref-step-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: rgba(255,186,0,.12);
  border: 1px solid rgba(255,186,0,.35);
  color: var(--elem-color);
  margin-bottom: .8rem;
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}
.ref-profile-step h3 {
  font-family: var(--font-heading);
  color: #fff;
  font-size: .95rem;
  letter-spacing: .04em;
  margin: 0 0 .4rem;
}
.ref-profile-step p {
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  line-height: 1.5;
  margin: 0;
}
.ref-profile-step strong { color: var(--elem-color); }

/* Barra de progreso principal */
.ref-progress-track {
  position: relative;
  height: 28px;
  background: rgba(255,255,255,.06);
  margin: .5rem 0 1.4rem;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  border: 1px solid rgba(255,186,0,.2);
}
.ref-progress-fill {
  height: 100%;
  width: 0%;
  background:
    linear-gradient(90deg, #ff4500 0%, #ff8c00 35%, #ffba00 70%, #ffd700 100%);
  box-shadow: 0 0 18px rgba(255,186,0,.7);
  transition: width 1.2s cubic-bezier(.2,.8,.2,1);
  position: relative;
}
.ref-progress-fill::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.2) 0%, transparent 50%);
}
.ref-progress-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: .85rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.7);
  letter-spacing: .05em;
}

/* Tiers */
.ref-tiers {
  display: grid;
  gap: .75rem;
}
.ref-tier {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  grid-template-rows: auto auto;
  gap: .25rem .85rem;
  align-items: center;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  padding: .8rem 1rem;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.ref-tier.reached { border-color: rgba(255,186,0,.5); background: rgba(255,186,0,.07); }
.ref-tier-icon {
  grid-row: span 2;
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,.5);
  border: 2px solid rgba(255,255,255,.12);
  border-radius: 50%;
  color: rgba(255,255,255,.4);
}
.ref-tier.reached .ref-tier-icon {
  border-color: var(--elem-color);
  color: #000;
  background: linear-gradient(135deg, #ffba00, #ff8c00);
  box-shadow: 0 0 14px rgba(255,186,0,.6);
}
.ref-tier-name {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 1rem;
  letter-spacing: .05em;
}
.ref-tier-target {
  font-size: .75rem;
  color: rgba(255,255,255,.5);
}
.ref-tier-prize {
  grid-row: span 2;
  font-family: var(--font-heading);
  color: var(--elem-color);
  font-size: .85rem;
  text-align: right;
  letter-spacing: .03em;
}
.ref-tier-bar {
  grid-column: 1 / -1;
  height: 4px;
  background: rgba(255,255,255,.07);
  margin-top: .35rem;
  overflow: hidden;
}
.ref-tier-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff8c00, #ffba00);
  transition: width 1s ease;
}
.ref-tier-diamante.reached .ref-tier-icon { background: linear-gradient(135deg, #6ad7ff, #2196f3); border-color: #6ad7ff; }
.ref-tier-plata.reached .ref-tier-icon { background: linear-gradient(135deg, #e8eef3, #aab8c5); border-color: #c8d3dd; color: #000; }

/* Form CTA grande */
.ref-profile-cta {
  margin-top: 1rem;
  width: 100%;
  font-size: 1rem !important;
  padding: 1rem 1.5rem !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: .6rem;
}
.ref-profile-form-card.done .reg-fields,
.ref-profile-form-card.done .ref-profile-cta { opacity: .55; pointer-events: none; }

@media (max-width: 760px) {
  .ref-profile-steps { grid-template-columns: 1fr; }
  .ref-profile-bg-img { opacity: .2; right: -50%; }
  .ref-profile-hero { padding: 1.5rem 1.2rem; }
  .ref-tier { grid-template-columns: 36px 1fr; }
  .ref-tier-prize { grid-column: 2; grid-row: 3; text-align: left; padding-top: .25rem; }
  .ref-tier-bar { grid-column: 1 / -1; }
}

/* =========================================================
   PROGRAMA DE REFERIDOS — Pasos "Cómo funciona"
   ========================================================= */
.ref-howto-card {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(20,20,28,0.92), rgba(12,12,18,0.96));
  border: 1px solid rgba(255, 186, 0, 0.18);
  border-radius: 14px;
  padding: 1.6rem 1.4rem 1.8rem;
  margin: 0 auto 2rem;
  max-width: 1100px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.ref-howto-title {
  font-family: 'Teko', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.5px;
  color: #fff;
  margin: 0 0 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
}

.ref-howto-title svg {
  color: var(--elem-color);
}

.ref-howto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.ref-howto-step {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 186, 0, 0.15);
  border-radius: 10px;
  padding: 1.1rem 1rem 1.1rem 1rem;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.ref-howto-step:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 186, 0, 0.45);
  background: rgba(255, 186, 0, 0.04);
}

.ref-howto-num {
  position: absolute;
  top: -12px;
  right: 12px;
  font-family: 'Teko', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f0f14;
  background: var(--elem-color);
  padding: 2px 10px;
  border-radius: 6px;
  letter-spacing: 1px;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(255, 186, 0, 0.4);
}

.ref-howto-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 186, 0, 0.12);
  border: 1px solid rgba(255, 186, 0, 0.35);
  color: var(--elem-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.7rem;
}

.ref-howto-step h4 {
  font-family: 'Teko', sans-serif;
  font-size: 1.25rem;
  color: #fff;
  margin: 0 0 0.4rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.ref-howto-step p {
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  line-height: 1.45;
}

.ref-howto-step p strong {
  color: var(--elem-color);
}

/* Tarjeta unificada (UID + estado) */
.ref-unified-card {
  position: relative;
  z-index: 2;
}

@media (max-width: 760px) {
  .ref-howto-grid {
    grid-template-columns: 1fr;
  }
  .ref-howto-card {
    padding: 1.3rem 1.1rem 1.4rem;
  }
  .ref-howto-title {
    font-size: 1.35rem;
  }
}

/* =========================================================
   REFERIDOS — UX/UI v2 (mobile-first, mejor jerarquía)
   ========================================================= */

/* Hero stats (chips bajo el título) */
.ref-hero-sub {
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.5;
}
.ref-hero-stats {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}
.ref-hero-stat {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 186, 0, 0.08);
  border: 1px solid rgba(255, 186, 0, 0.25);
  border-radius: 10px;
  padding: 0.55rem 0.95rem;
  min-width: 78px;
}
.ref-hero-stat-num {
  font-family: 'Teko', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--elem-color);
  line-height: 1;
  letter-spacing: 0.5px;
}
.ref-hero-stat-lbl {
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hero card destacada (la del UID) */
.ref-hero-card {
  position: relative;
  border: 1px solid rgba(255, 186, 0, 0.35) !important;
  box-shadow: 0 0 0 1px rgba(255, 186, 0, 0.05),
              0 14px 40px rgba(0, 0, 0, 0.45),
              0 0 60px rgba(255, 186, 0, 0.08);
  margin-bottom: 2.5rem;
}
.ref-hero-card-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 186, 0, 0.15), transparent 40%, rgba(255, 140, 0, 0.1));
  pointer-events: none;
  opacity: 0.6;
  z-index: 0;
}
.ref-hero-card > * { position: relative; z-index: 1; }

.ref-card-icon-pulse {
  animation: refIconPulse 2.4s ease-in-out infinite;
}
@keyframes refIconPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 186, 0, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(255, 186, 0, 0); }
}

/* Toggle ¿Dónde encuentro mi UID? */
.uid-help-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: none;
  color: rgba(255, 186, 0, 0.85);
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0.5rem 0;
  margin-top: 0.4rem;
  transition: color 0.2s ease;
  text-decoration: underline;
  text-decoration-color: rgba(255, 186, 0, 0.3);
  text-underline-offset: 3px;
}
.uid-help-toggle:hover { color: var(--elem-color); }
.uid-help-toggle svg { transition: transform 0.2s ease; }
.uid-help-toggle-open svg { transform: rotate(180deg); }

.uid-help-panel {
  background: rgba(255, 186, 0, 0.06);
  border-left: 3px solid var(--elem-color);
  padding: 0.85rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  animation: refSlideDown 0.25s ease;
}
@keyframes refSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Etiquetas de sección (separadores entre bloques) */
.ref-section-label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0.5rem 0 1.2rem;
}
.ref-section-label-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 186, 0, 0.35), transparent);
}
.ref-section-label-text {
  font-family: 'Teko', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  white-space: nowrap;
}

/* Tarjeta de premio destacada (Oro) + ribbon "Más popular" */
.ref-reward-featured {
  transform: scale(1.04);
  border-color: rgba(255, 186, 0, 0.65) !important;
  box-shadow: 0 12px 40px rgba(255, 186, 0, 0.18);
}
.ref-reward-featured:hover {
  transform: scale(1.04) translateY(-4px);
}
.ref-reward-ribbon {
  position: absolute;
  top: 12px;
  right: -34px;
  transform: rotate(35deg);
  background: linear-gradient(135deg, #ffba00, #ff8c00);
  color: #0a0a0a;
  font-family: 'Teko', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 3px 36px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  z-index: 3;
}

/* Tarjeta de premio que coincide con el nivel actual del usuario */
.ref-reward-current {
  border-color: var(--tier-color) !important;
  box-shadow: 0 0 0 2px var(--tier-color), 0 8px 30px rgba(255, 186, 0, 0.25);
}
.ref-reward-current::after {
  content: '✓ TU NIVEL';
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--tier-color);
  color: #0a0a0a;
  font-family: 'Teko', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 10px;
  border-radius: 999px;
  z-index: 3;
}

/* Estado: header con badge de nivel + contador grande */
.ref-status {
  margin-top: 1rem;
  animation: refSlideDown 0.4s ease;
}
.ref-status-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(255, 186, 0, 0.08), rgba(0, 0, 0, 0.2));
  border: 1px solid rgba(255, 186, 0, 0.2);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
}
.ref-status-tier-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--elem-color);
  color: #0a0a0a;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  min-width: 90px;
  box-shadow: 0 4px 14px rgba(255, 186, 0, 0.4);
}
.ref-status-tier-badge[data-tier="plata"] { background: #c8d3dd; box-shadow: 0 4px 14px rgba(200, 211, 221, 0.4); }
.ref-status-tier-badge[data-tier="oro"] { background: #ffba00; box-shadow: 0 4px 14px rgba(255, 186, 0, 0.5); }
.ref-status-tier-badge[data-tier="diamante"] { background: #6ad7ff; box-shadow: 0 4px 14px rgba(106, 215, 255, 0.5); }
.ref-status-tier-badge[data-tier="legendario"] { background: linear-gradient(135deg, #ff00cc, #ffba00); color: #fff; }
.ref-status-tier-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  opacity: 0.8;
}
.ref-status-tier-value {
  font-family: 'Teko', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}
.ref-status-counter {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.ref-status-counter-num {
  font-family: 'Teko', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  text-shadow: 0 0 18px rgba(255, 186, 0, 0.4);
}
.ref-status-counter-lbl {
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ref-progress-block {
  margin-bottom: 1.4rem;
}
.ref-progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.5rem;
}
.ref-progress-labels span:last-child {
  color: var(--elem-color);
  font-weight: 600;
}

/* Bloque de link */
.ref-link-block {
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed rgba(255, 186, 0, 0.3);
  border-radius: 12px;
  padding: 1rem 1rem 1.1rem;
}
.ref-link-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}
.ref-link-label svg { color: var(--elem-color); }

.ref-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, var(--elem-color), #ff8c00);
  color: #0a0a0a;
  font-family: 'Teko', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  border: none;
  border-radius: 8px;
  padding: 0 1.2rem;
  height: 44px;
  min-width: 110px;
  cursor: pointer;
  text-transform: uppercase;
  transition: transform 0.15s ease, filter 0.2s ease, background 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 186, 0, 0.35);
}
.ref-copy-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.ref-copy-btn:active { transform: translateY(0); }
.ref-copy-btn-success {
  background: linear-gradient(135deg, #4ade80, #22c55e) !important;
  color: #fff !important;
}
.ref-copy-toast {
  margin-top: 0.7rem;
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
  animation: refSlideDown 0.25s ease;
}

/* Botones de share */
.ref-share-row {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.ref-share-title {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ref-share-btns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.ref-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex: 1;
  min-width: 110px;
  height: 46px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease, box-shadow 0.2s ease;
  color: #fff;
}
.ref-share-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.ref-share-btn:active { transform: translateY(0); }
.ref-share-wa {
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}
.ref-share-tg {
  background: linear-gradient(135deg, #29b6f6, #0088cc);
  box-shadow: 0 4px 12px rgba(41, 182, 246, 0.35);
}
.ref-share-native {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

/* Howto colapsable */
.ref-howto-details {
  margin: 0 auto 2rem;
  max-width: 1100px;
  background: rgba(20, 20, 28, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.ref-howto-summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
  font-family: 'Teko', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  color: #fff;
  text-transform: uppercase;
  list-style: none;
  user-select: none;
  transition: background 0.2s ease;
}
.ref-howto-summary::-webkit-details-marker { display: none; }
.ref-howto-summary:hover { background: rgba(255, 186, 0, 0.05); }
.ref-howto-summary svg:first-child { color: var(--elem-color); flex-shrink: 0; }
.ref-howto-summary span { flex: 1; }
.ref-howto-chevron { transition: transform 0.25s ease; flex-shrink: 0; opacity: 0.7; }
.ref-howto-details[open] .ref-howto-chevron { transform: rotate(180deg); }
.ref-howto-details .ref-howto-grid {
  padding: 0.5rem 1.2rem 1.4rem;
}

/* Mejoras del input principal */
.ref-hero-card .uid-input { height: 52px; font-size: 1rem; }
.ref-hero-card .uid-search-btn { height: 52px; font-size: 1.05rem; min-width: 130px; }

/* =========================================================
   MOBILE OPTIMIZATIONS
   ========================================================= */
@media (max-width: 760px) {
  .ref-hero-stats {
    justify-content: center;
    gap: 0.5rem;
  }
  .ref-hero-stat { flex: 1; min-width: 0; padding: 0.5rem 0.5rem; }
  .ref-hero-stat-num { font-size: 1.3rem; }
  .ref-hero-stat-lbl { font-size: 0.62rem; }

  .ref-hero-card { margin-bottom: 1.8rem; }
  .ref-hero-card .uid-input { height: 50px; font-size: 1rem; }
  .ref-hero-card .uid-search-btn { height: 50px; font-size: 1rem; }

  /* Tarjetas premio: scroll horizontal en móvil para que se vean las 3 sin tanto scroll vertical */
  .ref-rewards-row {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 0.7rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0.6rem 0.2rem 0.4rem;
    margin-left: -0.2rem;
    margin-right: -0.2rem;
    scrollbar-width: none;
  }
  .ref-rewards-row::-webkit-scrollbar { display: none; }
  .ref-reward-card {
    scroll-snap-align: center;
    min-width: 220px;
  }
  .ref-reward-featured { transform: scale(1); }
  .ref-reward-featured:hover { transform: translateY(-4px); }

  .ref-section-label-text { font-size: 1rem; }

  /* Estado: contador y tier en columna */
  .ref-status-header {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    text-align: center;
    padding: 1rem;
  }
  .ref-status-tier-badge { align-self: center; }
  .ref-status-counter { align-items: center; }
  .ref-status-counter-num { font-size: 2.2rem; }

  /* Link row: full width */
  .ref-link-row {
    flex-direction: column;
    gap: 0.5rem;
  }
  .ref-copy-btn {
    width: 100%;
    height: 48px;
  }
  .ref-link-input { font-size: 0.85rem !important; }

  /* Share buttons: 2 columnas */
  .ref-share-btns { gap: 0.5rem; }
  .ref-share-btn {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
    height: 48px;
    font-size: 0.82rem;
  }
  .ref-share-btn span { display: inline; }

  /* Howto colapsable: aún más compacto */
  .ref-howto-summary { font-size: 1rem; padding: 0.85rem 1rem; }
  .ref-howto-details .ref-howto-grid {
    grid-template-columns: 1fr;
    padding: 0.3rem 1rem 1.2rem;
  }
}

@media (max-width: 480px) {
  .ref-hero-stat-num { font-size: 1.15rem; }
  .ref-status-counter-num { font-size: 2rem; }
  .ref-status-tier-value { font-size: 1.3rem; }
  .ref-link-block { padding: 0.85rem; }
  .ref-share-btn span {
    /* Mantener label visible pero tipografía más chica */
    font-size: 0.78rem;
  }
}

/* =========================================================
   RANKING GLOBAL (sección independiente y llamativa)
   ========================================================= */
.section-ranking-showcase {
  position: relative;
  overflow: hidden;
  padding: 5.2rem 0 4.2rem;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 186, 0, 0.12), transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(255, 120, 0, 0.1), transparent 35%),
    linear-gradient(180deg, #090909 0%, #111114 60%, #090909 100%);
}

.section-ranking-showcase::before,
.section-ranking-showcase::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.section-ranking-showcase::before {
  width: 300px;
  height: 300px;
  left: -110px;
  top: 35px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 186, 0, 0.2), transparent 70%);
  filter: blur(8px);
}

.section-ranking-showcase::after {
  width: 220px;
  height: 220px;
  right: -70px;
  bottom: -30px;
  border: 1px solid rgba(255, 186, 0, 0.25);
  transform: rotate(28deg);
  opacity: 0.35;
}

.ranking-showcase-inner {
  position: relative;
  z-index: 2;
}

.ranking-showcase-head {
  max-width: 760px;
  margin: 0 auto 1.4rem;
  text-align: center;
}

.ranking-showcase-badge {
  margin: 0 auto .85rem;
  display: inline-flex;
}

.ranking-showcase-sub {
  margin: 0;
}

.ranking-showcase-card {
  max-width: 980px;
  margin: 0 auto;
  background: linear-gradient(160deg, rgba(22, 22, 26, 0.94) 0%, rgba(10, 10, 12, 0.97) 100%);
  border: 1px solid rgba(255, 186, 0, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 186, 0, 0.08),
    0 18px 45px rgba(0, 0, 0, 0.5),
    0 0 70px rgba(255, 186, 0, 0.11);
  padding: 1.45rem;
}

.ranking-showcase-card-head {
  align-items: center;
}

.ranking-refresh-btn {
  min-height: 44px;
  border: 1px solid rgba(255, 186, 0, 0.45);
  background: rgba(255, 186, 0, 0.08);
  color: var(--elem-color);
  font-weight: 700;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}

.ranking-refresh-btn:hover {
  background: var(--elem-color);
  color: #121212;
  transform: translateY(-1px);
}

.ranking-showcase-list {
  gap: .62rem;
  margin-top: 1rem;
}

.ranking-showcase-list .ranking-item {
  position: relative;
  grid-template-columns: 78px 1fr auto;
  padding: .72rem .82rem;
  border: 1px solid rgba(255, 186, 0, 0.28);
  background: linear-gradient(90deg, rgba(255, 186, 0, 0.16), rgba(255, 186, 0, 0.04));
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.ranking-showcase-list .ranking-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 186, 0, 0.48);
  background: linear-gradient(90deg, rgba(255, 186, 0, 0.22), rgba(255, 186, 0, 0.06));
}

.ranking-showcase-list .ranking-pos {
  font-size: 1.05rem;
}

.ranking-showcase-list .ranking-name {
  font-size: .96rem;
  letter-spacing: .01em;
}

.ranking-showcase-list .ranking-meta {
  font-size: .8rem;
}

.ranking-showcase-list .ranking-item:nth-child(1) {
  border-color: rgba(255, 210, 84, 0.85);
  background: linear-gradient(90deg, rgba(255, 210, 84, 0.3), rgba(255, 186, 0, 0.08));
  box-shadow: 0 8px 24px rgba(255, 186, 0, 0.18);
}

.ranking-showcase-list .ranking-item:nth-child(1) .ranking-pos::after {
  content: " 👑";
}

.ranking-showcase-list .ranking-item:nth-child(2) {
  border-color: rgba(194, 204, 214, 0.62);
  background: linear-gradient(90deg, rgba(194, 204, 214, 0.2), rgba(255, 255, 255, 0.03));
}

.ranking-showcase-list .ranking-item:nth-child(3) {
  border-color: rgba(232, 156, 87, 0.62);
  background: linear-gradient(90deg, rgba(232, 156, 87, 0.2), rgba(255, 255, 255, 0.03));
}

@media (max-width: 760px) {
  .section-ranking-showcase {
    padding: 4.3rem 0 3.4rem;
  }

  .ranking-showcase-head {
    margin-bottom: 1rem;
  }

  .ranking-showcase-card {
    padding: 1rem;
  }

  .ranking-showcase-card-head {
    flex-direction: column;
    align-items: stretch;
  }

  .ranking-refresh-btn {
    width: 100%;
    min-height: 48px;
  }

  .ranking-showcase-list .ranking-item {
    grid-template-columns: 1fr;
    gap: .24rem;
    padding: .75rem;
  }

  .ranking-showcase-list .ranking-meta {
    text-align: left;
  }
}

