
/* KOC INDEX USER FLOW V1 */

.header-quick-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-quick-actions .btn {
  white-space: nowrap;
}

.start-flow-section {
  position: relative;
}

.start-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.start-flow-card {
  position: relative;
  min-height: 300px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 30px;
  border: 1px solid rgba(251,191,36,.20);
  background:
    linear-gradient(135deg, rgba(2,6,15,.92), rgba(2,6,15,.72)),
    url("assets/shop/hero-shop.jpg") center/cover no-repeat;
  box-shadow: 0 24px 80px rgba(0,0,0,.36);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.start-flow-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 18%, rgba(251,191,36,.13), transparent 34%),
    linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.58));
  pointer-events: none;
}

.start-flow-card > * {
  position: relative;
  z-index: 1;
}

.start-flow-card h3 {
  margin: 14px 0 10px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.start-flow-card p {
  color: #dbe3ef;
  line-height: 1.65;
  margin-bottom: 22px;
}

.start-flow-number {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(251,191,36,.42);
  background: rgba(2,6,15,.62);
  color: #fde68a;
  font-size: 24px;
  font-weight: 950;
  box-shadow: 0 14px 40px rgba(0,0,0,.32);
}

.start-register {
  background:
    linear-gradient(135deg, rgba(18,5,12,.92), rgba(52,10,17,.64)),
    url("assets/shop/security-lab.jpg") center/cover no-repeat;
}

.start-launcher {
  background:
    linear-gradient(135deg, rgba(3,7,18,.92), rgba(25,40,80,.62)),
    url("assets/launcher-preview.png") center/cover no-repeat;
}

.start-account {
  background:
    linear-gradient(135deg, rgba(3,7,18,.92), rgba(58,36,8,.62)),
    url("assets/shop/hero-shop.jpg") center/cover no-repeat;
}

.start-flow-note {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(96,165,250,.20);
  background: rgba(2,6,15,.72);
  color: #dbe3ef;
  line-height: 1.7;
}

.start-flow-note code {
  color: #fde68a;
  background: rgba(0,0,0,.24);
  padding: 3px 7px;
  border-radius: 8px;
}

@media (max-width: 980px) {
  .header-quick-actions {
    display: none;
  }

  .start-flow-grid {
    grid-template-columns: 1fr;
  }

  .start-flow-card {
    min-height: 260px;
  }
}

@media (max-width: 620px) {
  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .start-flow-card {
    border-radius: 24px;
  }
}


/* KOC LIVE SERVER STATUS */
.koc-live-server-status {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(3,7,18,.62);
  color: #e5e7eb;
  font-weight: 850;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
}

.koc-live-server-status span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.live-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #fbbf24;
  box-shadow: 0 0 20px rgba(251,191,36,.70);
}

.live-dot.is-online {
  background: #22c55e;
  box-shadow: 0 0 20px rgba(34,197,94,.80);
}

.live-dot.is-offline {
  background: #ef4444;
  box-shadow: 0 0 20px rgba(239,68,68,.80);
}

.live-dot.is-loading {
  animation: kocPulseLive 1s infinite alternate;
}

@keyframes kocPulseLive {
  from { opacity: .45; transform: scale(.92); }
  to { opacity: 1; transform: scale(1.08); }
}

@media (max-width: 620px) {
  .koc-live-server-status {
    border-radius: 22px;
    align-items: flex-start;
  }
}


/* KOC HEADER CLEAN V2 */
.site-header {
  backdrop-filter: blur(18px);
}

.site-header .header-content {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 86px;
}

.site-header .brand {
  min-width: 0;
}

.site-header .brand-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
}

.site-header .brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header .brand-title {
  font-size: 14px;
  letter-spacing: .22em;
  line-height: 1.05;
}

.site-header .brand-subtitle {
  font-size: 11px;
  line-height: 1.25;
}

.site-header .main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 1.6vw, 24px);
  min-width: 0;
  overflow: hidden;
}

.site-header .main-nav a {
  white-space: nowrap;
  font-size: 14px;
  opacity: .92;
}

.site-header .main-nav a:hover {
  opacity: 1;
}

.site-header .header-quick-actions {
  justify-content: flex-end;
  flex: 0 0 auto;
}

.site-header .header-quick-actions .btn {
  min-height: 48px;
  padding-inline: 24px;
}

.header-status-row {
  display: flex;
  justify-content: flex-start;
  padding-bottom: 12px;
}

