html {
    overflow-y: scroll;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
     background: linear-gradient(180deg,
        #0f0f0f 0%, #101a2a 30%, #1a0f12 60%, #141414 100%);
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    min-height: 100%;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(180deg,
        #0f0f0f 0%,
        #101a2a 30%,
        #1a0f12 60%,
        #141414 100%);
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}

main {
    flex: 1;
}

.bg {
    background: #000;
    width: 100%;
    height: 68px;
    position: absolute;
}

header {
    position: absolute;
    display: flex;
    height: 68px;
    justify-content: center;
    align-items: flex-start;
    flex-shrink: 0;
    align-self: stretch;
    background: #000;
    width: 100%;
}

.body_header {
    display: flex;
    width: 952px;
    height: 68px;
    justify-content: space-between;
    align-items: center;
}

.logo_letters {
    display: flex;
    align-items: center;
    gap: 12px;
}

.letters {
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    gap: 36px 4px;
    flex-wrap: wrap;
}

.submenu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.options_header {
    color: #FFF;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-decoration: none;
}


.search-container {
    position: relative;
    width: 150px !important;
    max-width: 150px !important;
    margin: 0 !important;
    box-sizing: border-box;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 14px;
    border-radius: 25px;
    border: none;
    outline: none;
    background-color: #1f1f1f;
    color: white;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #1f1f1f inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

.search-input {
    box-sizing: border-box;
}

.search-input::placeholder {
    color: #aaa;
}

.search-input:focus {
    background-color: #2a2a2a;
}

.search-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: #aaa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.search-button:hover {
    color: red;
}

.search-button svg {
    display: block;
}

.search-button {
    display: flex;
    align-items: center;
    justify-content: center;
}

.results-dropdown {
    position: absolute;
    width: 100%;
    background: #1c1c1c;
    border-radius: 10px;
    margin-top: 5px;
    overflow: hidden;
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
}

.result-item {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.result-item:hover {
    background: #2a2a2a;
}

.result-item img {
    width: 35px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 10px;
}

.result-item span {
    color: #eaeaea;
    font-size: 14px;
}

/*Modal CSS*/
.modal {
    display: none;
    /* 👈 esto es lo clave */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 20px;
    width: 400px;
}

.tabs button {
    margin: 5px;
}

.active {
    font-weight: bold;
}

a {
    text-decoration: none;
    color: inherit;
}

.options_header:hover {
    color: #ff3b3b;
}

/* ── Auth links ─────────────────────────────────────────── */
.auth-link {
    cursor: pointer;
    transition: color 0.2s;
}

.auth-link:hover {
    color: #ff3b3b;
}

/* ── Modal overlay ──────────────────────────────────────── */
.auth-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
}

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

/* ── Modal caja ─────────────────────────────────────────── */
.auth-modal {
    position: relative;
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    padding: 36px 32px 28px;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #fff;
}

/* ── Tabs ───────────────────────────────────────────────── */
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 28px;
    border-bottom: 2px solid #222;
}

.auth-tab {
    background: none;
    border: none;
    color: #666;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    padding: 0 0 12px;
    margin-right: 24px;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.auth-tab.active {
    color: #fff;
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ff3b3b, #ff7a18);
    border-radius: 2px;
}

/* ── Formulario ─────────────────────────────────────────── */
.auth-form.hidden {
    display: none;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.field label {
    color: #aaa;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.field input {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    padding: 10px 14px;
    outline: none;
    transition: border-color 0.2s;
}

.field input:focus {
    border-color: #ff3b3b;
}

.auth-submit {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    background: linear-gradient(90deg, #ff3b3b, #ff7a18);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.auth-submit:hover {
    opacity: 0.88;
}

.auth-switch {
    text-align: center;
    color: #555;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    margin-top: 16px;
}

.auth-switch span {
    color: #ff3b3b;
    cursor: pointer;
    font-weight: 700;
}

.auth-switch span:hover {
    text-decoration: underline;
}

.auth-error {
    color: #ff3b3b;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    text-align: center;
    margin-top: 12px;
}

/* ── User menu (logueado) ───────────────────────────────── */
.user-menu {
    position: relative;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff3b3b, #ff7a18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: #111;
    border: 1px solid #222;
    border-radius: 10px;
    min-width: 160px;
    overflow: hidden;
    z-index: 500;
}

.user-dropdown.open {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 11px 16px;
    color: #ccc;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.15s, color 0.15s;
}

.user-dropdown a:hover {
    background: #1a1a1a;
    color: #fff;
}

.dropdown-separator {
    height: 1px;
    background: #222;
    margin: 4px 0;
}

.logout-link {
    color: #ff3b3b !important;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
    background: #000;
    border-top: 1px solid #111;
    margin-top: 80px;
    padding: 40px 0 24px;
}

.footer-inner {
    max-width: 952px;
    margin: 0 auto;
    padding: 0 16px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-logo {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.footer-tagline {
    color: #444;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    margin: 0;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-link {
    color: #444;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.social-link:hover {
    color: #ff3b3b;
}

.footer-divider {
    height: 1px;
    background: #111;
    margin-bottom: 24px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-copy {
    color: #333;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    margin: 0;
}

.footer-disclaimer {
    color: #333;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 400;
    margin: 0;
    max-width: 520px;
    line-height: 1.6;
}

.footer-disclaimer a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-disclaimer a:hover {
    color: #ff3b3b;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.footer-link {
    color: #333;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #ff3b3b;
}

/* ── Campanita ───────────────────────────────────────────── */
.notif-bell {
    position: relative;
    color: #aaa;
    display: flex;
    align-items: center;
    margin-right: 4px;
    transition: color 0.2s;
}

.notif-bell:hover {
    color: #fff;
}

.notif-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ff3b3b;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ── Avatar con notif dot ────────────────────────────────── */
.user-avatar-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.avatar-notif-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff3b3b;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border: 2px solid #000;
}

/* ── Notificaciones en dropdown ──────────────────────────── */
.dropdown-notif-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-notif-badge {
    background: #ff3b3b;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.user-avatar--img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.search-loading {
    padding: 12px 16px;
    color: #555;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.search-no-results {
    padding: 12px 16px;
    color: #444;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
}

.result-item.active {
    background: #2a2a2a;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {

    .container,
    .dashboard-container,
    .members-container,
    .notif-container,
    .settings-container,
    .season-container,
    .profile-container {
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box;
    }

    /* Header */
    .body_header {
        width: 100%;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .submenu {
        gap: 8px;
    }

    /* Ocultar opciones del menú en móvil */
    .submenu > a,
    .submenu > p.options_header {
        display: none;
    }

    /* Mantener visible solo el user menu y la búsqueda */
    .submenu .user-menu {
        display: flex;
    }

    .submenu .auth-link {
        display: none;
    }

    /* Ocultar username en móvil, solo mostrar avatar */
    .user-trigger .options_header {
        display: none;
    }

    .user-trigger svg {
        display: none;
    }

    /* Búsqueda más pequeña */
    .search-container {
        max-width: 120px;
    }

    /* Dropdown usuario */
    .user-dropdown {
        right: -8px;
    }

    /* Modal auth */
    .auth-modal {
        margin: 16px;
        padding: 24px 20px 20px;
        max-width: calc(100vw - 32px);
    }

    /* Footer */
    .footer-top {
        flex-direction: column;
        gap: 16px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .footer-inner {
        padding: 0 16px;
    }

    .footer-links {
        gap: 16px;
    }
}

/* ── Hamburguesa ─────────────────────────────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Menú móvil ──────────────────────────────────────────── */
.mobile-menu {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: 998;
    flex-direction: column;
    padding: 24px 24px;
    gap: 0;
    overflow-y: auto;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu-link {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    padding: 16px 0;
    border-bottom: 1px solid #111;
    transition: color 0.15s;
    cursor: pointer;
}

.mobile-menu-link:hover { color: #ff3b3b; }

.mobile-menu-auth {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
}

.mobile-menu-btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #ff3b3b, #ff7a18);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.mobile-menu-btn-secondary {
    width: 100%;
    padding: 14px;
    background: none;
    border: 1px solid #333;
    border-radius: 8px;
    color: #aaa;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 768px) {

    /* Ocultar letras individuales en móvil */
    .letters {
        display: none;
    }

    /* Ajustar tamaño del logo */
    .logo_letters img:first-child {
        width: 36px;
        height: 36px;
    }

    /* Reducir gap del logo */
    .logo_letters {
        gap: 0;
    }

    /* El body_header ocupa todo el ancho */
    .body_header {
        width: 100%;
        padding: 0 12px;
        box-sizing: border-box;
    }

    /* Búsqueda más compacta */
    .search-container {
        max-width: 110px;
    }

    .search-input {
        padding: 8px 36px 8px 10px;
        font-size: 13px;
    }
    
    .hamburger { display: flex; }

    /* Ocultar nav links del submenu en móvil */
    .submenu > a,
    .submenu > p.options_header,
    .submenu > .auth-link {
        display: none;
    }

    /* Mantener user menu y búsqueda */
    .submenu {
        gap: 12px;
    }

    .user-trigger .options_header,
    .user-trigger svg {
        display: none;
    }

    .search-container {
        max-width: 130px;
    }

    .body_header {
        width: 100%;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .auth-modal {
        margin: 16px;
        padding: 24px 20px 20px;
        max-width: calc(100vw - 32px);
        box-sizing: border-box;
    }

    .footer-top {
        flex-direction: column;
        gap: 16px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .footer-inner {
        padding: 0 16px;
    }

    .footer-links {
        gap: 16px;
        flex-wrap: wrap;
    }

    /* Dropdown usuario — no se salga de la pantalla */
    .user-dropdown {
        right: 200;
        left: 0;
        min-width: 160px;
        max-width: calc(100vw - 32px);
    }
}