@import url('https://fonts.cdnfonts.com/css/akrobat');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

body {
    margin: 0;
    font-family: Mona Sans, ui-sans-serif, system-ui, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
    background: radial-gradient(circle at top left, #0d1b2a, #050a0f 80%);
    color: #fff;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;     /* centrar */
    padding: 20px 20px; /* padding ajustado */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

header.scrolled {
    background: #09121d;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4db8ff;
    text-shadow: 0 0 10px rgba(77, 184, 255, 0.6);
}
nav {
    display: flex;
    gap: 15px;
}

.custom-select {
  position: relative;
  width: 150px;
  cursor: pointer;
  font-size: 12px;
}

.custom-option img {
    width: 16px; /* ancho reducido */
    height: 11px; /* alto proporcional */
    object-fit: cover;
}

.custom-select-trigger {
    padding: 10px 15px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-weight: 600;
}

.custom-select-trigger span {
    display: flex;
    align-items: center; /* centra el texto con la bandera */
    gap: 8px; /* espacio entre la bandera y el texto */
}

.custom-select-trigger img.flag {
    width: 16px;
    object-fit: cover;
}

.arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #fff;
  transition: transform 0.3s ease;
}

.custom-options {
  list-style: none;
  padding: 0;
  margin: 0; /* eliminamos margen para que no haya espacio */
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #1f1f1f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  display: none;
  z-index: 10;
}

.custom-select:hover .custom-options {
  display: block; /* abierto al hacer hover sobre el contenedor completo */
}

.custom-select:hover .arrow {
  transform: rotate(180deg);
}

.custom-option {
    padding: 5px 15px;
    transition: all 0.2s ease;
    color: #fff;
    display: flex;
    align-items: center; /* centra verticalmente la imagen y el texto */
    gap: 8px; /* espacio entre la bandera y el texto */
}

.custom-option:hover {
  background-color: #069bff;
  color: #ffffff;
}


nav a {
    position: relative;
    margin: 0 15px;
    text-decoration: none;
    color: #d1d5db;
    font-size: 1rem;
    transition: color 0.3s;
    text-transform: uppercase;
    font-weight: 700;
    padding-bottom: 5px;
}

nav a.active, nav a.active-temp {
    color: #fff; /* color del link activo */
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #4db8ff;
    transition: width 0.3s ease;
}

nav a.active-temp::after,
nav a.active::after,
nav a:hover::after {
    width: 100%;
}
nav a:hover {
    color: #4db8ff;
}


nav a:hover {
    color: #4db8ff;
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 50px;
    min-height: 100vh;
    position: relative;
    background: linear-gradient(145deg, #0d1b2a, #09131e);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('./img/background.png');
    opacity: 0.8;
    z-index: 0;
}

.hero-text,
.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image {
    max-height: 800px;
    overflow: visible; /* Permite que la sombra se vea fuera del contenedor */
    position: relative;
    margin-left: 20%;
    margin-top: 10%;
}

.hero-image img {
    display: block;
    width: 100%;
    max-height: 800px;
    filter: drop-shadow(0 0 20px rgba(77, 184, 255, 0.3)); /* sombra azul más grande y visible fuera */
    mask-image: linear-gradient(to bottom, black 60%, transparent 90%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 90%);
}

.hero-text h1 {
    font-size: 3rem;
}

.hero-text h1 span {
    color: #4db8ff;
    text-shadow: 0 0 15px rgba(77, 184, 255, 0.7);
}

.hero-text p {
    max-width: 500px;
    margin-top: 20px;
    line-height: 1.6;
    color: #b0b8c1;
}

.servidores {
    position: relative;
    padding: 80px 50px;
    text-align: center;
    color: #fff;
    background: url("img/servers.png") center center / cover no-repeat fixed;
}

.servidores::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 30, 0.9);
    /* oscurece para que el texto se lea */
    z-index: 0;
}

.servidores h2,
.servidores .server-list {
    position: relative;
    z-index: 1;
}

.servidores h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #4db8ff;
    text-shadow: 0 0 10px rgba(77, 184, 255, 0.5);
}

