.header-global {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px 20px;

    background: #1A2B20;
    color: #fff;
    border-bottom: 1px solid #2A3D30;
}

#headerGlobalPlaceholder {
    width: 100%;
    flex-shrink: 0;
}

.header-puntos-semana {
    color: #EDEFEC;
    text-decoration: none;
    font-family: 'Oswald', Arial, sans-serif;
    font-weight: 600;
    font-size: 13px;

    transition: color 0.15s ease;
}

.header-puntos-semana:hover {
    color: #3FA873;
}

.header-puntos-semana span {
    color: #3FA873;
    font-weight: 700;
}

.marca-global {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.logo-marca-img {
    height: 32px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.auth-contenedor {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-login {
    background: #fff;
    color: #222;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;

    font-family: 'Inter', Arial, sans-serif;
    font-weight: 600;
    font-size: 13px;

    cursor: pointer;
}

.btn-login:hover {
    background: #f0f0f0;
}

.perfil-usuario {
    display: flex;
    align-items: center;
    gap: 8px;
}

.foto-usuario {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

#nombreUsuario {
    font-size: 13px;
    color: #EDEFEC;
}

.btn-logout {
    background: transparent;
    border: 1px solid #2A3D30;
    color: #8A9690;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
}

.btn-logout:hover {
    background: #24382b;
}

.modal-overlay {
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.7);

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 2000;
}

.modal-contenido {
    background: #1A2B20;
    border: 1px solid #2A3D30;
    border-radius: 16px;
    padding: 30px;

    width: 90%;
    max-width: 420px;

    text-align: center;
}

.modal-contenido h2 {
    margin: 0 0 6px;
    font-family: 'Oswald', Arial, sans-serif;
    color: #EDEFEC;
}

.modal-subtitulo {
    color: #8A9690;
    font-size: 13px;
    margin: 0 0 20px;
}

.equipo-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin: 16px 0;
    padding: 10px;

    background: rgba(63, 168, 115, 0.12);
    border: 1px solid #3FA873;
    border-radius: 10px;
}

.equipo-preview img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.equipo-preview span {
    color: #EDEFEC;
    font-weight: 600;
}

#btnConfirmarEquipo {
    width: 100%;
    margin-top: 10px;

    background: #3FA873;
    color: #0F1912;
    border: none;
    border-radius: 10px;
    padding: 14px 24px;

    font-family: 'Oswald', Arial, sans-serif;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;

    cursor: pointer;
    transition: background 0.15s ease;
}

#btnConfirmarEquipo:hover:not(:disabled) {
    background: #4fc186;
}

#btnConfirmarEquipo:disabled {
    background: #45564c;
    color: #8A9690;
    cursor: not-allowed;
    opacity: 1;
}

[hidden] {
    display: none !important;
}

.lista-sugerencias {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    list-style: none;
    margin: 4px 0 0;
    padding: 6px 0;

    background: #1A2B20;
    border: 1px solid #2A3D30;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);

    max-height: 220px;
    overflow-y: auto;

    z-index: 10;
    text-align: left;
}

.lista-sugerencias li {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 15px;
    color: #EDEFEC;

    display: flex;
    align-items: center;
    gap: 10px;
}

.lista-sugerencias li img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.lista-sugerencias li span.pais {
    margin-left: auto;
    font-size: 12px;
    color: #8A9690;
}

.lista-sugerencias li:hover,
.lista-sugerencias li.activa {
    background: #24382b;
}

.contenedor-buscador {
    position: relative;
}

.circulo-equipo-favorito {
    width: 28px;
    height: 28px;
    border-radius: 50%;

    background: #1A2B20;
    border: 2px solid #3FA873;
    padding: 3px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.circulo-equipo-favorito:hover {
    transform: scale(1.1);
    border-color: #FF7A5C;
}

.circulo-equipo-favorito img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#inputEquipoFavorito {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #2A3D30;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Inter', Arial, sans-serif;

    background: #0F1912;
    color: #EDEFEC;
}

#inputEquipoFavorito:focus {
    outline: none;
    border-color: #3FA873;
}

#inputEquipoFavorito::placeholder {
    color: #8A9690;
}


.modal-contenido {
    position: relative;
}

.btn-cerrar-x {
    position: absolute;
    top: -14px;
    right: -14px;

    box-sizing: border-box;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #1A2B20;
    border: 1px solid #2A3D30;
    border-radius: 50%;
    color: #8A9690;

    font-size: 16px;
    line-height: 1;
    cursor: pointer;

    transition: color 0.15s ease, border-color 0.15s ease;
}

.btn-cerrar-x:hover {
    color: #EDEFEC;
    border-color: #3FA873;
}

.btn-login-facebook {
    background: #1877F2;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;

    font-family: 'Inter', Arial, sans-serif;
    font-weight: 600;
    font-size: 13px;

    cursor: pointer;
}

.btn-login-facebook:hover {
    background: #166fe0;
}

.auth-login-compacto {
    display: flex;
    align-items: center;
    gap: 8px;
}

.etiqueta-login {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: #EDEFEC;
}

.btn-icono-login {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff;
    border: none;
    border-radius: 50%;

    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-icono-login:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-facebook-icono {
    background: #1877F2 !important;
}

.btn-icono-login {
    box-sizing: border-box;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff;
    border: none;
    border-radius: 50%;

    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.header-puntos-semana {
    position: relative;
    display: inline-block;
    min-width: 130px;
    height: 18px;
}

.vista-puntos-header {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;

    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.vista-puntos-header.visible {
    opacity: 1;
    pointer-events: auto;
}