.header-status-row .koc-live-server-status {
  margin-top: 0;
}

.koc-live-server-status {
  padding: 10px 14px;
  font-size: 14px;
  border-color: rgba(255,255,255,.10);
  background: rgba(3,7,18,.70);
}

/* En pantallas medianas se ocultan enlaces secundarios para no apretar el header */
@media (max-width: 1220px) {
  .site-header .main-nav a[href="#discord"],
  .site-header .main-nav a[href="#reglas"],
  .site-header .main-nav a[href="#explora"] {
    display: none;
  }
}

@media (max-width: 1040px) {
  .site-header .header-content {
    grid-template-columns: auto auto auto;
  }

  .site-header .main-nav {
    display: none;
  }

  .site-header .menu-toggle {
    display: inline-flex;
  }

  .site-header .header-quick-actions {
    display: flex;
  }
}

@media (max-width: 720px) {
  .site-header .header-content {
    gap: 10px;
  }

  .site-header .brand-title {
    font-size: 12px;
  }

  .site-header .brand-subtitle {
    display: none;
  }

  .site-header .header-quick-actions {
    display: none;
  }

  .header-status-row {
    padding-bottom: 10px;
  }

  .koc-live-server-status {
    width: 100%;
    justify-content: flex-start;
    border-radius: 18px;
  }
}


/* KOC SERVER STRIP BANNER */
.koc-server-strip {
  position: relative;
  margin: 18px auto 22px;
  height: 78px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.26);
  background:
    linear-gradient(90deg, rgba(5,7,13,.96) 0%, rgba(5,7,13,.80) 34%, rgba(5,7,13,.26) 66%, rgba(5,7,13,.88) 100%),
    url("assets/img/server-strip-jedi.jpg") center center / cover no-repeat;
  box-shadow: 0 18px 54px rgba(0,0,0,.42);
}

.koc-server-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 50%, rgba(220,38,38,.22), transparent 34%),
    radial-gradient(circle at 72% 50%, rgba(96,165,250,.18), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.06), transparent 42%, rgba(0,0,0,.22));
  pointer-events: none;
}

.koc-server-strip-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 22px;
  color: #fff;
}

.koc-strip-status,
.koc-strip-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.koc-strip-status {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-width: 138px;
}

.koc-strip-status strong,
.koc-strip-item strong {
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 950;
  letter-spacing: .02em;
  text-shadow: 0 3px 14px rgba(0,0,0,.70);
  white-space: nowrap;
}

.koc-strip-item small {
  font-size: 10px;
  color: rgba(255,255,255,.62);
  text-transform: uppercase;
  letter-spacing: .11em;
  font-weight: 850;
}

.koc-strip-divider {
  color: rgba(255,255,255,.35);
  font-weight: 950;
}

.koc-copy-ip {
  margin-left: auto;
  border: 1px solid rgba(255,255,255,.17);
  background: rgba(255,255,255,.09);
  color: #fff;
  border-radius: 999px;
  min-height: 42px;
  padding: 0 18px;
  font-weight: 950;
  cursor: pointer;
  transition: .2s ease;
  backdrop-filter: blur(12px);
}

.koc-copy-ip:hover {
  background: rgba(220,38,38,.82);
  border-color: rgba(255,255,255,.26);
  transform: translateY(-1px);
}

.koc-strip-copy-message {
  position: absolute;
  right: 24px;
  bottom: 5px;
  font-size: 11px;
  color: #bbf7d0;
  margin: 0;
}

.koc-server-strip .live-dot {
  flex: 0 0 11px;
}

.hero-cinematic {
  grid-template-columns: 1fr;
  padding-top: 34px;
}

.hero-cinematic .hero-panel {
  max-width: 980px;
}

@media (max-width: 760px) {
  .koc-server-strip {
    height: auto;
    min-height: 128px;
    border-radius: 16px;
    background-position: center center;
  }

  .koc-server-strip-inner {
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 16px;
  }

  .koc-strip-divider {
    display: none;
  }

  .koc-copy-ip {
    width: 100%;
    margin-left: 0;
  }

  .koc-strip-copy-message {
    position: static;
    width: 100%;
  }
}


/* HERO SLIDER */
.hero-slider {
  margin-top: 8px;
  margin-bottom: 26px;
}

