@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg: #030508;
    --panel: rgba(8, 12, 18, 0.82);
    --panel-strong: rgba(5, 7, 10, 0.96);
    --border: rgba(0, 243, 255, 0.16);
    --border-strong: rgba(0, 243, 255, 0.35);
    --border-red: rgba(255, 0, 85, 0.28);
    --text: #f0f4f8;
    --muted: #8fa2b8;
    --green: #00f3ff; /* Reemplazamos el verde por un Cian Eléctrico */
    --green-rgb: 0, 243, 255;
    --green-soft: rgba(0, 243, 255, 0.06);
    --red: #ff0055; /* Rosa Neón / Magenta Sangre */
    --yellow: #ffd200;
    --purple: #b026ff; /* Púrpura Plasma */
    --cyan: #00f3ff;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    --neon-glow: 0 0 15px rgba(0, 243, 255, 0.25);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Scrollbar moderno premium en Cian */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 243, 255, 0.20);
    border-radius: 99px;
    border: 2px solid var(--bg);
    transition: background 0.2s ease;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--cyan);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    background:
        linear-gradient(180deg, rgba(3, 5, 8, 0.65) 0%, rgba(3, 5, 8, 0.94) 100%),
        url('../background.jpg') center/cover fixed no-repeat,
        var(--bg);
}

/* Fulgor ambiental en las esquinas con tonos Cian Eléctrico y Rosa Neón */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 12%, rgba(0, 243, 255, 0.16), transparent 34%),
        radial-gradient(circle at 90% 15%, rgba(255, 0, 85, 0.14), transparent 32%);
    z-index: -1;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--cyan);
}

button,
input,
select,
textarea {
    font-family: 'Space Grotesk', sans-serif;
    font-size: inherit;
}

/* ==========================================================================
   HEADER / NAVEGACIÓN
   ========================================================================== */

#menu-main {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px clamp(14px, 4vw, 48px);
    border-bottom: 1px solid var(--border);
    background: rgba(3, 5, 8, 0.90);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.06em;
    color: var(--cyan);
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(0, 243, 255, 0.45);
}

.site-brand span:first-child {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 16px var(--cyan), 0 0 4px var(--cyan);
    animation: status-blink 2s infinite ease-in-out;
}

@keyframes status-blink {
    0%, 100% { opacity: 0.6; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.15); }
}

#menu-main-list,
#menu-user-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
}

#menu-main-list {
    flex-wrap: wrap;
    justify-content: center;
}

.menu-links,
.auth-link,
.auth-button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-links:hover,
.auth-link:hover,
.auth-button:hover,
.btn:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
    background: rgba(0, 243, 255, 0.08);
    color: var(--cyan);
    box-shadow: 0 6px 20px rgba(0, 243, 255, 0.12);
}

.menu-links.active {
    color: #030508;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    border-color: var(--cyan);
    font-weight: 700;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}

.auth-button.primary,
.btn.primary {
    color: #030508;
    border-color: var(--cyan);
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 243, 255, 0.25);
}

.auth-button.primary:hover,
.btn.primary:hover {
    color: #030508;
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    box-shadow: 0 8px 25px rgba(0, 243, 255, 0.45);
    border-color: var(--cyan);
}

.auth-button.danger,
.btn.danger {
    border-color: rgba(255, 0, 85, 0.35);
    background: rgba(255, 0, 85, 0.12);
    color: #ff5e90;
}
.auth-button.danger:hover,
.btn.danger:hover {
    border-color: var(--red);
    background: rgba(255, 0, 85, 0.25);
    color: var(--text);
    box-shadow: 0 6px 20px rgba(255, 0, 85, 0.2);
}

.user-pill {
    color: var(--cyan);
    font-size: 0.9rem;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(0, 243, 255, 0.08);
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    box-shadow: inset 0 0 10px rgba(0, 243, 255, 0.05);
}

/* ==========================================================================
   CONTENEDORES Y PANELES
   ========================================================================== */

.page-shell {
    width: min(1360px, calc(100% - 32px));
    margin: 36px auto 90px;
}

.hero,
.panel,
.card {
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--panel);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hero:hover,
.panel:hover,
.card:hover {
    border-color: rgba(0, 243, 255, 0.25);
}

.hero {
    overflow: hidden;
    position: relative;
    padding: clamp(26px, 5vw, 58px);
    border: 1px solid rgba(0, 243, 255, 0.25);
    background: linear-gradient(145deg, rgba(8, 12, 18, 0.8), rgba(4, 6, 9, 0.92));
}

