/* ==============
   Englark Servers
   ============== */
:root {
  --bg: #0b0f14;
  --bg2: #111823;
  --card: #0f1622;
  --primary: #22d3ee;
  --accent: #38bdf8;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg) fixed no-repeat center/cover;
  /* Reemplaza esta imagen por la tuya */
  background-image: url('../imagen/fondo6.png');
}

/* Helpers */
.container {
  width: min(1200px, 92%);
  margin-inline: auto
}

.mt-2 {
  margin-top: .75rem
}

.mt-3 {
  margin-top: 1rem
}

.w-full {
  width: 100%
}

.small {
  font-size: .9rem
}

.muted {
  color: var(--muted)
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 15, 20, .7);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem 0
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--text)
}

.logo-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 18px rgba(34, 211, 238, .6)
}

.brand h1 {
  font-size: 1.25rem;
  margin: 0;
  letter-spacing: .3px
}

.menu-toggle {
  margin-left: auto;
  display: none;
  border: 1px solid rgba(255, 255, 255, .1);
  background: transparent;
  color: var(--text);
  padding: .45rem .6rem;
  border-radius: .6rem;
  cursor: pointer
}

.nav {
  display: flex;
  gap: .5rem;
  margin-left: auto;
  flex-wrap: wrap
}

.nav-link {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .12);
  color: var(--text);
  padding: .5rem .8rem;
  border-radius: .7rem;
  cursor: pointer
}

.nav-link.active {
  background: linear-gradient(135deg, rgba(34, 211, 238, .2), rgba(56, 189, 248, .15));
  border-color: rgba(56, 189, 248, .5)
}

/* Views */
.view {
  display: none;
  min-height: calc(100dvh - 72px);
  padding: 2rem 0
}

.view.active {
  display: block
}

.hero-overlay {
  min-height: calc(100dvh - 72px);
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(11, 15, 20, .55), rgba(11, 15, 20, .85));
}

.hero {
  text-align: center
}

.hero h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: .5rem 0 0
}

.hero h2 span {
  color: var(--primary)
}

.hero p {
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 1rem
}

.cta-row {
  display: flex;
  gap: .8rem;
  justify-content: center;
  flex-wrap: wrap
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1rem;
  border-radius: .9rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .14);
  color: var(--text);
  box-shadow: var(--shadow);
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #001018;
  border: none
}

.btn.ghost {
  background: rgba(255, 255, 255, .03)
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem
}

.botn {
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: 0.3s;
}

.botn.primary {
  background: linear-gradient(45deg, #22d3ee, #38bdf8);
  color: #ffffff91;
}

.botn-primary:hover {
  opacity: 0.85;
}

.botn-danger {
  background: linear-gradient(45deg, #fb7185, #f43f5e);
  color: #ff0404;
}

.botn-danger:hover {
  opacity: 0.85;
}

.mt-2 {
  margin-top: 8px;
}

.my-2 {
  margin: 12px 0;
}

.my-3 {
  margin: 16px 0;
}

/* Cards & grids */
.card {
  background: linear-gradient(180deg, rgba(2, 2, 2, 0.534));
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: var(--shadow)
}

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

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

.gap {
  gap: 1rem
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* alinea a la izquierda */
  margin-bottom: 1rem;
  background: transparent;
  /* sin fondo a ancho completo */
}

/* Estilo solo para la “píldora” del select */
.section-head .filters {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(29, 28, 28, .233);
  border: 1px solid rgba(255, 255, 255, .12);
  padding: .45rem .6rem;
  border-radius: .6rem;
}

/* El select no ocupa todo el ancho */
.filters select {
  width: auto;
  min-width: 200px;
  /* ajusta a tu gusto */
  background: transparent;
  color: var(--text);
  border: none;
  /* ya lo envuelve el borde de .filters */
  padding: .35rem .4rem .35rem .2rem;
  appearance: none;
}

/* (Opcional) añade una flecha bonita al select */
.filters {
  position: relative;
}

.filters::after {
  content: "▾";
  position: absolute;
  right: .5rem;
  pointer-events: none;
  opacity: .8;
}


/* Modal grid buttons */
.modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .6rem
}

/* Server grid */
.server-grid {
  display: grid;
  gap: .8rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.server-card {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.623));
  border: 1px transparent rgba(0, 0, 0, 0.959);
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: .9rem;
  border-radius: .9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  overflow: hidden;
}

.server-card h5 {
  margin: .2rem 0 .4rem
}

.badge {
  display: inline-block;
  font-size: .75rem;
  padding: .15rem .45rem;
  border-radius: .55rem;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12)
}

.server-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: .9rem;
  margin-top: .5rem
}

/* Select */
.filters select {
  background: rgba(29, 28, 28, 0.233);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, .12);
  padding: .5rem .7rem;
  border-radius: .6rem
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: none
}

.modal.active {
  display: block
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(2px)
}