.hero-slider-shell {
  position: relative;
  min-height: 560px;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.22);
  background: rgba(6, 10, 18, 0.92);
  box-shadow: 0 28px 70px rgba(0,0,0,.34);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity .55s ease, transform .65s ease, visibility .55s ease;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(220,38,38,.18), transparent 30%),
    radial-gradient(circle at 78% 24%, rgba(59,130,246,.14), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 30%, rgba(0,0,0,.26));
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
}

.hero-slide-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 560px;
  max-width: 720px;
  padding: 42px 46px 88px;
}

.hero-slide-copy h1,
.hero-slide-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(52px, 7vw, 84px);
  line-height: .96;
  color: #fff;
  letter-spacing: -0.045em;
  font-weight: 1000;
  text-wrap: balance;
}

.hero-slide-copy h2 {
  font-size: clamp(44px, 6vw, 72px);
}

.hero-slide-copy h1 span,
.hero-slide-copy h2 span {
  color: #f8d4db;
}

.hero-slide-copy p {
  max-width: 660px;
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.62;
  color: rgba(255,255,255,.86);
  margin: 0 0 26px;
}

.hero-feature-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-feature-row span,
.launcher-mini-status span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(12, 18, 30, 0.62);
  color: rgba(255,255,255,.92);
  font-size: 14px;
  font-weight: 850;
  backdrop-filter: blur(10px);
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(7, 11, 18, 0.74);
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: .2s ease;
}

.hero-nav:hover {
  background: rgba(220,38,38,.82);
  transform: translateY(-50%) scale(1.04);
}

.hero-nav.prev { left: 22px; }
.hero-nav.next { right: 22px; }

.hero-slider-dots {
  position: absolute;
  left: 46px;
  bottom: 28px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

.hero-slider-dots button {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.34);
  cursor: pointer;
  transition: .2s ease;
}

.hero-slider-dots button.is-active {
  width: 34px;
  background: linear-gradient(90deg, #ef4444, #f59e0b);
}

@media (max-width: 960px) {
  .hero-slider-shell,
  .hero-slide-copy { min-height: 520px; }
  .hero-slide-copy { max-width: 100%; padding: 36px 28px 86px; }
  .hero-nav { display: none; }
}

@media (max-width: 640px) {
  .hero-slider-shell,
  .hero-slide-copy { min-height: 540px; }
  .hero-slide-copy h1,
  .hero-slide-copy h2 { font-size: clamp(40px, 11vw, 58px); }
  .hero-slide-copy p { font-size: 16px; }
  .hero-slider-dots { left: 28px; bottom: 22px; }
  .hero-feature-row span,
  .launcher-mini-status span { font-size: 12px; padding: 0 12px; min-height: 34px; }
}


/* HERO SLIDER CLEAN V2 */
.hero-slide-copy {
  padding-bottom: 72px;
}

.hero-slide-copy .hero-actions {
  margin-top: 4px;
}

.hero-slider-dots {
  bottom: 30px;
}

@media (max-width: 640px) {
  .hero-slide-copy {
    padding-bottom: 74px;
  }
}


/* HERO SLIDER MOBILE POLISH V3 */
@media (max-width: 820px) {
  .koc-server-strip {
    width: min(100% - 24px, 1180px);
    margin-top: 12px;
    margin-bottom: 16px;
  }

  .hero-slider {
    width: min(100% - 24px, 1180px);
    margin-top: 0;
  }

  .hero-slider-shell {
    min-height: 560px;
    border-radius: 24px;
  }

  .hero-slide {
    background-position: center center;
  }

  .hero-slide-copy {
    min-height: 560px;
    padding: 34px 24px 74px;
    justify-content: flex-end;
  }

  .hero-slide-copy .eyebrow {
    font-size: 11px;
    padding: 7px 11px;
    max-width: 100%;
  }

  .hero-slide-copy h1,
  .hero-slide-copy h2 {
    font-size: clamp(38px, 11vw, 58px);
    line-height: .98;
    margin-bottom: 14px;
  }

  .hero-slide-copy p {
    font-size: 15.5px;
    line-height: 1.55;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .hero-slide-copy .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  .hero-slide-copy .hero-actions .btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
    min-height: 48px;
  }

  .hero-slider-dots {
    left: 24px;
    bottom: 22px;
  }

  .hero-nav {
    display: none;
  }
}

@media (max-width: 520px) {
  .koc-server-strip {
    min-height: 150px;
    border-radius: 20px;
    background-position: 56% center;
  }

  .koc-server-strip-inner {
    align-content: center;
    padding: 15px;
    gap: 9px 12px;
  }

  .koc-strip-status {
    width: 100%;
    min-width: 0;
  }

  .koc-strip-item {
    flex: 1 1 calc(50% - 12px);
  }

  .koc-strip-status strong,
  .koc-strip-item strong {
    font-size: 15px;
  }

  .koc-strip-item small {
    font-size: 9px;
  }

  .koc-copy-ip {
    min-height: 42px;
    margin-top: 2px;
  }

  .hero-slider-shell {
    min-height: 590px;
    border-radius: 22px;
  }

  .hero-slide-copy {
    min-height: 590px;
    padding: 30px 20px 72px;
  }

  .hero-slide-copy h1,
  .hero-slide-copy h2 {
    font-size: clamp(36px, 12vw, 50px);
    letter-spacing: -0.035em;
  }

  .hero-slide-copy p {
    font-size: 15px;
  }
}


/* DISCORD SECTION BACKGROUND V1 */
#discord .discord-card,
#discord .cta-card,
#discord .community-card,
section#discord,
.discord-section {
  position: relative;
  overflow: hidden;
}

#discord .discord-card,
#discord .cta-card,
#discord .community-card,
section#discord > .cta-card,
.discord-section {
  background:
    linear-gradient(90deg, rgba(4,8,18,.95) 0%, rgba(4,8,18,.84) 36%, rgba(4,8,18,.46) 68%, rgba(4,8,18,.90) 100%),
    url("assets/img/discord-jedi-conversation.png") center center / cover no-repeat !important;
  border-color: rgba(96,165,250,.24);
}

#discord .discord-card::before,
#discord .cta-card::before,
#discord .community-card::before,
section#discord > .cta-card::before,
.discord-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 25%, rgba(59,130,246,.18), transparent 32%),
    radial-gradient(circle at 72% 45%, rgba(220,38,38,.12), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.045), transparent 42%, rgba(0,0,0,.28));
  pointer-events: none;
}