.hero::after {
    content: "";
    position: absolute;
    right: -100px;
    bottom: -130px;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.16), transparent 70%);
    pointer-events: none;
}

.eyebrow {
    color: var(--cyan);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.82rem;
    text-shadow: 0 0 12px rgba(0, 243, 255, 0.3);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    margin-top: 0;
    letter-spacing: -0.01em;
}

h2,
h3,
h4,
h5,
h6 {
    color: #ffffff !important; /* Garantiza visibilidad perfecta de todos los títulos en cualquier fondo */
}

h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    line-height: 1.05;
    margin-bottom: 20px;
    font-weight: 800;
    color: #ffffff !important; /* Solid pure white for absolute visibility! */
    text-shadow: 0 0 15px rgba(0, 243, 255, 0.45), 0 0 4px rgba(0, 243, 255, 0.8); /* Gorgeous neon cyan glow! */
}

h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
}

p {
    color: var(--muted);
    line-height: 1.8;
    font-size: 1.02rem;
}

.grid {
    display: grid;
    gap: 20px;
}

.grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.panel {
    padding: 26px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--cyan);
    background: rgba(0, 243, 255, 0.08);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.server-ip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    margin-top: 14px;
    border-radius: 14px;
    color: var(--yellow);
    border: 1px solid rgba(255, 204, 0, 0.28);
    background: rgba(0, 0, 0, 0.45);
    font-family: Consolas, Monaco, monospace;
    font-size: 0.95rem;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   FORMULARIOS
   ========================================================================== */

.form-grid {
    display: grid;
    gap: 16px;
}

label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px 16px;
    color: var(--text);
    background: rgba(4, 7, 10, 0.5);
    outline: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Outfit', sans-serif;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--cyan);
    background: rgba(4, 7, 10, 0.7);
    box-shadow: 0 0 18px rgba(0, 243, 255, 0.15), inset 0 0 8px rgba(0, 243, 255, 0.05);
}

/* ==========================================================================
   NOTIFICACIONES
   ========================================================================== */

.notice {
    margin: 14px 0 0;
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(0, 243, 255, 0.08);
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.6;
}

.notice.error {
    border-color: var(--border-red);
    background: rgba(255, 0, 85, 0.08);
    color: #ffb3cd;
}

/* ─── Tarjeta Destacada "Acceso Restringido / Iniciar Sesión" ─────────────── */

.login-required-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 36px 28px;
    border-radius: 20px;
    border: 1px solid var(--border-strong);
    background: linear-gradient(145deg, rgba(8, 12, 18, 0.92), rgba(16, 24, 38, 0.85));
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(0, 243, 255, 0.04);
    overflow: hidden;
    margin: 6px 0;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-required-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan), var(--purple), var(--red));
    box-shadow: 0 0 12px var(--cyan);
}

.login-required-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 0%, rgba(0, 243, 255, 0.08), transparent 60%);
}

.login-required-card:hover {
    transform: translateY(-2px);
    border-color: var(--cyan);
    box-shadow: 0 16px 48px rgba(0, 243, 255, 0.15), inset 0 0 25px rgba(0, 243, 255, 0.08);
}

.login-required-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 243, 255, 0.08);
    border: 1px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 16px;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    position: relative;
    z-index: 1;
}

.login-required-title {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    text-shadow: 0 0 12px rgba(0, 243, 255, 0.4) !important;
    margin: 0 0 10px !important;
    position: relative;
    z-index: 1;
}

.login-required-text {
    font-size: 0.98rem !important;
    color: var(--muted) !important;
    max-width: 540px;
    line-height: 1.6;
    margin: 0 0 22px !important;
    position: relative;
    z-index: 1;
}

.login-required-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   REDES SOCIALES FLOTANTES
   ========================================================================== */

#RRSS {
    position: fixed;
    left: 0;
    top: 155px;
    z-index: 10;
    padding: 10px 8px;
    border-radius: 0 16px 16px 0;
    background: rgba(4, 7, 10, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-left: 0;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.5);
    transition: padding-left 0.2s ease;
}

#RRSS:hover {
    padding-left: 12px;
}

#RRSS ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

#RRSS img {
    width: 32px;
    height: 32px;
    display: block;
    border-radius: 8px;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

#RRSS img:hover {
    transform: scale(1.15) translateX(2px);
    filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.4));
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    width: min(1360px, calc(100% - 32px));
    margin: 60px auto 24px;
    color: var(--muted);
    text-align: center;
    font-size: 0.9rem;
    font-family: 'Space Grotesk', sans-serif;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 24px;
}