.server-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 4 columnas fijas */
    gap: 20px;
    justify-items: center;
    /* centra las tarjetas dentro de la celda */
    margin: 0 auto;
}

.server-stats {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-weight: 800;
    
}

.server-stats .stat {
    background-color: #1f1f1f;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.server {
    box-sizing: border-box;
    background: #181819;
    border-radius: 15px;
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 420px;
    width: 100%;
    padding: 20px;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    ;
}

.server:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.server img {
    max-width: 100%;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 12px;
}

.server h3 {
    margin: 10px 0;
    color: #ffffff;
    font-size: 1.3rem;
}

.server p {
    color: #b0b8c1;
    font-size: 0.95rem;
    line-height: 1.4;
}

.server-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.button-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}


.button-stats {
    margin-top: 20px;
    display: inline-flex; /* o flex si quieres ocupar todo el ancho */
    align-items: center;
    justify-content: center;
    background-color: #1f1f1f;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    gap: 10px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 600;
}

.connect-btn {
    background-color: #12dd00;
    box-shadow: 0 0px 15px #0fb900;
}

.connect-btn:hover {
    background-color: #0ea800;
    box-shadow: 0 0px 20px #0fb900;
}

.discord-btn {
    background-color: rgb(71, 82, 196);
    box-shadow: 0 0px 15px rgb(88, 101, 242);
}

.discord-btn:hover { 
    background-color: rgb(50, 60, 160);
    box-shadow: 0 0px 20px rgb(66, 77, 189);
}

.discord-members i {
    font-size: 8px;
}

.servers-btn {
    background-color: #4db8ff;
    box-shadow: 0 4px 15px rgba(29, 120, 193, 0.4);
    padding: 15px 40px;
}

.connect-btn,
.discord-btn {
    padding: 10px 20px;
}

.servers-btn:hover {
    box-shadow: 0 6px 20px rgba(29, 120, 193, 0.6);
}

.btn {
    display: inline-block;
    margin-top: 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    user-select: none;
}

.btn:hover {
    transform: translateY(-3px);
    cursor: pointer;
}

footer {
  background: #111;
  color: #fff;
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  font-family: Arial, sans-serif;
}

.footer-left {
  flex: 1;
  text-align: left;
  font-weight: bold;
}

.footer-right {
  flex: 1;
  text-align: right;
}

.footer-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.footer-center .disclaimer {
  font-size: 12px;
  color: #aaa;
  margin-top: 5px;
}

.footer-right a {
  color: #fff;
  margin-left: 10px;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s;
}

.footer-right a:hover {
  color: #7289da;
}

.footer-center {
  text-align: center;
  flex: 1 1 200px;
  margin: 5px 0;
}

.footer-logo {
  text-align: left;
  font-weight: bold;
  flex: 1 1 100px;
}

@media (max-width: 1024px) {
    header {
        padding: 20px 30px;
    }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 100px 30px 60px 30px;
        min-height: auto;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-text p {
        max-width: 600px;
    }

    .hero-image {
        margin-bottom: 30px;
        max-height: 500px;
    }

    .server-list {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 30px;
    }
}


@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    header {
        padding: 15px 0px;
        flex-direction: column;
        position: relative;
    }
    
    header.scrolled {
      background: transparent;
      box-shadow: none;
    }

    header .logo {
        margin-bottom: 15px;
    }

    nav {
        position: static;
        transform: none;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    nav a {
        margin: 0 10px;
        font-size: 0.9rem;
    }

    .hero {
        padding: 40px 20px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text h3 {
        font-size: 1.2rem;
    }

    .hero-image {
       display: none;
    }

    .servidores {
        padding: 60px 20px;
    }

    .server-list {
        grid-template-columns: 1fr;
    }

    .server {
        min-height: auto;
        padding: 25px;
    }

    .btn {
        font-size: 1rem;
        padding: 12px 25px;
    }

    footer {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 25px 20px;
    }

    .footer-center {
        position: static;
        transform: none;
        flex: none;
        order: 2;
    }

    .footer-left {
        order: 1;
    }

    .footer-right {
        order: 3;
    }

    .footer-right a {
        margin: 0 10px;
    }
}