#discord .discord-card > *,
#discord .cta-card > *,
#discord .community-card > *,
section#discord > .cta-card > *,
.discord-section > * {
  position: relative;
  z-index: 2;
}

@media (max-width: 760px) {
  #discord .discord-card,
  #discord .cta-card,
  #discord .community-card,
  section#discord > .cta-card,
  .discord-section {
    background:
      linear-gradient(180deg, rgba(4,8,18,.94) 0%, rgba(4,8,18,.76) 52%, rgba(4,8,18,.94) 100%),
      url("assets/img/discord-jedi-conversation.png") 58% center / cover no-repeat !important;
  }
}


/* DISCORD CLEAN WITHOUT SIDE CARD V2 */
#discord .discord-card,
#discord .cta-card,
#discord .community-card,
section#discord > .cta-card,
.discord-section {
  min-height: 520px;
}

#discord .discord-layout,
.discord-layout,
#discord .community-layout,
.community-layout {
  grid-template-columns: minmax(0, 760px) !important;
}

#discord .discord-side-card,
#discord .discord-info-card,
#discord .community-side-card,
#discord .community-info-card {
  display: none !important;
}

#discord .discord-card,
#discord .cta-card,
#discord .community-card {
  padding-right: clamp(28px, 8vw, 96px);
}

@media (max-width: 760px) {
  #discord .discord-card,
  #discord .cta-card,
  #discord .community-card,
  section#discord > .cta-card,
  .discord-section {
    min-height: auto;
  }

  #discord .discord-card,
  #discord .cta-card,
  #discord .community-card {
    padding-right: 24px;
  }
}


/* DISCORD REMOVE EMPTY SIDE BOX V3 */
#discord .discord-side-card,
#discord .discord-info-card,
#discord .discord-visual,
#discord .community-side-card,
#discord .community-info-card,
#discord .server-active-card,
#discord .discord-extra-card,
#discord .discord-card-right,
#discord .discord-panel-right,
.discord-side-card,
.discord-info-card,
.discord-visual,
.community-side-card,
.community-info-card,
.server-active-card,
.discord-extra-card,
.discord-card-right,
.discord-panel-right {
  display: none !important;
}

#discord .discord-layout,
#discord .community-layout,
.discord-layout,
.community-layout {
  display: block !important;
}

#discord .discord-card,
#discord .community-card,
#discord .cta-card,
section#discord > .cta-card,
.discord-section {
  min-height: 520px;
}

#discord .discord-card > div,
#discord .community-card > div,
#discord .cta-card > div {
  max-width: 760px;
}