/* ==========================================================================
   MODAL DE AUTENTICACIÓN
   ========================================================================== */

.auth-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 80;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(2, 4, 6, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.auth-modal.active {
    display: flex;
}

.auth-box {
    width: min(480px, 100%);
    border: 1px solid var(--border-strong);
    border-radius: 24px;
    padding: 26px;
    background: var(--panel-strong);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 30px rgba(0, 243, 255, 0.05);
    animation: auth-box-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes auth-box-in {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.auth-tabs button {
    border: 0;
    background: transparent;
    border-radius: 8px;
    padding: 8px;
    font-weight: 600;
}

.auth-tabs button.active {
    color: #030508;
    background: var(--cyan);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 243, 255, 0.25);
}

.close-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.close-row strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
}

.close-row button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.close-row button:hover {
    background: rgba(255, 0, 85, 0.15);
    border-color: var(--red);
    color: var(--red);
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   RANGOS / BADGES
   ========================================================================== */

.rank-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    vertical-align: middle;
    margin-left: 6px;
    white-space: nowrap;
    line-height: 1.4;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.user-pill {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-weight: 700;
}

.author-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.reply-author-line {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.reply-author-line h4 {
    margin: 0;
    font-size: 1rem;
}

/* ==========================================================================
   ESTILOS DE RANGOS PREMIUM
   ========================================================================== */

.chat-author-jefe {
    color: var(--yellow) !important;
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.5), 0 0 2px rgba(255, 204, 0, 0.8);
    font-weight: 800;
}

.chat-author-admin, .chat-author-administrator {
    color: var(--red) !important;
    text-shadow: 0 0 10px rgba(255, 0, 85, 0.5), 0 0 2px rgba(255, 0, 85, 0.8);
    font-weight: 800;
}

.chat-author-scripter {
    color: #d487ff !important;
    text-shadow: 0 0 10px rgba(212, 135, 255, 0.5), 0 0 2px rgba(212, 135, 255, 0.8);
    font-weight: 800;
}

.chat-author-moderador, .chat-author-moderator {
    color: var(--cyan) !important;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5), 0 0 2px rgba(0, 243, 255, 0.8);
    font-weight: 800;
}

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */

@media (max-width: 850px) {
    #menu-main {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
        padding: 16px;
    }

    #menu-main-list,
    #menu-user-list {
        justify-content: center;
        gap: 6px;
    }

    .grid.three,
    .grid.two {
        grid-template-columns: 1fr;
    }

    #RRSS {
        display: none;
    }
}

/* ==========================================================================
   VERIFICACIÓN Y PÁGINA VERIFY.HTML
   ========================================================================== */

.verification-banner {
    background: rgba(12, 9, 6, 0.94);
    border-bottom: 1px solid rgba(255, 166, 0, 0.35);
    color: #ffd080;
    padding: 14px 24px;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    position: sticky;
    top: 62px;
    z-index: 25;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    animation: banner-pulse 3s infinite ease-in-out;
}

@keyframes banner-pulse {
    0%, 100% { border-bottom-color: rgba(255, 166, 0, 0.35); }
    50% { border-bottom-color: rgba(255, 166, 0, 0.65); box-shadow: 0 8px 30px rgba(255, 166, 0, 0.1); }
}

.verify-code-container {
    display: flex;
    justify-content: center;
    margin: 24px 0;
}

.verify-code-input {
    width: 240px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 12px;
    text-align: center;
    padding: 12px 0 12px 12px;
    color: var(--cyan);
    border: 2px solid rgba(0, 243, 255, 0.25);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.5);
    outline: none;
    transition: all 0.25s ease;
}

.verify-card {
    max-width: 500px;
    width: 100%;
    margin: 6vh auto;
    text-align: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.verify-icon-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 3rem;
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(255, 255, 255, 0.08);
}

.verify-icon-wrapper.success {
    color: var(--cyan);
    border-color: var(--cyan);
    background: rgba(0, 243, 255, 0.06);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.25);
}

.verify-icon-wrapper.error {
    color: var(--red);
    border-color: var(--red);
    background: rgba(255, 0, 85, 0.06);
    box-shadow: 0 0 30px rgba(255, 0, 85, 0.25);
}

.verify-icon-wrapper.loading {
    color: var(--yellow);
    border-color: var(--yellow);
    background: rgba(255, 204, 0, 0.04);
    box-shadow: 0 0 30px rgba(255, 204, 0, 0.15);
    animation: rotate-spinner 2s infinite linear;
}

.glow-text-verified {
    color: #f3f7f5;
    text-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}
