/* =========================
   Secret Maps - style2.css (PRO)
   ========================= */

:root {
    --bg-1: #1f4037;
    --bg-2: #99f2c8;

    --text: #ffffff;
    --text-dim: rgba(255, 255, 255, .82);

    --glass: rgba(255, 255, 255, .12);
    --glass-2: rgba(255, 255, 255, .16);
    --border: rgba(255, 255, 255, .18);

    --shadow: 0 12px 30px rgba(0, 0, 0, .18);
    --shadow-soft: 0 8px 20px rgba(0, 0, 0, .14);

    --radius: 18px;
    --radius-sm: 14px;

    --accent: #f9d423;
    --accent-text: #1f4037;

    --focus: 0 0 0 4px rgba(249, 212, 35, .25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: linear-gradient(110deg, var(--bg-1), var(--bg-2));
    background-attachment: fixed;
    background-size: cover;
}

body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: transparent;
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* contenedor general */
.container {
    width: min(92%, 1180px);
    margin: 0 auto;
}

/* =========================
   Header / Nav
   ========================= */
.hero {
    padding: 44px 0 18px;
}

.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: .2px;
}

.logo small {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dim);
    margin-top: 2px;
}

.actions-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* =========================
   Buttons
   ========================= */
.btn {
    cursor: pointer;
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform .15s ease, filter .15s ease, background .15s ease, border-color .15s ease;
    user-select: none;
    line-height: 1;
}

.btn:active {
    transform: translateY(1px) scale(.99);
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-text);
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 10px 18px rgba(0, 0, 0, .16);
}

.btn-secondary {
    border: 2px solid rgba(255, 255, 255, .8);
    color: #fff;
    background: transparent;
}

.btn-danger {
    background: #c0392b;
    color: white;
    border: none;
}

.btn:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
}

.btn:focus-visible {
    outline: none;
    box-shadow: var(--focus);
}

/* =========================
   Sections
   ========================= */
section {
    padding: 56px 0;
}

h2 {
    text-align: center;
    font-size: clamp(26px, 2.6vw, 38px);
    margin-bottom: 26px;
    letter-spacing: .2px;
}

.subtle {
    text-align: center;
    color: var(--text-dim);
    margin-top: -12px;
    margin-bottom: 26px;
}

/* =========================
   Navbar
   ========================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(31, 64, 55, .82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
}

.navbar-logo {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    letter-spacing: .2px;
    white-space: nowrap;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.navbar-actions>div {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border: none;
    font-weight: 700;
    opacity: .85;
    transition: opacity .15s;
}

.btn-ghost:hover {
    opacity: 1;
    transform: none;
    filter: none;
}

/* =========================
   Footer
   ========================= */
.footer {
    padding: 16px 0;
    text-align: center;
    background: rgba(0, 0, 0, .20);
    border-top: 1px solid rgba(255, 255, 255, .10);
    color: rgba(255, 255, 255, .55);
    font-size: 13px;
}

.footer-simple {
    text-align: center;
}

/* =========================
   User chip
   ========================= */
.nav-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .55);
    flex-shrink: 0;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px 4px 4px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background .15s, border-color .15s;
    white-space: nowrap;
}

.user-chip:hover {
    background: rgba(255, 255, 255, .20);
    border-color: rgba(255, 255, 255, .35);
}

/* Panel de usuarios */
#usuarios {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* =========================
   FIX FOOTER ABAJO
   ========================= */
body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}