.modal-dialog {
  position: relative;
  z-index: 2;
  width: min(1000px, 92%);
  height: min(80dvh, 800px);
  margin: 6dvh auto;
  background: var(--bg2);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08)
}

.modal-body {
  flex: 1
}

.modal-body iframe {
  width: 100%;
  height: 100%;
  border: 0
}

.modal-close {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .15);
  color: var(--text);
  border-radius: .6rem;
  padding: .25rem .5rem;
  cursor: pointer
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--muted);
  background: rgba(0, 0, 0, .3);
  border-top: 1px solid rgba(255, 255, 255, .06)
}

.server-image {
  overflow: hidden;
  border-radius: .6rem;
  margin-bottom: .6rem
}

.server-image img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  display: block
}

/* Responsive */
@media (max-width: 860px) {
  .menu-toggle {
    display: block
  }

  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    right: 4%;
    top: 56px;
    background: rgba(0, 0, 0, .6);
    padding: .6rem;
    border-radius: .8rem;
    border: 1px solid rgba(255, 255, 255, .1)
  }

  .grid-2 {
    grid-template-columns: 1fr
  }

  .grid-3 {
    grid-template-columns: 1fr
  }

  .social {
    width: 36px;
    height: 36px;
  }

  .social i {
    font-size: 18px;
  }
}

h3 {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: none;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  align-items: center;

  /* texto degradado cian */
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: rgb(255, 255, 255);
  border: #000000;

  /* sutil brillo y subrayado */
  text-shadow: 0 0 18px rgba(218, 26, 26, 0.952);
  position: relative;
  margin: .2rem 0 .9rem;
}

h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 64px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 14px rgba(4, 8, 10, 0.623);
}

h3:hover {
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, .35));
  transform: translateY(-1px);
  transition: .2s ease;
}

.server-info {
  background: rgba(0, 0, 0, .25);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: .6rem;
  padding: .6rem;
  min-height: 52px;
  contain: content;
}

.auth-card {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  color: #fff;
  font-family: "Poppins", sans-serif;
}

.auth-card .profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.auth-card .avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #22d3ee;
  box-shadow: 0 0 10px #22d3ee;
}

.auth-card .info {
  text-align: center;
  font-size: 14px;
}

.auth-card h4 {
  margin: 12px 0 6px;
  font-size: 15px;
  color: #38bdf8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 4px;
}

/* Grid de tarjetas de voto */
.vote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .8rem;
}

/* Tarjeta con imagen + título */
.vote-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: .9rem;
  border: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
  box-shadow: var(--shadow);
  text-decoration: none;
  outline: none;
}

.vote-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  display: block;
  filter: saturate(1.05);
  transition: transform .25s ease;
}

.vote-card .vote-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: .55rem .75rem;
  font-weight: 700;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .65));
  color: #fff;
  letter-spacing: .3px;
}

.vote-card:hover img,
.vote-card:focus img {
  transform: scale(1.04);
}

.socials {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
}

.social {
  width: 60px;
  height: 60px;
  /* tamaño del botón */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #111;
  color: #e5e7eb;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}

.social i {
  font-size: 30px;
  /* tamaño del icono */
  line-height: 1;
}

/* Hover genérico */
.social:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .35);
}

/* Colores de marca al hover */
.social.instagram:hover {
  background: #E4405F;
  color: #fff;
}

.social.discord:hover {
  background: #5865F2;
  color: #fff;
}

.social.tiktok:hover {
  background: #000;
  color: #fff;
}

.social.youtube:hover {
  background: #FF0000;
  color: #fff;
}

[data-i18n="hero.text"] {
  white-space: pre-line;
  /* respeta los \n como saltos de línea */
  text-align: justify;
  line-height: 1.5;
}

/* Menú de idiomas desplegable */
.lang-menu {
  display: none;
  /* oculto por defecto */
  flex-direction: column;
  position: absolute;
  top: 60px;
  /* debajo del header */
  right: 1rem;
  background: rgba(0, 0, 0, .85);
  padding: .6rem;
  border-radius: .6rem;
  border: 1px solid rgba(255, 255, 255, .1);
  gap: .4rem;
  z-index: 30;
}

.lang-menu.show {
  display: flex;
}


.lang-link {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .12);
  color: var(--text);
  padding: .4rem .6rem;
  border-radius: .6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: background 0.2s, border 0.2s;
}

.lang-link img {
  width: 20px;
  height: 20px;
  border-radius: 3px;
}

.lang-link.active {
  background: linear-gradient(135deg, rgba(34, 211, 238, .2), rgba(56, 189, 248, .15));
  border-color: rgba(56, 189, 248, .5);
}

.lang-toggle {
  margin-left: auto;
  display: block;
  border: 1px solid rgba(255, 255, 255, .1);
  background: transparent;
  color: var(--text);
  padding: .45rem .6rem;
  border-radius: .6rem;
  cursor: pointer
}